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 JAVA_FLAGS_BIG 648 JAVA_FLAGS 649 TEST_JOBS 650 JOBS 651 MEMORY_SIZE 652 NUM_CORES 653 BUILD_FAILURE_HANDLER 654 ENABLE_INTREE_EC 655 JVM_VARIANT_CORE 656 JVM_VARIANT_ZEROSHARK 657 JVM_VARIANT_ZERO 658 JVM_VARIANT_HOTSPOT 659 JVM_VARIANT_MINIMAL1 660 JVM_VARIANT_CLIENT 661 JVM_VARIANT_SERVER 662 JVM_VARIANTS_COMMA 663 TEST_IN_BUILD 664 HOTSPOT_MAKE_ARGS 665 MACOSX_UNIVERSAL 666 DEBUG_CLASSFILES 667 FASTDEBUG 668 VARIANT 669 USE_NEW_HOTSPOT_BUILD 670 STLPORT_LIB 671 LIBZIP_CAN_USE_MMAP 672 LIBDL 673 LIBM 674 USE_EXTERNAL_LCMS 675 LCMS_LIBS 676 LCMS_CFLAGS 677 USE_EXTERNAL_LIBZ 678 USE_EXTERNAL_LIBPNG 679 PNG_LIBS 680 PNG_CFLAGS 681 USE_EXTERNAL_LIBGIF 682 USE_EXTERNAL_LIBJPEG 683 LLVM_LIBS 684 LLVM_LDFLAGS 685 LLVM_CFLAGS 686 LLVM_CONFIG 687 LIBFFI_LIBS 688 LIBFFI_CFLAGS 689 ALSA_LIBS 690 ALSA_CFLAGS 691 FREETYPE_BUNDLE_LIB_PATH 692 FREETYPE_LIBS 693 FREETYPE_CFLAGS 694 CUPS_CFLAGS 695 X_EXTRA_LIBS 696 X_LIBS 697 X_PRE_LIBS 698 X_CFLAGS 699 XMKMF 700 MSVCP_DLL 701 MSVCR_DLL 702 LIBCXX 703 STATIC_CXX_SETTING 704 FIXPATH_DETACH_FLAG 705 FIXPATH 706 VALID_JVM_FEATURES 707 JVM_FEATURES_custom 708 JVM_FEATURES_zeroshark 709 JVM_FEATURES_zero 710 JVM_FEATURES_minimal 711 JVM_FEATURES_core 712 JVM_FEATURES_client 713 JVM_FEATURES_server 714 INCLUDE_DTRACE 715 GCOV_ENABLED 716 STRIP_POLICY 717 DEBUG_BINARIES 718 ZIP_EXTERNAL_DEBUG_SYMBOLS 719 COPY_DEBUG_SYMBOLS 720 COMPILE_WITH_DEBUG_SYMBOLS 721 CFLAGS_WARNINGS_ARE_ERRORS 722 BUILD_CC_DISABLE_WARNING_PREFIX 723 DISABLE_WARNING_PREFIX 724 HOTSPOT_SET_WARNINGS_AS_ERRORS 725 WARNINGS_AS_ERRORS 726 COMPILER_SUPPORTS_TARGET_BITS_FLAG 727 ZERO_ARCHFLAG 728 LDFLAGS_TESTEXE 729 LDFLAGS_TESTLIB 730 CXXFLAGS_TESTEXE 731 CXXFLAGS_TESTLIB 732 CFLAGS_TESTEXE 733 CFLAGS_TESTLIB 734 OPENJDK_BUILD_JVM_LIBS 735 OPENJDK_BUILD_JVM_ASFLAGS 736 OPENJDK_BUILD_JVM_LDFLAGS 737 OPENJDK_BUILD_JVM_CFLAGS 738 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 739 OPENJDK_BUILD_LDFLAGS_CXX_JDK 740 OPENJDK_BUILD_JDKEXE_LIBS 741 OPENJDK_BUILD_JDKLIB_LIBS 742 OPENJDK_BUILD_LDFLAGS_JDKEXE 743 OPENJDK_BUILD_LDFLAGS_JDKLIB 744 OPENJDK_BUILD_CXXFLAGS_JDKEXE 745 OPENJDK_BUILD_CXXFLAGS_JDKLIB 746 OPENJDK_BUILD_CFLAGS_JDKEXE 747 OPENJDK_BUILD_CFLAGS_JDKLIB 748 OPENJDK_BUILD_CXXSTD_CXXFLAG 749 JVM_LIBS 750 JVM_ASFLAGS 751 JVM_LDFLAGS 752 JVM_CFLAGS 753 LDFLAGS_HASH_STYLE 754 LDFLAGS_CXX_JDK 755 JDKEXE_LIBS 756 JDKLIB_LIBS 757 LDFLAGS_JDKEXE 758 LDFLAGS_JDKLIB 759 CXXFLAGS_JDKEXE 760 CXXFLAGS_JDKLIB 761 CFLAGS_JDKEXE 762 CFLAGS_JDKLIB 763 MACOSX_VERSION_MIN 764 NO_LIFETIME_DSE_CFLAG 765 NO_NULL_POINTER_CHECK_CFLAG 766 CXXSTD_CXXFLAG 767 CXX_O_FLAG_SIZE 768 CXX_O_FLAG_NONE 769 CXX_O_FLAG_DEBUG 770 CXX_O_FLAG_NORM 771 CXX_O_FLAG_HI 772 CXX_O_FLAG_HIGHEST 773 CXX_O_FLAG_HIGHEST_JVM 774 C_O_FLAG_SIZE 775 C_O_FLAG_NONE 776 C_O_FLAG_DEBUG 777 C_O_FLAG_NORM 778 C_O_FLAG_HI 779 C_O_FLAG_HIGHEST 780 C_O_FLAG_HIGHEST_JVM 781 JVM_CFLAGS_SYMBOLS 782 CXXFLAGS_DEBUG_SYMBOLS 783 CFLAGS_DEBUG_SYMBOLS 784 CXX_FLAG_DEPS 785 C_FLAG_DEPS 786 SHARED_LIBRARY_FLAGS 787 SET_SHARED_LIBRARY_MAPFILE 788 SET_SHARED_LIBRARY_NAME 789 SET_SHARED_LIBRARY_ORIGIN 790 SET_EXECUTABLE_ORIGIN 791 CXX_FLAG_REORDER 792 C_FLAG_REORDER 793 JVM_RCFLAGS 794 RC_FLAGS 795 AR_OUT_OPTION 796 LD_OUT_OPTION 797 EXE_OUT_OPTION 798 CC_OUT_OPTION 799 STRIPFLAGS 800 ARFLAGS 801 COMPILER_BINDCMD_FILE_FLAG 802 COMPILER_COMMAND_FILE_FLAG 803 COMPILER_TARGET_BITS_FLAG 804 JT_HOME 805 JTREGEXE 806 HOTSPOT_TOOLCHAIN_TYPE 807 USING_BROKEN_SUSE_LD 808 PACKAGE_PATH 809 USE_CLANG 810 HOTSPOT_LD 811 HOTSPOT_CXX 812 HOTSPOT_RC 813 HOTSPOT_MT 814 BUILD_AS 815 BUILD_LDCXX 816 BUILD_LD 817 BUILD_STRIP 818 BUILD_OBJCOPY 819 BUILD_AR 820 BUILD_NM 821 BUILD_CXX 822 BUILD_CC 823 BUILD_SYSROOT_LDFLAGS 824 BUILD_SYSROOT_CFLAGS 825 ac_ct_OBJDUMP 826 OBJDUMP 827 ac_ct_OBJCOPY 828 OBJCOPY 829 ac_ct_NM 830 ac_ct_STRIP 831 GNM 832 NM 833 STRIP 834 MSBUILD 835 DUMPBIN 836 RC 837 MT 838 LIPO 839 ac_ct_AR 840 AR 841 AS 842 LDCXX 843 LD 844 CXXCPP 845 CPP 846 CXX_VERSION_NUMBER 847 CC_VERSION_NUMBER 848 ac_ct_CXX 849 CXXFLAGS 850 CXX 851 TOOLCHAIN_PATH_CXX 852 POTENTIAL_CXX 853 OBJEXT 854 EXEEXT 855 ac_ct_CC 856 CPPFLAGS 857 LDFLAGS 858 CFLAGS 859 CC 860 TOOLCHAIN_PATH_CC 861 POTENTIAL_CC 862 TOOLCHAIN_VERSION 863 VS_LIB 864 VS_INCLUDE 865 VS_PATH 866 CYGWIN_LINK 867 SYSROOT_LDFLAGS 868 SYSROOT_CFLAGS 869 EXTRA_LDFLAGS 870 EXTRA_CXXFLAGS 871 EXTRA_CFLAGS 872 LEGACY_EXTRA_LDFLAGS 873 LEGACY_EXTRA_CXXFLAGS 874 LEGACY_EXTRA_CFLAGS 875 EXE_SUFFIX 876 OBJ_SUFFIX 877 STATIC_LIBRARY 878 SHARED_LIBRARY 879 STATIC_LIBRARY_SUFFIX 880 SHARED_LIBRARY_SUFFIX 881 LIBRARY_PREFIX 882 TOOLCHAIN_TYPE 883 STATIC_BUILD 884 IMPORT_MODULES_MAKE 885 IMPORT_MODULES_SRC 886 IMPORT_MODULES_CONF 887 IMPORT_MODULES_LIBS 888 IMPORT_MODULES_CMDS 889 IMPORT_MODULES_CLASSES 890 BUILD_HOTSPOT 891 HOTSPOT_DIST 892 BUILD_OUTPUT 893 JDK_TOPDIR 894 NASHORN_TOPDIR 895 HOTSPOT_TOPDIR 896 JAXWS_TOPDIR 897 JAXP_TOPDIR 898 CORBA_TOPDIR 899 LANGTOOLS_TOPDIR 900 BUILD_JDK 901 CREATE_BUILDJDK 902 BOOT_JDK_BITS 903 JAVAC_FLAGS 904 BOOT_JDK_MODULAR 905 BOOT_JDK_SOURCETARGET 906 JARSIGNER 907 JAR 908 JAVAH 909 JAVAC 910 JAVA 911 BOOT_JDK 912 JAVA_CHECK 913 JAVAC_CHECK 914 VERSION_IS_GA 915 VERSION_SHORT 916 VERSION_STRING 917 VERSION_NUMBER_FOUR_POSITIONS 918 VERSION_NUMBER 919 VERSION_OPT 920 VERSION_BUILD 921 VERSION_PRE 922 VERSION_PATCH 923 VERSION_SECURITY 924 VERSION_MINOR 925 VERSION_MAJOR 926 MACOSX_BUNDLE_ID_BASE 927 MACOSX_BUNDLE_NAME_BASE 928 HOTSPOT_VM_DISTRO 929 COMPANY_NAME 930 JDK_RC_PLATFORM_NAME 931 PRODUCT_SUFFIX 932 PRODUCT_NAME 933 LAUNCHER_NAME 934 JLINK_KEEP_PACKAGED_MODULES 935 COPYRIGHT_YEAR 936 COMPRESS_JARS 937 INCLUDE_SA 938 UNLIMITED_CRYPTO 939 CACERTS_FILE 940 BUILD_HEADLESS 941 SUPPORT_HEADFUL 942 SUPPORT_HEADLESS 943 DEFAULT_MAKE_TARGET 944 OS_VERSION_MICRO 945 OS_VERSION_MINOR 946 OS_VERSION_MAJOR 947 PKG_CONFIG 948 BASH_ARGS 949 SETFILE 950 CODESIGN 951 XATTR 952 DSYMUTIL 953 IS_GNU_TIME 954 PATCH 955 DTRACE 956 TIME 957 STAT 958 HG 959 READELF 960 OTOOL 961 LDD 962 ZIP 963 UNZIP 964 FIND_DELETE 965 OUTPUT_SYNC 966 OUTPUT_SYNC_SUPPORTED 967 CHECK_TOOLSDIR_MAKE 968 CHECK_TOOLSDIR_GMAKE 969 CHECK_MAKE 970 CHECK_GMAKE 971 MAKE 972 PKGHANDLER 973 CONFIGURESUPPORT_OUTPUTDIR 974 OUTPUT_ROOT 975 CONF_NAME 976 SPEC 977 SDKROOT 978 XCODEBUILD 979 VALID_JVM_VARIANTS 980 JVM_VARIANTS 981 DEBUG_LEVEL 982 HOTSPOT_DEBUG_LEVEL 983 JDK_VARIANT 984 SET_OPENJDK 985 USERNAME 986 CANONICAL_TOPDIR 987 ORIGINAL_TOPDIR 988 TOPDIR 989 PATH_SEP 990 ZERO_ARCHDEF 991 HOTSPOT_BUILD_CPU_DEFINE 992 HOTSPOT_BUILD_CPU_ARCH 993 HOTSPOT_BUILD_CPU 994 HOTSPOT_BUILD_OS_TYPE 995 HOTSPOT_BUILD_OS 996 OPENJDK_BUILD_OS_EXPORT_DIR 997 OPENJDK_BUILD_CPU_JLI_CFLAGS 998 OPENJDK_BUILD_CPU_OSARCH 999 OPENJDK_BUILD_CPU_ISADIR 1000 OPENJDK_BUILD_CPU_LIBDIR 1001 OPENJDK_BUILD_CPU_LEGACY_LIB 1002 OPENJDK_BUILD_CPU_LEGACY 1003 HOTSPOT_TARGET_CPU_DEFINE 1004 HOTSPOT_TARGET_CPU_ARCH 1005 HOTSPOT_TARGET_CPU 1006 HOTSPOT_TARGET_OS_TYPE 1007 HOTSPOT_TARGET_OS 1008 DEFINE_CROSS_COMPILE_ARCH 1009 LP64 1010 OPENJDK_TARGET_OS_EXPORT_DIR 1011 OPENJDK_TARGET_CPU_JLI_CFLAGS 1012 OPENJDK_TARGET_CPU_OSARCH 1013 OPENJDK_TARGET_CPU_ISADIR 1014 OPENJDK_TARGET_CPU_LIBDIR 1015 OPENJDK_TARGET_CPU_LEGACY_LIB 1016 OPENJDK_TARGET_CPU_LEGACY 1017 REQUIRED_OS_VERSION 1018 REQUIRED_OS_NAME 1019 COMPILE_TYPE 1020 OPENJDK_TARGET_CPU_ENDIAN 1021 OPENJDK_TARGET_CPU_BITS 1022 OPENJDK_TARGET_CPU_ARCH 1023 OPENJDK_TARGET_CPU 1024 OPENJDK_TARGET_OS_ENV 1025 OPENJDK_TARGET_OS_TYPE 1026 OPENJDK_TARGET_OS 1027 OPENJDK_BUILD_CPU_ENDIAN 1028 OPENJDK_BUILD_CPU_BITS 1029 OPENJDK_BUILD_CPU_ARCH 1030 OPENJDK_BUILD_CPU 1031 OPENJDK_BUILD_OS_ENV 1032 OPENJDK_BUILD_OS_TYPE 1033 OPENJDK_BUILD_OS 1034 OPENJDK_BUILD_AUTOCONF_NAME 1035 OPENJDK_TARGET_AUTOCONF_NAME 1036 target_os 1037 target_vendor 1038 target_cpu 1039 target 1040 host_os 1041 host_vendor 1042 host_cpu 1043 host 1044 build_os 1045 build_vendor 1046 build_cpu 1047 build 1048 NICE 1049 CPIO 1050 DF 1051 READLINK 1052 CYGPATH 1053 SED 1054 FGREP 1055 EGREP 1056 GREP 1057 AWK 1058 XARGS 1059 WHICH 1060 WC 1061 UNIQ 1062 UNAME 1063 TR 1064 TOUCH 1065 TEE 1066 TAR 1067 TAIL 1068 SORT 1069 SH 1070 RMDIR 1071 RM 1072 PRINTF 1073 NAWK 1074 MV 1075 MKTEMP 1076 MKDIR 1077 LS 1078 LN 1079 HEAD 1080 FIND 1081 FILE 1082 EXPR 1083 ECHO 1084 DIRNAME 1085 DIFF 1086 DATE 1087 CUT 1088 CP 1089 COMM 1090 CMP 1091 CHMOD 1092 CAT 1093 BASH 1094 BASENAME 1095 DATE_WHEN_CONFIGURED 1096 ORIGINAL_PATH 1097 CONFIGURE_COMMAND_LINE 1098 target_alias 1099 host_alias 1100 build_alias 1101 LIBS 1102 ECHO_T 1103 ECHO_N 1104 ECHO_C 1105 DEFS 1106 mandir 1107 localedir 1108 libdir 1109 psdir 1110 pdfdir 1111 dvidir 1112 htmldir 1113 infodir 1114 docdir 1115 oldincludedir 1116 includedir 1117 localstatedir 1118 sharedstatedir 1119 sysconfdir 1120 datadir 1121 datarootdir 1122 libexecdir 1123 sbindir 1124 bindir 1125 program_transform_name 1126 prefix 1127 exec_prefix 1128 PACKAGE_URL 1129 PACKAGE_BUGREPORT 1130 PACKAGE_STRING 1131 PACKAGE_VERSION 1132 PACKAGE_TARNAME 1133 PACKAGE_NAME 1134 PATH_SEPARATOR 1135 SHELL' 1136 ac_subst_files='' 1137 ac_user_opts=' 1138 enable_option_checking 1139 with_target_bits 1140 enable_openjdk_only 1141 with_custom_make_dir 1142 with_jdk_variant 1143 enable_debug 1144 with_debug_level 1145 with_jvm_variants 1146 with_devkit 1147 with_sys_root 1148 with_sysroot 1149 with_tools_dir 1150 with_toolchain_path 1151 with_extra_path 1152 with_sdk_name 1153 with_conf_name 1154 with_output_sync 1155 with_default_make_target 1156 enable_headful 1157 with_cacerts_file 1158 enable_unlimited_crypto 1159 with_copyright_year 1160 enable_keep_packaged_modules 1161 with_milestone 1162 with_update_version 1163 with_user_release_suffix 1164 with_build_number 1165 with_version_string 1166 with_version_pre 1167 with_version_opt 1168 with_version_build 1169 with_version_major 1170 with_version_minor 1171 with_version_security 1172 with_version_patch 1173 with_boot_jdk 1174 with_build_jdk 1175 with_add_source_root 1176 with_override_source_root 1177 with_adds_and_overrides 1178 with_override_langtools 1179 with_override_corba 1180 with_override_jaxp 1181 with_override_jaxws 1182 with_override_hotspot 1183 with_override_nashorn 1184 with_override_jdk 1185 with_import_hotspot 1186 with_import_modules 1187 enable_static_build 1188 with_toolchain_type 1189 with_extra_cflags 1190 with_extra_cxxflags 1191 with_extra_ldflags 1192 with_toolchain_version 1193 with_build_devkit 1194 with_jtreg 1195 enable_warnings_as_errors 1196 with_native_debug_symbols 1197 enable_debug_symbols 1198 enable_zip_debug_info 1199 enable_native_coverage 1200 enable_dtrace 1201 with_jvm_features 1202 with_jvm_interpreter 1203 with_stdc__lib 1204 with_msvcr_dll 1205 with_msvcp_dll 1206 with_x 1207 with_cups 1208 with_cups_include 1209 with_freetype 1210 with_freetype_include 1211 with_freetype_lib 1212 with_freetype_src 1213 enable_freetype_bundling 1214 with_alsa 1215 with_alsa_include 1216 with_alsa_lib 1217 with_libffi 1218 with_libffi_include 1219 with_libffi_lib 1220 with_libjpeg 1221 with_giflib 1222 with_libpng 1223 with_zlib 1224 with_lcms 1225 with_dxsdk 1226 with_dxsdk_lib 1227 with_dxsdk_include 1228 enable_jtreg_failure_handler 1229 enable_new_hotspot_build 1230 enable_hotspot_test_in_build 1231 with_num_cores 1232 with_memory_size 1233 with_jobs 1234 with_test_jobs 1235 with_boot_jdk_jvmargs 1236 with_sjavac_server_java 1237 enable_sjavac 1238 enable_javac_server 1239 enable_icecc 1240 enable_precompiled_headers 1241 enable_ccache 1242 with_ccache_dir 1243 ' 1244 ac_precious_vars='build_alias 1245 host_alias 1246 target_alias 1247 BASENAME 1248 BASH 1249 CAT 1250 CHMOD 1251 CMP 1252 COMM 1253 CP 1254 CUT 1255 DATE 1256 DIFF 1257 DIRNAME 1258 ECHO 1259 EXPR 1260 FILE 1261 FIND 1262 HEAD 1263 LN 1264 LS 1265 MKDIR 1266 MKTEMP 1267 MV 1268 NAWK 1269 PRINTF 1270 RM 1271 RMDIR 1272 SH 1273 SORT 1274 TAIL 1275 TAR 1276 TEE 1277 TOUCH 1278 TR 1279 UNAME 1280 UNIQ 1281 WC 1282 WHICH 1283 XARGS 1284 AWK 1285 GREP 1286 EGREP 1287 FGREP 1288 SED 1289 CYGPATH 1290 READLINK 1291 DF 1292 CPIO 1293 NICE 1294 MAKE 1295 UNZIP 1296 ZIP 1297 LDD 1298 OTOOL 1299 READELF 1300 HG 1301 STAT 1302 TIME 1303 DTRACE 1304 PATCH 1305 DSYMUTIL 1306 XATTR 1307 CODESIGN 1308 SETFILE 1309 PKG_CONFIG 1310 JAVA 1311 JAVAC 1312 JAVAH 1313 JAR 1314 JARSIGNER 1315 CC 1316 CFLAGS 1317 LDFLAGS 1318 LIBS 1319 CPPFLAGS 1320 CXX 1321 CXXFLAGS 1322 CCC 1323 CPP 1324 CXXCPP 1325 AS 1326 AR 1327 LIPO 1328 STRIP 1329 NM 1330 GNM 1331 OBJCOPY 1332 OBJDUMP 1333 BUILD_CC 1334 BUILD_CXX 1335 BUILD_NM 1336 BUILD_AR 1337 BUILD_OBJCOPY 1338 BUILD_STRIP 1339 JTREGEXE 1340 XMKMF 1341 FREETYPE_CFLAGS 1342 FREETYPE_LIBS 1343 ALSA_CFLAGS 1344 ALSA_LIBS 1345 LIBFFI_CFLAGS 1346 LIBFFI_LIBS 1347 PNG_CFLAGS 1348 PNG_LIBS 1349 LCMS_CFLAGS 1350 LCMS_LIBS 1351 ICECC_CMD 1352 ICECC_CREATE_ENV 1353 ICECC_WRAPPER 1354 CCACHE' 1355 1356 1357 # Initialize some variables set by options. 1358 ac_init_help= 1359 ac_init_version=false 1360 ac_unrecognized_opts= 1361 ac_unrecognized_sep= 1362 # The variables have the same names as the options, with 1363 # dashes changed to underlines. 1364 cache_file=/dev/null 1365 exec_prefix=NONE 1366 no_create= 1367 no_recursion= 1368 prefix=NONE 1369 program_prefix=NONE 1370 program_suffix=NONE 1371 program_transform_name=s,x,x, 1372 silent= 1373 site= 1374 srcdir= 1375 verbose= 1376 x_includes=NONE 1377 x_libraries=NONE 1378 1379 # Installation directory options. 1380 # These are left unexpanded so users can "make install exec_prefix=/foo" 1381 # and all the variables that are supposed to be based on exec_prefix 1382 # by default will actually change. 1383 # Use braces instead of parens because sh, perl, etc. also accept them. 1384 # (The list follows the same order as the GNU Coding Standards.) 1385 bindir='${exec_prefix}/bin' 1386 sbindir='${exec_prefix}/sbin' 1387 libexecdir='${exec_prefix}/libexec' 1388 datarootdir='${prefix}/share' 1389 datadir='${datarootdir}' 1390 sysconfdir='${prefix}/etc' 1391 sharedstatedir='${prefix}/com' 1392 localstatedir='${prefix}/var' 1393 includedir='${prefix}/include' 1394 oldincludedir='/usr/include' 1395 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1396 infodir='${datarootdir}/info' 1397 htmldir='${docdir}' 1398 dvidir='${docdir}' 1399 pdfdir='${docdir}' 1400 psdir='${docdir}' 1401 libdir='${exec_prefix}/lib' 1402 localedir='${datarootdir}/locale' 1403 mandir='${datarootdir}/man' 1404 1405 ac_prev= 1406 ac_dashdash= 1407 for ac_option 1408 do 1409 # If the previous option needs an argument, assign it. 1410 if test -n "$ac_prev"; then 1411 eval $ac_prev=\$ac_option 1412 ac_prev= 1413 continue 1414 fi 1415 1416 case $ac_option in 1417 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1418 *=) ac_optarg= ;; 1419 *) ac_optarg=yes ;; 1420 esac 1421 1422 # Accept the important Cygnus configure options, so we can diagnose typos. 1423 1424 case $ac_dashdash$ac_option in 1425 --) 1426 ac_dashdash=yes ;; 1427 1428 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1429 ac_prev=bindir ;; 1430 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1431 bindir=$ac_optarg ;; 1432 1433 -build | --build | --buil | --bui | --bu) 1434 ac_prev=build_alias ;; 1435 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1436 build_alias=$ac_optarg ;; 1437 1438 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1439 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1440 ac_prev=cache_file ;; 1441 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1442 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1443 cache_file=$ac_optarg ;; 1444 1445 --config-cache | -C) 1446 cache_file=config.cache ;; 1447 1448 -datadir | --datadir | --datadi | --datad) 1449 ac_prev=datadir ;; 1450 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1451 datadir=$ac_optarg ;; 1452 1453 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1454 | --dataroo | --dataro | --datar) 1455 ac_prev=datarootdir ;; 1456 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1457 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1458 datarootdir=$ac_optarg ;; 1459 1460 -disable-* | --disable-*) 1461 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1462 # Reject names that are not valid shell variable names. 1463 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1464 as_fn_error $? "invalid feature name: $ac_useropt" 1465 ac_useropt_orig=$ac_useropt 1466 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1467 case $ac_user_opts in 1468 *" 1469 "enable_$ac_useropt" 1470 "*) ;; 1471 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1472 ac_unrecognized_sep=', ';; 1473 esac 1474 eval enable_$ac_useropt=no ;; 1475 1476 -docdir | --docdir | --docdi | --doc | --do) 1477 ac_prev=docdir ;; 1478 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1479 docdir=$ac_optarg ;; 1480 1481 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1482 ac_prev=dvidir ;; 1483 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1484 dvidir=$ac_optarg ;; 1485 1486 -enable-* | --enable-*) 1487 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1488 # Reject names that are not valid shell variable names. 1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1490 as_fn_error $? "invalid feature name: $ac_useropt" 1491 ac_useropt_orig=$ac_useropt 1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1493 case $ac_user_opts in 1494 *" 1495 "enable_$ac_useropt" 1496 "*) ;; 1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1498 ac_unrecognized_sep=', ';; 1499 esac 1500 eval enable_$ac_useropt=\$ac_optarg ;; 1501 1502 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1503 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1504 | --exec | --exe | --ex) 1505 ac_prev=exec_prefix ;; 1506 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1507 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1508 | --exec=* | --exe=* | --ex=*) 1509 exec_prefix=$ac_optarg ;; 1510 1511 -gas | --gas | --ga | --g) 1512 # Obsolete; use --with-gas. 1513 with_gas=yes ;; 1514 1515 -help | --help | --hel | --he | -h) 1516 ac_init_help=long ;; 1517 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1518 ac_init_help=recursive ;; 1519 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1520 ac_init_help=short ;; 1521 1522 -host | --host | --hos | --ho) 1523 ac_prev=host_alias ;; 1524 -host=* | --host=* | --hos=* | --ho=*) 1525 host_alias=$ac_optarg ;; 1526 1527 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1528 ac_prev=htmldir ;; 1529 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1530 | --ht=*) 1531 htmldir=$ac_optarg ;; 1532 1533 -includedir | --includedir | --includedi | --included | --include \ 1534 | --includ | --inclu | --incl | --inc) 1535 ac_prev=includedir ;; 1536 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1537 | --includ=* | --inclu=* | --incl=* | --inc=*) 1538 includedir=$ac_optarg ;; 1539 1540 -infodir | --infodir | --infodi | --infod | --info | --inf) 1541 ac_prev=infodir ;; 1542 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1543 infodir=$ac_optarg ;; 1544 1545 -libdir | --libdir | --libdi | --libd) 1546 ac_prev=libdir ;; 1547 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1548 libdir=$ac_optarg ;; 1549 1550 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1551 | --libexe | --libex | --libe) 1552 ac_prev=libexecdir ;; 1553 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1554 | --libexe=* | --libex=* | --libe=*) 1555 libexecdir=$ac_optarg ;; 1556 1557 -localedir | --localedir | --localedi | --localed | --locale) 1558 ac_prev=localedir ;; 1559 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1560 localedir=$ac_optarg ;; 1561 1562 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1563 | --localstate | --localstat | --localsta | --localst | --locals) 1564 ac_prev=localstatedir ;; 1565 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1566 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1567 localstatedir=$ac_optarg ;; 1568 1569 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1570 ac_prev=mandir ;; 1571 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1572 mandir=$ac_optarg ;; 1573 1574 -nfp | --nfp | --nf) 1575 # Obsolete; use --without-fp. 1576 with_fp=no ;; 1577 1578 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1579 | --no-cr | --no-c | -n) 1580 no_create=yes ;; 1581 1582 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1583 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1584 no_recursion=yes ;; 1585 1586 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1587 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1588 | --oldin | --oldi | --old | --ol | --o) 1589 ac_prev=oldincludedir ;; 1590 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1591 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1592 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1593 oldincludedir=$ac_optarg ;; 1594 1595 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1596 ac_prev=prefix ;; 1597 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1598 prefix=$ac_optarg ;; 1599 1600 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1601 | --program-pre | --program-pr | --program-p) 1602 ac_prev=program_prefix ;; 1603 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1604 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1605 program_prefix=$ac_optarg ;; 1606 1607 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1608 | --program-suf | --program-su | --program-s) 1609 ac_prev=program_suffix ;; 1610 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1611 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1612 program_suffix=$ac_optarg ;; 1613 1614 -program-transform-name | --program-transform-name \ 1615 | --program-transform-nam | --program-transform-na \ 1616 | --program-transform-n | --program-transform- \ 1617 | --program-transform | --program-transfor \ 1618 | --program-transfo | --program-transf \ 1619 | --program-trans | --program-tran \ 1620 | --progr-tra | --program-tr | --program-t) 1621 ac_prev=program_transform_name ;; 1622 -program-transform-name=* | --program-transform-name=* \ 1623 | --program-transform-nam=* | --program-transform-na=* \ 1624 | --program-transform-n=* | --program-transform-=* \ 1625 | --program-transform=* | --program-transfor=* \ 1626 | --program-transfo=* | --program-transf=* \ 1627 | --program-trans=* | --program-tran=* \ 1628 | --progr-tra=* | --program-tr=* | --program-t=*) 1629 program_transform_name=$ac_optarg ;; 1630 1631 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1632 ac_prev=pdfdir ;; 1633 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1634 pdfdir=$ac_optarg ;; 1635 1636 -psdir | --psdir | --psdi | --psd | --ps) 1637 ac_prev=psdir ;; 1638 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1639 psdir=$ac_optarg ;; 1640 1641 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1642 | -silent | --silent | --silen | --sile | --sil) 1643 silent=yes ;; 1644 1645 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1646 ac_prev=sbindir ;; 1647 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1648 | --sbi=* | --sb=*) 1649 sbindir=$ac_optarg ;; 1650 1651 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1652 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1653 | --sharedst | --shareds | --shared | --share | --shar \ 1654 | --sha | --sh) 1655 ac_prev=sharedstatedir ;; 1656 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1657 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1658 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1659 | --sha=* | --sh=*) 1660 sharedstatedir=$ac_optarg ;; 1661 1662 -site | --site | --sit) 1663 ac_prev=site ;; 1664 -site=* | --site=* | --sit=*) 1665 site=$ac_optarg ;; 1666 1667 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1668 ac_prev=srcdir ;; 1669 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1670 srcdir=$ac_optarg ;; 1671 1672 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1673 | --syscon | --sysco | --sysc | --sys | --sy) 1674 ac_prev=sysconfdir ;; 1675 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1676 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1677 sysconfdir=$ac_optarg ;; 1678 1679 -target | --target | --targe | --targ | --tar | --ta | --t) 1680 ac_prev=target_alias ;; 1681 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1682 target_alias=$ac_optarg ;; 1683 1684 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1685 verbose=yes ;; 1686 1687 -version | --version | --versio | --versi | --vers | -V) 1688 ac_init_version=: ;; 1689 1690 -with-* | --with-*) 1691 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1692 # Reject names that are not valid shell variable names. 1693 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1694 as_fn_error $? "invalid package name: $ac_useropt" 1695 ac_useropt_orig=$ac_useropt 1696 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1697 case $ac_user_opts in 1698 *" 1699 "with_$ac_useropt" 1700 "*) ;; 1701 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1702 ac_unrecognized_sep=', ';; 1703 esac 1704 eval with_$ac_useropt=\$ac_optarg ;; 1705 1706 -without-* | --without-*) 1707 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1708 # Reject names that are not valid shell variable names. 1709 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1710 as_fn_error $? "invalid package name: $ac_useropt" 1711 ac_useropt_orig=$ac_useropt 1712 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1713 case $ac_user_opts in 1714 *" 1715 "with_$ac_useropt" 1716 "*) ;; 1717 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1718 ac_unrecognized_sep=', ';; 1719 esac 1720 eval with_$ac_useropt=no ;; 1721 1722 --x) 1723 # Obsolete; use --with-x. 1724 with_x=yes ;; 1725 1726 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1727 | --x-incl | --x-inc | --x-in | --x-i) 1728 ac_prev=x_includes ;; 1729 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1730 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1731 x_includes=$ac_optarg ;; 1732 1733 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1734 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1735 ac_prev=x_libraries ;; 1736 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1737 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1738 x_libraries=$ac_optarg ;; 1739 1740 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1741 Try \`$0 --help' for more information" 1742 ;; 1743 1744 *=*) 1745 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1746 # Reject names that are not valid shell variable names. 1747 case $ac_envvar in #( 1748 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1749 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1750 esac 1751 eval $ac_envvar=\$ac_optarg 1752 export $ac_envvar ;; 1753 1754 *) 1755 # FIXME: should be removed in autoconf 3.0. 1756 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1757 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1758 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1759 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1760 ;; 1761 1762 esac 1763 done 1764 1765 if test -n "$ac_prev"; then 1766 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1767 as_fn_error $? "missing argument to $ac_option" 1768 fi 1769 1770 if test -n "$ac_unrecognized_opts"; then 1771 case $enable_option_checking in 1772 no) ;; 1773 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1774 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1775 esac 1776 fi 1777 1778 # Check all directory arguments for consistency. 1779 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1780 datadir sysconfdir sharedstatedir localstatedir includedir \ 1781 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1782 libdir localedir mandir 1783 do 1784 eval ac_val=\$$ac_var 1785 # Remove trailing slashes. 1786 case $ac_val in 1787 */ ) 1788 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1789 eval $ac_var=\$ac_val;; 1790 esac 1791 # Be sure to have absolute directory names. 1792 case $ac_val in 1793 [\\/$]* | ?:[\\/]* ) continue;; 1794 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1795 esac 1796 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1797 done 1798 1799 # There might be people who depend on the old broken behavior: `$host' 1800 # used to hold the argument of --host etc. 1801 # FIXME: To remove some day. 1802 build=$build_alias 1803 host=$host_alias 1804 target=$target_alias 1805 1806 # FIXME: To remove some day. 1807 if test "x$host_alias" != x; then 1808 if test "x$build_alias" = x; then 1809 cross_compiling=maybe 1810 elif test "x$build_alias" != "x$host_alias"; then 1811 cross_compiling=yes 1812 fi 1813 fi 1814 1815 ac_tool_prefix= 1816 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1817 1818 test "$silent" = yes && exec 6>/dev/null 1819 1820 1821 ac_pwd=`pwd` && test -n "$ac_pwd" && 1822 ac_ls_di=`ls -di .` && 1823 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1824 as_fn_error $? "working directory cannot be determined" 1825 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1826 as_fn_error $? "pwd does not report name of working directory" 1827 1828 1829 # Find the source files, if location was not specified. 1830 if test -z "$srcdir"; then 1831 ac_srcdir_defaulted=yes 1832 # Try the directory containing this script, then the parent directory. 1833 ac_confdir=`$as_dirname -- "$as_myself" || 1834 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1835 X"$as_myself" : 'X\(//\)[^/]' \| \ 1836 X"$as_myself" : 'X\(//\)$' \| \ 1837 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1838 $as_echo X"$as_myself" | 1839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1840 s//\1/ 1841 q 1842 } 1843 /^X\(\/\/\)[^/].*/{ 1844 s//\1/ 1845 q 1846 } 1847 /^X\(\/\/\)$/{ 1848 s//\1/ 1849 q 1850 } 1851 /^X\(\/\).*/{ 1852 s//\1/ 1853 q 1854 } 1855 s/.*/./; q'` 1856 srcdir=$ac_confdir 1857 if test ! -r "$srcdir/$ac_unique_file"; then 1858 srcdir=.. 1859 fi 1860 else 1861 ac_srcdir_defaulted=no 1862 fi 1863 if test ! -r "$srcdir/$ac_unique_file"; then 1864 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1865 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1866 fi 1867 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1868 ac_abs_confdir=`( 1869 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1870 pwd)` 1871 # When building in place, set srcdir=. 1872 if test "$ac_abs_confdir" = "$ac_pwd"; then 1873 srcdir=. 1874 fi 1875 # Remove unnecessary trailing slashes from srcdir. 1876 # Double slashes in file names in object file debugging info 1877 # mess up M-x gdb in Emacs. 1878 case $srcdir in 1879 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1880 esac 1881 for ac_var in $ac_precious_vars; do 1882 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1883 eval ac_env_${ac_var}_value=\$${ac_var} 1884 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1885 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1886 done 1887 1888 # 1889 # Report the --help message. 1890 # 1891 if test "$ac_init_help" = "long"; then 1892 # Omit some internal or obsolete options to make the list less imposing. 1893 # This message is too long to be a string in the A/UX 3.1 sh. 1894 cat <<_ACEOF 1895 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1896 1897 Usage: $0 [OPTION]... [VAR=VALUE]... 1898 1899 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1900 VAR=VALUE. See below for descriptions of some of the useful variables. 1901 1902 Defaults for the options are specified in brackets. 1903 1904 Configuration: 1905 -h, --help display this help and exit 1906 --help=short display options specific to this package 1907 --help=recursive display the short help of all the included packages 1908 -V, --version display version information and exit 1909 -q, --quiet, --silent do not print \`checking ...' messages 1910 --cache-file=FILE cache test results in FILE [disabled] 1911 -C, --config-cache alias for \`--cache-file=config.cache' 1912 -n, --no-create do not create output files 1913 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1914 1915 Installation directories: 1916 --prefix=PREFIX install architecture-independent files in PREFIX 1917 [$ac_default_prefix] 1918 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1919 [PREFIX] 1920 1921 By default, \`make install' will install all the files in 1922 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1923 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1924 for instance \`--prefix=\$HOME'. 1925 1926 For better control, use the options below. 1927 1928 Fine tuning of the installation directories: 1929 --bindir=DIR user executables [EPREFIX/bin] 1930 --sbindir=DIR system admin executables [EPREFIX/sbin] 1931 --libexecdir=DIR program executables [EPREFIX/libexec] 1932 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1933 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1934 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1935 --libdir=DIR object code libraries [EPREFIX/lib] 1936 --includedir=DIR C header files [PREFIX/include] 1937 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1938 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1939 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1940 --infodir=DIR info documentation [DATAROOTDIR/info] 1941 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1942 --mandir=DIR man documentation [DATAROOTDIR/man] 1943 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1944 --htmldir=DIR html documentation [DOCDIR] 1945 --dvidir=DIR dvi documentation [DOCDIR] 1946 --pdfdir=DIR pdf documentation [DOCDIR] 1947 --psdir=DIR ps documentation [DOCDIR] 1948 _ACEOF 1949 1950 cat <<\_ACEOF 1951 1952 X features: 1953 --x-includes=DIR X include files are in DIR 1954 --x-libraries=DIR X library files are in DIR 1955 1956 System types: 1957 --build=BUILD configure for building on BUILD [guessed] 1958 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1959 --target=TARGET configure for building compilers for TARGET [HOST] 1960 _ACEOF 1961 fi 1962 1963 if test -n "$ac_init_help"; then 1964 case $ac_init_help in 1965 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1966 esac 1967 cat <<\_ACEOF 1968 1969 Optional Features: 1970 --disable-option-checking ignore unrecognized --enable/--with options 1971 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1972 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1973 --enable-openjdk-only suppress building custom source even if present 1974 [disabled] 1975 --enable-debug set the debug level to fastdebug (shorthand for 1976 --with-debug-level=fastdebug) [disabled] 1977 --disable-headful disable building headful support (graphical UI 1978 support) [enabled] 1979 --enable-unlimited-crypto 1980 Enable unlimited crypto policy [disabled] 1981 --disable-keep-packaged-modules 1982 Do not keep packaged modules in jdk image [enable] 1983 --enable-static-build enable static library build [disabled] 1984 --disable-warnings-as-errors 1985 do not consider native warnings to be an error 1986 [enabled] 1987 --enable-debug-symbols Deprecated. Option is kept for backwards 1988 compatibility and is ignored 1989 --enable-zip-debug-info Deprecated. Option is kept for backwards 1990 compatibility and is ignored 1991 --enable-native-coverage 1992 enable native compilation with code coverage 1993 data[disabled] 1994 --enable-dtrace[=yes/no/auto] 1995 enable dtrace. Default is auto, where dtrace is 1996 enabled if all dependencies are present. 1997 --disable-freetype-bundling 1998 disable bundling of the freetype library with the 1999 build result [enabled on Windows or when using 2000 --with-freetype, disabled otherwise] 2001 --disable-new-hotspot-build 2002 disable the new hotspot build system (use the old) 2003 [enabled] 2004 --enable-hotspot-test-in-build 2005 run the Queens test after Hotspot build [disabled] 2006 --enable-jtreg-failure-handler 2007 forces build of the jtreg failure handler to be 2008 enabled, missing dependencies become fatal errors. 2009 Default is auto, where the failure handler is built 2010 if all dependencies are present and otherwise just 2011 disabled. 2012 --enable-sjavac use sjavac to do fast incremental compiles 2013 [disabled] 2014 --disable-javac-server disable javac server [enabled] 2015 --enable-icecc enable distribted compilation of native code using 2016 icecc/icecream [disabled] 2017 --disable-precompiled-headers 2018 disable using precompiled headers when compiling C++ 2019 [enabled] 2020 --enable-ccache enable using ccache to speed up recompilations 2021 [disabled] 2022 2023 Optional Packages: 2024 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2025 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2026 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2027 support it), e.g. --with-target-bits=32 [guessed] 2028 --with-custom-make-dir Deprecated. Option is kept for backwards 2029 compatibility and is ignored 2030 --with-jdk-variant JDK variant to build (normal) [normal] 2031 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2032 optimized) [release] 2033 --with-jvm-variants JVM variants (separated by commas) to build 2034 (server,client,minimal,core,zero,zeroshark,custom) 2035 [server] 2036 --with-devkit use this devkit for compilers, tools and resources 2037 --with-sys-root alias for --with-sysroot for backwards compatability 2038 --with-sysroot use this directory as sysroot 2039 --with-tools-dir alias for --with-toolchain-path for backwards 2040 compatibility 2041 --with-toolchain-path prepend these directories when searching for 2042 toolchain binaries (compilers etc) 2043 --with-extra-path prepend these directories to the default path 2044 --with-sdk-name use the platform SDK of the given name. [macosx] 2045 --with-conf-name use this as the name of the configuration [generated 2046 from important configuration options] 2047 --with-output-sync set make output sync type if supported by make. 2048 [recurse] 2049 --with-default-make-target 2050 set the default make target [exploded-image] 2051 --with-cacerts-file specify alternative cacerts file 2052 --with-copyright-year Set copyright year value for build [current year] 2053 --with-milestone Deprecated. Option is kept for backwards 2054 compatibility and is ignored 2055 --with-update-version Deprecated. Option is kept for backwards 2056 compatibility and is ignored 2057 --with-user-release-suffix 2058 Deprecated. Option is kept for backwards 2059 compatibility and is ignored 2060 --with-build-number Deprecated. Option is kept for backwards 2061 compatibility and is ignored 2062 --with-version-string Set version string [calculated] 2063 --with-version-pre Set the base part of the version 'PRE' field 2064 (pre-release identifier) ['internal'] 2065 --with-version-opt Set version 'OPT' field (build metadata) 2066 [<timestamp>.<user>.<dirname>] 2067 --with-version-build Set version 'BUILD' field (build number) [not 2068 specified] 2069 --with-version-major Set version 'MAJOR' field (first number) [current 2070 source value] 2071 --with-version-minor Set version 'MINOR' field (second number) [current 2072 source value] 2073 --with-version-security Set version 'SECURITY' field (third number) [current 2074 source value] 2075 --with-version-patch Set version 'PATCH' field (fourth number) [not 2076 specified] 2077 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2078 --with-build-jdk path to JDK of same version as is being built[the 2079 newly built JDK] 2080 --with-add-source-root Deprecated. Option is kept for backwards 2081 compatibility and is ignored 2082 --with-override-source-root 2083 Deprecated. Option is kept for backwards 2084 compatibility and is ignored 2085 --with-adds-and-overrides 2086 Deprecated. Option is kept for backwards 2087 compatibility and is ignored 2088 --with-override-langtools 2089 Deprecated. Option is kept for backwards 2090 compatibility and is ignored 2091 --with-override-corba Deprecated. Option is kept for backwards 2092 compatibility and is ignored 2093 --with-override-jaxp Deprecated. Option is kept for backwards 2094 compatibility and is ignored 2095 --with-override-jaxws Deprecated. Option is kept for backwards 2096 compatibility and is ignored 2097 --with-override-hotspot Deprecated. Option is kept for backwards 2098 compatibility and is ignored 2099 --with-override-nashorn Deprecated. Option is kept for backwards 2100 compatibility and is ignored 2101 --with-override-jdk Deprecated. Option is kept for backwards 2102 compatibility and is ignored 2103 --with-import-hotspot import hotspot binaries from this jdk image or 2104 hotspot build dist dir instead of building from 2105 source 2106 --with-import-modules import a set of prebuilt modules either as a zip 2107 file or an exploded directory 2108 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2109 to show possible values [platform dependent] 2110 --with-extra-cflags extra flags to be used when compiling jdk c-files 2111 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2112 --with-extra-ldflags extra flags to be used when linking jdk 2113 --with-toolchain-version 2114 the version of the toolchain to look for, use 2115 '--help' to show possible values [platform 2116 dependent] 2117 --with-build-devkit Devkit to use for the build platform toolchain 2118 --with-jtreg Regression Test Harness [probed] 2119 --with-native-debug-symbols 2120 set the native debug symbol configuration (none, 2121 internal, external, zipped) [varying] 2122 --with-jvm-features additional JVM features to enable (separated by 2123 comma), use '--help' to show possible values [none] 2124 --with-jvm-interpreter Deprecated. Option is kept for backwards 2125 compatibility and is ignored 2126 --with-stdc++lib=<static>,<dynamic>,<default> 2127 force linking of the C++ runtime on Linux to either 2128 static or dynamic, default is static with dynamic as 2129 fallback 2130 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2131 (Windows only) [probed] 2132 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2133 (Windows only) [probed] 2134 --with-x use the X Window System 2135 --with-cups specify prefix directory for the cups package 2136 (expecting the headers under PATH/include) 2137 --with-cups-include specify directory for the cups include files 2138 --with-freetype specify prefix directory for the freetype package 2139 (expecting the libraries under PATH/lib and the 2140 headers under PATH/include) 2141 --with-freetype-include specify directory for the freetype include files 2142 --with-freetype-lib specify directory for the freetype library 2143 --with-freetype-src specify directory with freetype sources to 2144 automatically build the library (experimental, 2145 Windows-only) 2146 --with-alsa specify prefix directory for the alsa package 2147 (expecting the libraries under PATH/lib and the 2148 headers under PATH/include) 2149 --with-alsa-include specify directory for the alsa include files 2150 --with-alsa-lib specify directory for the alsa library 2151 --with-libffi specify prefix directory for the libffi package 2152 (expecting the libraries under PATH/lib and the 2153 headers under PATH/include) 2154 --with-libffi-include specify directory for the libffi include files 2155 --with-libffi-lib specify directory for the libffi library 2156 --with-libjpeg use libjpeg from build system or OpenJDK source 2157 (system, bundled) [bundled] 2158 --with-giflib use giflib from build system or OpenJDK source 2159 (system, bundled) [bundled] 2160 --with-libpng use libpng from build system or OpenJDK source 2161 (system, bundled) [bundled] 2162 --with-zlib use zlib from build system or OpenJDK source 2163 (system, bundled) [bundled] 2164 --with-lcms use lcms2 from build system or OpenJDK source 2165 (system, bundled) [bundled] 2166 --with-dxsdk Deprecated. Option is kept for backwards 2167 compatibility and is ignored 2168 --with-dxsdk-lib Deprecated. Option is kept for backwards 2169 compatibility and is ignored 2170 --with-dxsdk-include Deprecated. Option is kept for backwards 2171 compatibility and is ignored 2172 --with-num-cores number of cores in the build system, e.g. 2173 --with-num-cores=8 [probed] 2174 --with-memory-size memory (in MB) available in the build system, e.g. 2175 --with-memory-size=1024 [probed] 2176 --with-jobs number of parallel jobs to let make run [calculated 2177 based on cores and memory] 2178 --with-test-jobs number of parallel tests jobs to run [based on build 2179 jobs] 2180 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2181 invocations of boot JDK, overriding the default 2182 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2183 -enableassertions" 2184 --with-sjavac-server-java 2185 use this java binary for running the sjavac 2186 background server [Boot JDK java] 2187 --with-ccache-dir where to store ccache files [~/.ccache] 2188 2189 Some influential environment variables: 2190 BASENAME Override default value for BASENAME 2191 BASH Override default value for BASH 2192 CAT Override default value for CAT 2193 CHMOD Override default value for CHMOD 2194 CMP Override default value for CMP 2195 COMM Override default value for COMM 2196 CP Override default value for CP 2197 CUT Override default value for CUT 2198 DATE Override default value for DATE 2199 DIFF Override default value for DIFF 2200 DIRNAME Override default value for DIRNAME 2201 ECHO Override default value for ECHO 2202 EXPR Override default value for EXPR 2203 FILE Override default value for FILE 2204 FIND Override default value for FIND 2205 HEAD Override default value for HEAD 2206 LN Override default value for LN 2207 LS Override default value for LS 2208 MKDIR Override default value for MKDIR 2209 MKTEMP Override default value for MKTEMP 2210 MV Override default value for MV 2211 NAWK Override default value for NAWK 2212 PRINTF Override default value for PRINTF 2213 RM Override default value for RM 2214 RMDIR Override default value for RMDIR 2215 SH Override default value for SH 2216 SORT Override default value for SORT 2217 TAIL Override default value for TAIL 2218 TAR Override default value for TAR 2219 TEE Override default value for TEE 2220 TOUCH Override default value for TOUCH 2221 TR Override default value for TR 2222 UNAME Override default value for UNAME 2223 UNIQ Override default value for UNIQ 2224 WC Override default value for WC 2225 WHICH Override default value for WHICH 2226 XARGS Override default value for XARGS 2227 AWK Override default value for AWK 2228 GREP Override default value for GREP 2229 EGREP Override default value for EGREP 2230 FGREP Override default value for FGREP 2231 SED Override default value for SED 2232 CYGPATH Override default value for CYGPATH 2233 READLINK Override default value for READLINK 2234 DF Override default value for DF 2235 CPIO Override default value for CPIO 2236 NICE Override default value for NICE 2237 MAKE Override default value for MAKE 2238 UNZIP Override default value for UNZIP 2239 ZIP Override default value for ZIP 2240 LDD Override default value for LDD 2241 OTOOL Override default value for OTOOL 2242 READELF Override default value for READELF 2243 HG Override default value for HG 2244 STAT Override default value for STAT 2245 TIME Override default value for TIME 2246 DTRACE Override default value for DTRACE 2247 PATCH Override default value for PATCH 2248 DSYMUTIL Override default value for DSYMUTIL 2249 XATTR Override default value for XATTR 2250 CODESIGN Override default value for CODESIGN 2251 SETFILE Override default value for SETFILE 2252 PKG_CONFIG path to pkg-config utility 2253 JAVA Override default value for JAVA 2254 JAVAC Override default value for JAVAC 2255 JAVAH Override default value for JAVAH 2256 JAR Override default value for JAR 2257 JARSIGNER Override default value for JARSIGNER 2258 CC C compiler command 2259 CFLAGS C compiler flags 2260 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2261 nonstandard directory <lib dir> 2262 LIBS libraries to pass to the linker, e.g. -l<library> 2263 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2264 you have headers in a nonstandard directory <include dir> 2265 CXX C++ compiler command 2266 CXXFLAGS C++ compiler flags 2267 CPP C preprocessor 2268 CXXCPP C++ preprocessor 2269 AS Override default value for AS 2270 AR Override default value for AR 2271 LIPO Override default value for LIPO 2272 STRIP Override default value for STRIP 2273 NM Override default value for NM 2274 GNM Override default value for GNM 2275 OBJCOPY Override default value for OBJCOPY 2276 OBJDUMP Override default value for OBJDUMP 2277 BUILD_CC Override default value for BUILD_CC 2278 BUILD_CXX Override default value for BUILD_CXX 2279 BUILD_NM Override default value for BUILD_NM 2280 BUILD_AR Override default value for BUILD_AR 2281 BUILD_OBJCOPY 2282 Override default value for BUILD_OBJCOPY 2283 BUILD_STRIP Override default value for BUILD_STRIP 2284 JTREGEXE Override default value for JTREGEXE 2285 XMKMF Path to xmkmf, Makefile generator for X Window System 2286 FREETYPE_CFLAGS 2287 C compiler flags for FREETYPE, overriding pkg-config 2288 FREETYPE_LIBS 2289 linker flags for FREETYPE, overriding pkg-config 2290 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2291 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2292 LIBFFI_CFLAGS 2293 C compiler flags for LIBFFI, overriding pkg-config 2294 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2295 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2296 PNG_LIBS linker flags for PNG, overriding pkg-config 2297 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2298 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2299 ICECC_CMD Override default value for ICECC_CMD 2300 ICECC_CREATE_ENV 2301 Override default value for ICECC_CREATE_ENV 2302 ICECC_WRAPPER 2303 Override default value for ICECC_WRAPPER 2304 CCACHE Override default value for CCACHE 2305 2306 Use these variables to override the choices made by `configure' or to help 2307 it to find libraries and programs with nonstandard names/locations. 2308 2309 Report bugs to <build-dev@openjdk.java.net>. 2310 OpenJDK home page: <http://openjdk.java.net>. 2311 _ACEOF 2312 ac_status=$? 2313 fi 2314 2315 if test "$ac_init_help" = "recursive"; then 2316 # If there are subdirs, report their specific --help. 2317 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2318 test -d "$ac_dir" || 2319 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2320 continue 2321 ac_builddir=. 2322 2323 case "$ac_dir" in 2324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2325 *) 2326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2327 # A ".." for each directory in $ac_dir_suffix. 2328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2329 case $ac_top_builddir_sub in 2330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2332 esac ;; 2333 esac 2334 ac_abs_top_builddir=$ac_pwd 2335 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2336 # for backward compatibility: 2337 ac_top_builddir=$ac_top_build_prefix 2338 2339 case $srcdir in 2340 .) # We are building in place. 2341 ac_srcdir=. 2342 ac_top_srcdir=$ac_top_builddir_sub 2343 ac_abs_top_srcdir=$ac_pwd ;; 2344 [\\/]* | ?:[\\/]* ) # Absolute name. 2345 ac_srcdir=$srcdir$ac_dir_suffix; 2346 ac_top_srcdir=$srcdir 2347 ac_abs_top_srcdir=$srcdir ;; 2348 *) # Relative name. 2349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2350 ac_top_srcdir=$ac_top_build_prefix$srcdir 2351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2352 esac 2353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2354 2355 cd "$ac_dir" || { ac_status=$?; continue; } 2356 # Check for guested configure. 2357 if test -f "$ac_srcdir/configure.gnu"; then 2358 echo && 2359 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2360 elif test -f "$ac_srcdir/configure"; then 2361 echo && 2362 $SHELL "$ac_srcdir/configure" --help=recursive 2363 else 2364 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2365 fi || ac_status=$? 2366 cd "$ac_pwd" || { ac_status=$?; break; } 2367 done 2368 fi 2369 2370 test -n "$ac_init_help" && exit $ac_status 2371 if $ac_init_version; then 2372 cat <<\_ACEOF 2373 OpenJDK configure jdk9 2374 generated by GNU Autoconf 2.69 2375 2376 Copyright (C) 2012 Free Software Foundation, Inc. 2377 This configure script is free software; the Free Software Foundation 2378 gives unlimited permission to copy, distribute and modify it. 2379 _ACEOF 2380 exit 2381 fi 2382 2383 ## ------------------------ ## 2384 ## Autoconf initialization. ## 2385 ## ------------------------ ## 2386 2387 # ac_fn_c_try_compile LINENO 2388 # -------------------------- 2389 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2390 ac_fn_c_try_compile () 2391 { 2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2393 rm -f conftest.$ac_objext 2394 if { { ac_try="$ac_compile" 2395 case "(($ac_try" in 2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2397 *) ac_try_echo=$ac_try;; 2398 esac 2399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2400 $as_echo "$ac_try_echo"; } >&5 2401 (eval "$ac_compile") 2>conftest.err 2402 ac_status=$? 2403 if test -s conftest.err; then 2404 grep -v '^ *+' conftest.err >conftest.er1 2405 cat conftest.er1 >&5 2406 mv -f conftest.er1 conftest.err 2407 fi 2408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2409 test $ac_status = 0; } && { 2410 test -z "$ac_c_werror_flag" || 2411 test ! -s conftest.err 2412 } && test -s conftest.$ac_objext; then : 2413 ac_retval=0 2414 else 2415 $as_echo "$as_me: failed program was:" >&5 2416 sed 's/^/| /' conftest.$ac_ext >&5 2417 2418 ac_retval=1 2419 fi 2420 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2421 as_fn_set_status $ac_retval 2422 2423 } # ac_fn_c_try_compile 2424 2425 # ac_fn_cxx_try_compile LINENO 2426 # ---------------------------- 2427 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2428 ac_fn_cxx_try_compile () 2429 { 2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2431 rm -f conftest.$ac_objext 2432 if { { ac_try="$ac_compile" 2433 case "(($ac_try" in 2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2435 *) ac_try_echo=$ac_try;; 2436 esac 2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2438 $as_echo "$ac_try_echo"; } >&5 2439 (eval "$ac_compile") 2>conftest.err 2440 ac_status=$? 2441 if test -s conftest.err; then 2442 grep -v '^ *+' conftest.err >conftest.er1 2443 cat conftest.er1 >&5 2444 mv -f conftest.er1 conftest.err 2445 fi 2446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2447 test $ac_status = 0; } && { 2448 test -z "$ac_cxx_werror_flag" || 2449 test ! -s conftest.err 2450 } && test -s conftest.$ac_objext; then : 2451 ac_retval=0 2452 else 2453 $as_echo "$as_me: failed program was:" >&5 2454 sed 's/^/| /' conftest.$ac_ext >&5 2455 2456 ac_retval=1 2457 fi 2458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2459 as_fn_set_status $ac_retval 2460 2461 } # ac_fn_cxx_try_compile 2462 2463 # ac_fn_c_try_cpp LINENO 2464 # ---------------------- 2465 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2466 ac_fn_c_try_cpp () 2467 { 2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2469 if { { ac_try="$ac_cpp conftest.$ac_ext" 2470 case "(($ac_try" in 2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2472 *) ac_try_echo=$ac_try;; 2473 esac 2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2475 $as_echo "$ac_try_echo"; } >&5 2476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2477 ac_status=$? 2478 if test -s conftest.err; then 2479 grep -v '^ *+' conftest.err >conftest.er1 2480 cat conftest.er1 >&5 2481 mv -f conftest.er1 conftest.err 2482 fi 2483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2484 test $ac_status = 0; } > conftest.i && { 2485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2486 test ! -s conftest.err 2487 }; then : 2488 ac_retval=0 2489 else 2490 $as_echo "$as_me: failed program was:" >&5 2491 sed 's/^/| /' conftest.$ac_ext >&5 2492 2493 ac_retval=1 2494 fi 2495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2496 as_fn_set_status $ac_retval 2497 2498 } # ac_fn_c_try_cpp 2499 2500 # ac_fn_cxx_try_cpp LINENO 2501 # ------------------------ 2502 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2503 ac_fn_cxx_try_cpp () 2504 { 2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2506 if { { ac_try="$ac_cpp conftest.$ac_ext" 2507 case "(($ac_try" in 2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2509 *) ac_try_echo=$ac_try;; 2510 esac 2511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2512 $as_echo "$ac_try_echo"; } >&5 2513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2514 ac_status=$? 2515 if test -s conftest.err; then 2516 grep -v '^ *+' conftest.err >conftest.er1 2517 cat conftest.er1 >&5 2518 mv -f conftest.er1 conftest.err 2519 fi 2520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2521 test $ac_status = 0; } > conftest.i && { 2522 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2523 test ! -s conftest.err 2524 }; then : 2525 ac_retval=0 2526 else 2527 $as_echo "$as_me: failed program was:" >&5 2528 sed 's/^/| /' conftest.$ac_ext >&5 2529 2530 ac_retval=1 2531 fi 2532 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2533 as_fn_set_status $ac_retval 2534 2535 } # ac_fn_cxx_try_cpp 2536 2537 # ac_fn_c_try_link LINENO 2538 # ----------------------- 2539 # Try to link conftest.$ac_ext, and return whether this succeeded. 2540 ac_fn_c_try_link () 2541 { 2542 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2543 rm -f conftest.$ac_objext conftest$ac_exeext 2544 if { { ac_try="$ac_link" 2545 case "(($ac_try" in 2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2547 *) ac_try_echo=$ac_try;; 2548 esac 2549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2550 $as_echo "$ac_try_echo"; } >&5 2551 (eval "$ac_link") 2>conftest.err 2552 ac_status=$? 2553 if test -s conftest.err; then 2554 grep -v '^ *+' conftest.err >conftest.er1 2555 cat conftest.er1 >&5 2556 mv -f conftest.er1 conftest.err 2557 fi 2558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2559 test $ac_status = 0; } && { 2560 test -z "$ac_c_werror_flag" || 2561 test ! -s conftest.err 2562 } && test -s conftest$ac_exeext && { 2563 test "$cross_compiling" = yes || 2564 test -x conftest$ac_exeext 2565 }; then : 2566 ac_retval=0 2567 else 2568 $as_echo "$as_me: failed program was:" >&5 2569 sed 's/^/| /' conftest.$ac_ext >&5 2570 2571 ac_retval=1 2572 fi 2573 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2574 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2575 # interfere with the next link command; also delete a directory that is 2576 # left behind by Apple's compiler. We do this before executing the actions. 2577 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2579 as_fn_set_status $ac_retval 2580 2581 } # ac_fn_c_try_link 2582 2583 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2584 # --------------------------------------------------------- 2585 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2586 # the include files in INCLUDES and setting the cache variable VAR 2587 # accordingly. 2588 ac_fn_cxx_check_header_mongrel () 2589 { 2590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2591 if eval \${$3+:} false; then : 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2593 $as_echo_n "checking for $2... " >&6; } 2594 if eval \${$3+:} false; then : 2595 $as_echo_n "(cached) " >&6 2596 fi 2597 eval ac_res=\$$3 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2599 $as_echo "$ac_res" >&6; } 2600 else 2601 # Is the header compilable? 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2603 $as_echo_n "checking $2 usability... " >&6; } 2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2605 /* end confdefs.h. */ 2606 $4 2607 #include <$2> 2608 _ACEOF 2609 if ac_fn_cxx_try_compile "$LINENO"; then : 2610 ac_header_compiler=yes 2611 else 2612 ac_header_compiler=no 2613 fi 2614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2616 $as_echo "$ac_header_compiler" >&6; } 2617 2618 # Is the header present? 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2620 $as_echo_n "checking $2 presence... " >&6; } 2621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2622 /* end confdefs.h. */ 2623 #include <$2> 2624 _ACEOF 2625 if ac_fn_cxx_try_cpp "$LINENO"; then : 2626 ac_header_preproc=yes 2627 else 2628 ac_header_preproc=no 2629 fi 2630 rm -f conftest.err conftest.i conftest.$ac_ext 2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2632 $as_echo "$ac_header_preproc" >&6; } 2633 2634 # So? What about this header? 2635 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2636 yes:no: ) 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2638 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2641 ;; 2642 no:yes:* ) 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2644 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2646 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2648 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2650 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2653 ( $as_echo "## ----------------------------------------- ## 2654 ## Report this to build-dev@openjdk.java.net ## 2655 ## ----------------------------------------- ##" 2656 ) | sed "s/^/$as_me: WARNING: /" >&2 2657 ;; 2658 esac 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2660 $as_echo_n "checking for $2... " >&6; } 2661 if eval \${$3+:} false; then : 2662 $as_echo_n "(cached) " >&6 2663 else 2664 eval "$3=\$ac_header_compiler" 2665 fi 2666 eval ac_res=\$$3 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2668 $as_echo "$ac_res" >&6; } 2669 fi 2670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2671 2672 } # ac_fn_cxx_check_header_mongrel 2673 2674 # ac_fn_cxx_try_run LINENO 2675 # ------------------------ 2676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2677 # that executables *can* be run. 2678 ac_fn_cxx_try_run () 2679 { 2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2681 if { { ac_try="$ac_link" 2682 case "(($ac_try" in 2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2684 *) ac_try_echo=$ac_try;; 2685 esac 2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2687 $as_echo "$ac_try_echo"; } >&5 2688 (eval "$ac_link") 2>&5 2689 ac_status=$? 2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2691 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2692 { { case "(($ac_try" in 2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2694 *) ac_try_echo=$ac_try;; 2695 esac 2696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2697 $as_echo "$ac_try_echo"; } >&5 2698 (eval "$ac_try") 2>&5 2699 ac_status=$? 2700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2701 test $ac_status = 0; }; }; then : 2702 ac_retval=0 2703 else 2704 $as_echo "$as_me: program exited with status $ac_status" >&5 2705 $as_echo "$as_me: failed program was:" >&5 2706 sed 's/^/| /' conftest.$ac_ext >&5 2707 2708 ac_retval=$ac_status 2709 fi 2710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2712 as_fn_set_status $ac_retval 2713 2714 } # ac_fn_cxx_try_run 2715 2716 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2717 # --------------------------------------------------------- 2718 # Tests whether HEADER exists and can be compiled using the include files in 2719 # INCLUDES, setting the cache variable VAR accordingly. 2720 ac_fn_cxx_check_header_compile () 2721 { 2722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2724 $as_echo_n "checking for $2... " >&6; } 2725 if eval \${$3+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727 else 2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2729 /* end confdefs.h. */ 2730 $4 2731 #include <$2> 2732 _ACEOF 2733 if ac_fn_cxx_try_compile "$LINENO"; then : 2734 eval "$3=yes" 2735 else 2736 eval "$3=no" 2737 fi 2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2739 fi 2740 eval ac_res=\$$3 2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2742 $as_echo "$ac_res" >&6; } 2743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2744 2745 } # ac_fn_cxx_check_header_compile 2746 2747 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2748 # ---------------------------------------------- 2749 # Tries to find the compile-time value of EXPR in a program that includes 2750 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2751 # computed 2752 ac_fn_cxx_compute_int () 2753 { 2754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2755 if test "$cross_compiling" = yes; then 2756 # Depending upon the size, compute the lo and hi bounds. 2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2758 /* end confdefs.h. */ 2759 $4 2760 int 2761 main () 2762 { 2763 static int test_array [1 - 2 * !(($2) >= 0)]; 2764 test_array [0] = 0; 2765 return test_array [0]; 2766 2767 ; 2768 return 0; 2769 } 2770 _ACEOF 2771 if ac_fn_cxx_try_compile "$LINENO"; then : 2772 ac_lo=0 ac_mid=0 2773 while :; do 2774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2775 /* end confdefs.h. */ 2776 $4 2777 int 2778 main () 2779 { 2780 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2781 test_array [0] = 0; 2782 return test_array [0]; 2783 2784 ; 2785 return 0; 2786 } 2787 _ACEOF 2788 if ac_fn_cxx_try_compile "$LINENO"; then : 2789 ac_hi=$ac_mid; break 2790 else 2791 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2792 if test $ac_lo -le $ac_mid; then 2793 ac_lo= ac_hi= 2794 break 2795 fi 2796 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2797 fi 2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2799 done 2800 else 2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2802 /* end confdefs.h. */ 2803 $4 2804 int 2805 main () 2806 { 2807 static int test_array [1 - 2 * !(($2) < 0)]; 2808 test_array [0] = 0; 2809 return test_array [0]; 2810 2811 ; 2812 return 0; 2813 } 2814 _ACEOF 2815 if ac_fn_cxx_try_compile "$LINENO"; then : 2816 ac_hi=-1 ac_mid=-1 2817 while :; do 2818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2819 /* end confdefs.h. */ 2820 $4 2821 int 2822 main () 2823 { 2824 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2825 test_array [0] = 0; 2826 return test_array [0]; 2827 2828 ; 2829 return 0; 2830 } 2831 _ACEOF 2832 if ac_fn_cxx_try_compile "$LINENO"; then : 2833 ac_lo=$ac_mid; break 2834 else 2835 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2836 if test $ac_mid -le $ac_hi; then 2837 ac_lo= ac_hi= 2838 break 2839 fi 2840 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2841 fi 2842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2843 done 2844 else 2845 ac_lo= ac_hi= 2846 fi 2847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2848 fi 2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2850 # Binary search between lo and hi bounds. 2851 while test "x$ac_lo" != "x$ac_hi"; do 2852 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2854 /* end confdefs.h. */ 2855 $4 2856 int 2857 main () 2858 { 2859 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2860 test_array [0] = 0; 2861 return test_array [0]; 2862 2863 ; 2864 return 0; 2865 } 2866 _ACEOF 2867 if ac_fn_cxx_try_compile "$LINENO"; then : 2868 ac_hi=$ac_mid 2869 else 2870 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2871 fi 2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2873 done 2874 case $ac_lo in #(( 2875 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2876 '') ac_retval=1 ;; 2877 esac 2878 else 2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2880 /* end confdefs.h. */ 2881 $4 2882 static long int longval () { return $2; } 2883 static unsigned long int ulongval () { return $2; } 2884 #include <stdio.h> 2885 #include <stdlib.h> 2886 int 2887 main () 2888 { 2889 2890 FILE *f = fopen ("conftest.val", "w"); 2891 if (! f) 2892 return 1; 2893 if (($2) < 0) 2894 { 2895 long int i = longval (); 2896 if (i != ($2)) 2897 return 1; 2898 fprintf (f, "%ld", i); 2899 } 2900 else 2901 { 2902 unsigned long int i = ulongval (); 2903 if (i != ($2)) 2904 return 1; 2905 fprintf (f, "%lu", i); 2906 } 2907 /* Do not output a trailing newline, as this causes \r\n confusion 2908 on some platforms. */ 2909 return ferror (f) || fclose (f) != 0; 2910 2911 ; 2912 return 0; 2913 } 2914 _ACEOF 2915 if ac_fn_cxx_try_run "$LINENO"; then : 2916 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2917 else 2918 ac_retval=1 2919 fi 2920 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2921 conftest.$ac_objext conftest.beam conftest.$ac_ext 2922 rm -f conftest.val 2923 2924 fi 2925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2926 as_fn_set_status $ac_retval 2927 2928 } # ac_fn_cxx_compute_int 2929 2930 # ac_fn_cxx_try_link LINENO 2931 # ------------------------- 2932 # Try to link conftest.$ac_ext, and return whether this succeeded. 2933 ac_fn_cxx_try_link () 2934 { 2935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2936 rm -f conftest.$ac_objext conftest$ac_exeext 2937 if { { ac_try="$ac_link" 2938 case "(($ac_try" in 2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2940 *) ac_try_echo=$ac_try;; 2941 esac 2942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2943 $as_echo "$ac_try_echo"; } >&5 2944 (eval "$ac_link") 2>conftest.err 2945 ac_status=$? 2946 if test -s conftest.err; then 2947 grep -v '^ *+' conftest.err >conftest.er1 2948 cat conftest.er1 >&5 2949 mv -f conftest.er1 conftest.err 2950 fi 2951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2952 test $ac_status = 0; } && { 2953 test -z "$ac_cxx_werror_flag" || 2954 test ! -s conftest.err 2955 } && test -s conftest$ac_exeext && { 2956 test "$cross_compiling" = yes || 2957 test -x conftest$ac_exeext 2958 }; then : 2959 ac_retval=0 2960 else 2961 $as_echo "$as_me: failed program was:" >&5 2962 sed 's/^/| /' conftest.$ac_ext >&5 2963 2964 ac_retval=1 2965 fi 2966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2968 # interfere with the next link command; also delete a directory that is 2969 # left behind by Apple's compiler. We do this before executing the actions. 2970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2972 as_fn_set_status $ac_retval 2973 2974 } # ac_fn_cxx_try_link 2975 2976 # ac_fn_cxx_check_func LINENO FUNC VAR 2977 # ------------------------------------ 2978 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2979 ac_fn_cxx_check_func () 2980 { 2981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2983 $as_echo_n "checking for $2... " >&6; } 2984 if eval \${$3+:} false; then : 2985 $as_echo_n "(cached) " >&6 2986 else 2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2988 /* end confdefs.h. */ 2989 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2990 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2991 #define $2 innocuous_$2 2992 2993 /* System header to define __stub macros and hopefully few prototypes, 2994 which can conflict with char $2 (); below. 2995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2996 <limits.h> exists even on freestanding compilers. */ 2997 2998 #ifdef __STDC__ 2999 # include <limits.h> 3000 #else 3001 # include <assert.h> 3002 #endif 3003 3004 #undef $2 3005 3006 /* Override any GCC internal prototype to avoid an error. 3007 Use char because int might match the return type of a GCC 3008 builtin and then its argument prototype would still apply. */ 3009 #ifdef __cplusplus 3010 extern "C" 3011 #endif 3012 char $2 (); 3013 /* The GNU C library defines this for functions which it implements 3014 to always fail with ENOSYS. Some functions are actually named 3015 something starting with __ and the normal name is an alias. */ 3016 #if defined __stub_$2 || defined __stub___$2 3017 choke me 3018 #endif 3019 3020 int 3021 main () 3022 { 3023 return $2 (); 3024 ; 3025 return 0; 3026 } 3027 _ACEOF 3028 if ac_fn_cxx_try_link "$LINENO"; then : 3029 eval "$3=yes" 3030 else 3031 eval "$3=no" 3032 fi 3033 rm -f core conftest.err conftest.$ac_objext \ 3034 conftest$ac_exeext conftest.$ac_ext 3035 fi 3036 eval ac_res=\$$3 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3038 $as_echo "$ac_res" >&6; } 3039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3040 3041 } # ac_fn_cxx_check_func 3042 3043 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3044 # ------------------------------------------------------- 3045 # Tests whether HEADER exists and can be compiled using the include files in 3046 # INCLUDES, setting the cache variable VAR accordingly. 3047 ac_fn_c_check_header_compile () 3048 { 3049 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3051 $as_echo_n "checking for $2... " >&6; } 3052 if eval \${$3+:} false; then : 3053 $as_echo_n "(cached) " >&6 3054 else 3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3056 /* end confdefs.h. */ 3057 $4 3058 #include <$2> 3059 _ACEOF 3060 if ac_fn_c_try_compile "$LINENO"; then : 3061 eval "$3=yes" 3062 else 3063 eval "$3=no" 3064 fi 3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3066 fi 3067 eval ac_res=\$$3 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3069 $as_echo "$ac_res" >&6; } 3070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3071 3072 } # ac_fn_c_check_header_compile 3073 cat >config.log <<_ACEOF 3074 This file contains any messages produced by compilers while 3075 running configure, to aid debugging if configure makes a mistake. 3076 3077 It was created by OpenJDK $as_me jdk9, which was 3078 generated by GNU Autoconf 2.69. Invocation command line was 3079 3080 $ $0 $@ 3081 3082 _ACEOF 3083 exec 5>>config.log 3084 { 3085 cat <<_ASUNAME 3086 ## --------- ## 3087 ## Platform. ## 3088 ## --------- ## 3089 3090 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3091 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3092 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3093 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3094 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3095 3096 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3097 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3098 3099 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3100 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3101 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3102 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3103 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3104 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3105 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3106 3107 _ASUNAME 3108 3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3110 for as_dir in $PATH 3111 do 3112 IFS=$as_save_IFS 3113 test -z "$as_dir" && as_dir=. 3114 $as_echo "PATH: $as_dir" 3115 done 3116 IFS=$as_save_IFS 3117 3118 } >&5 3119 3120 cat >&5 <<_ACEOF 3121 3122 3123 ## ----------- ## 3124 ## Core tests. ## 3125 ## ----------- ## 3126 3127 _ACEOF 3128 3129 3130 # Keep a trace of the command line. 3131 # Strip out --no-create and --no-recursion so they do not pile up. 3132 # Strip out --silent because we don't want to record it for future runs. 3133 # Also quote any args containing shell meta-characters. 3134 # Make two passes to allow for proper duplicate-argument suppression. 3135 ac_configure_args= 3136 ac_configure_args0= 3137 ac_configure_args1= 3138 ac_must_keep_next=false 3139 for ac_pass in 1 2 3140 do 3141 for ac_arg 3142 do 3143 case $ac_arg in 3144 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3146 | -silent | --silent | --silen | --sile | --sil) 3147 continue ;; 3148 *\'*) 3149 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3150 esac 3151 case $ac_pass in 3152 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3153 2) 3154 as_fn_append ac_configure_args1 " '$ac_arg'" 3155 if test $ac_must_keep_next = true; then 3156 ac_must_keep_next=false # Got value, back to normal. 3157 else 3158 case $ac_arg in 3159 *=* | --config-cache | -C | -disable-* | --disable-* \ 3160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3162 | -with-* | --with-* | -without-* | --without-* | --x) 3163 case "$ac_configure_args0 " in 3164 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3165 esac 3166 ;; 3167 -* ) ac_must_keep_next=true ;; 3168 esac 3169 fi 3170 as_fn_append ac_configure_args " '$ac_arg'" 3171 ;; 3172 esac 3173 done 3174 done 3175 { ac_configure_args0=; unset ac_configure_args0;} 3176 { ac_configure_args1=; unset ac_configure_args1;} 3177 3178 # When interrupted or exit'd, cleanup temporary files, and complete 3179 # config.log. We remove comments because anyway the quotes in there 3180 # would cause problems or look ugly. 3181 # WARNING: Use '\'' to represent an apostrophe within the trap. 3182 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3183 trap 'exit_status=$? 3184 # Save into config.log some information that might help in debugging. 3185 { 3186 echo 3187 3188 $as_echo "## ---------------- ## 3189 ## Cache variables. ## 3190 ## ---------------- ##" 3191 echo 3192 # The following way of writing the cache mishandles newlines in values, 3193 ( 3194 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3195 eval ac_val=\$$ac_var 3196 case $ac_val in #( 3197 *${as_nl}*) 3198 case $ac_var in #( 3199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3200 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3201 esac 3202 case $ac_var in #( 3203 _ | IFS | as_nl) ;; #( 3204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3205 *) { eval $ac_var=; unset $ac_var;} ;; 3206 esac ;; 3207 esac 3208 done 3209 (set) 2>&1 | 3210 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3211 *${as_nl}ac_space=\ *) 3212 sed -n \ 3213 "s/'\''/'\''\\\\'\'''\''/g; 3214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3215 ;; #( 3216 *) 3217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3218 ;; 3219 esac | 3220 sort 3221 ) 3222 echo 3223 3224 $as_echo "## ----------------- ## 3225 ## Output variables. ## 3226 ## ----------------- ##" 3227 echo 3228 for ac_var in $ac_subst_vars 3229 do 3230 eval ac_val=\$$ac_var 3231 case $ac_val in 3232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3233 esac 3234 $as_echo "$ac_var='\''$ac_val'\''" 3235 done | sort 3236 echo 3237 3238 if test -n "$ac_subst_files"; then 3239 $as_echo "## ------------------- ## 3240 ## File substitutions. ## 3241 ## ------------------- ##" 3242 echo 3243 for ac_var in $ac_subst_files 3244 do 3245 eval ac_val=\$$ac_var 3246 case $ac_val in 3247 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3248 esac 3249 $as_echo "$ac_var='\''$ac_val'\''" 3250 done | sort 3251 echo 3252 fi 3253 3254 if test -s confdefs.h; then 3255 $as_echo "## ----------- ## 3256 ## confdefs.h. ## 3257 ## ----------- ##" 3258 echo 3259 cat confdefs.h 3260 echo 3261 fi 3262 test "$ac_signal" != 0 && 3263 $as_echo "$as_me: caught signal $ac_signal" 3264 $as_echo "$as_me: exit $exit_status" 3265 } >&5 3266 rm -f core *.core core.conftest.* && 3267 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3268 exit $exit_status 3269 ' 0 3270 for ac_signal in 1 2 13 15; do 3271 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3272 done 3273 ac_signal=0 3274 3275 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3276 rm -f -r conftest* confdefs.h 3277 3278 $as_echo "/* confdefs.h */" > confdefs.h 3279 3280 # Predefined preprocessor variables. 3281 3282 cat >>confdefs.h <<_ACEOF 3283 #define PACKAGE_NAME "$PACKAGE_NAME" 3284 _ACEOF 3285 3286 cat >>confdefs.h <<_ACEOF 3287 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3288 _ACEOF 3289 3290 cat >>confdefs.h <<_ACEOF 3291 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3292 _ACEOF 3293 3294 cat >>confdefs.h <<_ACEOF 3295 #define PACKAGE_STRING "$PACKAGE_STRING" 3296 _ACEOF 3297 3298 cat >>confdefs.h <<_ACEOF 3299 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3300 _ACEOF 3301 3302 cat >>confdefs.h <<_ACEOF 3303 #define PACKAGE_URL "$PACKAGE_URL" 3304 _ACEOF 3305 3306 3307 # Let the site file select an alternate cache file if it wants to. 3308 # Prefer an explicitly selected file to automatically selected ones. 3309 ac_site_file1=NONE 3310 ac_site_file2=NONE 3311 if test -n "$CONFIG_SITE"; then 3312 # We do not want a PATH search for config.site. 3313 case $CONFIG_SITE in #(( 3314 -*) ac_site_file1=./$CONFIG_SITE;; 3315 */*) ac_site_file1=$CONFIG_SITE;; 3316 *) ac_site_file1=./$CONFIG_SITE;; 3317 esac 3318 elif test "x$prefix" != xNONE; then 3319 ac_site_file1=$prefix/share/config.site 3320 ac_site_file2=$prefix/etc/config.site 3321 else 3322 ac_site_file1=$ac_default_prefix/share/config.site 3323 ac_site_file2=$ac_default_prefix/etc/config.site 3324 fi 3325 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3326 do 3327 test "x$ac_site_file" = xNONE && continue 3328 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3330 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3331 sed 's/^/| /' "$ac_site_file" >&5 3332 . "$ac_site_file" \ 3333 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3335 as_fn_error $? "failed to load site script $ac_site_file 3336 See \`config.log' for more details" "$LINENO" 5; } 3337 fi 3338 done 3339 3340 if test -r "$cache_file"; then 3341 # Some versions of bash will fail to source /dev/null (special files 3342 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3343 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3345 $as_echo "$as_me: loading cache $cache_file" >&6;} 3346 case $cache_file in 3347 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3348 *) . "./$cache_file";; 3349 esac 3350 fi 3351 else 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3353 $as_echo "$as_me: creating cache $cache_file" >&6;} 3354 >$cache_file 3355 fi 3356 3357 # Check that the precious variables saved in the cache have kept the same 3358 # value. 3359 ac_cache_corrupted=false 3360 for ac_var in $ac_precious_vars; do 3361 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3362 eval ac_new_set=\$ac_env_${ac_var}_set 3363 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3364 eval ac_new_val=\$ac_env_${ac_var}_value 3365 case $ac_old_set,$ac_new_set in 3366 set,) 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3369 ac_cache_corrupted=: ;; 3370 ,set) 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3373 ac_cache_corrupted=: ;; 3374 ,);; 3375 *) 3376 if test "x$ac_old_val" != "x$ac_new_val"; then 3377 # differences in whitespace do not lead to failure. 3378 ac_old_val_w=`echo x $ac_old_val` 3379 ac_new_val_w=`echo x $ac_new_val` 3380 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3383 ac_cache_corrupted=: 3384 else 3385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3387 eval $ac_var=\$ac_old_val 3388 fi 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3390 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3393 fi;; 3394 esac 3395 # Pass precious variables to config.status. 3396 if test "$ac_new_set" = set; then 3397 case $ac_new_val in 3398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3399 *) ac_arg=$ac_var=$ac_new_val ;; 3400 esac 3401 case " $ac_configure_args " in 3402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3403 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3404 esac 3405 fi 3406 done 3407 if $ac_cache_corrupted; then 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3413 fi 3414 ## -------------------- ## 3415 ## Main body of script. ## 3416 ## -------------------- ## 3417 3418 ac_ext=c 3419 ac_cpp='$CPP $CPPFLAGS' 3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3423 3424 3425 3426 ac_aux_dir= 3427 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3428 if test -f "$ac_dir/install-sh"; then 3429 ac_aux_dir=$ac_dir 3430 ac_install_sh="$ac_aux_dir/install-sh -c" 3431 break 3432 elif test -f "$ac_dir/install.sh"; then 3433 ac_aux_dir=$ac_dir 3434 ac_install_sh="$ac_aux_dir/install.sh -c" 3435 break 3436 elif test -f "$ac_dir/shtool"; then 3437 ac_aux_dir=$ac_dir 3438 ac_install_sh="$ac_aux_dir/shtool install -c" 3439 break 3440 fi 3441 done 3442 if test -z "$ac_aux_dir"; then 3443 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 3444 fi 3445 3446 # These three variables are undocumented and unsupported, 3447 # and are intended to be withdrawn in a future Autoconf release. 3448 # They can cause serious problems if a builder's source tree is in a directory 3449 # whose full name contains unusual characters. 3450 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3451 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3452 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3453 3454 3455 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3456 3457 # 3458 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3459 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3460 # 3461 # This code is free software; you can redistribute it and/or modify it 3462 # under the terms of the GNU General Public License version 2 only, as 3463 # published by the Free Software Foundation. Oracle designates this 3464 # particular file as subject to the "Classpath" exception as provided 3465 # by Oracle in the LICENSE file that accompanied this code. 3466 # 3467 # This code is distributed in the hope that it will be useful, but WITHOUT 3468 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3469 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3470 # version 2 for more details (a copy is included in the LICENSE file that 3471 # accompanied this code). 3472 # 3473 # You should have received a copy of the GNU General Public License version 3474 # 2 along with this work; if not, write to the Free Software Foundation, 3475 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3476 # 3477 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3478 # or visit www.oracle.com if you need additional information or have any 3479 # questions. 3480 # 3481 3482 # 3483 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3484 # 3485 # This program is free software; you can redistribute it and/or modify 3486 # it under the terms of the GNU General Public License as published by 3487 # the Free Software Foundation; either version 2 of the License, or 3488 # (at your option) any later version. 3489 # 3490 # This program is distributed in the hope that it will be useful, but 3491 # WITHOUT ANY WARRANTY; without even the implied warranty of 3492 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3493 # General Public License for more details. 3494 # 3495 # You should have received a copy of the GNU General Public License 3496 # along with this program; if not, write to the Free Software 3497 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3498 # 3499 # As a special exception to the GNU General Public License, if you 3500 # distribute this file as part of a program that contains a 3501 # configuration script generated by Autoconf, you may include it under 3502 # the same distribution terms that you use for the rest of that program. 3503 3504 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3505 # ---------------------------------- 3506 # PKG_PROG_PKG_CONFIG 3507 3508 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3509 # 3510 # Check to see whether a particular set of modules exists. Similar 3511 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3512 # 3513 # 3514 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3515 # this or PKG_CHECK_MODULES is called, or make sure to call 3516 # PKG_CHECK_EXISTS manually 3517 # -------------------------------------------------------------- 3518 3519 3520 3521 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3522 # --------------------------------------------- 3523 # _PKG_CONFIG 3524 3525 # _PKG_SHORT_ERRORS_SUPPORTED 3526 # ----------------------------- 3527 # _PKG_SHORT_ERRORS_SUPPORTED 3528 3529 3530 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3531 # [ACTION-IF-NOT-FOUND]) 3532 # 3533 # 3534 # Note that if there is a possibility the first call to 3535 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3536 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3537 # 3538 # 3539 # -------------------------------------------------------------- 3540 # PKG_CHECK_MODULES 3541 3542 3543 # Include these first... 3544 # 3545 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3546 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3547 # 3548 # This code is free software; you can redistribute it and/or modify it 3549 # under the terms of the GNU General Public License version 2 only, as 3550 # published by the Free Software Foundation. Oracle designates this 3551 # particular file as subject to the "Classpath" exception as provided 3552 # by Oracle in the LICENSE file that accompanied this code. 3553 # 3554 # This code is distributed in the hope that it will be useful, but WITHOUT 3555 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3556 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3557 # version 2 for more details (a copy is included in the LICENSE file that 3558 # accompanied this code). 3559 # 3560 # You should have received a copy of the GNU General Public License version 3561 # 2 along with this work; if not, write to the Free Software Foundation, 3562 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3563 # 3564 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3565 # or visit www.oracle.com if you need additional information or have any 3566 # questions. 3567 # 3568 3569 # Create a function/macro that takes a series of named arguments. The call is 3570 # similar to AC_DEFUN, but the setup of the function looks like this: 3571 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3572 # ... do something 3573 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3574 # ]) 3575 # A star (*) in front of a named argument means that it is required and it's 3576 # presence will be verified. To pass e.g. the first value as a normal indexed 3577 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3578 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3579 # "ARG_FOO". 3580 # 3581 # The generated function can be called like this: 3582 # MYFUNC(FOO: [foo-val], 3583 # BAR: [ 3584 # $ECHO hello world 3585 # ]) 3586 # Note that the argument value must start on the same line as the argument name. 3587 # 3588 # Argument 1: Name of the function to define 3589 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3590 # Argument 3: Argument array to treat as named, typically $@ 3591 # Argument 4: The main function body 3592 3593 3594 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3595 # If so, then append $1 to $2 \ 3596 # Also set JVM_ARG_OK to true/false depending on outcome. 3597 3598 3599 # Appends a string to a path variable, only adding the : when needed. 3600 3601 3602 # Prepends a string to a path variable, only adding the : when needed. 3603 3604 3605 # This will make sure the given variable points to a full and proper 3606 # path. This means: 3607 # 1) There will be no spaces in the path. On unix platforms, 3608 # spaces in the path will result in an error. On Windows, 3609 # the path will be rewritten using short-style to be space-free. 3610 # 2) The path will be absolute, and it will be in unix-style (on 3611 # cygwin). 3612 # $1: The name of the variable to fix 3613 3614 3615 # This will make sure the given variable points to a executable 3616 # with a full and proper path. This means: 3617 # 1) There will be no spaces in the path. On unix platforms, 3618 # spaces in the path will result in an error. On Windows, 3619 # the path will be rewritten using short-style to be space-free. 3620 # 2) The path will be absolute, and it will be in unix-style (on 3621 # cygwin). 3622 # Any arguments given to the executable is preserved. 3623 # If the input variable does not have a directory specification, then 3624 # it need to be in the PATH. 3625 # $1: The name of the variable to fix 3626 3627 3628 3629 3630 # Register a --with argument but mark it as deprecated 3631 # $1: The name of the with argument to deprecate, not including --with- 3632 3633 3634 # Register a --enable argument but mark it as deprecated 3635 # $1: The name of the with argument to deprecate, not including --enable- 3636 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3637 # $3: Messages to user. 3638 3639 3640 3641 3642 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3643 # $1: variable to check 3644 3645 3646 # Check that there are no unprocessed overridden variables left. 3647 # If so, they are an incorrect argument and we will exit with an error. 3648 3649 3650 # Setup a tool for the given variable. If correctly specified by the user, 3651 # use that value, otherwise search for the tool using the supplied code snippet. 3652 # $1: variable to set 3653 # $2: code snippet to call to look for the tool 3654 # $3: code snippet to call if variable was used to find tool 3655 3656 3657 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3658 # $1: variable to set 3659 # $2: executable name (or list of names) to look for 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 3671 3672 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3673 # $1: variable to set 3674 # $2: autoconf macro to call to look for the special tool 3675 3676 3677 # Setup the most fundamental tools that relies on not much else to set up, 3678 # but is used by much of the early bootstrap code. 3679 3680 3681 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3682 3683 3684 # Evaluates platform specific overrides for devkit variables. 3685 # $1: Name of variable 3686 3687 3688 3689 3690 3691 3692 #%%% Simple tools %%% 3693 3694 # Check if we have found a usable version of make 3695 # $1: the path to a potential make binary (or empty) 3696 # $2: the description on how we found this 3697 3698 3699 3700 3701 # Goes looking for a usable version of GNU make. 3702 3703 3704 3705 3706 3707 3708 # Check if build directory is on local disk. If not possible to determine, 3709 # we prefer to claim it's local. 3710 # Argument 1: directory to test 3711 # Argument 2: what to do if it is on local disk 3712 # Argument 3: what to do otherwise (remote disk or failure) 3713 3714 3715 # Check that source files have basic read permissions set. This might 3716 # not be the case in cygwin in certain conditions. 3717 3718 3719 3720 3721 # Check for support for specific options in bash 3722 3723 3724 ################################################################################ 3725 # 3726 # Default make target 3727 # 3728 3729 3730 # Code to run after AC_OUTPUT 3731 3732 3733 # 3734 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3735 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3736 # 3737 # This code is free software; you can redistribute it and/or modify it 3738 # under the terms of the GNU General Public License version 2 only, as 3739 # published by the Free Software Foundation. Oracle designates this 3740 # particular file as subject to the "Classpath" exception as provided 3741 # by Oracle in the LICENSE file that accompanied this code. 3742 # 3743 # This code is distributed in the hope that it will be useful, but WITHOUT 3744 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3745 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3746 # version 2 for more details (a copy is included in the LICENSE file that 3747 # accompanied this code). 3748 # 3749 # You should have received a copy of the GNU General Public License version 3750 # 2 along with this work; if not, write to the Free Software Foundation, 3751 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3752 # 3753 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3754 # or visit www.oracle.com if you need additional information or have any 3755 # questions. 3756 # 3757 3758 3759 3760 3761 3762 # Helper function which possibly converts a path using DOS-style short mode. 3763 # If so, the updated path is stored in $new_path. 3764 # $1: The path to check 3765 3766 3767 # Helper function which possibly converts a path using DOS-style short mode. 3768 # If so, the updated path is stored in $new_path. 3769 # $1: The path to check 3770 3771 3772 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3773 # and could probably be heavily simplified. However, all changes in this 3774 # area tend to need lot of testing in different scenarios, and in lack of 3775 # proper unit testing, cleaning this up has not been deemed worth the effort 3776 # at the moment. 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3787 3788 3789 3790 3791 # ... then the rest 3792 # 3793 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3794 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3795 # 3796 # This code is free software; you can redistribute it and/or modify it 3797 # under the terms of the GNU General Public License version 2 only, as 3798 # published by the Free Software Foundation. Oracle designates this 3799 # particular file as subject to the "Classpath" exception as provided 3800 # by Oracle in the LICENSE file that accompanied this code. 3801 # 3802 # This code is distributed in the hope that it will be useful, but WITHOUT 3803 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3804 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3805 # version 2 for more details (a copy is included in the LICENSE file that 3806 # accompanied this code). 3807 # 3808 # You should have received a copy of the GNU General Public License version 3809 # 2 along with this work; if not, write to the Free Software Foundation, 3810 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3811 # 3812 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3813 # or visit www.oracle.com if you need additional information or have any 3814 # questions. 3815 # 3816 3817 ######################################################################## 3818 # This file handles detection of the Boot JDK. The Boot JDK detection 3819 # process has been developed as a response to solve a complex real-world 3820 # problem. Initially, it was simple, but it has grown as platform after 3821 # platform, idiosyncracy after idiosyncracy has been supported. 3822 # 3823 # The basic idea is this: 3824 # 1) You need an acceptable *) JDK to use as a Boot JDK 3825 # 2) There are several ways to locate a JDK, that are mostly platform 3826 # dependent **) 3827 # 3) You can have multiple JDKs installed 3828 # 4) If possible, configure should try to dig out an acceptable JDK 3829 # automatically, without having to resort to command-line options 3830 # 3831 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3832 # javac) and not a JRE, etc. 3833 # 3834 # **) On Windows we typically use a well-known path. 3835 # On MacOSX we typically use the tool java_home. 3836 # On Linux we typically find javac in the $PATH, and then follow a 3837 # chain of symlinks that often ends up in a real JDK. 3838 # 3839 # This leads to the code where we check in different ways to locate a 3840 # JDK, and if one is found, check if it is acceptable. If not, we print 3841 # our reasons for rejecting it (useful when debugging non-working 3842 # configure situations) and continue checking the next one. 3843 ######################################################################## 3844 3845 # Execute the check given as argument, and verify the result 3846 # If the Boot JDK was previously found, do nothing 3847 # $1 A command line (typically autoconf macro) to execute 3848 3849 3850 # Test: Is bootjdk explicitely set by command line arguments? 3851 3852 3853 # Test: Is $JAVA_HOME set? 3854 3855 3856 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3857 3858 3859 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3860 # $1: Argument to the java_home binary (optional) 3861 3862 3863 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3864 3865 3866 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3867 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3868 # $1 = Path to directory containing jdk installations. 3869 # $2 = String to append to the found JDK directory to get the proper JDK home 3870 3871 3872 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3873 # environmental variable as base for where to look. 3874 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3875 3876 3877 # Test: Is there a JDK installed in default, well-known locations? 3878 3879 3880 # Check that a command-line tool in the Boot JDK is correct 3881 # $1 = name of variable to assign 3882 # $2 = name of binary 3883 3884 3885 ############################################################################### 3886 # 3887 # We need a Boot JDK to bootstrap the build. 3888 # 3889 3890 3891 3892 3893 3894 # BUILD_JDK: the location of the latest JDK that can run 3895 # on the host system and supports the target class file version 3896 # generated in this JDK build. This variable should only be 3897 # used after the launchers are built. 3898 # 3899 3900 # Execute the check given as argument, and verify the result. 3901 # If the JDK was previously found, do nothing. 3902 # $1 A command line (typically autoconf macro) to execute 3903 3904 3905 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3906 # is different than the host system doing the build (e.g. cross-compilation), 3907 # a special BUILD_JDK is built as part of the build process. An external 3908 # prebuilt BUILD_JDK can also be supplied. 3909 3910 3911 # 3912 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3913 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3914 # 3915 # This code is free software; you can redistribute it and/or modify it 3916 # under the terms of the GNU General Public License version 2 only, as 3917 # published by the Free Software Foundation. Oracle designates this 3918 # particular file as subject to the "Classpath" exception as provided 3919 # by Oracle in the LICENSE file that accompanied this code. 3920 # 3921 # This code is distributed in the hope that it will be useful, but WITHOUT 3922 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3923 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3924 # version 2 for more details (a copy is included in the LICENSE file that 3925 # accompanied this code). 3926 # 3927 # You should have received a copy of the GNU General Public License version 3928 # 2 along with this work; if not, write to the Free Software Foundation, 3929 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3930 # 3931 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3932 # or visit www.oracle.com if you need additional information or have any 3933 # questions. 3934 # 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 ################################################################################ 3953 # 3954 # Runs icecc-create-env once and prints the error if it fails 3955 # 3956 # $1: arguments to icecc-create-env 3957 # $2: log file 3958 # 3959 3960 3961 ################################################################################ 3962 # 3963 # Optionally enable distributed compilation of native code using icecc/icecream 3964 # 3965 3966 3967 3968 3969 3970 3971 3972 # 3973 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3974 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3975 # 3976 # This code is free software; you can redistribute it and/or modify it 3977 # under the terms of the GNU General Public License version 2 only, as 3978 # published by the Free Software Foundation. Oracle designates this 3979 # particular file as subject to the "Classpath" exception as provided 3980 # by Oracle in the LICENSE file that accompanied this code. 3981 # 3982 # This code is distributed in the hope that it will be useful, but WITHOUT 3983 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3984 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3985 # version 2 for more details (a copy is included in the LICENSE file that 3986 # accompanied this code). 3987 # 3988 # You should have received a copy of the GNU General Public License version 3989 # 2 along with this work; if not, write to the Free Software Foundation, 3990 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3991 # 3992 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3993 # or visit www.oracle.com if you need additional information or have any 3994 # questions. 3995 # 3996 3997 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 3998 # corresponding configure arguments instead 3999 4000 4001 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4002 # that configure can use them while detecting compilers. 4003 # TOOLCHAIN_TYPE is available here. 4004 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4005 4006 4007 4008 4009 4010 4011 # Documentation on common flags used for solstudio in HIGHEST. 4012 # 4013 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4014 # done with care, there are some assumptions below that need to 4015 # be understood about the use of pointers, and IEEE behavior. 4016 # 4017 # -fns: Use non-standard floating point mode (not IEEE 754) 4018 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4019 # -fsingle: Use single precision floating point with 'float' 4020 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4021 # (Source with excessing pointer casting and data access with mixed 4022 # pointer types are not recommended) 4023 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4024 # (If you expect perfect errno behavior, do not use this) 4025 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4026 # -xrestrict: Pointer parameters to functions do not overlap 4027 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4028 # If you pass in multiple pointers to the same data, do not use this) 4029 # -xlibmil: Inline some library routines 4030 # (If you expect perfect errno behavior, do not use this) 4031 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4032 # (If you expect perfect errno behavior, do not use this) 4033 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4034 4035 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4036 # Bug? 4037 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4038 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4039 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4040 #fi 4041 4042 4043 4044 4045 4046 4047 ################################################################################ 4048 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4049 # conditionals against. 4050 # $2 - Optional prefix for each variable defined. 4051 4052 4053 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4054 # IF_FALSE: [RUN-IF-FALSE]) 4055 # ------------------------------------------------------------ 4056 # Check that the C compiler supports an argument 4057 4058 4059 4060 4061 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4062 # IF_FALSE: [RUN-IF-FALSE]) 4063 # ------------------------------------------------------------ 4064 # Check that the C++ compiler supports an argument 4065 4066 4067 4068 4069 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4070 # IF_FALSE: [RUN-IF-FALSE]) 4071 # ------------------------------------------------------------ 4072 # Check that the C and C++ compilers support an argument 4073 4074 4075 4076 4077 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4078 # IF_FALSE: [RUN-IF-FALSE]) 4079 # ------------------------------------------------------------ 4080 # Check that the linker support an argument 4081 4082 4083 4084 4085 4086 4087 4088 4089 # 4090 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4091 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4092 # 4093 # This code is free software; you can redistribute it and/or modify it 4094 # under the terms of the GNU General Public License version 2 only, as 4095 # published by the Free Software Foundation. Oracle designates this 4096 # particular file as subject to the "Classpath" exception as provided 4097 # by Oracle in the LICENSE file that accompanied this code. 4098 # 4099 # This code is distributed in the hope that it will be useful, but WITHOUT 4100 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4101 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4102 # version 2 for more details (a copy is included in the LICENSE file that 4103 # accompanied this code). 4104 # 4105 # You should have received a copy of the GNU General Public License version 4106 # 2 along with this work; if not, write to the Free Software Foundation, 4107 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4108 # 4109 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4110 # or visit www.oracle.com if you need additional information or have any 4111 # questions. 4112 # 4113 4114 4115 4116 4117 4118 cygwin_help() { 4119 case $1 in 4120 unzip) 4121 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4122 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4123 ;; 4124 zip) 4125 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4126 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4127 ;; 4128 make) 4129 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4130 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4131 ;; 4132 freetype) 4133 HELP_MSG=" 4134 The freetype library can now be build during the configure process. 4135 Download the freetype sources and unpack them into an arbitrary directory: 4136 4137 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4138 tar -xzf freetype-2.5.3.tar.gz 4139 4140 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4141 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4142 builds or into '<freetype_src>/lib32' for 32-bit builds. 4143 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4144 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4145 4146 Alternatively you can unpack the sources like this to use the default directory: 4147 4148 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4149 ;; 4150 esac 4151 } 4152 4153 msys_help() { 4154 PKGHANDLER_COMMAND="" 4155 } 4156 4157 apt_help() { 4158 case $1 in 4159 reduced) 4160 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4161 devkit) 4162 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4163 openjdk) 4164 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4165 alsa) 4166 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4167 cups) 4168 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4169 freetype) 4170 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4171 ffi) 4172 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4173 x11) 4174 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4175 ccache) 4176 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4177 dtrace) 4178 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4179 esac 4180 } 4181 4182 yum_help() { 4183 case $1 in 4184 devkit) 4185 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4186 openjdk) 4187 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4188 alsa) 4189 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4190 cups) 4191 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4192 freetype) 4193 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4194 x11) 4195 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4196 ccache) 4197 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4198 esac 4199 } 4200 4201 port_help() { 4202 PKGHANDLER_COMMAND="" 4203 } 4204 4205 pkgutil_help() { 4206 PKGHANDLER_COMMAND="" 4207 } 4208 4209 pkgadd_help() { 4210 PKGHANDLER_COMMAND="" 4211 } 4212 4213 # This function will check if we're called from the "configure" wrapper while 4214 # printing --help. If so, we will print out additional information that can 4215 # only be extracted within the autoconf script, and then exit. This must be 4216 # called at the very beginning in configure.ac. 4217 4218 4219 4220 4221 4222 4223 # 4224 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4225 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4226 # 4227 # This code is free software; you can redistribute it and/or modify it 4228 # under the terms of the GNU General Public License version 2 only, as 4229 # published by the Free Software Foundation. Oracle designates this 4230 # particular file as subject to the "Classpath" exception as provided 4231 # by Oracle in the LICENSE file that accompanied this code. 4232 # 4233 # This code is distributed in the hope that it will be useful, but WITHOUT 4234 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4235 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4236 # version 2 for more details (a copy is included in the LICENSE file that 4237 # accompanied this code). 4238 # 4239 # You should have received a copy of the GNU General Public License version 4240 # 2 along with this work; if not, write to the Free Software Foundation, 4241 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4242 # 4243 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4244 # or visit www.oracle.com if you need additional information or have any 4245 # questions. 4246 # 4247 4248 # All valid JVM features, regardless of platform 4249 VALID_JVM_FEATURES="compiler1 compiler2 zero shark minimal dtrace jvmti jvmci \ 4250 fprof vm-structs jni-check services management all-gcs nmt cds static-build" 4251 4252 # All valid JVM variants 4253 VALID_JVM_VARIANTS="server client minimal core zero zeroshark custom" 4254 4255 ############################################################################### 4256 # Check if the specified JVM variant should be built. To be used in shell if 4257 # constructs, like this: 4258 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4259 # 4260 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4261 4262 # Definition kept in one line to allow inlining in if statements. 4263 # Additional [] needed to keep m4 from mangling shell constructs. 4264 4265 4266 ############################################################################### 4267 # Check if the specified JVM features are explicitly enabled. To be used in 4268 # shell if constructs, like this: 4269 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4270 # 4271 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4272 4273 # Definition kept in one line to allow inlining in if statements. 4274 # Additional [] needed to keep m4 from mangling shell constructs. 4275 4276 4277 ############################################################################### 4278 # Check which variants of the JVM that we want to build. Available variants are: 4279 # server: normal interpreter, and a tiered C1/C2 compiler 4280 # client: normal interpreter, and C1 (no C2 compiler) 4281 # minimal: reduced form of client with optional features stripped out 4282 # core: normal interpreter only, no compiler 4283 # zero: C++ based interpreter only, no compiler 4284 # zeroshark: C++ based interpreter, and a llvm-based compiler 4285 # custom: baseline JVM with no default features 4286 # 4287 4288 4289 ############################################################################### 4290 # Check if dtrace should be enabled and has all prerequisites present. 4291 # 4292 4293 4294 ############################################################################### 4295 # Set up all JVM features for each JVM variant. 4296 # 4297 4298 4299 ############################################################################### 4300 # Validate JVM features once all setup is complete, including custom setup. 4301 # 4302 4303 4304 ############################################################################### 4305 # Support for old hotspot build. Remove once new hotspot build has proven 4306 # to work satisfactory. 4307 # 4308 4309 4310 # 4311 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4312 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4313 # 4314 # This code is free software; you can redistribute it and/or modify it 4315 # under the terms of the GNU General Public License version 2 only, as 4316 # published by the Free Software Foundation. Oracle designates this 4317 # particular file as subject to the "Classpath" exception as provided 4318 # by Oracle in the LICENSE file that accompanied this code. 4319 # 4320 # This code is distributed in the hope that it will be useful, but WITHOUT 4321 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4322 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4323 # version 2 for more details (a copy is included in the LICENSE file that 4324 # accompanied this code). 4325 # 4326 # You should have received a copy of the GNU General Public License version 4327 # 2 along with this work; if not, write to the Free Software Foundation, 4328 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4329 # 4330 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4331 # or visit www.oracle.com if you need additional information or have any 4332 # questions. 4333 # 4334 4335 ############################################################################### 4336 # Check which variant of the JDK that we want to build. 4337 # Currently we have: 4338 # normal: standard edition 4339 # but the custom make system may add other variants 4340 # 4341 # Effectively the JDK variant gives a name to a specific set of 4342 # modules to compile into the JDK. 4343 4344 4345 ############################################################################### 4346 # Set the debug level 4347 # release: no debug information, all optimizations, no asserts. 4348 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4349 # fastdebug: debug information (-g), all optimizations, all asserts 4350 # slowdebug: debug information (-g), no optimizations, all asserts 4351 4352 4353 ############################################################################### 4354 # 4355 # Should we build only OpenJDK even if closed sources are present? 4356 # 4357 4358 4359 4360 4361 ############################################################################### 4362 # 4363 # Enable or disable the elliptic curve crypto implementation 4364 # 4365 4366 4367 4368 4369 ################################################################################ 4370 # 4371 # Gcov coverage data for hotspot 4372 # 4373 4374 4375 ################################################################################ 4376 # 4377 # Static build support. When enabled will generate static 4378 # libraries instead of shared libraries for all JDK libs. 4379 # 4380 4381 4382 ################################################################################ 4383 # 4384 # jlink options. 4385 # We always keep packaged modules in JDK image. 4386 # 4387 4388 4389 ################################################################################ 4390 # 4391 # Check if building of the jtreg failure handler should be enabled. 4392 # 4393 4394 4395 # 4396 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4397 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4398 # 4399 # This code is free software; you can redistribute it and/or modify it 4400 # under the terms of the GNU General Public License version 2 only, as 4401 # published by the Free Software Foundation. Oracle designates this 4402 # particular file as subject to the "Classpath" exception as provided 4403 # by Oracle in the LICENSE file that accompanied this code. 4404 # 4405 # This code is distributed in the hope that it will be useful, but WITHOUT 4406 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4407 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4408 # version 2 for more details (a copy is included in the LICENSE file that 4409 # accompanied this code). 4410 # 4411 # You should have received a copy of the GNU General Public License version 4412 # 2 along with this work; if not, write to the Free Software Foundation, 4413 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4414 # 4415 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4416 # or visit www.oracle.com if you need additional information or have any 4417 # questions. 4418 # 4419 4420 ############################################################################### 4421 # 4422 # Setup version numbers 4423 # 4424 4425 # Verify that a given string represents a valid version number, and assign it 4426 # to a variable. 4427 4428 # Argument 1: the variable to assign to 4429 # Argument 2: the value given by the user 4430 4431 4432 4433 4434 # 4435 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4436 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4437 # 4438 # This code is free software; you can redistribute it and/or modify it 4439 # under the terms of the GNU General Public License version 2 only, as 4440 # published by the Free Software Foundation. Oracle designates this 4441 # particular file as subject to the "Classpath" exception as provided 4442 # by Oracle in the LICENSE file that accompanied this code. 4443 # 4444 # This code is distributed in the hope that it will be useful, but WITHOUT 4445 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4446 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4447 # version 2 for more details (a copy is included in the LICENSE file that 4448 # accompanied this code). 4449 # 4450 # You should have received a copy of the GNU General Public License version 4451 # 2 along with this work; if not, write to the Free Software Foundation, 4452 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4453 # 4454 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4455 # or visit www.oracle.com if you need additional information or have any 4456 # questions. 4457 # 4458 4459 # Major library component reside in separate files. 4460 # 4461 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4462 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4463 # 4464 # This code is free software; you can redistribute it and/or modify it 4465 # under the terms of the GNU General Public License version 2 only, as 4466 # published by the Free Software Foundation. Oracle designates this 4467 # particular file as subject to the "Classpath" exception as provided 4468 # by Oracle in the LICENSE file that accompanied this code. 4469 # 4470 # This code is distributed in the hope that it will be useful, but WITHOUT 4471 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4472 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4473 # version 2 for more details (a copy is included in the LICENSE file that 4474 # accompanied this code). 4475 # 4476 # You should have received a copy of the GNU General Public License version 4477 # 2 along with this work; if not, write to the Free Software Foundation, 4478 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4479 # 4480 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4481 # or visit www.oracle.com if you need additional information or have any 4482 # questions. 4483 # 4484 4485 ################################################################################ 4486 # Setup alsa (Advanced Linux Sound Architecture) 4487 ################################################################################ 4488 4489 4490 # 4491 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4492 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4493 # 4494 # This code is free software; you can redistribute it and/or modify it 4495 # under the terms of the GNU General Public License version 2 only, as 4496 # published by the Free Software Foundation. Oracle designates this 4497 # particular file as subject to the "Classpath" exception as provided 4498 # by Oracle in the LICENSE file that accompanied this code. 4499 # 4500 # This code is distributed in the hope that it will be useful, but WITHOUT 4501 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4502 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4503 # version 2 for more details (a copy is included in the LICENSE file that 4504 # accompanied this code). 4505 # 4506 # You should have received a copy of the GNU General Public License version 4507 # 2 along with this work; if not, write to the Free Software Foundation, 4508 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4509 # 4510 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4511 # or visit www.oracle.com if you need additional information or have any 4512 # questions. 4513 # 4514 4515 ################################################################################ 4516 # Setup bundled libraries. 4517 # 4518 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4519 # OpenJDK repository. Default is to use these libraries as bundled, but they 4520 # might be replaced by en external version by the user. 4521 ################################################################################ 4522 4523 4524 ################################################################################ 4525 # Setup libjpeg 4526 ################################################################################ 4527 4528 4529 ################################################################################ 4530 # Setup giflib 4531 ################################################################################ 4532 4533 4534 ################################################################################ 4535 # Setup libpng 4536 ################################################################################ 4537 4538 4539 ################################################################################ 4540 # Setup zlib 4541 ################################################################################ 4542 4543 4544 ################################################################################ 4545 # Setup lcms (Little CMS) 4546 ################################################################################ 4547 4548 4549 # 4550 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4551 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4552 # 4553 # This code is free software; you can redistribute it and/or modify it 4554 # under the terms of the GNU General Public License version 2 only, as 4555 # published by the Free Software Foundation. Oracle designates this 4556 # particular file as subject to the "Classpath" exception as provided 4557 # by Oracle in the LICENSE file that accompanied this code. 4558 # 4559 # This code is distributed in the hope that it will be useful, but WITHOUT 4560 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4561 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4562 # version 2 for more details (a copy is included in the LICENSE file that 4563 # accompanied this code). 4564 # 4565 # You should have received a copy of the GNU General Public License version 4566 # 2 along with this work; if not, write to the Free Software Foundation, 4567 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4568 # 4569 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4570 # or visit www.oracle.com if you need additional information or have any 4571 # questions. 4572 # 4573 4574 ################################################################################ 4575 # Setup cups (Common Unix Printing System) 4576 ################################################################################ 4577 4578 4579 # 4580 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4581 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4582 # 4583 # This code is free software; you can redistribute it and/or modify it 4584 # under the terms of the GNU General Public License version 2 only, as 4585 # published by the Free Software Foundation. Oracle designates this 4586 # particular file as subject to the "Classpath" exception as provided 4587 # by Oracle in the LICENSE file that accompanied this code. 4588 # 4589 # This code is distributed in the hope that it will be useful, but WITHOUT 4590 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4591 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4592 # version 2 for more details (a copy is included in the LICENSE file that 4593 # accompanied this code). 4594 # 4595 # You should have received a copy of the GNU General Public License version 4596 # 2 along with this work; if not, write to the Free Software Foundation, 4597 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4598 # 4599 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4600 # or visit www.oracle.com if you need additional information or have any 4601 # questions. 4602 # 4603 4604 ################################################################################ 4605 # Setup libffi (Foreign Function Interface) 4606 ################################################################################ 4607 4608 4609 # 4610 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4611 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4612 # 4613 # This code is free software; you can redistribute it and/or modify it 4614 # under the terms of the GNU General Public License version 2 only, as 4615 # published by the Free Software Foundation. Oracle designates this 4616 # particular file as subject to the "Classpath" exception as provided 4617 # by Oracle in the LICENSE file that accompanied this code. 4618 # 4619 # This code is distributed in the hope that it will be useful, but WITHOUT 4620 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4621 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4622 # version 2 for more details (a copy is included in the LICENSE file that 4623 # accompanied this code). 4624 # 4625 # You should have received a copy of the GNU General Public License version 4626 # 2 along with this work; if not, write to the Free Software Foundation, 4627 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4628 # 4629 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4630 # or visit www.oracle.com if you need additional information or have any 4631 # questions. 4632 # 4633 4634 ################################################################################ 4635 # Build the freetype lib from source 4636 ################################################################################ 4637 4638 4639 ################################################################################ 4640 # Check if a potential freeype library match is correct and usable 4641 ################################################################################ 4642 4643 4644 ################################################################################ 4645 # Setup freetype (The FreeType2 font rendering library) 4646 ################################################################################ 4647 4648 4649 # 4650 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4651 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4652 # 4653 # This code is free software; you can redistribute it and/or modify it 4654 # under the terms of the GNU General Public License version 2 only, as 4655 # published by the Free Software Foundation. Oracle designates this 4656 # particular file as subject to the "Classpath" exception as provided 4657 # by Oracle in the LICENSE file that accompanied this code. 4658 # 4659 # This code is distributed in the hope that it will be useful, but WITHOUT 4660 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4661 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4662 # version 2 for more details (a copy is included in the LICENSE file that 4663 # accompanied this code). 4664 # 4665 # You should have received a copy of the GNU General Public License version 4666 # 2 along with this work; if not, write to the Free Software Foundation, 4667 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4668 # 4669 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4670 # or visit www.oracle.com if you need additional information or have any 4671 # questions. 4672 # 4673 4674 ################################################################################ 4675 # Setup the standard C/C++ runtime libraries. 4676 # 4677 # Most importantly, determine if stdc++ should be linked statically or 4678 # dynamically. 4679 ################################################################################ 4680 4681 4682 # 4683 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4684 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4685 # 4686 # This code is free software; you can redistribute it and/or modify it 4687 # under the terms of the GNU General Public License version 2 only, as 4688 # published by the Free Software Foundation. Oracle designates this 4689 # particular file as subject to the "Classpath" exception as provided 4690 # by Oracle in the LICENSE file that accompanied this code. 4691 # 4692 # This code is distributed in the hope that it will be useful, but WITHOUT 4693 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4694 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4695 # version 2 for more details (a copy is included in the LICENSE file that 4696 # accompanied this code). 4697 # 4698 # You should have received a copy of the GNU General Public License version 4699 # 2 along with this work; if not, write to the Free Software Foundation, 4700 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4701 # 4702 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4703 # or visit www.oracle.com if you need additional information or have any 4704 # questions. 4705 # 4706 4707 ################################################################################ 4708 # Setup X11 Windows system 4709 ################################################################################ 4710 4711 4712 4713 ################################################################################ 4714 # Determine which libraries are needed for this configuration 4715 ################################################################################ 4716 4717 4718 ################################################################################ 4719 # Parse library options, and setup needed libraries 4720 ################################################################################ 4721 4722 4723 ################################################################################ 4724 # Setup llvm (Low-Level VM) 4725 ################################################################################ 4726 4727 4728 ################################################################################ 4729 # Setup various libraries, typically small system libraries 4730 ################################################################################ 4731 4732 4733 ################################################################################ 4734 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4735 # redistribute it in the test image. 4736 ################################################################################ 4737 4738 # 4739 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4740 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4741 # 4742 # This code is free software; you can redistribute it and/or modify it 4743 # under the terms of the GNU General Public License version 2 only, as 4744 # published by the Free Software Foundation. Oracle designates this 4745 # particular file as subject to the "Classpath" exception as provided 4746 # by Oracle in the LICENSE file that accompanied this code. 4747 # 4748 # This code is distributed in the hope that it will be useful, but WITHOUT 4749 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4750 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4751 # version 2 for more details (a copy is included in the LICENSE file that 4752 # accompanied this code). 4753 # 4754 # You should have received a copy of the GNU General Public License version 4755 # 2 along with this work; if not, write to the Free Software Foundation, 4756 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4757 # 4758 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4759 # or visit www.oracle.com if you need additional information or have any 4760 # questions. 4761 # 4762 4763 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4764 # Converts autoconf style CPU name to OpenJDK style, into 4765 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4766 4767 4768 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4769 # Converts autoconf style OS name to OpenJDK style, into 4770 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4771 4772 4773 # Expects $host_os $host_cpu $build_os and $build_cpu 4774 # and $with_target_bits to have been setup! 4775 # 4776 # Translate the standard triplet(quadruplet) definition 4777 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4778 # OPENJDK_BUILD_OS, etc. 4779 4780 4781 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4782 # accordingly. Must be done after setting up build and target system, but before 4783 # doing anything else with these values. 4784 4785 4786 # Setup the legacy variables, for controlling the old makefiles. 4787 # 4788 4789 4790 # $1 - Either TARGET or BUILD to setup the variables for. 4791 4792 4793 4794 4795 #%%% Build and target systems %%% 4796 4797 4798 4799 4800 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4801 # Add -mX to various FLAGS variables. 4802 4803 4804 4805 4806 4807 4808 # 4809 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4810 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4811 # 4812 # This code is free software; you can redistribute it and/or modify it 4813 # under the terms of the GNU General Public License version 2 only, as 4814 # published by the Free Software Foundation. Oracle designates this 4815 # particular file as subject to the "Classpath" exception as provided 4816 # by Oracle in the LICENSE file that accompanied this code. 4817 # 4818 # This code is distributed in the hope that it will be useful, but WITHOUT 4819 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4820 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4821 # version 2 for more details (a copy is included in the LICENSE file that 4822 # accompanied this code). 4823 # 4824 # You should have received a copy of the GNU General Public License version 4825 # 2 along with this work; if not, write to the Free Software Foundation, 4826 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4827 # 4828 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4829 # or visit www.oracle.com if you need additional information or have any 4830 # questions. 4831 # 4832 4833 4834 4835 4836 4837 4838 4839 ################################################################################ 4840 # Define a mechanism for importing extra prebuilt modules 4841 # 4842 4843 4844 4845 # 4846 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4847 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4848 # 4849 # This code is free software; you can redistribute it and/or modify it 4850 # under the terms of the GNU General Public License version 2 only, as 4851 # published by the Free Software Foundation. Oracle designates this 4852 # particular file as subject to the "Classpath" exception as provided 4853 # by Oracle in the LICENSE file that accompanied this code. 4854 # 4855 # This code is distributed in the hope that it will be useful, but WITHOUT 4856 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4857 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4858 # version 2 for more details (a copy is included in the LICENSE file that 4859 # accompanied this code). 4860 # 4861 # You should have received a copy of the GNU General Public License version 4862 # 2 along with this work; if not, write to the Free Software Foundation, 4863 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4864 # 4865 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4866 # or visit www.oracle.com if you need additional information or have any 4867 # questions. 4868 # 4869 4870 ######################################################################## 4871 # This file is responsible for detecting, verifying and setting up the 4872 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4873 # proper paths to the binaries, but it will not setup any flags. 4874 # 4875 # The binaries used is determined by the toolchain type, which is the family of 4876 # compilers and related tools that are used. 4877 ######################################################################## 4878 4879 4880 # All valid toolchains, regardless of platform (used by help.m4) 4881 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4882 4883 # These toolchains are valid on different platforms 4884 VALID_TOOLCHAINS_linux="gcc clang" 4885 VALID_TOOLCHAINS_solaris="solstudio" 4886 VALID_TOOLCHAINS_macosx="gcc clang" 4887 VALID_TOOLCHAINS_aix="xlc" 4888 VALID_TOOLCHAINS_windows="microsoft" 4889 4890 # Toolchain descriptions 4891 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4892 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4893 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4894 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4895 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4896 4897 # Minimum supported versions, empty means unspecified 4898 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4899 TOOLCHAIN_MINIMUM_VERSION_gcc="4.3" 4900 TOOLCHAIN_MINIMUM_VERSION_microsoft="" 4901 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.12" 4902 TOOLCHAIN_MINIMUM_VERSION_xlc="" 4903 4904 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4905 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4906 4907 4908 # Check if the configured compiler (C and C++) is of a specific version or 4909 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4910 # 4911 # Arguments: 4912 # VERSION: The version string to check against the found version 4913 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 4914 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 4915 4916 4917 4918 4919 # Setup a number of variables describing how native output files are 4920 # named on this platform/toolchain. 4921 4922 4923 # Determine which toolchain type to use, and make sure it is valid for this 4924 # platform. Setup various information about the selected toolchain. 4925 4926 4927 # Before we start detecting the toolchain executables, we might need some 4928 # special setup, e.g. additional paths etc. 4929 4930 4931 # Restore path, etc 4932 4933 4934 # Check if a compiler is of the toolchain type we expect, and save the version 4935 # information from it. If the compiler does not match the expected type, 4936 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4937 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4938 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4939 # 4940 # $1 = compiler to test (CC or CXX) 4941 # $2 = human readable name of compiler (C or C++) 4942 4943 4944 # Try to locate the given C or C++ compiler in the path, or otherwise. 4945 # 4946 # $1 = compiler to test (CC or CXX) 4947 # $2 = human readable name of compiler (C or C++) 4948 # $3 = list of compiler names to search for 4949 4950 4951 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4952 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4953 # archiver (AR). Verify that the compilers are correct according to the 4954 # toolchain type. 4955 4956 4957 # Setup additional tools that is considered a part of the toolchain, but not the 4958 # core part. Many of these are highly platform-specific and do not exist, 4959 # and/or are not needed on all platforms. 4960 4961 4962 # Setup the build tools (i.e, the compiler and linker used to build programs 4963 # that should be run on the build platform, not the target platform, as a build 4964 # helper). Since the non-cross-compile case uses the normal, target compilers 4965 # for this, we can only do this after these have been setup. 4966 4967 4968 # Setup legacy variables that are still needed as alternative ways to refer to 4969 # parts of the toolchain. 4970 4971 4972 # Do some additional checks on the detected tools. 4973 4974 4975 # Setup the JTReg Regression Test Harness. 4976 4977 4978 # 4979 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4980 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4981 # 4982 # This code is free software; you can redistribute it and/or modify it 4983 # under the terms of the GNU General Public License version 2 only, as 4984 # published by the Free Software Foundation. Oracle designates this 4985 # particular file as subject to the "Classpath" exception as provided 4986 # by Oracle in the LICENSE file that accompanied this code. 4987 # 4988 # This code is distributed in the hope that it will be useful, but WITHOUT 4989 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4990 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4991 # version 2 for more details (a copy is included in the LICENSE file that 4992 # accompanied this code). 4993 # 4994 # You should have received a copy of the GNU General Public License version 4995 # 2 along with this work; if not, write to the Free Software Foundation, 4996 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4997 # 4998 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4999 # or visit www.oracle.com if you need additional information or have any 5000 # questions. 5001 # 5002 5003 ################################################################################ 5004 # The order of these defines the priority by which we try to find them. 5005 VALID_VS_VERSIONS="2013 2012 2010" 5006 5007 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5008 VS_VERSION_INTERNAL_2010=100 5009 VS_MSVCR_2010=msvcr100.dll 5010 # We don't use msvcp on Visual Studio 2010 5011 #VS_MSVCP_2010=msvcp100.dll 5012 VS_ENVVAR_2010="VS100COMNTOOLS" 5013 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5014 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5015 VS_VS_PLATFORM_NAME_2010="v100" 5016 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5017 5018 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5019 VS_VERSION_INTERNAL_2012=110 5020 VS_MSVCR_2012=msvcr110.dll 5021 VS_MSVCP_2012=msvcp110.dll 5022 VS_ENVVAR_2012="VS110COMNTOOLS" 5023 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5024 VS_SDK_INSTALLDIR_2012= 5025 VS_VS_PLATFORM_NAME_2012="v110" 5026 VS_SDK_PLATFORM_NAME_2012= 5027 5028 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5029 VS_VERSION_INTERNAL_2013=120 5030 VS_MSVCR_2013=msvcr120.dll 5031 VS_MSVCP_2013=msvcp120.dll 5032 VS_ENVVAR_2013="VS120COMNTOOLS" 5033 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5034 VS_SDK_INSTALLDIR_2013= 5035 VS_VS_PLATFORM_NAME_2013="v120" 5036 VS_SDK_PLATFORM_NAME_2013= 5037 5038 ################################################################################ 5039 5040 5041 5042 ################################################################################ 5043 5044 5045 5046 ################################################################################ 5047 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5048 # build environment and assigns it to VS_ENV_CMD 5049 5050 5051 ################################################################################ 5052 5053 5054 5055 ################################################################################ 5056 # Check if the VS env variables were setup prior to running configure. 5057 # If not, then find vcvarsall.bat and run it automatically, and integrate 5058 # the set env variables into the spec file. 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 # This line needs to be here, verbatim, after all includes and the dummy hook 5074 # definitions. It is replaced with custom functionality when building 5075 # custom sources. 5076 #CUSTOM_AUTOCONF_INCLUDE 5077 5078 # Do not change or remove the following line, it is needed for consistency checks: 5079 DATE_WHEN_GENERATED=1461064700 5080 5081 ############################################################################### 5082 # 5083 # Initialization / Boot-strapping 5084 # 5085 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5086 # thus it jumps back and forth, each time gaining something needed later on. 5087 # 5088 ############################################################################### 5089 5090 # If we are requested to print additional help, do that and then exit. 5091 # This must be the very first call. 5092 5093 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5094 5095 # Print available toolchains 5096 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5097 $PRINTF "Which are valid to use depends on the build platform.\n" 5098 for toolchain in $VALID_TOOLCHAINS_all; do 5099 # Use indirect variable referencing 5100 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5101 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5102 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5103 done 5104 $PRINTF "\n" 5105 5106 # Print available jvm features 5107 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5108 $PRINTF "Which are valid to use depends on the target platform.\n " 5109 $PRINTF "%s " $VALID_JVM_FEATURES 5110 $PRINTF "\n" 5111 5112 # And now exit directly 5113 exit 0 5114 fi 5115 5116 5117 # Basic initialization that must happen first of all in the normal process. 5118 5119 # Save the original command line. This is passed to us by the wrapper configure script. 5120 5121 # Save the path variable before it gets changed 5122 ORIGINAL_PATH="$PATH" 5123 5124 DATE_WHEN_CONFIGURED=`LANG=C date` 5125 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5127 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5129 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5130 5131 5132 # Start with tools that do not need have cross compilation support 5133 # and can be expected to be found in the default PATH. These tools are 5134 # used by configure. 5135 5136 # First are all the simple required tools. 5137 5138 5139 5140 # Publish this variable in the help. 5141 5142 5143 if [ -z "${BASENAME+x}" ]; then 5144 # The variable is not set by user, try to locate tool using the code snippet 5145 for ac_prog in basename 5146 do 5147 # Extract the first word of "$ac_prog", so it can be a program name with args. 5148 set dummy $ac_prog; ac_word=$2 5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5150 $as_echo_n "checking for $ac_word... " >&6; } 5151 if ${ac_cv_path_BASENAME+:} false; then : 5152 $as_echo_n "(cached) " >&6 5153 else 5154 case $BASENAME in 5155 [\\/]* | ?:[\\/]*) 5156 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5157 ;; 5158 *) 5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5160 for as_dir in $PATH 5161 do 5162 IFS=$as_save_IFS 5163 test -z "$as_dir" && as_dir=. 5164 for ac_exec_ext in '' $ac_executable_extensions; do 5165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5166 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5168 break 2 5169 fi 5170 done 5171 done 5172 IFS=$as_save_IFS 5173 5174 ;; 5175 esac 5176 fi 5177 BASENAME=$ac_cv_path_BASENAME 5178 if test -n "$BASENAME"; then 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5180 $as_echo "$BASENAME" >&6; } 5181 else 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5183 $as_echo "no" >&6; } 5184 fi 5185 5186 5187 test -n "$BASENAME" && break 5188 done 5189 5190 else 5191 # The variable is set, but is it from the command line or the environment? 5192 5193 # Try to remove the string !BASENAME! from our list. 5194 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5195 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5196 # If it failed, the variable was not from the command line. Ignore it, 5197 # but warn the user (except for BASH, which is always set by the calling BASH). 5198 if test "xBASENAME" != xBASH; then 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5200 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5201 fi 5202 # Try to locate tool using the code snippet 5203 for ac_prog in basename 5204 do 5205 # Extract the first word of "$ac_prog", so it can be a program name with args. 5206 set dummy $ac_prog; ac_word=$2 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5208 $as_echo_n "checking for $ac_word... " >&6; } 5209 if ${ac_cv_path_BASENAME+:} false; then : 5210 $as_echo_n "(cached) " >&6 5211 else 5212 case $BASENAME in 5213 [\\/]* | ?:[\\/]*) 5214 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5215 ;; 5216 *) 5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5218 for as_dir in $PATH 5219 do 5220 IFS=$as_save_IFS 5221 test -z "$as_dir" && as_dir=. 5222 for ac_exec_ext in '' $ac_executable_extensions; do 5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5224 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5226 break 2 5227 fi 5228 done 5229 done 5230 IFS=$as_save_IFS 5231 5232 ;; 5233 esac 5234 fi 5235 BASENAME=$ac_cv_path_BASENAME 5236 if test -n "$BASENAME"; then 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5238 $as_echo "$BASENAME" >&6; } 5239 else 5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5241 $as_echo "no" >&6; } 5242 fi 5243 5244 5245 test -n "$BASENAME" && break 5246 done 5247 5248 else 5249 # If it succeeded, then it was overridden by the user. We will use it 5250 # for the tool. 5251 5252 # First remove it from the list of overridden variables, so we can test 5253 # for unknown variables in the end. 5254 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5255 5256 # Check if we try to supply an empty value 5257 if test "x$BASENAME" = x; then 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5259 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5261 $as_echo_n "checking for BASENAME... " >&6; } 5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5263 $as_echo "disabled" >&6; } 5264 else 5265 # Check if the provided tool contains a complete path. 5266 tool_specified="$BASENAME" 5267 tool_basename="${tool_specified##*/}" 5268 if test "x$tool_basename" = "x$tool_specified"; then 5269 # A command without a complete path is provided, search $PATH. 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5271 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5272 # Extract the first word of "$tool_basename", so it can be a program name with args. 5273 set dummy $tool_basename; ac_word=$2 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5275 $as_echo_n "checking for $ac_word... " >&6; } 5276 if ${ac_cv_path_BASENAME+:} false; then : 5277 $as_echo_n "(cached) " >&6 5278 else 5279 case $BASENAME in 5280 [\\/]* | ?:[\\/]*) 5281 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5282 ;; 5283 *) 5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5285 for as_dir in $PATH 5286 do 5287 IFS=$as_save_IFS 5288 test -z "$as_dir" && as_dir=. 5289 for ac_exec_ext in '' $ac_executable_extensions; do 5290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5291 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5293 break 2 5294 fi 5295 done 5296 done 5297 IFS=$as_save_IFS 5298 5299 ;; 5300 esac 5301 fi 5302 BASENAME=$ac_cv_path_BASENAME 5303 if test -n "$BASENAME"; then 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5305 $as_echo "$BASENAME" >&6; } 5306 else 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5308 $as_echo "no" >&6; } 5309 fi 5310 5311 5312 if test "x$BASENAME" = x; then 5313 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5314 fi 5315 else 5316 # Otherwise we believe it is a complete path. Use it as it is. 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5318 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5320 $as_echo_n "checking for BASENAME... " >&6; } 5321 if test ! -x "$tool_specified"; then 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5323 $as_echo "not found" >&6; } 5324 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5325 fi 5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5327 $as_echo "$tool_specified" >&6; } 5328 fi 5329 fi 5330 fi 5331 5332 fi 5333 5334 5335 5336 if test "x$BASENAME" = x; then 5337 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5338 fi 5339 5340 5341 5342 5343 5344 # Publish this variable in the help. 5345 5346 5347 if [ -z "${BASH+x}" ]; then 5348 # The variable is not set by user, try to locate tool using the code snippet 5349 for ac_prog in bash 5350 do 5351 # Extract the first word of "$ac_prog", so it can be a program name with args. 5352 set dummy $ac_prog; ac_word=$2 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5354 $as_echo_n "checking for $ac_word... " >&6; } 5355 if ${ac_cv_path_BASH+:} false; then : 5356 $as_echo_n "(cached) " >&6 5357 else 5358 case $BASH in 5359 [\\/]* | ?:[\\/]*) 5360 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5361 ;; 5362 *) 5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5364 for as_dir in $PATH 5365 do 5366 IFS=$as_save_IFS 5367 test -z "$as_dir" && as_dir=. 5368 for ac_exec_ext in '' $ac_executable_extensions; do 5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5370 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5372 break 2 5373 fi 5374 done 5375 done 5376 IFS=$as_save_IFS 5377 5378 ;; 5379 esac 5380 fi 5381 BASH=$ac_cv_path_BASH 5382 if test -n "$BASH"; then 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5384 $as_echo "$BASH" >&6; } 5385 else 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5387 $as_echo "no" >&6; } 5388 fi 5389 5390 5391 test -n "$BASH" && break 5392 done 5393 5394 else 5395 # The variable is set, but is it from the command line or the environment? 5396 5397 # Try to remove the string !BASH! from our list. 5398 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5399 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5400 # If it failed, the variable was not from the command line. Ignore it, 5401 # but warn the user (except for BASH, which is always set by the calling BASH). 5402 if test "xBASH" != xBASH; then 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5404 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5405 fi 5406 # Try to locate tool using the code snippet 5407 for ac_prog in bash 5408 do 5409 # Extract the first word of "$ac_prog", so it can be a program name with args. 5410 set dummy $ac_prog; ac_word=$2 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5412 $as_echo_n "checking for $ac_word... " >&6; } 5413 if ${ac_cv_path_BASH+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415 else 5416 case $BASH in 5417 [\\/]* | ?:[\\/]*) 5418 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5419 ;; 5420 *) 5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5422 for as_dir in $PATH 5423 do 5424 IFS=$as_save_IFS 5425 test -z "$as_dir" && as_dir=. 5426 for ac_exec_ext in '' $ac_executable_extensions; do 5427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5428 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5430 break 2 5431 fi 5432 done 5433 done 5434 IFS=$as_save_IFS 5435 5436 ;; 5437 esac 5438 fi 5439 BASH=$ac_cv_path_BASH 5440 if test -n "$BASH"; then 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5442 $as_echo "$BASH" >&6; } 5443 else 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5445 $as_echo "no" >&6; } 5446 fi 5447 5448 5449 test -n "$BASH" && break 5450 done 5451 5452 else 5453 # If it succeeded, then it was overridden by the user. We will use it 5454 # for the tool. 5455 5456 # First remove it from the list of overridden variables, so we can test 5457 # for unknown variables in the end. 5458 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5459 5460 # Check if we try to supply an empty value 5461 if test "x$BASH" = x; then 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5463 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5465 $as_echo_n "checking for BASH... " >&6; } 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5467 $as_echo "disabled" >&6; } 5468 else 5469 # Check if the provided tool contains a complete path. 5470 tool_specified="$BASH" 5471 tool_basename="${tool_specified##*/}" 5472 if test "x$tool_basename" = "x$tool_specified"; then 5473 # A command without a complete path is provided, search $PATH. 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5475 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5476 # Extract the first word of "$tool_basename", so it can be a program name with args. 5477 set dummy $tool_basename; ac_word=$2 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5479 $as_echo_n "checking for $ac_word... " >&6; } 5480 if ${ac_cv_path_BASH+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482 else 5483 case $BASH in 5484 [\\/]* | ?:[\\/]*) 5485 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5486 ;; 5487 *) 5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5489 for as_dir in $PATH 5490 do 5491 IFS=$as_save_IFS 5492 test -z "$as_dir" && as_dir=. 5493 for ac_exec_ext in '' $ac_executable_extensions; do 5494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5495 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5497 break 2 5498 fi 5499 done 5500 done 5501 IFS=$as_save_IFS 5502 5503 ;; 5504 esac 5505 fi 5506 BASH=$ac_cv_path_BASH 5507 if test -n "$BASH"; then 5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5509 $as_echo "$BASH" >&6; } 5510 else 5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5512 $as_echo "no" >&6; } 5513 fi 5514 5515 5516 if test "x$BASH" = x; then 5517 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5518 fi 5519 else 5520 # Otherwise we believe it is a complete path. Use it as it is. 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5522 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5524 $as_echo_n "checking for BASH... " >&6; } 5525 if test ! -x "$tool_specified"; then 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5527 $as_echo "not found" >&6; } 5528 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5529 fi 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5531 $as_echo "$tool_specified" >&6; } 5532 fi 5533 fi 5534 fi 5535 5536 fi 5537 5538 5539 5540 if test "x$BASH" = x; then 5541 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5542 fi 5543 5544 5545 5546 5547 5548 # Publish this variable in the help. 5549 5550 5551 if [ -z "${CAT+x}" ]; then 5552 # The variable is not set by user, try to locate tool using the code snippet 5553 for ac_prog in cat 5554 do 5555 # Extract the first word of "$ac_prog", so it can be a program name with args. 5556 set dummy $ac_prog; ac_word=$2 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5558 $as_echo_n "checking for $ac_word... " >&6; } 5559 if ${ac_cv_path_CAT+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561 else 5562 case $CAT in 5563 [\\/]* | ?:[\\/]*) 5564 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5565 ;; 5566 *) 5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5568 for as_dir in $PATH 5569 do 5570 IFS=$as_save_IFS 5571 test -z "$as_dir" && as_dir=. 5572 for ac_exec_ext in '' $ac_executable_extensions; do 5573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5574 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5576 break 2 5577 fi 5578 done 5579 done 5580 IFS=$as_save_IFS 5581 5582 ;; 5583 esac 5584 fi 5585 CAT=$ac_cv_path_CAT 5586 if test -n "$CAT"; then 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5588 $as_echo "$CAT" >&6; } 5589 else 5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5591 $as_echo "no" >&6; } 5592 fi 5593 5594 5595 test -n "$CAT" && break 5596 done 5597 5598 else 5599 # The variable is set, but is it from the command line or the environment? 5600 5601 # Try to remove the string !CAT! from our list. 5602 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5603 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5604 # If it failed, the variable was not from the command line. Ignore it, 5605 # but warn the user (except for BASH, which is always set by the calling BASH). 5606 if test "xCAT" != xBASH; then 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5608 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5609 fi 5610 # Try to locate tool using the code snippet 5611 for ac_prog in cat 5612 do 5613 # Extract the first word of "$ac_prog", so it can be a program name with args. 5614 set dummy $ac_prog; ac_word=$2 5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5616 $as_echo_n "checking for $ac_word... " >&6; } 5617 if ${ac_cv_path_CAT+:} false; then : 5618 $as_echo_n "(cached) " >&6 5619 else 5620 case $CAT in 5621 [\\/]* | ?:[\\/]*) 5622 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5623 ;; 5624 *) 5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5626 for as_dir in $PATH 5627 do 5628 IFS=$as_save_IFS 5629 test -z "$as_dir" && as_dir=. 5630 for ac_exec_ext in '' $ac_executable_extensions; do 5631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5632 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5634 break 2 5635 fi 5636 done 5637 done 5638 IFS=$as_save_IFS 5639 5640 ;; 5641 esac 5642 fi 5643 CAT=$ac_cv_path_CAT 5644 if test -n "$CAT"; then 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5646 $as_echo "$CAT" >&6; } 5647 else 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5649 $as_echo "no" >&6; } 5650 fi 5651 5652 5653 test -n "$CAT" && break 5654 done 5655 5656 else 5657 # If it succeeded, then it was overridden by the user. We will use it 5658 # for the tool. 5659 5660 # First remove it from the list of overridden variables, so we can test 5661 # for unknown variables in the end. 5662 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5663 5664 # Check if we try to supply an empty value 5665 if test "x$CAT" = x; then 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5667 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5669 $as_echo_n "checking for CAT... " >&6; } 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5671 $as_echo "disabled" >&6; } 5672 else 5673 # Check if the provided tool contains a complete path. 5674 tool_specified="$CAT" 5675 tool_basename="${tool_specified##*/}" 5676 if test "x$tool_basename" = "x$tool_specified"; then 5677 # A command without a complete path is provided, search $PATH. 5678 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5679 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5680 # Extract the first word of "$tool_basename", so it can be a program name with args. 5681 set dummy $tool_basename; ac_word=$2 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5683 $as_echo_n "checking for $ac_word... " >&6; } 5684 if ${ac_cv_path_CAT+:} false; then : 5685 $as_echo_n "(cached) " >&6 5686 else 5687 case $CAT in 5688 [\\/]* | ?:[\\/]*) 5689 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5690 ;; 5691 *) 5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5693 for as_dir in $PATH 5694 do 5695 IFS=$as_save_IFS 5696 test -z "$as_dir" && as_dir=. 5697 for ac_exec_ext in '' $ac_executable_extensions; do 5698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5699 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5701 break 2 5702 fi 5703 done 5704 done 5705 IFS=$as_save_IFS 5706 5707 ;; 5708 esac 5709 fi 5710 CAT=$ac_cv_path_CAT 5711 if test -n "$CAT"; then 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5713 $as_echo "$CAT" >&6; } 5714 else 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5716 $as_echo "no" >&6; } 5717 fi 5718 5719 5720 if test "x$CAT" = x; then 5721 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5722 fi 5723 else 5724 # Otherwise we believe it is a complete path. Use it as it is. 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5726 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5728 $as_echo_n "checking for CAT... " >&6; } 5729 if test ! -x "$tool_specified"; then 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5731 $as_echo "not found" >&6; } 5732 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5733 fi 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5735 $as_echo "$tool_specified" >&6; } 5736 fi 5737 fi 5738 fi 5739 5740 fi 5741 5742 5743 5744 if test "x$CAT" = x; then 5745 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5746 fi 5747 5748 5749 5750 5751 5752 # Publish this variable in the help. 5753 5754 5755 if [ -z "${CHMOD+x}" ]; then 5756 # The variable is not set by user, try to locate tool using the code snippet 5757 for ac_prog in chmod 5758 do 5759 # Extract the first word of "$ac_prog", so it can be a program name with args. 5760 set dummy $ac_prog; ac_word=$2 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5762 $as_echo_n "checking for $ac_word... " >&6; } 5763 if ${ac_cv_path_CHMOD+:} false; then : 5764 $as_echo_n "(cached) " >&6 5765 else 5766 case $CHMOD in 5767 [\\/]* | ?:[\\/]*) 5768 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5769 ;; 5770 *) 5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5772 for as_dir in $PATH 5773 do 5774 IFS=$as_save_IFS 5775 test -z "$as_dir" && as_dir=. 5776 for ac_exec_ext in '' $ac_executable_extensions; do 5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5778 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5780 break 2 5781 fi 5782 done 5783 done 5784 IFS=$as_save_IFS 5785 5786 ;; 5787 esac 5788 fi 5789 CHMOD=$ac_cv_path_CHMOD 5790 if test -n "$CHMOD"; then 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5792 $as_echo "$CHMOD" >&6; } 5793 else 5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5795 $as_echo "no" >&6; } 5796 fi 5797 5798 5799 test -n "$CHMOD" && break 5800 done 5801 5802 else 5803 # The variable is set, but is it from the command line or the environment? 5804 5805 # Try to remove the string !CHMOD! from our list. 5806 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5807 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5808 # If it failed, the variable was not from the command line. Ignore it, 5809 # but warn the user (except for BASH, which is always set by the calling BASH). 5810 if test "xCHMOD" != xBASH; then 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5812 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5813 fi 5814 # Try to locate tool using the code snippet 5815 for ac_prog in chmod 5816 do 5817 # Extract the first word of "$ac_prog", so it can be a program name with args. 5818 set dummy $ac_prog; ac_word=$2 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5820 $as_echo_n "checking for $ac_word... " >&6; } 5821 if ${ac_cv_path_CHMOD+:} false; then : 5822 $as_echo_n "(cached) " >&6 5823 else 5824 case $CHMOD in 5825 [\\/]* | ?:[\\/]*) 5826 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5827 ;; 5828 *) 5829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5830 for as_dir in $PATH 5831 do 5832 IFS=$as_save_IFS 5833 test -z "$as_dir" && as_dir=. 5834 for ac_exec_ext in '' $ac_executable_extensions; do 5835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5836 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5838 break 2 5839 fi 5840 done 5841 done 5842 IFS=$as_save_IFS 5843 5844 ;; 5845 esac 5846 fi 5847 CHMOD=$ac_cv_path_CHMOD 5848 if test -n "$CHMOD"; then 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5850 $as_echo "$CHMOD" >&6; } 5851 else 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5853 $as_echo "no" >&6; } 5854 fi 5855 5856 5857 test -n "$CHMOD" && break 5858 done 5859 5860 else 5861 # If it succeeded, then it was overridden by the user. We will use it 5862 # for the tool. 5863 5864 # First remove it from the list of overridden variables, so we can test 5865 # for unknown variables in the end. 5866 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5867 5868 # Check if we try to supply an empty value 5869 if test "x$CHMOD" = x; then 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5871 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5873 $as_echo_n "checking for CHMOD... " >&6; } 5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5875 $as_echo "disabled" >&6; } 5876 else 5877 # Check if the provided tool contains a complete path. 5878 tool_specified="$CHMOD" 5879 tool_basename="${tool_specified##*/}" 5880 if test "x$tool_basename" = "x$tool_specified"; then 5881 # A command without a complete path is provided, search $PATH. 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5883 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5884 # Extract the first word of "$tool_basename", so it can be a program name with args. 5885 set dummy $tool_basename; ac_word=$2 5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5887 $as_echo_n "checking for $ac_word... " >&6; } 5888 if ${ac_cv_path_CHMOD+:} false; then : 5889 $as_echo_n "(cached) " >&6 5890 else 5891 case $CHMOD in 5892 [\\/]* | ?:[\\/]*) 5893 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5894 ;; 5895 *) 5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5897 for as_dir in $PATH 5898 do 5899 IFS=$as_save_IFS 5900 test -z "$as_dir" && as_dir=. 5901 for ac_exec_ext in '' $ac_executable_extensions; do 5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5903 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5905 break 2 5906 fi 5907 done 5908 done 5909 IFS=$as_save_IFS 5910 5911 ;; 5912 esac 5913 fi 5914 CHMOD=$ac_cv_path_CHMOD 5915 if test -n "$CHMOD"; then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5917 $as_echo "$CHMOD" >&6; } 5918 else 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920 $as_echo "no" >&6; } 5921 fi 5922 5923 5924 if test "x$CHMOD" = x; then 5925 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5926 fi 5927 else 5928 # Otherwise we believe it is a complete path. Use it as it is. 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5930 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5932 $as_echo_n "checking for CHMOD... " >&6; } 5933 if test ! -x "$tool_specified"; then 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5935 $as_echo "not found" >&6; } 5936 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5937 fi 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5939 $as_echo "$tool_specified" >&6; } 5940 fi 5941 fi 5942 fi 5943 5944 fi 5945 5946 5947 5948 if test "x$CHMOD" = x; then 5949 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5950 fi 5951 5952 5953 5954 5955 5956 # Publish this variable in the help. 5957 5958 5959 if [ -z "${CMP+x}" ]; then 5960 # The variable is not set by user, try to locate tool using the code snippet 5961 for ac_prog in cmp 5962 do 5963 # Extract the first word of "$ac_prog", so it can be a program name with args. 5964 set dummy $ac_prog; ac_word=$2 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5966 $as_echo_n "checking for $ac_word... " >&6; } 5967 if ${ac_cv_path_CMP+:} false; then : 5968 $as_echo_n "(cached) " >&6 5969 else 5970 case $CMP in 5971 [\\/]* | ?:[\\/]*) 5972 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5973 ;; 5974 *) 5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976 for as_dir in $PATH 5977 do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5982 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986 done 5987 done 5988 IFS=$as_save_IFS 5989 5990 ;; 5991 esac 5992 fi 5993 CMP=$ac_cv_path_CMP 5994 if test -n "$CMP"; then 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5996 $as_echo "$CMP" >&6; } 5997 else 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5999 $as_echo "no" >&6; } 6000 fi 6001 6002 6003 test -n "$CMP" && break 6004 done 6005 6006 else 6007 # The variable is set, but is it from the command line or the environment? 6008 6009 # Try to remove the string !CMP! from our list. 6010 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6011 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6012 # If it failed, the variable was not from the command line. Ignore it, 6013 # but warn the user (except for BASH, which is always set by the calling BASH). 6014 if test "xCMP" != xBASH; then 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6016 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6017 fi 6018 # Try to locate tool using the code snippet 6019 for ac_prog in cmp 6020 do 6021 # Extract the first word of "$ac_prog", so it can be a program name with args. 6022 set dummy $ac_prog; ac_word=$2 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6024 $as_echo_n "checking for $ac_word... " >&6; } 6025 if ${ac_cv_path_CMP+:} false; then : 6026 $as_echo_n "(cached) " >&6 6027 else 6028 case $CMP in 6029 [\\/]* | ?:[\\/]*) 6030 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6031 ;; 6032 *) 6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6034 for as_dir in $PATH 6035 do 6036 IFS=$as_save_IFS 6037 test -z "$as_dir" && as_dir=. 6038 for ac_exec_ext in '' $ac_executable_extensions; do 6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6040 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6042 break 2 6043 fi 6044 done 6045 done 6046 IFS=$as_save_IFS 6047 6048 ;; 6049 esac 6050 fi 6051 CMP=$ac_cv_path_CMP 6052 if test -n "$CMP"; then 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6054 $as_echo "$CMP" >&6; } 6055 else 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6057 $as_echo "no" >&6; } 6058 fi 6059 6060 6061 test -n "$CMP" && break 6062 done 6063 6064 else 6065 # If it succeeded, then it was overridden by the user. We will use it 6066 # for the tool. 6067 6068 # First remove it from the list of overridden variables, so we can test 6069 # for unknown variables in the end. 6070 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6071 6072 # Check if we try to supply an empty value 6073 if test "x$CMP" = x; then 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6075 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6077 $as_echo_n "checking for CMP... " >&6; } 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6079 $as_echo "disabled" >&6; } 6080 else 6081 # Check if the provided tool contains a complete path. 6082 tool_specified="$CMP" 6083 tool_basename="${tool_specified##*/}" 6084 if test "x$tool_basename" = "x$tool_specified"; then 6085 # A command without a complete path is provided, search $PATH. 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6087 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6088 # Extract the first word of "$tool_basename", so it can be a program name with args. 6089 set dummy $tool_basename; ac_word=$2 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6091 $as_echo_n "checking for $ac_word... " >&6; } 6092 if ${ac_cv_path_CMP+:} false; then : 6093 $as_echo_n "(cached) " >&6 6094 else 6095 case $CMP in 6096 [\\/]* | ?:[\\/]*) 6097 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6098 ;; 6099 *) 6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6101 for as_dir in $PATH 6102 do 6103 IFS=$as_save_IFS 6104 test -z "$as_dir" && as_dir=. 6105 for ac_exec_ext in '' $ac_executable_extensions; do 6106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6107 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6109 break 2 6110 fi 6111 done 6112 done 6113 IFS=$as_save_IFS 6114 6115 ;; 6116 esac 6117 fi 6118 CMP=$ac_cv_path_CMP 6119 if test -n "$CMP"; then 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6121 $as_echo "$CMP" >&6; } 6122 else 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6124 $as_echo "no" >&6; } 6125 fi 6126 6127 6128 if test "x$CMP" = x; then 6129 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6130 fi 6131 else 6132 # Otherwise we believe it is a complete path. Use it as it is. 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6134 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6136 $as_echo_n "checking for CMP... " >&6; } 6137 if test ! -x "$tool_specified"; then 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6139 $as_echo "not found" >&6; } 6140 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6141 fi 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6143 $as_echo "$tool_specified" >&6; } 6144 fi 6145 fi 6146 fi 6147 6148 fi 6149 6150 6151 6152 if test "x$CMP" = x; then 6153 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6154 fi 6155 6156 6157 6158 6159 6160 # Publish this variable in the help. 6161 6162 6163 if [ -z "${COMM+x}" ]; then 6164 # The variable is not set by user, try to locate tool using the code snippet 6165 for ac_prog in comm 6166 do 6167 # Extract the first word of "$ac_prog", so it can be a program name with args. 6168 set dummy $ac_prog; ac_word=$2 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6170 $as_echo_n "checking for $ac_word... " >&6; } 6171 if ${ac_cv_path_COMM+:} false; then : 6172 $as_echo_n "(cached) " >&6 6173 else 6174 case $COMM in 6175 [\\/]* | ?:[\\/]*) 6176 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6177 ;; 6178 *) 6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6180 for as_dir in $PATH 6181 do 6182 IFS=$as_save_IFS 6183 test -z "$as_dir" && as_dir=. 6184 for ac_exec_ext in '' $ac_executable_extensions; do 6185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6186 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6188 break 2 6189 fi 6190 done 6191 done 6192 IFS=$as_save_IFS 6193 6194 ;; 6195 esac 6196 fi 6197 COMM=$ac_cv_path_COMM 6198 if test -n "$COMM"; then 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6200 $as_echo "$COMM" >&6; } 6201 else 6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6203 $as_echo "no" >&6; } 6204 fi 6205 6206 6207 test -n "$COMM" && break 6208 done 6209 6210 else 6211 # The variable is set, but is it from the command line or the environment? 6212 6213 # Try to remove the string !COMM! from our list. 6214 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6215 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6216 # If it failed, the variable was not from the command line. Ignore it, 6217 # but warn the user (except for BASH, which is always set by the calling BASH). 6218 if test "xCOMM" != xBASH; then 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6220 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6221 fi 6222 # Try to locate tool using the code snippet 6223 for ac_prog in comm 6224 do 6225 # Extract the first word of "$ac_prog", so it can be a program name with args. 6226 set dummy $ac_prog; ac_word=$2 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6228 $as_echo_n "checking for $ac_word... " >&6; } 6229 if ${ac_cv_path_COMM+:} false; then : 6230 $as_echo_n "(cached) " >&6 6231 else 6232 case $COMM in 6233 [\\/]* | ?:[\\/]*) 6234 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6235 ;; 6236 *) 6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6238 for as_dir in $PATH 6239 do 6240 IFS=$as_save_IFS 6241 test -z "$as_dir" && as_dir=. 6242 for ac_exec_ext in '' $ac_executable_extensions; do 6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6244 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6246 break 2 6247 fi 6248 done 6249 done 6250 IFS=$as_save_IFS 6251 6252 ;; 6253 esac 6254 fi 6255 COMM=$ac_cv_path_COMM 6256 if test -n "$COMM"; then 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6258 $as_echo "$COMM" >&6; } 6259 else 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6261 $as_echo "no" >&6; } 6262 fi 6263 6264 6265 test -n "$COMM" && break 6266 done 6267 6268 else 6269 # If it succeeded, then it was overridden by the user. We will use it 6270 # for the tool. 6271 6272 # First remove it from the list of overridden variables, so we can test 6273 # for unknown variables in the end. 6274 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6275 6276 # Check if we try to supply an empty value 6277 if test "x$COMM" = x; then 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6279 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6281 $as_echo_n "checking for COMM... " >&6; } 6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6283 $as_echo "disabled" >&6; } 6284 else 6285 # Check if the provided tool contains a complete path. 6286 tool_specified="$COMM" 6287 tool_basename="${tool_specified##*/}" 6288 if test "x$tool_basename" = "x$tool_specified"; then 6289 # A command without a complete path is provided, search $PATH. 6290 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6291 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6292 # Extract the first word of "$tool_basename", so it can be a program name with args. 6293 set dummy $tool_basename; ac_word=$2 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6295 $as_echo_n "checking for $ac_word... " >&6; } 6296 if ${ac_cv_path_COMM+:} false; then : 6297 $as_echo_n "(cached) " >&6 6298 else 6299 case $COMM in 6300 [\\/]* | ?:[\\/]*) 6301 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6302 ;; 6303 *) 6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6305 for as_dir in $PATH 6306 do 6307 IFS=$as_save_IFS 6308 test -z "$as_dir" && as_dir=. 6309 for ac_exec_ext in '' $ac_executable_extensions; do 6310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6311 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6313 break 2 6314 fi 6315 done 6316 done 6317 IFS=$as_save_IFS 6318 6319 ;; 6320 esac 6321 fi 6322 COMM=$ac_cv_path_COMM 6323 if test -n "$COMM"; then 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6325 $as_echo "$COMM" >&6; } 6326 else 6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6328 $as_echo "no" >&6; } 6329 fi 6330 6331 6332 if test "x$COMM" = x; then 6333 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6334 fi 6335 else 6336 # Otherwise we believe it is a complete path. Use it as it is. 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6338 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6340 $as_echo_n "checking for COMM... " >&6; } 6341 if test ! -x "$tool_specified"; then 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6343 $as_echo "not found" >&6; } 6344 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6345 fi 6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6347 $as_echo "$tool_specified" >&6; } 6348 fi 6349 fi 6350 fi 6351 6352 fi 6353 6354 6355 6356 if test "x$COMM" = x; then 6357 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6358 fi 6359 6360 6361 6362 6363 6364 # Publish this variable in the help. 6365 6366 6367 if [ -z "${CP+x}" ]; then 6368 # The variable is not set by user, try to locate tool using the code snippet 6369 for ac_prog in cp 6370 do 6371 # Extract the first word of "$ac_prog", so it can be a program name with args. 6372 set dummy $ac_prog; ac_word=$2 6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6374 $as_echo_n "checking for $ac_word... " >&6; } 6375 if ${ac_cv_path_CP+:} false; then : 6376 $as_echo_n "(cached) " >&6 6377 else 6378 case $CP in 6379 [\\/]* | ?:[\\/]*) 6380 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6381 ;; 6382 *) 6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6384 for as_dir in $PATH 6385 do 6386 IFS=$as_save_IFS 6387 test -z "$as_dir" && as_dir=. 6388 for ac_exec_ext in '' $ac_executable_extensions; do 6389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6390 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6392 break 2 6393 fi 6394 done 6395 done 6396 IFS=$as_save_IFS 6397 6398 ;; 6399 esac 6400 fi 6401 CP=$ac_cv_path_CP 6402 if test -n "$CP"; then 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6404 $as_echo "$CP" >&6; } 6405 else 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6407 $as_echo "no" >&6; } 6408 fi 6409 6410 6411 test -n "$CP" && break 6412 done 6413 6414 else 6415 # The variable is set, but is it from the command line or the environment? 6416 6417 # Try to remove the string !CP! from our list. 6418 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6419 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6420 # If it failed, the variable was not from the command line. Ignore it, 6421 # but warn the user (except for BASH, which is always set by the calling BASH). 6422 if test "xCP" != xBASH; then 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6424 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6425 fi 6426 # Try to locate tool using the code snippet 6427 for ac_prog in cp 6428 do 6429 # Extract the first word of "$ac_prog", so it can be a program name with args. 6430 set dummy $ac_prog; ac_word=$2 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6432 $as_echo_n "checking for $ac_word... " >&6; } 6433 if ${ac_cv_path_CP+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435 else 6436 case $CP in 6437 [\\/]* | ?:[\\/]*) 6438 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6439 ;; 6440 *) 6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6442 for as_dir in $PATH 6443 do 6444 IFS=$as_save_IFS 6445 test -z "$as_dir" && as_dir=. 6446 for ac_exec_ext in '' $ac_executable_extensions; do 6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6448 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6450 break 2 6451 fi 6452 done 6453 done 6454 IFS=$as_save_IFS 6455 6456 ;; 6457 esac 6458 fi 6459 CP=$ac_cv_path_CP 6460 if test -n "$CP"; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6462 $as_echo "$CP" >&6; } 6463 else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6465 $as_echo "no" >&6; } 6466 fi 6467 6468 6469 test -n "$CP" && break 6470 done 6471 6472 else 6473 # If it succeeded, then it was overridden by the user. We will use it 6474 # for the tool. 6475 6476 # First remove it from the list of overridden variables, so we can test 6477 # for unknown variables in the end. 6478 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6479 6480 # Check if we try to supply an empty value 6481 if test "x$CP" = x; then 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6483 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6485 $as_echo_n "checking for CP... " >&6; } 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6487 $as_echo "disabled" >&6; } 6488 else 6489 # Check if the provided tool contains a complete path. 6490 tool_specified="$CP" 6491 tool_basename="${tool_specified##*/}" 6492 if test "x$tool_basename" = "x$tool_specified"; then 6493 # A command without a complete path is provided, search $PATH. 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6495 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6496 # Extract the first word of "$tool_basename", so it can be a program name with args. 6497 set dummy $tool_basename; ac_word=$2 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6499 $as_echo_n "checking for $ac_word... " >&6; } 6500 if ${ac_cv_path_CP+:} false; then : 6501 $as_echo_n "(cached) " >&6 6502 else 6503 case $CP in 6504 [\\/]* | ?:[\\/]*) 6505 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6506 ;; 6507 *) 6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6509 for as_dir in $PATH 6510 do 6511 IFS=$as_save_IFS 6512 test -z "$as_dir" && as_dir=. 6513 for ac_exec_ext in '' $ac_executable_extensions; do 6514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6515 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6517 break 2 6518 fi 6519 done 6520 done 6521 IFS=$as_save_IFS 6522 6523 ;; 6524 esac 6525 fi 6526 CP=$ac_cv_path_CP 6527 if test -n "$CP"; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6529 $as_echo "$CP" >&6; } 6530 else 6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6532 $as_echo "no" >&6; } 6533 fi 6534 6535 6536 if test "x$CP" = x; then 6537 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6538 fi 6539 else 6540 # Otherwise we believe it is a complete path. Use it as it is. 6541 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6542 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6544 $as_echo_n "checking for CP... " >&6; } 6545 if test ! -x "$tool_specified"; then 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6547 $as_echo "not found" >&6; } 6548 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6549 fi 6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6551 $as_echo "$tool_specified" >&6; } 6552 fi 6553 fi 6554 fi 6555 6556 fi 6557 6558 6559 6560 if test "x$CP" = x; then 6561 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6562 fi 6563 6564 6565 6566 6567 6568 # Publish this variable in the help. 6569 6570 6571 if [ -z "${CUT+x}" ]; then 6572 # The variable is not set by user, try to locate tool using the code snippet 6573 for ac_prog in cut 6574 do 6575 # Extract the first word of "$ac_prog", so it can be a program name with args. 6576 set dummy $ac_prog; ac_word=$2 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6578 $as_echo_n "checking for $ac_word... " >&6; } 6579 if ${ac_cv_path_CUT+:} false; then : 6580 $as_echo_n "(cached) " >&6 6581 else 6582 case $CUT in 6583 [\\/]* | ?:[\\/]*) 6584 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6585 ;; 6586 *) 6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6588 for as_dir in $PATH 6589 do 6590 IFS=$as_save_IFS 6591 test -z "$as_dir" && as_dir=. 6592 for ac_exec_ext in '' $ac_executable_extensions; do 6593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6594 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6596 break 2 6597 fi 6598 done 6599 done 6600 IFS=$as_save_IFS 6601 6602 ;; 6603 esac 6604 fi 6605 CUT=$ac_cv_path_CUT 6606 if test -n "$CUT"; then 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6608 $as_echo "$CUT" >&6; } 6609 else 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6611 $as_echo "no" >&6; } 6612 fi 6613 6614 6615 test -n "$CUT" && break 6616 done 6617 6618 else 6619 # The variable is set, but is it from the command line or the environment? 6620 6621 # Try to remove the string !CUT! from our list. 6622 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6623 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6624 # If it failed, the variable was not from the command line. Ignore it, 6625 # but warn the user (except for BASH, which is always set by the calling BASH). 6626 if test "xCUT" != xBASH; then 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6628 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6629 fi 6630 # Try to locate tool using the code snippet 6631 for ac_prog in cut 6632 do 6633 # Extract the first word of "$ac_prog", so it can be a program name with args. 6634 set dummy $ac_prog; ac_word=$2 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6636 $as_echo_n "checking for $ac_word... " >&6; } 6637 if ${ac_cv_path_CUT+:} false; then : 6638 $as_echo_n "(cached) " >&6 6639 else 6640 case $CUT in 6641 [\\/]* | ?:[\\/]*) 6642 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6643 ;; 6644 *) 6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6646 for as_dir in $PATH 6647 do 6648 IFS=$as_save_IFS 6649 test -z "$as_dir" && as_dir=. 6650 for ac_exec_ext in '' $ac_executable_extensions; do 6651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6652 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6654 break 2 6655 fi 6656 done 6657 done 6658 IFS=$as_save_IFS 6659 6660 ;; 6661 esac 6662 fi 6663 CUT=$ac_cv_path_CUT 6664 if test -n "$CUT"; then 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6666 $as_echo "$CUT" >&6; } 6667 else 6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6669 $as_echo "no" >&6; } 6670 fi 6671 6672 6673 test -n "$CUT" && break 6674 done 6675 6676 else 6677 # If it succeeded, then it was overridden by the user. We will use it 6678 # for the tool. 6679 6680 # First remove it from the list of overridden variables, so we can test 6681 # for unknown variables in the end. 6682 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6683 6684 # Check if we try to supply an empty value 6685 if test "x$CUT" = x; then 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6687 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6689 $as_echo_n "checking for CUT... " >&6; } 6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6691 $as_echo "disabled" >&6; } 6692 else 6693 # Check if the provided tool contains a complete path. 6694 tool_specified="$CUT" 6695 tool_basename="${tool_specified##*/}" 6696 if test "x$tool_basename" = "x$tool_specified"; then 6697 # A command without a complete path is provided, search $PATH. 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6699 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6700 # Extract the first word of "$tool_basename", so it can be a program name with args. 6701 set dummy $tool_basename; ac_word=$2 6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6703 $as_echo_n "checking for $ac_word... " >&6; } 6704 if ${ac_cv_path_CUT+:} false; then : 6705 $as_echo_n "(cached) " >&6 6706 else 6707 case $CUT in 6708 [\\/]* | ?:[\\/]*) 6709 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6710 ;; 6711 *) 6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6713 for as_dir in $PATH 6714 do 6715 IFS=$as_save_IFS 6716 test -z "$as_dir" && as_dir=. 6717 for ac_exec_ext in '' $ac_executable_extensions; do 6718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6719 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6721 break 2 6722 fi 6723 done 6724 done 6725 IFS=$as_save_IFS 6726 6727 ;; 6728 esac 6729 fi 6730 CUT=$ac_cv_path_CUT 6731 if test -n "$CUT"; then 6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6733 $as_echo "$CUT" >&6; } 6734 else 6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6736 $as_echo "no" >&6; } 6737 fi 6738 6739 6740 if test "x$CUT" = x; then 6741 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6742 fi 6743 else 6744 # Otherwise we believe it is a complete path. Use it as it is. 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6746 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6748 $as_echo_n "checking for CUT... " >&6; } 6749 if test ! -x "$tool_specified"; then 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6751 $as_echo "not found" >&6; } 6752 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6753 fi 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6755 $as_echo "$tool_specified" >&6; } 6756 fi 6757 fi 6758 fi 6759 6760 fi 6761 6762 6763 6764 if test "x$CUT" = x; then 6765 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6766 fi 6767 6768 6769 6770 6771 6772 # Publish this variable in the help. 6773 6774 6775 if [ -z "${DATE+x}" ]; then 6776 # The variable is not set by user, try to locate tool using the code snippet 6777 for ac_prog in date 6778 do 6779 # Extract the first word of "$ac_prog", so it can be a program name with args. 6780 set dummy $ac_prog; ac_word=$2 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6782 $as_echo_n "checking for $ac_word... " >&6; } 6783 if ${ac_cv_path_DATE+:} false; then : 6784 $as_echo_n "(cached) " >&6 6785 else 6786 case $DATE in 6787 [\\/]* | ?:[\\/]*) 6788 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6789 ;; 6790 *) 6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6792 for as_dir in $PATH 6793 do 6794 IFS=$as_save_IFS 6795 test -z "$as_dir" && as_dir=. 6796 for ac_exec_ext in '' $ac_executable_extensions; do 6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6798 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6800 break 2 6801 fi 6802 done 6803 done 6804 IFS=$as_save_IFS 6805 6806 ;; 6807 esac 6808 fi 6809 DATE=$ac_cv_path_DATE 6810 if test -n "$DATE"; then 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6812 $as_echo "$DATE" >&6; } 6813 else 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6815 $as_echo "no" >&6; } 6816 fi 6817 6818 6819 test -n "$DATE" && break 6820 done 6821 6822 else 6823 # The variable is set, but is it from the command line or the environment? 6824 6825 # Try to remove the string !DATE! from our list. 6826 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6827 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6828 # If it failed, the variable was not from the command line. Ignore it, 6829 # but warn the user (except for BASH, which is always set by the calling BASH). 6830 if test "xDATE" != xBASH; then 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6832 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6833 fi 6834 # Try to locate tool using the code snippet 6835 for ac_prog in date 6836 do 6837 # Extract the first word of "$ac_prog", so it can be a program name with args. 6838 set dummy $ac_prog; ac_word=$2 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6840 $as_echo_n "checking for $ac_word... " >&6; } 6841 if ${ac_cv_path_DATE+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843 else 6844 case $DATE in 6845 [\\/]* | ?:[\\/]*) 6846 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6847 ;; 6848 *) 6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6850 for as_dir in $PATH 6851 do 6852 IFS=$as_save_IFS 6853 test -z "$as_dir" && as_dir=. 6854 for ac_exec_ext in '' $ac_executable_extensions; do 6855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6856 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6858 break 2 6859 fi 6860 done 6861 done 6862 IFS=$as_save_IFS 6863 6864 ;; 6865 esac 6866 fi 6867 DATE=$ac_cv_path_DATE 6868 if test -n "$DATE"; then 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6870 $as_echo "$DATE" >&6; } 6871 else 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6873 $as_echo "no" >&6; } 6874 fi 6875 6876 6877 test -n "$DATE" && break 6878 done 6879 6880 else 6881 # If it succeeded, then it was overridden by the user. We will use it 6882 # for the tool. 6883 6884 # First remove it from the list of overridden variables, so we can test 6885 # for unknown variables in the end. 6886 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6887 6888 # Check if we try to supply an empty value 6889 if test "x$DATE" = x; then 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6891 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6893 $as_echo_n "checking for DATE... " >&6; } 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6895 $as_echo "disabled" >&6; } 6896 else 6897 # Check if the provided tool contains a complete path. 6898 tool_specified="$DATE" 6899 tool_basename="${tool_specified##*/}" 6900 if test "x$tool_basename" = "x$tool_specified"; then 6901 # A command without a complete path is provided, search $PATH. 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6903 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6904 # Extract the first word of "$tool_basename", so it can be a program name with args. 6905 set dummy $tool_basename; ac_word=$2 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6907 $as_echo_n "checking for $ac_word... " >&6; } 6908 if ${ac_cv_path_DATE+:} false; then : 6909 $as_echo_n "(cached) " >&6 6910 else 6911 case $DATE in 6912 [\\/]* | ?:[\\/]*) 6913 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6914 ;; 6915 *) 6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6917 for as_dir in $PATH 6918 do 6919 IFS=$as_save_IFS 6920 test -z "$as_dir" && as_dir=. 6921 for ac_exec_ext in '' $ac_executable_extensions; do 6922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6923 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6925 break 2 6926 fi 6927 done 6928 done 6929 IFS=$as_save_IFS 6930 6931 ;; 6932 esac 6933 fi 6934 DATE=$ac_cv_path_DATE 6935 if test -n "$DATE"; then 6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6937 $as_echo "$DATE" >&6; } 6938 else 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6940 $as_echo "no" >&6; } 6941 fi 6942 6943 6944 if test "x$DATE" = x; then 6945 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6946 fi 6947 else 6948 # Otherwise we believe it is a complete path. Use it as it is. 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6950 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6952 $as_echo_n "checking for DATE... " >&6; } 6953 if test ! -x "$tool_specified"; then 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6955 $as_echo "not found" >&6; } 6956 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6957 fi 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6959 $as_echo "$tool_specified" >&6; } 6960 fi 6961 fi 6962 fi 6963 6964 fi 6965 6966 6967 6968 if test "x$DATE" = x; then 6969 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6970 fi 6971 6972 6973 6974 6975 6976 # Publish this variable in the help. 6977 6978 6979 if [ -z "${DIFF+x}" ]; then 6980 # The variable is not set by user, try to locate tool using the code snippet 6981 for ac_prog in gdiff diff 6982 do 6983 # Extract the first word of "$ac_prog", so it can be a program name with args. 6984 set dummy $ac_prog; ac_word=$2 6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6986 $as_echo_n "checking for $ac_word... " >&6; } 6987 if ${ac_cv_path_DIFF+:} false; then : 6988 $as_echo_n "(cached) " >&6 6989 else 6990 case $DIFF in 6991 [\\/]* | ?:[\\/]*) 6992 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6993 ;; 6994 *) 6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6996 for as_dir in $PATH 6997 do 6998 IFS=$as_save_IFS 6999 test -z "$as_dir" && as_dir=. 7000 for ac_exec_ext in '' $ac_executable_extensions; do 7001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7002 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7004 break 2 7005 fi 7006 done 7007 done 7008 IFS=$as_save_IFS 7009 7010 ;; 7011 esac 7012 fi 7013 DIFF=$ac_cv_path_DIFF 7014 if test -n "$DIFF"; then 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7016 $as_echo "$DIFF" >&6; } 7017 else 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7019 $as_echo "no" >&6; } 7020 fi 7021 7022 7023 test -n "$DIFF" && break 7024 done 7025 7026 else 7027 # The variable is set, but is it from the command line or the environment? 7028 7029 # Try to remove the string !DIFF! from our list. 7030 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7031 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7032 # If it failed, the variable was not from the command line. Ignore it, 7033 # but warn the user (except for BASH, which is always set by the calling BASH). 7034 if test "xDIFF" != xBASH; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7036 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7037 fi 7038 # Try to locate tool using the code snippet 7039 for ac_prog in gdiff diff 7040 do 7041 # Extract the first word of "$ac_prog", so it can be a program name with args. 7042 set dummy $ac_prog; ac_word=$2 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7044 $as_echo_n "checking for $ac_word... " >&6; } 7045 if ${ac_cv_path_DIFF+:} false; then : 7046 $as_echo_n "(cached) " >&6 7047 else 7048 case $DIFF in 7049 [\\/]* | ?:[\\/]*) 7050 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7051 ;; 7052 *) 7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7054 for as_dir in $PATH 7055 do 7056 IFS=$as_save_IFS 7057 test -z "$as_dir" && as_dir=. 7058 for ac_exec_ext in '' $ac_executable_extensions; do 7059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7060 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7062 break 2 7063 fi 7064 done 7065 done 7066 IFS=$as_save_IFS 7067 7068 ;; 7069 esac 7070 fi 7071 DIFF=$ac_cv_path_DIFF 7072 if test -n "$DIFF"; then 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7074 $as_echo "$DIFF" >&6; } 7075 else 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7077 $as_echo "no" >&6; } 7078 fi 7079 7080 7081 test -n "$DIFF" && break 7082 done 7083 7084 else 7085 # If it succeeded, then it was overridden by the user. We will use it 7086 # for the tool. 7087 7088 # First remove it from the list of overridden variables, so we can test 7089 # for unknown variables in the end. 7090 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7091 7092 # Check if we try to supply an empty value 7093 if test "x$DIFF" = x; then 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7095 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7097 $as_echo_n "checking for DIFF... " >&6; } 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7099 $as_echo "disabled" >&6; } 7100 else 7101 # Check if the provided tool contains a complete path. 7102 tool_specified="$DIFF" 7103 tool_basename="${tool_specified##*/}" 7104 if test "x$tool_basename" = "x$tool_specified"; then 7105 # A command without a complete path is provided, search $PATH. 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7107 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7108 # Extract the first word of "$tool_basename", so it can be a program name with args. 7109 set dummy $tool_basename; ac_word=$2 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7111 $as_echo_n "checking for $ac_word... " >&6; } 7112 if ${ac_cv_path_DIFF+:} false; then : 7113 $as_echo_n "(cached) " >&6 7114 else 7115 case $DIFF in 7116 [\\/]* | ?:[\\/]*) 7117 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7118 ;; 7119 *) 7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7121 for as_dir in $PATH 7122 do 7123 IFS=$as_save_IFS 7124 test -z "$as_dir" && as_dir=. 7125 for ac_exec_ext in '' $ac_executable_extensions; do 7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7127 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7129 break 2 7130 fi 7131 done 7132 done 7133 IFS=$as_save_IFS 7134 7135 ;; 7136 esac 7137 fi 7138 DIFF=$ac_cv_path_DIFF 7139 if test -n "$DIFF"; then 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7141 $as_echo "$DIFF" >&6; } 7142 else 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7144 $as_echo "no" >&6; } 7145 fi 7146 7147 7148 if test "x$DIFF" = x; then 7149 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7150 fi 7151 else 7152 # Otherwise we believe it is a complete path. Use it as it is. 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7154 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7156 $as_echo_n "checking for DIFF... " >&6; } 7157 if test ! -x "$tool_specified"; then 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7159 $as_echo "not found" >&6; } 7160 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7161 fi 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7163 $as_echo "$tool_specified" >&6; } 7164 fi 7165 fi 7166 fi 7167 7168 fi 7169 7170 7171 7172 if test "x$DIFF" = x; then 7173 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7174 fi 7175 7176 7177 7178 7179 7180 # Publish this variable in the help. 7181 7182 7183 if [ -z "${DIRNAME+x}" ]; then 7184 # The variable is not set by user, try to locate tool using the code snippet 7185 for ac_prog in dirname 7186 do 7187 # Extract the first word of "$ac_prog", so it can be a program name with args. 7188 set dummy $ac_prog; ac_word=$2 7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7190 $as_echo_n "checking for $ac_word... " >&6; } 7191 if ${ac_cv_path_DIRNAME+:} false; then : 7192 $as_echo_n "(cached) " >&6 7193 else 7194 case $DIRNAME in 7195 [\\/]* | ?:[\\/]*) 7196 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7197 ;; 7198 *) 7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7200 for as_dir in $PATH 7201 do 7202 IFS=$as_save_IFS 7203 test -z "$as_dir" && as_dir=. 7204 for ac_exec_ext in '' $ac_executable_extensions; do 7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7206 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7208 break 2 7209 fi 7210 done 7211 done 7212 IFS=$as_save_IFS 7213 7214 ;; 7215 esac 7216 fi 7217 DIRNAME=$ac_cv_path_DIRNAME 7218 if test -n "$DIRNAME"; then 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7220 $as_echo "$DIRNAME" >&6; } 7221 else 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7223 $as_echo "no" >&6; } 7224 fi 7225 7226 7227 test -n "$DIRNAME" && break 7228 done 7229 7230 else 7231 # The variable is set, but is it from the command line or the environment? 7232 7233 # Try to remove the string !DIRNAME! from our list. 7234 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7235 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7236 # If it failed, the variable was not from the command line. Ignore it, 7237 # but warn the user (except for BASH, which is always set by the calling BASH). 7238 if test "xDIRNAME" != xBASH; then 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7240 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7241 fi 7242 # Try to locate tool using the code snippet 7243 for ac_prog in dirname 7244 do 7245 # Extract the first word of "$ac_prog", so it can be a program name with args. 7246 set dummy $ac_prog; ac_word=$2 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7248 $as_echo_n "checking for $ac_word... " >&6; } 7249 if ${ac_cv_path_DIRNAME+:} false; then : 7250 $as_echo_n "(cached) " >&6 7251 else 7252 case $DIRNAME in 7253 [\\/]* | ?:[\\/]*) 7254 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7255 ;; 7256 *) 7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7258 for as_dir in $PATH 7259 do 7260 IFS=$as_save_IFS 7261 test -z "$as_dir" && as_dir=. 7262 for ac_exec_ext in '' $ac_executable_extensions; do 7263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7264 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7266 break 2 7267 fi 7268 done 7269 done 7270 IFS=$as_save_IFS 7271 7272 ;; 7273 esac 7274 fi 7275 DIRNAME=$ac_cv_path_DIRNAME 7276 if test -n "$DIRNAME"; then 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7278 $as_echo "$DIRNAME" >&6; } 7279 else 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7281 $as_echo "no" >&6; } 7282 fi 7283 7284 7285 test -n "$DIRNAME" && break 7286 done 7287 7288 else 7289 # If it succeeded, then it was overridden by the user. We will use it 7290 # for the tool. 7291 7292 # First remove it from the list of overridden variables, so we can test 7293 # for unknown variables in the end. 7294 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7295 7296 # Check if we try to supply an empty value 7297 if test "x$DIRNAME" = x; then 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7299 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7301 $as_echo_n "checking for DIRNAME... " >&6; } 7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7303 $as_echo "disabled" >&6; } 7304 else 7305 # Check if the provided tool contains a complete path. 7306 tool_specified="$DIRNAME" 7307 tool_basename="${tool_specified##*/}" 7308 if test "x$tool_basename" = "x$tool_specified"; then 7309 # A command without a complete path is provided, search $PATH. 7310 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7311 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7312 # Extract the first word of "$tool_basename", so it can be a program name with args. 7313 set dummy $tool_basename; ac_word=$2 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7315 $as_echo_n "checking for $ac_word... " >&6; } 7316 if ${ac_cv_path_DIRNAME+:} false; then : 7317 $as_echo_n "(cached) " >&6 7318 else 7319 case $DIRNAME in 7320 [\\/]* | ?:[\\/]*) 7321 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7322 ;; 7323 *) 7324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7325 for as_dir in $PATH 7326 do 7327 IFS=$as_save_IFS 7328 test -z "$as_dir" && as_dir=. 7329 for ac_exec_ext in '' $ac_executable_extensions; do 7330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7331 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7333 break 2 7334 fi 7335 done 7336 done 7337 IFS=$as_save_IFS 7338 7339 ;; 7340 esac 7341 fi 7342 DIRNAME=$ac_cv_path_DIRNAME 7343 if test -n "$DIRNAME"; then 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7345 $as_echo "$DIRNAME" >&6; } 7346 else 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7348 $as_echo "no" >&6; } 7349 fi 7350 7351 7352 if test "x$DIRNAME" = x; then 7353 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7354 fi 7355 else 7356 # Otherwise we believe it is a complete path. Use it as it is. 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7358 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7360 $as_echo_n "checking for DIRNAME... " >&6; } 7361 if test ! -x "$tool_specified"; then 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7363 $as_echo "not found" >&6; } 7364 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7365 fi 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7367 $as_echo "$tool_specified" >&6; } 7368 fi 7369 fi 7370 fi 7371 7372 fi 7373 7374 7375 7376 if test "x$DIRNAME" = x; then 7377 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7378 fi 7379 7380 7381 7382 7383 7384 # Publish this variable in the help. 7385 7386 7387 if [ -z "${ECHO+x}" ]; then 7388 # The variable is not set by user, try to locate tool using the code snippet 7389 for ac_prog in echo 7390 do 7391 # Extract the first word of "$ac_prog", so it can be a program name with args. 7392 set dummy $ac_prog; ac_word=$2 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7394 $as_echo_n "checking for $ac_word... " >&6; } 7395 if ${ac_cv_path_ECHO+:} false; then : 7396 $as_echo_n "(cached) " >&6 7397 else 7398 case $ECHO in 7399 [\\/]* | ?:[\\/]*) 7400 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7401 ;; 7402 *) 7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7404 for as_dir in $PATH 7405 do 7406 IFS=$as_save_IFS 7407 test -z "$as_dir" && as_dir=. 7408 for ac_exec_ext in '' $ac_executable_extensions; do 7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7410 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7412 break 2 7413 fi 7414 done 7415 done 7416 IFS=$as_save_IFS 7417 7418 ;; 7419 esac 7420 fi 7421 ECHO=$ac_cv_path_ECHO 7422 if test -n "$ECHO"; then 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7424 $as_echo "$ECHO" >&6; } 7425 else 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7427 $as_echo "no" >&6; } 7428 fi 7429 7430 7431 test -n "$ECHO" && break 7432 done 7433 7434 else 7435 # The variable is set, but is it from the command line or the environment? 7436 7437 # Try to remove the string !ECHO! from our list. 7438 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7439 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7440 # If it failed, the variable was not from the command line. Ignore it, 7441 # but warn the user (except for BASH, which is always set by the calling BASH). 7442 if test "xECHO" != xBASH; then 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7444 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7445 fi 7446 # Try to locate tool using the code snippet 7447 for ac_prog in echo 7448 do 7449 # Extract the first word of "$ac_prog", so it can be a program name with args. 7450 set dummy $ac_prog; ac_word=$2 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7452 $as_echo_n "checking for $ac_word... " >&6; } 7453 if ${ac_cv_path_ECHO+:} false; then : 7454 $as_echo_n "(cached) " >&6 7455 else 7456 case $ECHO in 7457 [\\/]* | ?:[\\/]*) 7458 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7459 ;; 7460 *) 7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7462 for as_dir in $PATH 7463 do 7464 IFS=$as_save_IFS 7465 test -z "$as_dir" && as_dir=. 7466 for ac_exec_ext in '' $ac_executable_extensions; do 7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7468 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7470 break 2 7471 fi 7472 done 7473 done 7474 IFS=$as_save_IFS 7475 7476 ;; 7477 esac 7478 fi 7479 ECHO=$ac_cv_path_ECHO 7480 if test -n "$ECHO"; then 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7482 $as_echo "$ECHO" >&6; } 7483 else 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7485 $as_echo "no" >&6; } 7486 fi 7487 7488 7489 test -n "$ECHO" && break 7490 done 7491 7492 else 7493 # If it succeeded, then it was overridden by the user. We will use it 7494 # for the tool. 7495 7496 # First remove it from the list of overridden variables, so we can test 7497 # for unknown variables in the end. 7498 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7499 7500 # Check if we try to supply an empty value 7501 if test "x$ECHO" = x; then 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7503 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7505 $as_echo_n "checking for ECHO... " >&6; } 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7507 $as_echo "disabled" >&6; } 7508 else 7509 # Check if the provided tool contains a complete path. 7510 tool_specified="$ECHO" 7511 tool_basename="${tool_specified##*/}" 7512 if test "x$tool_basename" = "x$tool_specified"; then 7513 # A command without a complete path is provided, search $PATH. 7514 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7515 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7516 # Extract the first word of "$tool_basename", so it can be a program name with args. 7517 set dummy $tool_basename; ac_word=$2 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7519 $as_echo_n "checking for $ac_word... " >&6; } 7520 if ${ac_cv_path_ECHO+:} false; then : 7521 $as_echo_n "(cached) " >&6 7522 else 7523 case $ECHO in 7524 [\\/]* | ?:[\\/]*) 7525 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7526 ;; 7527 *) 7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7529 for as_dir in $PATH 7530 do 7531 IFS=$as_save_IFS 7532 test -z "$as_dir" && as_dir=. 7533 for ac_exec_ext in '' $ac_executable_extensions; do 7534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7535 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7537 break 2 7538 fi 7539 done 7540 done 7541 IFS=$as_save_IFS 7542 7543 ;; 7544 esac 7545 fi 7546 ECHO=$ac_cv_path_ECHO 7547 if test -n "$ECHO"; then 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7549 $as_echo "$ECHO" >&6; } 7550 else 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7552 $as_echo "no" >&6; } 7553 fi 7554 7555 7556 if test "x$ECHO" = x; then 7557 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7558 fi 7559 else 7560 # Otherwise we believe it is a complete path. Use it as it is. 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7562 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7564 $as_echo_n "checking for ECHO... " >&6; } 7565 if test ! -x "$tool_specified"; then 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7567 $as_echo "not found" >&6; } 7568 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7569 fi 7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7571 $as_echo "$tool_specified" >&6; } 7572 fi 7573 fi 7574 fi 7575 7576 fi 7577 7578 7579 7580 if test "x$ECHO" = x; then 7581 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7582 fi 7583 7584 7585 7586 7587 7588 # Publish this variable in the help. 7589 7590 7591 if [ -z "${EXPR+x}" ]; then 7592 # The variable is not set by user, try to locate tool using the code snippet 7593 for ac_prog in expr 7594 do 7595 # Extract the first word of "$ac_prog", so it can be a program name with args. 7596 set dummy $ac_prog; ac_word=$2 7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7598 $as_echo_n "checking for $ac_word... " >&6; } 7599 if ${ac_cv_path_EXPR+:} false; then : 7600 $as_echo_n "(cached) " >&6 7601 else 7602 case $EXPR in 7603 [\\/]* | ?:[\\/]*) 7604 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7605 ;; 7606 *) 7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7608 for as_dir in $PATH 7609 do 7610 IFS=$as_save_IFS 7611 test -z "$as_dir" && as_dir=. 7612 for ac_exec_ext in '' $ac_executable_extensions; do 7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7614 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7616 break 2 7617 fi 7618 done 7619 done 7620 IFS=$as_save_IFS 7621 7622 ;; 7623 esac 7624 fi 7625 EXPR=$ac_cv_path_EXPR 7626 if test -n "$EXPR"; then 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7628 $as_echo "$EXPR" >&6; } 7629 else 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7631 $as_echo "no" >&6; } 7632 fi 7633 7634 7635 test -n "$EXPR" && break 7636 done 7637 7638 else 7639 # The variable is set, but is it from the command line or the environment? 7640 7641 # Try to remove the string !EXPR! from our list. 7642 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7643 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7644 # If it failed, the variable was not from the command line. Ignore it, 7645 # but warn the user (except for BASH, which is always set by the calling BASH). 7646 if test "xEXPR" != xBASH; then 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7648 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7649 fi 7650 # Try to locate tool using the code snippet 7651 for ac_prog in expr 7652 do 7653 # Extract the first word of "$ac_prog", so it can be a program name with args. 7654 set dummy $ac_prog; ac_word=$2 7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7656 $as_echo_n "checking for $ac_word... " >&6; } 7657 if ${ac_cv_path_EXPR+:} false; then : 7658 $as_echo_n "(cached) " >&6 7659 else 7660 case $EXPR in 7661 [\\/]* | ?:[\\/]*) 7662 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7663 ;; 7664 *) 7665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7666 for as_dir in $PATH 7667 do 7668 IFS=$as_save_IFS 7669 test -z "$as_dir" && as_dir=. 7670 for ac_exec_ext in '' $ac_executable_extensions; do 7671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7672 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7674 break 2 7675 fi 7676 done 7677 done 7678 IFS=$as_save_IFS 7679 7680 ;; 7681 esac 7682 fi 7683 EXPR=$ac_cv_path_EXPR 7684 if test -n "$EXPR"; then 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7686 $as_echo "$EXPR" >&6; } 7687 else 7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7689 $as_echo "no" >&6; } 7690 fi 7691 7692 7693 test -n "$EXPR" && break 7694 done 7695 7696 else 7697 # If it succeeded, then it was overridden by the user. We will use it 7698 # for the tool. 7699 7700 # First remove it from the list of overridden variables, so we can test 7701 # for unknown variables in the end. 7702 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7703 7704 # Check if we try to supply an empty value 7705 if test "x$EXPR" = x; then 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7707 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7709 $as_echo_n "checking for EXPR... " >&6; } 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7711 $as_echo "disabled" >&6; } 7712 else 7713 # Check if the provided tool contains a complete path. 7714 tool_specified="$EXPR" 7715 tool_basename="${tool_specified##*/}" 7716 if test "x$tool_basename" = "x$tool_specified"; then 7717 # A command without a complete path is provided, search $PATH. 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7719 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7720 # Extract the first word of "$tool_basename", so it can be a program name with args. 7721 set dummy $tool_basename; ac_word=$2 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7723 $as_echo_n "checking for $ac_word... " >&6; } 7724 if ${ac_cv_path_EXPR+:} false; then : 7725 $as_echo_n "(cached) " >&6 7726 else 7727 case $EXPR in 7728 [\\/]* | ?:[\\/]*) 7729 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7730 ;; 7731 *) 7732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7733 for as_dir in $PATH 7734 do 7735 IFS=$as_save_IFS 7736 test -z "$as_dir" && as_dir=. 7737 for ac_exec_ext in '' $ac_executable_extensions; do 7738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7739 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7741 break 2 7742 fi 7743 done 7744 done 7745 IFS=$as_save_IFS 7746 7747 ;; 7748 esac 7749 fi 7750 EXPR=$ac_cv_path_EXPR 7751 if test -n "$EXPR"; then 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7753 $as_echo "$EXPR" >&6; } 7754 else 7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7756 $as_echo "no" >&6; } 7757 fi 7758 7759 7760 if test "x$EXPR" = x; then 7761 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7762 fi 7763 else 7764 # Otherwise we believe it is a complete path. Use it as it is. 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7766 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7768 $as_echo_n "checking for EXPR... " >&6; } 7769 if test ! -x "$tool_specified"; then 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7771 $as_echo "not found" >&6; } 7772 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7773 fi 7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7775 $as_echo "$tool_specified" >&6; } 7776 fi 7777 fi 7778 fi 7779 7780 fi 7781 7782 7783 7784 if test "x$EXPR" = x; then 7785 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7786 fi 7787 7788 7789 7790 7791 7792 # Publish this variable in the help. 7793 7794 7795 if [ -z "${FILE+x}" ]; then 7796 # The variable is not set by user, try to locate tool using the code snippet 7797 for ac_prog in file 7798 do 7799 # Extract the first word of "$ac_prog", so it can be a program name with args. 7800 set dummy $ac_prog; ac_word=$2 7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7802 $as_echo_n "checking for $ac_word... " >&6; } 7803 if ${ac_cv_path_FILE+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805 else 7806 case $FILE in 7807 [\\/]* | ?:[\\/]*) 7808 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7809 ;; 7810 *) 7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7812 for as_dir in $PATH 7813 do 7814 IFS=$as_save_IFS 7815 test -z "$as_dir" && as_dir=. 7816 for ac_exec_ext in '' $ac_executable_extensions; do 7817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7818 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7820 break 2 7821 fi 7822 done 7823 done 7824 IFS=$as_save_IFS 7825 7826 ;; 7827 esac 7828 fi 7829 FILE=$ac_cv_path_FILE 7830 if test -n "$FILE"; then 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7832 $as_echo "$FILE" >&6; } 7833 else 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7835 $as_echo "no" >&6; } 7836 fi 7837 7838 7839 test -n "$FILE" && break 7840 done 7841 7842 else 7843 # The variable is set, but is it from the command line or the environment? 7844 7845 # Try to remove the string !FILE! from our list. 7846 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7847 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7848 # If it failed, the variable was not from the command line. Ignore it, 7849 # but warn the user (except for BASH, which is always set by the calling BASH). 7850 if test "xFILE" != xBASH; then 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7852 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7853 fi 7854 # Try to locate tool using the code snippet 7855 for ac_prog in file 7856 do 7857 # Extract the first word of "$ac_prog", so it can be a program name with args. 7858 set dummy $ac_prog; ac_word=$2 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7860 $as_echo_n "checking for $ac_word... " >&6; } 7861 if ${ac_cv_path_FILE+:} false; then : 7862 $as_echo_n "(cached) " >&6 7863 else 7864 case $FILE in 7865 [\\/]* | ?:[\\/]*) 7866 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7867 ;; 7868 *) 7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7870 for as_dir in $PATH 7871 do 7872 IFS=$as_save_IFS 7873 test -z "$as_dir" && as_dir=. 7874 for ac_exec_ext in '' $ac_executable_extensions; do 7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7876 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7878 break 2 7879 fi 7880 done 7881 done 7882 IFS=$as_save_IFS 7883 7884 ;; 7885 esac 7886 fi 7887 FILE=$ac_cv_path_FILE 7888 if test -n "$FILE"; then 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7890 $as_echo "$FILE" >&6; } 7891 else 7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7893 $as_echo "no" >&6; } 7894 fi 7895 7896 7897 test -n "$FILE" && break 7898 done 7899 7900 else 7901 # If it succeeded, then it was overridden by the user. We will use it 7902 # for the tool. 7903 7904 # First remove it from the list of overridden variables, so we can test 7905 # for unknown variables in the end. 7906 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7907 7908 # Check if we try to supply an empty value 7909 if test "x$FILE" = x; then 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7911 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7913 $as_echo_n "checking for FILE... " >&6; } 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7915 $as_echo "disabled" >&6; } 7916 else 7917 # Check if the provided tool contains a complete path. 7918 tool_specified="$FILE" 7919 tool_basename="${tool_specified##*/}" 7920 if test "x$tool_basename" = "x$tool_specified"; then 7921 # A command without a complete path is provided, search $PATH. 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7923 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7924 # Extract the first word of "$tool_basename", so it can be a program name with args. 7925 set dummy $tool_basename; ac_word=$2 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7927 $as_echo_n "checking for $ac_word... " >&6; } 7928 if ${ac_cv_path_FILE+:} false; then : 7929 $as_echo_n "(cached) " >&6 7930 else 7931 case $FILE in 7932 [\\/]* | ?:[\\/]*) 7933 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7934 ;; 7935 *) 7936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7937 for as_dir in $PATH 7938 do 7939 IFS=$as_save_IFS 7940 test -z "$as_dir" && as_dir=. 7941 for ac_exec_ext in '' $ac_executable_extensions; do 7942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7943 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7945 break 2 7946 fi 7947 done 7948 done 7949 IFS=$as_save_IFS 7950 7951 ;; 7952 esac 7953 fi 7954 FILE=$ac_cv_path_FILE 7955 if test -n "$FILE"; then 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7957 $as_echo "$FILE" >&6; } 7958 else 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7960 $as_echo "no" >&6; } 7961 fi 7962 7963 7964 if test "x$FILE" = x; then 7965 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7966 fi 7967 else 7968 # Otherwise we believe it is a complete path. Use it as it is. 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7970 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7972 $as_echo_n "checking for FILE... " >&6; } 7973 if test ! -x "$tool_specified"; then 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7975 $as_echo "not found" >&6; } 7976 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7977 fi 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7979 $as_echo "$tool_specified" >&6; } 7980 fi 7981 fi 7982 fi 7983 7984 fi 7985 7986 7987 7988 if test "x$FILE" = x; then 7989 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7990 fi 7991 7992 7993 7994 7995 7996 # Publish this variable in the help. 7997 7998 7999 if [ -z "${FIND+x}" ]; then 8000 # The variable is not set by user, try to locate tool using the code snippet 8001 for ac_prog in find 8002 do 8003 # Extract the first word of "$ac_prog", so it can be a program name with args. 8004 set dummy $ac_prog; ac_word=$2 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8006 $as_echo_n "checking for $ac_word... " >&6; } 8007 if ${ac_cv_path_FIND+:} false; then : 8008 $as_echo_n "(cached) " >&6 8009 else 8010 case $FIND in 8011 [\\/]* | ?:[\\/]*) 8012 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8013 ;; 8014 *) 8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8016 for as_dir in $PATH 8017 do 8018 IFS=$as_save_IFS 8019 test -z "$as_dir" && as_dir=. 8020 for ac_exec_ext in '' $ac_executable_extensions; do 8021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8022 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8024 break 2 8025 fi 8026 done 8027 done 8028 IFS=$as_save_IFS 8029 8030 ;; 8031 esac 8032 fi 8033 FIND=$ac_cv_path_FIND 8034 if test -n "$FIND"; then 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8036 $as_echo "$FIND" >&6; } 8037 else 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8039 $as_echo "no" >&6; } 8040 fi 8041 8042 8043 test -n "$FIND" && break 8044 done 8045 8046 else 8047 # The variable is set, but is it from the command line or the environment? 8048 8049 # Try to remove the string !FIND! from our list. 8050 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8051 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8052 # If it failed, the variable was not from the command line. Ignore it, 8053 # but warn the user (except for BASH, which is always set by the calling BASH). 8054 if test "xFIND" != xBASH; then 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8056 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8057 fi 8058 # Try to locate tool using the code snippet 8059 for ac_prog in find 8060 do 8061 # Extract the first word of "$ac_prog", so it can be a program name with args. 8062 set dummy $ac_prog; ac_word=$2 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8064 $as_echo_n "checking for $ac_word... " >&6; } 8065 if ${ac_cv_path_FIND+:} false; then : 8066 $as_echo_n "(cached) " >&6 8067 else 8068 case $FIND in 8069 [\\/]* | ?:[\\/]*) 8070 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8071 ;; 8072 *) 8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8074 for as_dir in $PATH 8075 do 8076 IFS=$as_save_IFS 8077 test -z "$as_dir" && as_dir=. 8078 for ac_exec_ext in '' $ac_executable_extensions; do 8079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8080 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8082 break 2 8083 fi 8084 done 8085 done 8086 IFS=$as_save_IFS 8087 8088 ;; 8089 esac 8090 fi 8091 FIND=$ac_cv_path_FIND 8092 if test -n "$FIND"; then 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8094 $as_echo "$FIND" >&6; } 8095 else 8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8097 $as_echo "no" >&6; } 8098 fi 8099 8100 8101 test -n "$FIND" && break 8102 done 8103 8104 else 8105 # If it succeeded, then it was overridden by the user. We will use it 8106 # for the tool. 8107 8108 # First remove it from the list of overridden variables, so we can test 8109 # for unknown variables in the end. 8110 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8111 8112 # Check if we try to supply an empty value 8113 if test "x$FIND" = x; then 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8115 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8117 $as_echo_n "checking for FIND... " >&6; } 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8119 $as_echo "disabled" >&6; } 8120 else 8121 # Check if the provided tool contains a complete path. 8122 tool_specified="$FIND" 8123 tool_basename="${tool_specified##*/}" 8124 if test "x$tool_basename" = "x$tool_specified"; then 8125 # A command without a complete path is provided, search $PATH. 8126 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8127 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8128 # Extract the first word of "$tool_basename", so it can be a program name with args. 8129 set dummy $tool_basename; ac_word=$2 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8131 $as_echo_n "checking for $ac_word... " >&6; } 8132 if ${ac_cv_path_FIND+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134 else 8135 case $FIND in 8136 [\\/]* | ?:[\\/]*) 8137 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8138 ;; 8139 *) 8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141 for as_dir in $PATH 8142 do 8143 IFS=$as_save_IFS 8144 test -z "$as_dir" && as_dir=. 8145 for ac_exec_ext in '' $ac_executable_extensions; do 8146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8147 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8149 break 2 8150 fi 8151 done 8152 done 8153 IFS=$as_save_IFS 8154 8155 ;; 8156 esac 8157 fi 8158 FIND=$ac_cv_path_FIND 8159 if test -n "$FIND"; then 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8161 $as_echo "$FIND" >&6; } 8162 else 8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8164 $as_echo "no" >&6; } 8165 fi 8166 8167 8168 if test "x$FIND" = x; then 8169 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8170 fi 8171 else 8172 # Otherwise we believe it is a complete path. Use it as it is. 8173 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8174 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8176 $as_echo_n "checking for FIND... " >&6; } 8177 if test ! -x "$tool_specified"; then 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8179 $as_echo "not found" >&6; } 8180 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8181 fi 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8183 $as_echo "$tool_specified" >&6; } 8184 fi 8185 fi 8186 fi 8187 8188 fi 8189 8190 8191 8192 if test "x$FIND" = x; then 8193 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8194 fi 8195 8196 8197 8198 8199 8200 # Publish this variable in the help. 8201 8202 8203 if [ -z "${HEAD+x}" ]; then 8204 # The variable is not set by user, try to locate tool using the code snippet 8205 for ac_prog in head 8206 do 8207 # Extract the first word of "$ac_prog", so it can be a program name with args. 8208 set dummy $ac_prog; ac_word=$2 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8210 $as_echo_n "checking for $ac_word... " >&6; } 8211 if ${ac_cv_path_HEAD+:} false; then : 8212 $as_echo_n "(cached) " >&6 8213 else 8214 case $HEAD in 8215 [\\/]* | ?:[\\/]*) 8216 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8217 ;; 8218 *) 8219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8220 for as_dir in $PATH 8221 do 8222 IFS=$as_save_IFS 8223 test -z "$as_dir" && as_dir=. 8224 for ac_exec_ext in '' $ac_executable_extensions; do 8225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8226 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8228 break 2 8229 fi 8230 done 8231 done 8232 IFS=$as_save_IFS 8233 8234 ;; 8235 esac 8236 fi 8237 HEAD=$ac_cv_path_HEAD 8238 if test -n "$HEAD"; then 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8240 $as_echo "$HEAD" >&6; } 8241 else 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8243 $as_echo "no" >&6; } 8244 fi 8245 8246 8247 test -n "$HEAD" && break 8248 done 8249 8250 else 8251 # The variable is set, but is it from the command line or the environment? 8252 8253 # Try to remove the string !HEAD! from our list. 8254 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8255 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8256 # If it failed, the variable was not from the command line. Ignore it, 8257 # but warn the user (except for BASH, which is always set by the calling BASH). 8258 if test "xHEAD" != xBASH; then 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8260 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8261 fi 8262 # Try to locate tool using the code snippet 8263 for ac_prog in head 8264 do 8265 # Extract the first word of "$ac_prog", so it can be a program name with args. 8266 set dummy $ac_prog; ac_word=$2 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8268 $as_echo_n "checking for $ac_word... " >&6; } 8269 if ${ac_cv_path_HEAD+:} false; then : 8270 $as_echo_n "(cached) " >&6 8271 else 8272 case $HEAD in 8273 [\\/]* | ?:[\\/]*) 8274 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8275 ;; 8276 *) 8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8278 for as_dir in $PATH 8279 do 8280 IFS=$as_save_IFS 8281 test -z "$as_dir" && as_dir=. 8282 for ac_exec_ext in '' $ac_executable_extensions; do 8283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8284 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8286 break 2 8287 fi 8288 done 8289 done 8290 IFS=$as_save_IFS 8291 8292 ;; 8293 esac 8294 fi 8295 HEAD=$ac_cv_path_HEAD 8296 if test -n "$HEAD"; then 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8298 $as_echo "$HEAD" >&6; } 8299 else 8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8301 $as_echo "no" >&6; } 8302 fi 8303 8304 8305 test -n "$HEAD" && break 8306 done 8307 8308 else 8309 # If it succeeded, then it was overridden by the user. We will use it 8310 # for the tool. 8311 8312 # First remove it from the list of overridden variables, so we can test 8313 # for unknown variables in the end. 8314 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8315 8316 # Check if we try to supply an empty value 8317 if test "x$HEAD" = x; then 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8319 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8321 $as_echo_n "checking for HEAD... " >&6; } 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8323 $as_echo "disabled" >&6; } 8324 else 8325 # Check if the provided tool contains a complete path. 8326 tool_specified="$HEAD" 8327 tool_basename="${tool_specified##*/}" 8328 if test "x$tool_basename" = "x$tool_specified"; then 8329 # A command without a complete path is provided, search $PATH. 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8331 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8332 # Extract the first word of "$tool_basename", so it can be a program name with args. 8333 set dummy $tool_basename; ac_word=$2 8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8335 $as_echo_n "checking for $ac_word... " >&6; } 8336 if ${ac_cv_path_HEAD+:} false; then : 8337 $as_echo_n "(cached) " >&6 8338 else 8339 case $HEAD in 8340 [\\/]* | ?:[\\/]*) 8341 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8342 ;; 8343 *) 8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8345 for as_dir in $PATH 8346 do 8347 IFS=$as_save_IFS 8348 test -z "$as_dir" && as_dir=. 8349 for ac_exec_ext in '' $ac_executable_extensions; do 8350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8351 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8353 break 2 8354 fi 8355 done 8356 done 8357 IFS=$as_save_IFS 8358 8359 ;; 8360 esac 8361 fi 8362 HEAD=$ac_cv_path_HEAD 8363 if test -n "$HEAD"; then 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8365 $as_echo "$HEAD" >&6; } 8366 else 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8368 $as_echo "no" >&6; } 8369 fi 8370 8371 8372 if test "x$HEAD" = x; then 8373 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8374 fi 8375 else 8376 # Otherwise we believe it is a complete path. Use it as it is. 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8378 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8380 $as_echo_n "checking for HEAD... " >&6; } 8381 if test ! -x "$tool_specified"; then 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8383 $as_echo "not found" >&6; } 8384 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8385 fi 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8387 $as_echo "$tool_specified" >&6; } 8388 fi 8389 fi 8390 fi 8391 8392 fi 8393 8394 8395 8396 if test "x$HEAD" = x; then 8397 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8398 fi 8399 8400 8401 8402 8403 8404 # Publish this variable in the help. 8405 8406 8407 if [ -z "${LN+x}" ]; then 8408 # The variable is not set by user, try to locate tool using the code snippet 8409 for ac_prog in ln 8410 do 8411 # Extract the first word of "$ac_prog", so it can be a program name with args. 8412 set dummy $ac_prog; ac_word=$2 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8414 $as_echo_n "checking for $ac_word... " >&6; } 8415 if ${ac_cv_path_LN+:} false; then : 8416 $as_echo_n "(cached) " >&6 8417 else 8418 case $LN in 8419 [\\/]* | ?:[\\/]*) 8420 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8421 ;; 8422 *) 8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8424 for as_dir in $PATH 8425 do 8426 IFS=$as_save_IFS 8427 test -z "$as_dir" && as_dir=. 8428 for ac_exec_ext in '' $ac_executable_extensions; do 8429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8430 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8432 break 2 8433 fi 8434 done 8435 done 8436 IFS=$as_save_IFS 8437 8438 ;; 8439 esac 8440 fi 8441 LN=$ac_cv_path_LN 8442 if test -n "$LN"; then 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8444 $as_echo "$LN" >&6; } 8445 else 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8447 $as_echo "no" >&6; } 8448 fi 8449 8450 8451 test -n "$LN" && break 8452 done 8453 8454 else 8455 # The variable is set, but is it from the command line or the environment? 8456 8457 # Try to remove the string !LN! from our list. 8458 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8459 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8460 # If it failed, the variable was not from the command line. Ignore it, 8461 # but warn the user (except for BASH, which is always set by the calling BASH). 8462 if test "xLN" != xBASH; then 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8464 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8465 fi 8466 # Try to locate tool using the code snippet 8467 for ac_prog in ln 8468 do 8469 # Extract the first word of "$ac_prog", so it can be a program name with args. 8470 set dummy $ac_prog; ac_word=$2 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8472 $as_echo_n "checking for $ac_word... " >&6; } 8473 if ${ac_cv_path_LN+:} false; then : 8474 $as_echo_n "(cached) " >&6 8475 else 8476 case $LN in 8477 [\\/]* | ?:[\\/]*) 8478 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8479 ;; 8480 *) 8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8482 for as_dir in $PATH 8483 do 8484 IFS=$as_save_IFS 8485 test -z "$as_dir" && as_dir=. 8486 for ac_exec_ext in '' $ac_executable_extensions; do 8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8488 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8490 break 2 8491 fi 8492 done 8493 done 8494 IFS=$as_save_IFS 8495 8496 ;; 8497 esac 8498 fi 8499 LN=$ac_cv_path_LN 8500 if test -n "$LN"; then 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8502 $as_echo "$LN" >&6; } 8503 else 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8505 $as_echo "no" >&6; } 8506 fi 8507 8508 8509 test -n "$LN" && break 8510 done 8511 8512 else 8513 # If it succeeded, then it was overridden by the user. We will use it 8514 # for the tool. 8515 8516 # First remove it from the list of overridden variables, so we can test 8517 # for unknown variables in the end. 8518 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8519 8520 # Check if we try to supply an empty value 8521 if test "x$LN" = x; then 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 8523 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8525 $as_echo_n "checking for LN... " >&6; } 8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8527 $as_echo "disabled" >&6; } 8528 else 8529 # Check if the provided tool contains a complete path. 8530 tool_specified="$LN" 8531 tool_basename="${tool_specified##*/}" 8532 if test "x$tool_basename" = "x$tool_specified"; then 8533 # A command without a complete path is provided, search $PATH. 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 8535 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 8536 # Extract the first word of "$tool_basename", so it can be a program name with args. 8537 set dummy $tool_basename; ac_word=$2 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8539 $as_echo_n "checking for $ac_word... " >&6; } 8540 if ${ac_cv_path_LN+:} false; then : 8541 $as_echo_n "(cached) " >&6 8542 else 8543 case $LN in 8544 [\\/]* | ?:[\\/]*) 8545 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8546 ;; 8547 *) 8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8549 for as_dir in $PATH 8550 do 8551 IFS=$as_save_IFS 8552 test -z "$as_dir" && as_dir=. 8553 for ac_exec_ext in '' $ac_executable_extensions; do 8554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8555 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8557 break 2 8558 fi 8559 done 8560 done 8561 IFS=$as_save_IFS 8562 8563 ;; 8564 esac 8565 fi 8566 LN=$ac_cv_path_LN 8567 if test -n "$LN"; then 8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8569 $as_echo "$LN" >&6; } 8570 else 8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8572 $as_echo "no" >&6; } 8573 fi 8574 8575 8576 if test "x$LN" = x; then 8577 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8578 fi 8579 else 8580 # Otherwise we believe it is a complete path. Use it as it is. 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 8582 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8584 $as_echo_n "checking for LN... " >&6; } 8585 if test ! -x "$tool_specified"; then 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8587 $as_echo "not found" >&6; } 8588 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 8589 fi 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8591 $as_echo "$tool_specified" >&6; } 8592 fi 8593 fi 8594 fi 8595 8596 fi 8597 8598 8599 8600 if test "x$LN" = x; then 8601 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 8602 fi 8603 8604 8605 8606 8607 8608 # Publish this variable in the help. 8609 8610 8611 if [ -z "${LS+x}" ]; then 8612 # The variable is not set by user, try to locate tool using the code snippet 8613 for ac_prog in ls 8614 do 8615 # Extract the first word of "$ac_prog", so it can be a program name with args. 8616 set dummy $ac_prog; ac_word=$2 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8618 $as_echo_n "checking for $ac_word... " >&6; } 8619 if ${ac_cv_path_LS+:} false; then : 8620 $as_echo_n "(cached) " >&6 8621 else 8622 case $LS in 8623 [\\/]* | ?:[\\/]*) 8624 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8625 ;; 8626 *) 8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8628 for as_dir in $PATH 8629 do 8630 IFS=$as_save_IFS 8631 test -z "$as_dir" && as_dir=. 8632 for ac_exec_ext in '' $ac_executable_extensions; do 8633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8634 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8636 break 2 8637 fi 8638 done 8639 done 8640 IFS=$as_save_IFS 8641 8642 ;; 8643 esac 8644 fi 8645 LS=$ac_cv_path_LS 8646 if test -n "$LS"; then 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8648 $as_echo "$LS" >&6; } 8649 else 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8651 $as_echo "no" >&6; } 8652 fi 8653 8654 8655 test -n "$LS" && break 8656 done 8657 8658 else 8659 # The variable is set, but is it from the command line or the environment? 8660 8661 # Try to remove the string !LS! from our list. 8662 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 8663 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8664 # If it failed, the variable was not from the command line. Ignore it, 8665 # but warn the user (except for BASH, which is always set by the calling BASH). 8666 if test "xLS" != xBASH; then 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 8668 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 8669 fi 8670 # Try to locate tool using the code snippet 8671 for ac_prog in ls 8672 do 8673 # Extract the first word of "$ac_prog", so it can be a program name with args. 8674 set dummy $ac_prog; ac_word=$2 8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8676 $as_echo_n "checking for $ac_word... " >&6; } 8677 if ${ac_cv_path_LS+:} false; then : 8678 $as_echo_n "(cached) " >&6 8679 else 8680 case $LS in 8681 [\\/]* | ?:[\\/]*) 8682 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8683 ;; 8684 *) 8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8686 for as_dir in $PATH 8687 do 8688 IFS=$as_save_IFS 8689 test -z "$as_dir" && as_dir=. 8690 for ac_exec_ext in '' $ac_executable_extensions; do 8691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8692 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8694 break 2 8695 fi 8696 done 8697 done 8698 IFS=$as_save_IFS 8699 8700 ;; 8701 esac 8702 fi 8703 LS=$ac_cv_path_LS 8704 if test -n "$LS"; then 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8706 $as_echo "$LS" >&6; } 8707 else 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8709 $as_echo "no" >&6; } 8710 fi 8711 8712 8713 test -n "$LS" && break 8714 done 8715 8716 else 8717 # If it succeeded, then it was overridden by the user. We will use it 8718 # for the tool. 8719 8720 # First remove it from the list of overridden variables, so we can test 8721 # for unknown variables in the end. 8722 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8723 8724 # Check if we try to supply an empty value 8725 if test "x$LS" = x; then 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 8727 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 8729 $as_echo_n "checking for LS... " >&6; } 8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8731 $as_echo "disabled" >&6; } 8732 else 8733 # Check if the provided tool contains a complete path. 8734 tool_specified="$LS" 8735 tool_basename="${tool_specified##*/}" 8736 if test "x$tool_basename" = "x$tool_specified"; then 8737 # A command without a complete path is provided, search $PATH. 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 8739 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 8740 # Extract the first word of "$tool_basename", so it can be a program name with args. 8741 set dummy $tool_basename; ac_word=$2 8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8743 $as_echo_n "checking for $ac_word... " >&6; } 8744 if ${ac_cv_path_LS+:} false; then : 8745 $as_echo_n "(cached) " >&6 8746 else 8747 case $LS in 8748 [\\/]* | ?:[\\/]*) 8749 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8750 ;; 8751 *) 8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8753 for as_dir in $PATH 8754 do 8755 IFS=$as_save_IFS 8756 test -z "$as_dir" && as_dir=. 8757 for ac_exec_ext in '' $ac_executable_extensions; do 8758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8759 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8761 break 2 8762 fi 8763 done 8764 done 8765 IFS=$as_save_IFS 8766 8767 ;; 8768 esac 8769 fi 8770 LS=$ac_cv_path_LS 8771 if test -n "$LS"; then 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8773 $as_echo "$LS" >&6; } 8774 else 8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8776 $as_echo "no" >&6; } 8777 fi 8778 8779 8780 if test "x$LS" = x; then 8781 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8782 fi 8783 else 8784 # Otherwise we believe it is a complete path. Use it as it is. 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 8786 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 8788 $as_echo_n "checking for LS... " >&6; } 8789 if test ! -x "$tool_specified"; then 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8791 $as_echo "not found" >&6; } 8792 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 8793 fi 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8795 $as_echo "$tool_specified" >&6; } 8796 fi 8797 fi 8798 fi 8799 8800 fi 8801 8802 8803 8804 if test "x$LS" = x; then 8805 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 8806 fi 8807 8808 8809 8810 8811 8812 # Publish this variable in the help. 8813 8814 8815 if [ -z "${MKDIR+x}" ]; then 8816 # The variable is not set by user, try to locate tool using the code snippet 8817 for ac_prog in mkdir 8818 do 8819 # Extract the first word of "$ac_prog", so it can be a program name with args. 8820 set dummy $ac_prog; ac_word=$2 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8822 $as_echo_n "checking for $ac_word... " >&6; } 8823 if ${ac_cv_path_MKDIR+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825 else 8826 case $MKDIR in 8827 [\\/]* | ?:[\\/]*) 8828 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8829 ;; 8830 *) 8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8832 for as_dir in $PATH 8833 do 8834 IFS=$as_save_IFS 8835 test -z "$as_dir" && as_dir=. 8836 for ac_exec_ext in '' $ac_executable_extensions; do 8837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8838 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8840 break 2 8841 fi 8842 done 8843 done 8844 IFS=$as_save_IFS 8845 8846 ;; 8847 esac 8848 fi 8849 MKDIR=$ac_cv_path_MKDIR 8850 if test -n "$MKDIR"; then 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8852 $as_echo "$MKDIR" >&6; } 8853 else 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8855 $as_echo "no" >&6; } 8856 fi 8857 8858 8859 test -n "$MKDIR" && break 8860 done 8861 8862 else 8863 # The variable is set, but is it from the command line or the environment? 8864 8865 # Try to remove the string !MKDIR! from our list. 8866 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8867 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8868 # If it failed, the variable was not from the command line. Ignore it, 8869 # but warn the user (except for BASH, which is always set by the calling BASH). 8870 if test "xMKDIR" != xBASH; then 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8872 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8873 fi 8874 # Try to locate tool using the code snippet 8875 for ac_prog in mkdir 8876 do 8877 # Extract the first word of "$ac_prog", so it can be a program name with args. 8878 set dummy $ac_prog; ac_word=$2 8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8880 $as_echo_n "checking for $ac_word... " >&6; } 8881 if ${ac_cv_path_MKDIR+:} false; then : 8882 $as_echo_n "(cached) " >&6 8883 else 8884 case $MKDIR in 8885 [\\/]* | ?:[\\/]*) 8886 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8887 ;; 8888 *) 8889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8890 for as_dir in $PATH 8891 do 8892 IFS=$as_save_IFS 8893 test -z "$as_dir" && as_dir=. 8894 for ac_exec_ext in '' $ac_executable_extensions; do 8895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8896 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8898 break 2 8899 fi 8900 done 8901 done 8902 IFS=$as_save_IFS 8903 8904 ;; 8905 esac 8906 fi 8907 MKDIR=$ac_cv_path_MKDIR 8908 if test -n "$MKDIR"; then 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8910 $as_echo "$MKDIR" >&6; } 8911 else 8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8913 $as_echo "no" >&6; } 8914 fi 8915 8916 8917 test -n "$MKDIR" && break 8918 done 8919 8920 else 8921 # If it succeeded, then it was overridden by the user. We will use it 8922 # for the tool. 8923 8924 # First remove it from the list of overridden variables, so we can test 8925 # for unknown variables in the end. 8926 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8927 8928 # Check if we try to supply an empty value 8929 if test "x$MKDIR" = x; then 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 8931 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8933 $as_echo_n "checking for MKDIR... " >&6; } 8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8935 $as_echo "disabled" >&6; } 8936 else 8937 # Check if the provided tool contains a complete path. 8938 tool_specified="$MKDIR" 8939 tool_basename="${tool_specified##*/}" 8940 if test "x$tool_basename" = "x$tool_specified"; then 8941 # A command without a complete path is provided, search $PATH. 8942 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8943 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8944 # Extract the first word of "$tool_basename", so it can be a program name with args. 8945 set dummy $tool_basename; ac_word=$2 8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8947 $as_echo_n "checking for $ac_word... " >&6; } 8948 if ${ac_cv_path_MKDIR+:} false; then : 8949 $as_echo_n "(cached) " >&6 8950 else 8951 case $MKDIR in 8952 [\\/]* | ?:[\\/]*) 8953 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8954 ;; 8955 *) 8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8957 for as_dir in $PATH 8958 do 8959 IFS=$as_save_IFS 8960 test -z "$as_dir" && as_dir=. 8961 for ac_exec_ext in '' $ac_executable_extensions; do 8962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8963 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8965 break 2 8966 fi 8967 done 8968 done 8969 IFS=$as_save_IFS 8970 8971 ;; 8972 esac 8973 fi 8974 MKDIR=$ac_cv_path_MKDIR 8975 if test -n "$MKDIR"; then 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8977 $as_echo "$MKDIR" >&6; } 8978 else 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8980 $as_echo "no" >&6; } 8981 fi 8982 8983 8984 if test "x$MKDIR" = x; then 8985 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8986 fi 8987 else 8988 # Otherwise we believe it is a complete path. Use it as it is. 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8990 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8992 $as_echo_n "checking for MKDIR... " >&6; } 8993 if test ! -x "$tool_specified"; then 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8995 $as_echo "not found" >&6; } 8996 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8997 fi 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8999 $as_echo "$tool_specified" >&6; } 9000 fi 9001 fi 9002 fi 9003 9004 fi 9005 9006 9007 9008 if test "x$MKDIR" = x; then 9009 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9010 fi 9011 9012 9013 9014 9015 9016 # Publish this variable in the help. 9017 9018 9019 if [ -z "${MKTEMP+x}" ]; then 9020 # The variable is not set by user, try to locate tool using the code snippet 9021 for ac_prog in mktemp 9022 do 9023 # Extract the first word of "$ac_prog", so it can be a program name with args. 9024 set dummy $ac_prog; ac_word=$2 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9026 $as_echo_n "checking for $ac_word... " >&6; } 9027 if ${ac_cv_path_MKTEMP+:} false; then : 9028 $as_echo_n "(cached) " >&6 9029 else 9030 case $MKTEMP in 9031 [\\/]* | ?:[\\/]*) 9032 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9033 ;; 9034 *) 9035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9036 for as_dir in $PATH 9037 do 9038 IFS=$as_save_IFS 9039 test -z "$as_dir" && as_dir=. 9040 for ac_exec_ext in '' $ac_executable_extensions; do 9041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9042 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9044 break 2 9045 fi 9046 done 9047 done 9048 IFS=$as_save_IFS 9049 9050 ;; 9051 esac 9052 fi 9053 MKTEMP=$ac_cv_path_MKTEMP 9054 if test -n "$MKTEMP"; then 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9056 $as_echo "$MKTEMP" >&6; } 9057 else 9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9059 $as_echo "no" >&6; } 9060 fi 9061 9062 9063 test -n "$MKTEMP" && break 9064 done 9065 9066 else 9067 # The variable is set, but is it from the command line or the environment? 9068 9069 # Try to remove the string !MKTEMP! from our list. 9070 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9071 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9072 # If it failed, the variable was not from the command line. Ignore it, 9073 # but warn the user (except for BASH, which is always set by the calling BASH). 9074 if test "xMKTEMP" != xBASH; then 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9076 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9077 fi 9078 # Try to locate tool using the code snippet 9079 for ac_prog in mktemp 9080 do 9081 # Extract the first word of "$ac_prog", so it can be a program name with args. 9082 set dummy $ac_prog; ac_word=$2 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9084 $as_echo_n "checking for $ac_word... " >&6; } 9085 if ${ac_cv_path_MKTEMP+:} false; then : 9086 $as_echo_n "(cached) " >&6 9087 else 9088 case $MKTEMP in 9089 [\\/]* | ?:[\\/]*) 9090 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9091 ;; 9092 *) 9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9094 for as_dir in $PATH 9095 do 9096 IFS=$as_save_IFS 9097 test -z "$as_dir" && as_dir=. 9098 for ac_exec_ext in '' $ac_executable_extensions; do 9099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9100 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9102 break 2 9103 fi 9104 done 9105 done 9106 IFS=$as_save_IFS 9107 9108 ;; 9109 esac 9110 fi 9111 MKTEMP=$ac_cv_path_MKTEMP 9112 if test -n "$MKTEMP"; then 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9114 $as_echo "$MKTEMP" >&6; } 9115 else 9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9117 $as_echo "no" >&6; } 9118 fi 9119 9120 9121 test -n "$MKTEMP" && break 9122 done 9123 9124 else 9125 # If it succeeded, then it was overridden by the user. We will use it 9126 # for the tool. 9127 9128 # First remove it from the list of overridden variables, so we can test 9129 # for unknown variables in the end. 9130 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9131 9132 # Check if we try to supply an empty value 9133 if test "x$MKTEMP" = x; then 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9135 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9137 $as_echo_n "checking for MKTEMP... " >&6; } 9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9139 $as_echo "disabled" >&6; } 9140 else 9141 # Check if the provided tool contains a complete path. 9142 tool_specified="$MKTEMP" 9143 tool_basename="${tool_specified##*/}" 9144 if test "x$tool_basename" = "x$tool_specified"; then 9145 # A command without a complete path is provided, search $PATH. 9146 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9147 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9148 # Extract the first word of "$tool_basename", so it can be a program name with args. 9149 set dummy $tool_basename; ac_word=$2 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9151 $as_echo_n "checking for $ac_word... " >&6; } 9152 if ${ac_cv_path_MKTEMP+:} false; then : 9153 $as_echo_n "(cached) " >&6 9154 else 9155 case $MKTEMP in 9156 [\\/]* | ?:[\\/]*) 9157 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9158 ;; 9159 *) 9160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9161 for as_dir in $PATH 9162 do 9163 IFS=$as_save_IFS 9164 test -z "$as_dir" && as_dir=. 9165 for ac_exec_ext in '' $ac_executable_extensions; do 9166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9167 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9169 break 2 9170 fi 9171 done 9172 done 9173 IFS=$as_save_IFS 9174 9175 ;; 9176 esac 9177 fi 9178 MKTEMP=$ac_cv_path_MKTEMP 9179 if test -n "$MKTEMP"; then 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9181 $as_echo "$MKTEMP" >&6; } 9182 else 9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9184 $as_echo "no" >&6; } 9185 fi 9186 9187 9188 if test "x$MKTEMP" = x; then 9189 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9190 fi 9191 else 9192 # Otherwise we believe it is a complete path. Use it as it is. 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9194 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9196 $as_echo_n "checking for MKTEMP... " >&6; } 9197 if test ! -x "$tool_specified"; then 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9199 $as_echo "not found" >&6; } 9200 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9201 fi 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9203 $as_echo "$tool_specified" >&6; } 9204 fi 9205 fi 9206 fi 9207 9208 fi 9209 9210 9211 9212 if test "x$MKTEMP" = x; then 9213 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9214 fi 9215 9216 9217 9218 9219 9220 # Publish this variable in the help. 9221 9222 9223 if [ -z "${MV+x}" ]; then 9224 # The variable is not set by user, try to locate tool using the code snippet 9225 for ac_prog in mv 9226 do 9227 # Extract the first word of "$ac_prog", so it can be a program name with args. 9228 set dummy $ac_prog; ac_word=$2 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9230 $as_echo_n "checking for $ac_word... " >&6; } 9231 if ${ac_cv_path_MV+:} false; then : 9232 $as_echo_n "(cached) " >&6 9233 else 9234 case $MV in 9235 [\\/]* | ?:[\\/]*) 9236 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9237 ;; 9238 *) 9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9240 for as_dir in $PATH 9241 do 9242 IFS=$as_save_IFS 9243 test -z "$as_dir" && as_dir=. 9244 for ac_exec_ext in '' $ac_executable_extensions; do 9245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9246 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9248 break 2 9249 fi 9250 done 9251 done 9252 IFS=$as_save_IFS 9253 9254 ;; 9255 esac 9256 fi 9257 MV=$ac_cv_path_MV 9258 if test -n "$MV"; then 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9260 $as_echo "$MV" >&6; } 9261 else 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9263 $as_echo "no" >&6; } 9264 fi 9265 9266 9267 test -n "$MV" && break 9268 done 9269 9270 else 9271 # The variable is set, but is it from the command line or the environment? 9272 9273 # Try to remove the string !MV! from our list. 9274 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9275 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9276 # If it failed, the variable was not from the command line. Ignore it, 9277 # but warn the user (except for BASH, which is always set by the calling BASH). 9278 if test "xMV" != xBASH; then 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9280 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9281 fi 9282 # Try to locate tool using the code snippet 9283 for ac_prog in mv 9284 do 9285 # Extract the first word of "$ac_prog", so it can be a program name with args. 9286 set dummy $ac_prog; ac_word=$2 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9288 $as_echo_n "checking for $ac_word... " >&6; } 9289 if ${ac_cv_path_MV+:} false; then : 9290 $as_echo_n "(cached) " >&6 9291 else 9292 case $MV in 9293 [\\/]* | ?:[\\/]*) 9294 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9295 ;; 9296 *) 9297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9298 for as_dir in $PATH 9299 do 9300 IFS=$as_save_IFS 9301 test -z "$as_dir" && as_dir=. 9302 for ac_exec_ext in '' $ac_executable_extensions; do 9303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9304 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9306 break 2 9307 fi 9308 done 9309 done 9310 IFS=$as_save_IFS 9311 9312 ;; 9313 esac 9314 fi 9315 MV=$ac_cv_path_MV 9316 if test -n "$MV"; then 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9318 $as_echo "$MV" >&6; } 9319 else 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9321 $as_echo "no" >&6; } 9322 fi 9323 9324 9325 test -n "$MV" && break 9326 done 9327 9328 else 9329 # If it succeeded, then it was overridden by the user. We will use it 9330 # for the tool. 9331 9332 # First remove it from the list of overridden variables, so we can test 9333 # for unknown variables in the end. 9334 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9335 9336 # Check if we try to supply an empty value 9337 if test "x$MV" = x; then 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9339 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9341 $as_echo_n "checking for MV... " >&6; } 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9343 $as_echo "disabled" >&6; } 9344 else 9345 # Check if the provided tool contains a complete path. 9346 tool_specified="$MV" 9347 tool_basename="${tool_specified##*/}" 9348 if test "x$tool_basename" = "x$tool_specified"; then 9349 # A command without a complete path is provided, search $PATH. 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9351 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9352 # Extract the first word of "$tool_basename", so it can be a program name with args. 9353 set dummy $tool_basename; ac_word=$2 9354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9355 $as_echo_n "checking for $ac_word... " >&6; } 9356 if ${ac_cv_path_MV+:} false; then : 9357 $as_echo_n "(cached) " >&6 9358 else 9359 case $MV in 9360 [\\/]* | ?:[\\/]*) 9361 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9362 ;; 9363 *) 9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9365 for as_dir in $PATH 9366 do 9367 IFS=$as_save_IFS 9368 test -z "$as_dir" && as_dir=. 9369 for ac_exec_ext in '' $ac_executable_extensions; do 9370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9371 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9373 break 2 9374 fi 9375 done 9376 done 9377 IFS=$as_save_IFS 9378 9379 ;; 9380 esac 9381 fi 9382 MV=$ac_cv_path_MV 9383 if test -n "$MV"; then 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9385 $as_echo "$MV" >&6; } 9386 else 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9388 $as_echo "no" >&6; } 9389 fi 9390 9391 9392 if test "x$MV" = x; then 9393 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9394 fi 9395 else 9396 # Otherwise we believe it is a complete path. Use it as it is. 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9398 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9400 $as_echo_n "checking for MV... " >&6; } 9401 if test ! -x "$tool_specified"; then 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9403 $as_echo "not found" >&6; } 9404 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9405 fi 9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9407 $as_echo "$tool_specified" >&6; } 9408 fi 9409 fi 9410 fi 9411 9412 fi 9413 9414 9415 9416 if test "x$MV" = x; then 9417 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9418 fi 9419 9420 9421 9422 9423 9424 # Publish this variable in the help. 9425 9426 9427 if [ -z "${NAWK+x}" ]; then 9428 # The variable is not set by user, try to locate tool using the code snippet 9429 for ac_prog in nawk gawk awk 9430 do 9431 # Extract the first word of "$ac_prog", so it can be a program name with args. 9432 set dummy $ac_prog; ac_word=$2 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9434 $as_echo_n "checking for $ac_word... " >&6; } 9435 if ${ac_cv_path_NAWK+:} false; then : 9436 $as_echo_n "(cached) " >&6 9437 else 9438 case $NAWK in 9439 [\\/]* | ?:[\\/]*) 9440 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9441 ;; 9442 *) 9443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9444 for as_dir in $PATH 9445 do 9446 IFS=$as_save_IFS 9447 test -z "$as_dir" && as_dir=. 9448 for ac_exec_ext in '' $ac_executable_extensions; do 9449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9450 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9452 break 2 9453 fi 9454 done 9455 done 9456 IFS=$as_save_IFS 9457 9458 ;; 9459 esac 9460 fi 9461 NAWK=$ac_cv_path_NAWK 9462 if test -n "$NAWK"; then 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9464 $as_echo "$NAWK" >&6; } 9465 else 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9467 $as_echo "no" >&6; } 9468 fi 9469 9470 9471 test -n "$NAWK" && break 9472 done 9473 9474 else 9475 # The variable is set, but is it from the command line or the environment? 9476 9477 # Try to remove the string !NAWK! from our list. 9478 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9479 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9480 # If it failed, the variable was not from the command line. Ignore it, 9481 # but warn the user (except for BASH, which is always set by the calling BASH). 9482 if test "xNAWK" != xBASH; then 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9484 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9485 fi 9486 # Try to locate tool using the code snippet 9487 for ac_prog in nawk gawk awk 9488 do 9489 # Extract the first word of "$ac_prog", so it can be a program name with args. 9490 set dummy $ac_prog; ac_word=$2 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9492 $as_echo_n "checking for $ac_word... " >&6; } 9493 if ${ac_cv_path_NAWK+:} false; then : 9494 $as_echo_n "(cached) " >&6 9495 else 9496 case $NAWK in 9497 [\\/]* | ?:[\\/]*) 9498 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9499 ;; 9500 *) 9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9502 for as_dir in $PATH 9503 do 9504 IFS=$as_save_IFS 9505 test -z "$as_dir" && as_dir=. 9506 for ac_exec_ext in '' $ac_executable_extensions; do 9507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9508 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9510 break 2 9511 fi 9512 done 9513 done 9514 IFS=$as_save_IFS 9515 9516 ;; 9517 esac 9518 fi 9519 NAWK=$ac_cv_path_NAWK 9520 if test -n "$NAWK"; then 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9522 $as_echo "$NAWK" >&6; } 9523 else 9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9525 $as_echo "no" >&6; } 9526 fi 9527 9528 9529 test -n "$NAWK" && break 9530 done 9531 9532 else 9533 # If it succeeded, then it was overridden by the user. We will use it 9534 # for the tool. 9535 9536 # First remove it from the list of overridden variables, so we can test 9537 # for unknown variables in the end. 9538 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9539 9540 # Check if we try to supply an empty value 9541 if test "x$NAWK" = x; then 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 9543 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9545 $as_echo_n "checking for NAWK... " >&6; } 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9547 $as_echo "disabled" >&6; } 9548 else 9549 # Check if the provided tool contains a complete path. 9550 tool_specified="$NAWK" 9551 tool_basename="${tool_specified##*/}" 9552 if test "x$tool_basename" = "x$tool_specified"; then 9553 # A command without a complete path is provided, search $PATH. 9554 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 9555 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 9556 # Extract the first word of "$tool_basename", so it can be a program name with args. 9557 set dummy $tool_basename; ac_word=$2 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9559 $as_echo_n "checking for $ac_word... " >&6; } 9560 if ${ac_cv_path_NAWK+:} false; then : 9561 $as_echo_n "(cached) " >&6 9562 else 9563 case $NAWK in 9564 [\\/]* | ?:[\\/]*) 9565 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9566 ;; 9567 *) 9568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9569 for as_dir in $PATH 9570 do 9571 IFS=$as_save_IFS 9572 test -z "$as_dir" && as_dir=. 9573 for ac_exec_ext in '' $ac_executable_extensions; do 9574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9575 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9577 break 2 9578 fi 9579 done 9580 done 9581 IFS=$as_save_IFS 9582 9583 ;; 9584 esac 9585 fi 9586 NAWK=$ac_cv_path_NAWK 9587 if test -n "$NAWK"; then 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9589 $as_echo "$NAWK" >&6; } 9590 else 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9592 $as_echo "no" >&6; } 9593 fi 9594 9595 9596 if test "x$NAWK" = x; then 9597 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9598 fi 9599 else 9600 # Otherwise we believe it is a complete path. Use it as it is. 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 9602 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 9603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9604 $as_echo_n "checking for NAWK... " >&6; } 9605 if test ! -x "$tool_specified"; then 9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9607 $as_echo "not found" >&6; } 9608 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 9609 fi 9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9611 $as_echo "$tool_specified" >&6; } 9612 fi 9613 fi 9614 fi 9615 9616 fi 9617 9618 9619 9620 if test "x$NAWK" = x; then 9621 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 9622 fi 9623 9624 9625 9626 9627 9628 # Publish this variable in the help. 9629 9630 9631 if [ -z "${PRINTF+x}" ]; then 9632 # The variable is not set by user, try to locate tool using the code snippet 9633 for ac_prog in printf 9634 do 9635 # Extract the first word of "$ac_prog", so it can be a program name with args. 9636 set dummy $ac_prog; ac_word=$2 9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9638 $as_echo_n "checking for $ac_word... " >&6; } 9639 if ${ac_cv_path_PRINTF+:} false; then : 9640 $as_echo_n "(cached) " >&6 9641 else 9642 case $PRINTF in 9643 [\\/]* | ?:[\\/]*) 9644 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9645 ;; 9646 *) 9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9648 for as_dir in $PATH 9649 do 9650 IFS=$as_save_IFS 9651 test -z "$as_dir" && as_dir=. 9652 for ac_exec_ext in '' $ac_executable_extensions; do 9653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9654 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9656 break 2 9657 fi 9658 done 9659 done 9660 IFS=$as_save_IFS 9661 9662 ;; 9663 esac 9664 fi 9665 PRINTF=$ac_cv_path_PRINTF 9666 if test -n "$PRINTF"; then 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9668 $as_echo "$PRINTF" >&6; } 9669 else 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9671 $as_echo "no" >&6; } 9672 fi 9673 9674 9675 test -n "$PRINTF" && break 9676 done 9677 9678 else 9679 # The variable is set, but is it from the command line or the environment? 9680 9681 # Try to remove the string !PRINTF! from our list. 9682 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 9683 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9684 # If it failed, the variable was not from the command line. Ignore it, 9685 # but warn the user (except for BASH, which is always set by the calling BASH). 9686 if test "xPRINTF" != xBASH; then 9687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 9688 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 9689 fi 9690 # Try to locate tool using the code snippet 9691 for ac_prog in printf 9692 do 9693 # Extract the first word of "$ac_prog", so it can be a program name with args. 9694 set dummy $ac_prog; ac_word=$2 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9696 $as_echo_n "checking for $ac_word... " >&6; } 9697 if ${ac_cv_path_PRINTF+:} false; then : 9698 $as_echo_n "(cached) " >&6 9699 else 9700 case $PRINTF in 9701 [\\/]* | ?:[\\/]*) 9702 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9703 ;; 9704 *) 9705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9706 for as_dir in $PATH 9707 do 9708 IFS=$as_save_IFS 9709 test -z "$as_dir" && as_dir=. 9710 for ac_exec_ext in '' $ac_executable_extensions; do 9711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9712 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9714 break 2 9715 fi 9716 done 9717 done 9718 IFS=$as_save_IFS 9719 9720 ;; 9721 esac 9722 fi 9723 PRINTF=$ac_cv_path_PRINTF 9724 if test -n "$PRINTF"; then 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9726 $as_echo "$PRINTF" >&6; } 9727 else 9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9729 $as_echo "no" >&6; } 9730 fi 9731 9732 9733 test -n "$PRINTF" && break 9734 done 9735 9736 else 9737 # If it succeeded, then it was overridden by the user. We will use it 9738 # for the tool. 9739 9740 # First remove it from the list of overridden variables, so we can test 9741 # for unknown variables in the end. 9742 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9743 9744 # Check if we try to supply an empty value 9745 if test "x$PRINTF" = x; then 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 9747 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 9748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 9749 $as_echo_n "checking for PRINTF... " >&6; } 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9751 $as_echo "disabled" >&6; } 9752 else 9753 # Check if the provided tool contains a complete path. 9754 tool_specified="$PRINTF" 9755 tool_basename="${tool_specified##*/}" 9756 if test "x$tool_basename" = "x$tool_specified"; then 9757 # A command without a complete path is provided, search $PATH. 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 9759 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 9760 # Extract the first word of "$tool_basename", so it can be a program name with args. 9761 set dummy $tool_basename; ac_word=$2 9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9763 $as_echo_n "checking for $ac_word... " >&6; } 9764 if ${ac_cv_path_PRINTF+:} false; then : 9765 $as_echo_n "(cached) " >&6 9766 else 9767 case $PRINTF in 9768 [\\/]* | ?:[\\/]*) 9769 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9770 ;; 9771 *) 9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9773 for as_dir in $PATH 9774 do 9775 IFS=$as_save_IFS 9776 test -z "$as_dir" && as_dir=. 9777 for ac_exec_ext in '' $ac_executable_extensions; do 9778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9779 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9781 break 2 9782 fi 9783 done 9784 done 9785 IFS=$as_save_IFS 9786 9787 ;; 9788 esac 9789 fi 9790 PRINTF=$ac_cv_path_PRINTF 9791 if test -n "$PRINTF"; then 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9793 $as_echo "$PRINTF" >&6; } 9794 else 9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9796 $as_echo "no" >&6; } 9797 fi 9798 9799 9800 if test "x$PRINTF" = x; then 9801 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9802 fi 9803 else 9804 # Otherwise we believe it is a complete path. Use it as it is. 9805 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 9806 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 9808 $as_echo_n "checking for PRINTF... " >&6; } 9809 if test ! -x "$tool_specified"; then 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9811 $as_echo "not found" >&6; } 9812 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 9813 fi 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9815 $as_echo "$tool_specified" >&6; } 9816 fi 9817 fi 9818 fi 9819 9820 fi 9821 9822 9823 9824 if test "x$PRINTF" = x; then 9825 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 9826 fi 9827 9828 9829 9830 9831 9832 # Publish this variable in the help. 9833 9834 9835 if [ -z "${RM+x}" ]; then 9836 # The variable is not set by user, try to locate tool using the code snippet 9837 for ac_prog in rm 9838 do 9839 # Extract the first word of "$ac_prog", so it can be a program name with args. 9840 set dummy $ac_prog; ac_word=$2 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9842 $as_echo_n "checking for $ac_word... " >&6; } 9843 if ${ac_cv_path_RM+:} false; then : 9844 $as_echo_n "(cached) " >&6 9845 else 9846 case $RM in 9847 [\\/]* | ?:[\\/]*) 9848 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9849 ;; 9850 *) 9851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9852 for as_dir in $PATH 9853 do 9854 IFS=$as_save_IFS 9855 test -z "$as_dir" && as_dir=. 9856 for ac_exec_ext in '' $ac_executable_extensions; do 9857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9858 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9860 break 2 9861 fi 9862 done 9863 done 9864 IFS=$as_save_IFS 9865 9866 ;; 9867 esac 9868 fi 9869 RM=$ac_cv_path_RM 9870 if test -n "$RM"; then 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9872 $as_echo "$RM" >&6; } 9873 else 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9875 $as_echo "no" >&6; } 9876 fi 9877 9878 9879 test -n "$RM" && break 9880 done 9881 9882 else 9883 # The variable is set, but is it from the command line or the environment? 9884 9885 # Try to remove the string !RM! from our list. 9886 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 9887 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9888 # If it failed, the variable was not from the command line. Ignore it, 9889 # but warn the user (except for BASH, which is always set by the calling BASH). 9890 if test "xRM" != xBASH; then 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 9892 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 9893 fi 9894 # Try to locate tool using the code snippet 9895 for ac_prog in rm 9896 do 9897 # Extract the first word of "$ac_prog", so it can be a program name with args. 9898 set dummy $ac_prog; ac_word=$2 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9900 $as_echo_n "checking for $ac_word... " >&6; } 9901 if ${ac_cv_path_RM+:} false; then : 9902 $as_echo_n "(cached) " >&6 9903 else 9904 case $RM in 9905 [\\/]* | ?:[\\/]*) 9906 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9907 ;; 9908 *) 9909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9910 for as_dir in $PATH 9911 do 9912 IFS=$as_save_IFS 9913 test -z "$as_dir" && as_dir=. 9914 for ac_exec_ext in '' $ac_executable_extensions; do 9915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9916 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9918 break 2 9919 fi 9920 done 9921 done 9922 IFS=$as_save_IFS 9923 9924 ;; 9925 esac 9926 fi 9927 RM=$ac_cv_path_RM 9928 if test -n "$RM"; then 9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9930 $as_echo "$RM" >&6; } 9931 else 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9933 $as_echo "no" >&6; } 9934 fi 9935 9936 9937 test -n "$RM" && break 9938 done 9939 9940 else 9941 # If it succeeded, then it was overridden by the user. We will use it 9942 # for the tool. 9943 9944 # First remove it from the list of overridden variables, so we can test 9945 # for unknown variables in the end. 9946 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9947 9948 # Check if we try to supply an empty value 9949 if test "x$RM" = x; then 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 9951 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9953 $as_echo_n "checking for RM... " >&6; } 9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9955 $as_echo "disabled" >&6; } 9956 else 9957 # Check if the provided tool contains a complete path. 9958 tool_specified="$RM" 9959 tool_basename="${tool_specified##*/}" 9960 if test "x$tool_basename" = "x$tool_specified"; then 9961 # A command without a complete path is provided, search $PATH. 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9963 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9964 # Extract the first word of "$tool_basename", so it can be a program name with args. 9965 set dummy $tool_basename; ac_word=$2 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9967 $as_echo_n "checking for $ac_word... " >&6; } 9968 if ${ac_cv_path_RM+:} false; then : 9969 $as_echo_n "(cached) " >&6 9970 else 9971 case $RM in 9972 [\\/]* | ?:[\\/]*) 9973 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9974 ;; 9975 *) 9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9977 for as_dir in $PATH 9978 do 9979 IFS=$as_save_IFS 9980 test -z "$as_dir" && as_dir=. 9981 for ac_exec_ext in '' $ac_executable_extensions; do 9982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9983 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9985 break 2 9986 fi 9987 done 9988 done 9989 IFS=$as_save_IFS 9990 9991 ;; 9992 esac 9993 fi 9994 RM=$ac_cv_path_RM 9995 if test -n "$RM"; then 9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9997 $as_echo "$RM" >&6; } 9998 else 9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10000 $as_echo "no" >&6; } 10001 fi 10002 10003 10004 if test "x$RM" = x; then 10005 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10006 fi 10007 else 10008 # Otherwise we believe it is a complete path. Use it as it is. 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10010 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10012 $as_echo_n "checking for RM... " >&6; } 10013 if test ! -x "$tool_specified"; then 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10015 $as_echo "not found" >&6; } 10016 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10017 fi 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10019 $as_echo "$tool_specified" >&6; } 10020 fi 10021 fi 10022 fi 10023 10024 fi 10025 10026 10027 10028 if test "x$RM" = x; then 10029 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10030 fi 10031 10032 10033 10034 10035 10036 # Publish this variable in the help. 10037 10038 10039 if [ -z "${RMDIR+x}" ]; then 10040 # The variable is not set by user, try to locate tool using the code snippet 10041 for ac_prog in rmdir 10042 do 10043 # Extract the first word of "$ac_prog", so it can be a program name with args. 10044 set dummy $ac_prog; ac_word=$2 10045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10046 $as_echo_n "checking for $ac_word... " >&6; } 10047 if ${ac_cv_path_RMDIR+:} false; then : 10048 $as_echo_n "(cached) " >&6 10049 else 10050 case $RMDIR in 10051 [\\/]* | ?:[\\/]*) 10052 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10053 ;; 10054 *) 10055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10056 for as_dir in $PATH 10057 do 10058 IFS=$as_save_IFS 10059 test -z "$as_dir" && as_dir=. 10060 for ac_exec_ext in '' $ac_executable_extensions; do 10061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10062 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10064 break 2 10065 fi 10066 done 10067 done 10068 IFS=$as_save_IFS 10069 10070 ;; 10071 esac 10072 fi 10073 RMDIR=$ac_cv_path_RMDIR 10074 if test -n "$RMDIR"; then 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10076 $as_echo "$RMDIR" >&6; } 10077 else 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10079 $as_echo "no" >&6; } 10080 fi 10081 10082 10083 test -n "$RMDIR" && break 10084 done 10085 10086 else 10087 # The variable is set, but is it from the command line or the environment? 10088 10089 # Try to remove the string !RMDIR! from our list. 10090 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10091 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10092 # If it failed, the variable was not from the command line. Ignore it, 10093 # but warn the user (except for BASH, which is always set by the calling BASH). 10094 if test "xRMDIR" != xBASH; then 10095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10096 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10097 fi 10098 # Try to locate tool using the code snippet 10099 for ac_prog in rmdir 10100 do 10101 # Extract the first word of "$ac_prog", so it can be a program name with args. 10102 set dummy $ac_prog; ac_word=$2 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10104 $as_echo_n "checking for $ac_word... " >&6; } 10105 if ${ac_cv_path_RMDIR+:} false; then : 10106 $as_echo_n "(cached) " >&6 10107 else 10108 case $RMDIR in 10109 [\\/]* | ?:[\\/]*) 10110 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10111 ;; 10112 *) 10113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10114 for as_dir in $PATH 10115 do 10116 IFS=$as_save_IFS 10117 test -z "$as_dir" && as_dir=. 10118 for ac_exec_ext in '' $ac_executable_extensions; do 10119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10120 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10122 break 2 10123 fi 10124 done 10125 done 10126 IFS=$as_save_IFS 10127 10128 ;; 10129 esac 10130 fi 10131 RMDIR=$ac_cv_path_RMDIR 10132 if test -n "$RMDIR"; then 10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10134 $as_echo "$RMDIR" >&6; } 10135 else 10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10137 $as_echo "no" >&6; } 10138 fi 10139 10140 10141 test -n "$RMDIR" && break 10142 done 10143 10144 else 10145 # If it succeeded, then it was overridden by the user. We will use it 10146 # for the tool. 10147 10148 # First remove it from the list of overridden variables, so we can test 10149 # for unknown variables in the end. 10150 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10151 10152 # Check if we try to supply an empty value 10153 if test "x$RMDIR" = x; then 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10155 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10157 $as_echo_n "checking for RMDIR... " >&6; } 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10159 $as_echo "disabled" >&6; } 10160 else 10161 # Check if the provided tool contains a complete path. 10162 tool_specified="$RMDIR" 10163 tool_basename="${tool_specified##*/}" 10164 if test "x$tool_basename" = "x$tool_specified"; then 10165 # A command without a complete path is provided, search $PATH. 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10167 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10168 # Extract the first word of "$tool_basename", so it can be a program name with args. 10169 set dummy $tool_basename; ac_word=$2 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10171 $as_echo_n "checking for $ac_word... " >&6; } 10172 if ${ac_cv_path_RMDIR+:} false; then : 10173 $as_echo_n "(cached) " >&6 10174 else 10175 case $RMDIR in 10176 [\\/]* | ?:[\\/]*) 10177 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10178 ;; 10179 *) 10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10181 for as_dir in $PATH 10182 do 10183 IFS=$as_save_IFS 10184 test -z "$as_dir" && as_dir=. 10185 for ac_exec_ext in '' $ac_executable_extensions; do 10186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10187 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10189 break 2 10190 fi 10191 done 10192 done 10193 IFS=$as_save_IFS 10194 10195 ;; 10196 esac 10197 fi 10198 RMDIR=$ac_cv_path_RMDIR 10199 if test -n "$RMDIR"; then 10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10201 $as_echo "$RMDIR" >&6; } 10202 else 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10204 $as_echo "no" >&6; } 10205 fi 10206 10207 10208 if test "x$RMDIR" = x; then 10209 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10210 fi 10211 else 10212 # Otherwise we believe it is a complete path. Use it as it is. 10213 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10214 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10216 $as_echo_n "checking for RMDIR... " >&6; } 10217 if test ! -x "$tool_specified"; then 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10219 $as_echo "not found" >&6; } 10220 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10221 fi 10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10223 $as_echo "$tool_specified" >&6; } 10224 fi 10225 fi 10226 fi 10227 10228 fi 10229 10230 10231 10232 if test "x$RMDIR" = x; then 10233 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10234 fi 10235 10236 10237 10238 10239 10240 # Publish this variable in the help. 10241 10242 10243 if [ -z "${SH+x}" ]; then 10244 # The variable is not set by user, try to locate tool using the code snippet 10245 for ac_prog in sh 10246 do 10247 # Extract the first word of "$ac_prog", so it can be a program name with args. 10248 set dummy $ac_prog; ac_word=$2 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10250 $as_echo_n "checking for $ac_word... " >&6; } 10251 if ${ac_cv_path_SH+:} false; then : 10252 $as_echo_n "(cached) " >&6 10253 else 10254 case $SH in 10255 [\\/]* | ?:[\\/]*) 10256 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10257 ;; 10258 *) 10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10260 for as_dir in $PATH 10261 do 10262 IFS=$as_save_IFS 10263 test -z "$as_dir" && as_dir=. 10264 for ac_exec_ext in '' $ac_executable_extensions; do 10265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10266 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10268 break 2 10269 fi 10270 done 10271 done 10272 IFS=$as_save_IFS 10273 10274 ;; 10275 esac 10276 fi 10277 SH=$ac_cv_path_SH 10278 if test -n "$SH"; then 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10280 $as_echo "$SH" >&6; } 10281 else 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10283 $as_echo "no" >&6; } 10284 fi 10285 10286 10287 test -n "$SH" && break 10288 done 10289 10290 else 10291 # The variable is set, but is it from the command line or the environment? 10292 10293 # Try to remove the string !SH! from our list. 10294 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10295 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10296 # If it failed, the variable was not from the command line. Ignore it, 10297 # but warn the user (except for BASH, which is always set by the calling BASH). 10298 if test "xSH" != xBASH; then 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10300 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10301 fi 10302 # Try to locate tool using the code snippet 10303 for ac_prog in sh 10304 do 10305 # Extract the first word of "$ac_prog", so it can be a program name with args. 10306 set dummy $ac_prog; ac_word=$2 10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10308 $as_echo_n "checking for $ac_word... " >&6; } 10309 if ${ac_cv_path_SH+:} false; then : 10310 $as_echo_n "(cached) " >&6 10311 else 10312 case $SH in 10313 [\\/]* | ?:[\\/]*) 10314 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10315 ;; 10316 *) 10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10318 for as_dir in $PATH 10319 do 10320 IFS=$as_save_IFS 10321 test -z "$as_dir" && as_dir=. 10322 for ac_exec_ext in '' $ac_executable_extensions; do 10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10324 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10326 break 2 10327 fi 10328 done 10329 done 10330 IFS=$as_save_IFS 10331 10332 ;; 10333 esac 10334 fi 10335 SH=$ac_cv_path_SH 10336 if test -n "$SH"; then 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10338 $as_echo "$SH" >&6; } 10339 else 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10341 $as_echo "no" >&6; } 10342 fi 10343 10344 10345 test -n "$SH" && break 10346 done 10347 10348 else 10349 # If it succeeded, then it was overridden by the user. We will use it 10350 # for the tool. 10351 10352 # First remove it from the list of overridden variables, so we can test 10353 # for unknown variables in the end. 10354 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10355 10356 # Check if we try to supply an empty value 10357 if test "x$SH" = x; then 10358 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10359 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10361 $as_echo_n "checking for SH... " >&6; } 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10363 $as_echo "disabled" >&6; } 10364 else 10365 # Check if the provided tool contains a complete path. 10366 tool_specified="$SH" 10367 tool_basename="${tool_specified##*/}" 10368 if test "x$tool_basename" = "x$tool_specified"; then 10369 # A command without a complete path is provided, search $PATH. 10370 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10371 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10372 # Extract the first word of "$tool_basename", so it can be a program name with args. 10373 set dummy $tool_basename; ac_word=$2 10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10375 $as_echo_n "checking for $ac_word... " >&6; } 10376 if ${ac_cv_path_SH+:} false; then : 10377 $as_echo_n "(cached) " >&6 10378 else 10379 case $SH in 10380 [\\/]* | ?:[\\/]*) 10381 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10382 ;; 10383 *) 10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10385 for as_dir in $PATH 10386 do 10387 IFS=$as_save_IFS 10388 test -z "$as_dir" && as_dir=. 10389 for ac_exec_ext in '' $ac_executable_extensions; do 10390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10391 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10393 break 2 10394 fi 10395 done 10396 done 10397 IFS=$as_save_IFS 10398 10399 ;; 10400 esac 10401 fi 10402 SH=$ac_cv_path_SH 10403 if test -n "$SH"; then 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10405 $as_echo "$SH" >&6; } 10406 else 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10408 $as_echo "no" >&6; } 10409 fi 10410 10411 10412 if test "x$SH" = x; then 10413 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10414 fi 10415 else 10416 # Otherwise we believe it is a complete path. Use it as it is. 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10418 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10420 $as_echo_n "checking for SH... " >&6; } 10421 if test ! -x "$tool_specified"; then 10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10423 $as_echo "not found" >&6; } 10424 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10425 fi 10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10427 $as_echo "$tool_specified" >&6; } 10428 fi 10429 fi 10430 fi 10431 10432 fi 10433 10434 10435 10436 if test "x$SH" = x; then 10437 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10438 fi 10439 10440 10441 10442 10443 10444 # Publish this variable in the help. 10445 10446 10447 if [ -z "${SORT+x}" ]; then 10448 # The variable is not set by user, try to locate tool using the code snippet 10449 for ac_prog in sort 10450 do 10451 # Extract the first word of "$ac_prog", so it can be a program name with args. 10452 set dummy $ac_prog; ac_word=$2 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10454 $as_echo_n "checking for $ac_word... " >&6; } 10455 if ${ac_cv_path_SORT+:} false; then : 10456 $as_echo_n "(cached) " >&6 10457 else 10458 case $SORT in 10459 [\\/]* | ?:[\\/]*) 10460 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10461 ;; 10462 *) 10463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10464 for as_dir in $PATH 10465 do 10466 IFS=$as_save_IFS 10467 test -z "$as_dir" && as_dir=. 10468 for ac_exec_ext in '' $ac_executable_extensions; do 10469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10470 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10472 break 2 10473 fi 10474 done 10475 done 10476 IFS=$as_save_IFS 10477 10478 ;; 10479 esac 10480 fi 10481 SORT=$ac_cv_path_SORT 10482 if test -n "$SORT"; then 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10484 $as_echo "$SORT" >&6; } 10485 else 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10487 $as_echo "no" >&6; } 10488 fi 10489 10490 10491 test -n "$SORT" && break 10492 done 10493 10494 else 10495 # The variable is set, but is it from the command line or the environment? 10496 10497 # Try to remove the string !SORT! from our list. 10498 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 10499 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10500 # If it failed, the variable was not from the command line. Ignore it, 10501 # but warn the user (except for BASH, which is always set by the calling BASH). 10502 if test "xSORT" != xBASH; then 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 10504 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 10505 fi 10506 # Try to locate tool using the code snippet 10507 for ac_prog in sort 10508 do 10509 # Extract the first word of "$ac_prog", so it can be a program name with args. 10510 set dummy $ac_prog; ac_word=$2 10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10512 $as_echo_n "checking for $ac_word... " >&6; } 10513 if ${ac_cv_path_SORT+:} false; then : 10514 $as_echo_n "(cached) " >&6 10515 else 10516 case $SORT in 10517 [\\/]* | ?:[\\/]*) 10518 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10519 ;; 10520 *) 10521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10522 for as_dir in $PATH 10523 do 10524 IFS=$as_save_IFS 10525 test -z "$as_dir" && as_dir=. 10526 for ac_exec_ext in '' $ac_executable_extensions; do 10527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10528 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10530 break 2 10531 fi 10532 done 10533 done 10534 IFS=$as_save_IFS 10535 10536 ;; 10537 esac 10538 fi 10539 SORT=$ac_cv_path_SORT 10540 if test -n "$SORT"; then 10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10542 $as_echo "$SORT" >&6; } 10543 else 10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10545 $as_echo "no" >&6; } 10546 fi 10547 10548 10549 test -n "$SORT" && break 10550 done 10551 10552 else 10553 # If it succeeded, then it was overridden by the user. We will use it 10554 # for the tool. 10555 10556 # First remove it from the list of overridden variables, so we can test 10557 # for unknown variables in the end. 10558 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10559 10560 # Check if we try to supply an empty value 10561 if test "x$SORT" = x; then 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 10563 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 10565 $as_echo_n "checking for SORT... " >&6; } 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10567 $as_echo "disabled" >&6; } 10568 else 10569 # Check if the provided tool contains a complete path. 10570 tool_specified="$SORT" 10571 tool_basename="${tool_specified##*/}" 10572 if test "x$tool_basename" = "x$tool_specified"; then 10573 # A command without a complete path is provided, search $PATH. 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 10575 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 10576 # Extract the first word of "$tool_basename", so it can be a program name with args. 10577 set dummy $tool_basename; ac_word=$2 10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10579 $as_echo_n "checking for $ac_word... " >&6; } 10580 if ${ac_cv_path_SORT+:} false; then : 10581 $as_echo_n "(cached) " >&6 10582 else 10583 case $SORT in 10584 [\\/]* | ?:[\\/]*) 10585 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10586 ;; 10587 *) 10588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10589 for as_dir in $PATH 10590 do 10591 IFS=$as_save_IFS 10592 test -z "$as_dir" && as_dir=. 10593 for ac_exec_ext in '' $ac_executable_extensions; do 10594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10595 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10597 break 2 10598 fi 10599 done 10600 done 10601 IFS=$as_save_IFS 10602 10603 ;; 10604 esac 10605 fi 10606 SORT=$ac_cv_path_SORT 10607 if test -n "$SORT"; then 10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10609 $as_echo "$SORT" >&6; } 10610 else 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10612 $as_echo "no" >&6; } 10613 fi 10614 10615 10616 if test "x$SORT" = x; then 10617 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10618 fi 10619 else 10620 # Otherwise we believe it is a complete path. Use it as it is. 10621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 10622 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 10624 $as_echo_n "checking for SORT... " >&6; } 10625 if test ! -x "$tool_specified"; then 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10627 $as_echo "not found" >&6; } 10628 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 10629 fi 10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10631 $as_echo "$tool_specified" >&6; } 10632 fi 10633 fi 10634 fi 10635 10636 fi 10637 10638 10639 10640 if test "x$SORT" = x; then 10641 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 10642 fi 10643 10644 10645 10646 10647 10648 # Publish this variable in the help. 10649 10650 10651 if [ -z "${TAIL+x}" ]; then 10652 # The variable is not set by user, try to locate tool using the code snippet 10653 for ac_prog in tail 10654 do 10655 # Extract the first word of "$ac_prog", so it can be a program name with args. 10656 set dummy $ac_prog; ac_word=$2 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10658 $as_echo_n "checking for $ac_word... " >&6; } 10659 if ${ac_cv_path_TAIL+:} false; then : 10660 $as_echo_n "(cached) " >&6 10661 else 10662 case $TAIL in 10663 [\\/]* | ?:[\\/]*) 10664 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 10665 ;; 10666 *) 10667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10668 for as_dir in $PATH 10669 do 10670 IFS=$as_save_IFS 10671 test -z "$as_dir" && as_dir=. 10672 for ac_exec_ext in '' $ac_executable_extensions; do 10673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10674 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10676 break 2 10677 fi 10678 done 10679 done 10680 IFS=$as_save_IFS 10681 10682 ;; 10683 esac 10684 fi 10685 TAIL=$ac_cv_path_TAIL 10686 if test -n "$TAIL"; then 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10688 $as_echo "$TAIL" >&6; } 10689 else 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10691 $as_echo "no" >&6; } 10692 fi 10693 10694 10695 test -n "$TAIL" && break 10696 done 10697 10698 else 10699 # The variable is set, but is it from the command line or the environment? 10700 10701 # Try to remove the string !TAIL! from our list. 10702 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 10703 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10704 # If it failed, the variable was not from the command line. Ignore it, 10705 # but warn the user (except for BASH, which is always set by the calling BASH). 10706 if test "xTAIL" != xBASH; then 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 10708 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 10709 fi 10710 # Try to locate tool using the code snippet 10711 for ac_prog in tail 10712 do 10713 # Extract the first word of "$ac_prog", so it can be a program name with args. 10714 set dummy $ac_prog; ac_word=$2 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10716 $as_echo_n "checking for $ac_word... " >&6; } 10717 if ${ac_cv_path_TAIL+:} false; then : 10718 $as_echo_n "(cached) " >&6 10719 else 10720 case $TAIL in 10721 [\\/]* | ?:[\\/]*) 10722 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 10723 ;; 10724 *) 10725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10726 for as_dir in $PATH 10727 do 10728 IFS=$as_save_IFS 10729 test -z "$as_dir" && as_dir=. 10730 for ac_exec_ext in '' $ac_executable_extensions; do 10731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10732 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10734 break 2 10735 fi 10736 done 10737 done 10738 IFS=$as_save_IFS 10739 10740 ;; 10741 esac 10742 fi 10743 TAIL=$ac_cv_path_TAIL 10744 if test -n "$TAIL"; then 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10746 $as_echo "$TAIL" >&6; } 10747 else 10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10749 $as_echo "no" >&6; } 10750 fi 10751 10752 10753 test -n "$TAIL" && break 10754 done 10755 10756 else 10757 # If it succeeded, then it was overridden by the user. We will use it 10758 # for the tool. 10759 10760 # First remove it from the list of overridden variables, so we can test 10761 # for unknown variables in the end. 10762 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10763 10764 # Check if we try to supply an empty value 10765 if test "x$TAIL" = x; then 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 10767 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 10769 $as_echo_n "checking for TAIL... " >&6; } 10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10771 $as_echo "disabled" >&6; } 10772 else 10773 # Check if the provided tool contains a complete path. 10774 tool_specified="$TAIL" 10775 tool_basename="${tool_specified##*/}" 10776 if test "x$tool_basename" = "x$tool_specified"; then 10777 # A command without a complete path is provided, search $PATH. 10778 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 10779 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 10780 # Extract the first word of "$tool_basename", so it can be a program name with args. 10781 set dummy $tool_basename; ac_word=$2 10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10783 $as_echo_n "checking for $ac_word... " >&6; } 10784 if ${ac_cv_path_TAIL+:} false; then : 10785 $as_echo_n "(cached) " >&6 10786 else 10787 case $TAIL in 10788 [\\/]* | ?:[\\/]*) 10789 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 10790 ;; 10791 *) 10792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10793 for as_dir in $PATH 10794 do 10795 IFS=$as_save_IFS 10796 test -z "$as_dir" && as_dir=. 10797 for ac_exec_ext in '' $ac_executable_extensions; do 10798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10799 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10801 break 2 10802 fi 10803 done 10804 done 10805 IFS=$as_save_IFS 10806 10807 ;; 10808 esac 10809 fi 10810 TAIL=$ac_cv_path_TAIL 10811 if test -n "$TAIL"; then 10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10813 $as_echo "$TAIL" >&6; } 10814 else 10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10816 $as_echo "no" >&6; } 10817 fi 10818 10819 10820 if test "x$TAIL" = x; then 10821 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10822 fi 10823 else 10824 # Otherwise we believe it is a complete path. Use it as it is. 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 10826 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 10828 $as_echo_n "checking for TAIL... " >&6; } 10829 if test ! -x "$tool_specified"; then 10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10831 $as_echo "not found" >&6; } 10832 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 10833 fi 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10835 $as_echo "$tool_specified" >&6; } 10836 fi 10837 fi 10838 fi 10839 10840 fi 10841 10842 10843 10844 if test "x$TAIL" = x; then 10845 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 10846 fi 10847 10848 10849 10850 10851 10852 # Publish this variable in the help. 10853 10854 10855 if [ -z "${TAR+x}" ]; then 10856 # The variable is not set by user, try to locate tool using the code snippet 10857 for ac_prog in tar 10858 do 10859 # Extract the first word of "$ac_prog", so it can be a program name with args. 10860 set dummy $ac_prog; ac_word=$2 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10862 $as_echo_n "checking for $ac_word... " >&6; } 10863 if ${ac_cv_path_TAR+:} false; then : 10864 $as_echo_n "(cached) " >&6 10865 else 10866 case $TAR in 10867 [\\/]* | ?:[\\/]*) 10868 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10869 ;; 10870 *) 10871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10872 for as_dir in $PATH 10873 do 10874 IFS=$as_save_IFS 10875 test -z "$as_dir" && as_dir=. 10876 for ac_exec_ext in '' $ac_executable_extensions; do 10877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10878 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10880 break 2 10881 fi 10882 done 10883 done 10884 IFS=$as_save_IFS 10885 10886 ;; 10887 esac 10888 fi 10889 TAR=$ac_cv_path_TAR 10890 if test -n "$TAR"; then 10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10892 $as_echo "$TAR" >&6; } 10893 else 10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10895 $as_echo "no" >&6; } 10896 fi 10897 10898 10899 test -n "$TAR" && break 10900 done 10901 10902 else 10903 # The variable is set, but is it from the command line or the environment? 10904 10905 # Try to remove the string !TAR! from our list. 10906 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 10907 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10908 # If it failed, the variable was not from the command line. Ignore it, 10909 # but warn the user (except for BASH, which is always set by the calling BASH). 10910 if test "xTAR" != xBASH; then 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 10912 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 10913 fi 10914 # Try to locate tool using the code snippet 10915 for ac_prog in tar 10916 do 10917 # Extract the first word of "$ac_prog", so it can be a program name with args. 10918 set dummy $ac_prog; ac_word=$2 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10920 $as_echo_n "checking for $ac_word... " >&6; } 10921 if ${ac_cv_path_TAR+:} false; then : 10922 $as_echo_n "(cached) " >&6 10923 else 10924 case $TAR in 10925 [\\/]* | ?:[\\/]*) 10926 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10927 ;; 10928 *) 10929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10930 for as_dir in $PATH 10931 do 10932 IFS=$as_save_IFS 10933 test -z "$as_dir" && as_dir=. 10934 for ac_exec_ext in '' $ac_executable_extensions; do 10935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10936 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10938 break 2 10939 fi 10940 done 10941 done 10942 IFS=$as_save_IFS 10943 10944 ;; 10945 esac 10946 fi 10947 TAR=$ac_cv_path_TAR 10948 if test -n "$TAR"; then 10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10950 $as_echo "$TAR" >&6; } 10951 else 10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10953 $as_echo "no" >&6; } 10954 fi 10955 10956 10957 test -n "$TAR" && break 10958 done 10959 10960 else 10961 # If it succeeded, then it was overridden by the user. We will use it 10962 # for the tool. 10963 10964 # First remove it from the list of overridden variables, so we can test 10965 # for unknown variables in the end. 10966 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10967 10968 # Check if we try to supply an empty value 10969 if test "x$TAR" = x; then 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 10971 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 10973 $as_echo_n "checking for TAR... " >&6; } 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10975 $as_echo "disabled" >&6; } 10976 else 10977 # Check if the provided tool contains a complete path. 10978 tool_specified="$TAR" 10979 tool_basename="${tool_specified##*/}" 10980 if test "x$tool_basename" = "x$tool_specified"; then 10981 # A command without a complete path is provided, search $PATH. 10982 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 10983 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 10984 # Extract the first word of "$tool_basename", so it can be a program name with args. 10985 set dummy $tool_basename; ac_word=$2 10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10987 $as_echo_n "checking for $ac_word... " >&6; } 10988 if ${ac_cv_path_TAR+:} false; then : 10989 $as_echo_n "(cached) " >&6 10990 else 10991 case $TAR in 10992 [\\/]* | ?:[\\/]*) 10993 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10994 ;; 10995 *) 10996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10997 for as_dir in $PATH 10998 do 10999 IFS=$as_save_IFS 11000 test -z "$as_dir" && as_dir=. 11001 for ac_exec_ext in '' $ac_executable_extensions; do 11002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11003 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11005 break 2 11006 fi 11007 done 11008 done 11009 IFS=$as_save_IFS 11010 11011 ;; 11012 esac 11013 fi 11014 TAR=$ac_cv_path_TAR 11015 if test -n "$TAR"; then 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11017 $as_echo "$TAR" >&6; } 11018 else 11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11020 $as_echo "no" >&6; } 11021 fi 11022 11023 11024 if test "x$TAR" = x; then 11025 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11026 fi 11027 else 11028 # Otherwise we believe it is a complete path. Use it as it is. 11029 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11030 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11032 $as_echo_n "checking for TAR... " >&6; } 11033 if test ! -x "$tool_specified"; then 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11035 $as_echo "not found" >&6; } 11036 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11037 fi 11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11039 $as_echo "$tool_specified" >&6; } 11040 fi 11041 fi 11042 fi 11043 11044 fi 11045 11046 11047 11048 if test "x$TAR" = x; then 11049 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11050 fi 11051 11052 11053 11054 11055 11056 # Publish this variable in the help. 11057 11058 11059 if [ -z "${TEE+x}" ]; then 11060 # The variable is not set by user, try to locate tool using the code snippet 11061 for ac_prog in tee 11062 do 11063 # Extract the first word of "$ac_prog", so it can be a program name with args. 11064 set dummy $ac_prog; ac_word=$2 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11066 $as_echo_n "checking for $ac_word... " >&6; } 11067 if ${ac_cv_path_TEE+:} false; then : 11068 $as_echo_n "(cached) " >&6 11069 else 11070 case $TEE in 11071 [\\/]* | ?:[\\/]*) 11072 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11073 ;; 11074 *) 11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11076 for as_dir in $PATH 11077 do 11078 IFS=$as_save_IFS 11079 test -z "$as_dir" && as_dir=. 11080 for ac_exec_ext in '' $ac_executable_extensions; do 11081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11082 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11084 break 2 11085 fi 11086 done 11087 done 11088 IFS=$as_save_IFS 11089 11090 ;; 11091 esac 11092 fi 11093 TEE=$ac_cv_path_TEE 11094 if test -n "$TEE"; then 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11096 $as_echo "$TEE" >&6; } 11097 else 11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11099 $as_echo "no" >&6; } 11100 fi 11101 11102 11103 test -n "$TEE" && break 11104 done 11105 11106 else 11107 # The variable is set, but is it from the command line or the environment? 11108 11109 # Try to remove the string !TEE! from our list. 11110 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11111 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11112 # If it failed, the variable was not from the command line. Ignore it, 11113 # but warn the user (except for BASH, which is always set by the calling BASH). 11114 if test "xTEE" != xBASH; then 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11116 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11117 fi 11118 # Try to locate tool using the code snippet 11119 for ac_prog in tee 11120 do 11121 # Extract the first word of "$ac_prog", so it can be a program name with args. 11122 set dummy $ac_prog; ac_word=$2 11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11124 $as_echo_n "checking for $ac_word... " >&6; } 11125 if ${ac_cv_path_TEE+:} false; then : 11126 $as_echo_n "(cached) " >&6 11127 else 11128 case $TEE in 11129 [\\/]* | ?:[\\/]*) 11130 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11131 ;; 11132 *) 11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11134 for as_dir in $PATH 11135 do 11136 IFS=$as_save_IFS 11137 test -z "$as_dir" && as_dir=. 11138 for ac_exec_ext in '' $ac_executable_extensions; do 11139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11140 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11142 break 2 11143 fi 11144 done 11145 done 11146 IFS=$as_save_IFS 11147 11148 ;; 11149 esac 11150 fi 11151 TEE=$ac_cv_path_TEE 11152 if test -n "$TEE"; then 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11154 $as_echo "$TEE" >&6; } 11155 else 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11157 $as_echo "no" >&6; } 11158 fi 11159 11160 11161 test -n "$TEE" && break 11162 done 11163 11164 else 11165 # If it succeeded, then it was overridden by the user. We will use it 11166 # for the tool. 11167 11168 # First remove it from the list of overridden variables, so we can test 11169 # for unknown variables in the end. 11170 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11171 11172 # Check if we try to supply an empty value 11173 if test "x$TEE" = x; then 11174 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11175 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11177 $as_echo_n "checking for TEE... " >&6; } 11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11179 $as_echo "disabled" >&6; } 11180 else 11181 # Check if the provided tool contains a complete path. 11182 tool_specified="$TEE" 11183 tool_basename="${tool_specified##*/}" 11184 if test "x$tool_basename" = "x$tool_specified"; then 11185 # A command without a complete path is provided, search $PATH. 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11187 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11188 # Extract the first word of "$tool_basename", so it can be a program name with args. 11189 set dummy $tool_basename; ac_word=$2 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11191 $as_echo_n "checking for $ac_word... " >&6; } 11192 if ${ac_cv_path_TEE+:} false; then : 11193 $as_echo_n "(cached) " >&6 11194 else 11195 case $TEE in 11196 [\\/]* | ?:[\\/]*) 11197 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11198 ;; 11199 *) 11200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11201 for as_dir in $PATH 11202 do 11203 IFS=$as_save_IFS 11204 test -z "$as_dir" && as_dir=. 11205 for ac_exec_ext in '' $ac_executable_extensions; do 11206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11207 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11209 break 2 11210 fi 11211 done 11212 done 11213 IFS=$as_save_IFS 11214 11215 ;; 11216 esac 11217 fi 11218 TEE=$ac_cv_path_TEE 11219 if test -n "$TEE"; then 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11221 $as_echo "$TEE" >&6; } 11222 else 11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11224 $as_echo "no" >&6; } 11225 fi 11226 11227 11228 if test "x$TEE" = x; then 11229 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11230 fi 11231 else 11232 # Otherwise we believe it is a complete path. Use it as it is. 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11234 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11236 $as_echo_n "checking for TEE... " >&6; } 11237 if test ! -x "$tool_specified"; then 11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11239 $as_echo "not found" >&6; } 11240 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11241 fi 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11243 $as_echo "$tool_specified" >&6; } 11244 fi 11245 fi 11246 fi 11247 11248 fi 11249 11250 11251 11252 if test "x$TEE" = x; then 11253 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11254 fi 11255 11256 11257 11258 11259 11260 # Publish this variable in the help. 11261 11262 11263 if [ -z "${TOUCH+x}" ]; then 11264 # The variable is not set by user, try to locate tool using the code snippet 11265 for ac_prog in touch 11266 do 11267 # Extract the first word of "$ac_prog", so it can be a program name with args. 11268 set dummy $ac_prog; ac_word=$2 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11270 $as_echo_n "checking for $ac_word... " >&6; } 11271 if ${ac_cv_path_TOUCH+:} false; then : 11272 $as_echo_n "(cached) " >&6 11273 else 11274 case $TOUCH in 11275 [\\/]* | ?:[\\/]*) 11276 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11277 ;; 11278 *) 11279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11280 for as_dir in $PATH 11281 do 11282 IFS=$as_save_IFS 11283 test -z "$as_dir" && as_dir=. 11284 for ac_exec_ext in '' $ac_executable_extensions; do 11285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11286 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11288 break 2 11289 fi 11290 done 11291 done 11292 IFS=$as_save_IFS 11293 11294 ;; 11295 esac 11296 fi 11297 TOUCH=$ac_cv_path_TOUCH 11298 if test -n "$TOUCH"; then 11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11300 $as_echo "$TOUCH" >&6; } 11301 else 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11303 $as_echo "no" >&6; } 11304 fi 11305 11306 11307 test -n "$TOUCH" && break 11308 done 11309 11310 else 11311 # The variable is set, but is it from the command line or the environment? 11312 11313 # Try to remove the string !TOUCH! from our list. 11314 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11315 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11316 # If it failed, the variable was not from the command line. Ignore it, 11317 # but warn the user (except for BASH, which is always set by the calling BASH). 11318 if test "xTOUCH" != xBASH; then 11319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11320 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11321 fi 11322 # Try to locate tool using the code snippet 11323 for ac_prog in touch 11324 do 11325 # Extract the first word of "$ac_prog", so it can be a program name with args. 11326 set dummy $ac_prog; ac_word=$2 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11328 $as_echo_n "checking for $ac_word... " >&6; } 11329 if ${ac_cv_path_TOUCH+:} false; then : 11330 $as_echo_n "(cached) " >&6 11331 else 11332 case $TOUCH in 11333 [\\/]* | ?:[\\/]*) 11334 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11335 ;; 11336 *) 11337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11338 for as_dir in $PATH 11339 do 11340 IFS=$as_save_IFS 11341 test -z "$as_dir" && as_dir=. 11342 for ac_exec_ext in '' $ac_executable_extensions; do 11343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11344 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11346 break 2 11347 fi 11348 done 11349 done 11350 IFS=$as_save_IFS 11351 11352 ;; 11353 esac 11354 fi 11355 TOUCH=$ac_cv_path_TOUCH 11356 if test -n "$TOUCH"; then 11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11358 $as_echo "$TOUCH" >&6; } 11359 else 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11361 $as_echo "no" >&6; } 11362 fi 11363 11364 11365 test -n "$TOUCH" && break 11366 done 11367 11368 else 11369 # If it succeeded, then it was overridden by the user. We will use it 11370 # for the tool. 11371 11372 # First remove it from the list of overridden variables, so we can test 11373 # for unknown variables in the end. 11374 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11375 11376 # Check if we try to supply an empty value 11377 if test "x$TOUCH" = x; then 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11379 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11381 $as_echo_n "checking for TOUCH... " >&6; } 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11383 $as_echo "disabled" >&6; } 11384 else 11385 # Check if the provided tool contains a complete path. 11386 tool_specified="$TOUCH" 11387 tool_basename="${tool_specified##*/}" 11388 if test "x$tool_basename" = "x$tool_specified"; then 11389 # A command without a complete path is provided, search $PATH. 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11391 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11392 # Extract the first word of "$tool_basename", so it can be a program name with args. 11393 set dummy $tool_basename; ac_word=$2 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11395 $as_echo_n "checking for $ac_word... " >&6; } 11396 if ${ac_cv_path_TOUCH+:} false; then : 11397 $as_echo_n "(cached) " >&6 11398 else 11399 case $TOUCH in 11400 [\\/]* | ?:[\\/]*) 11401 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11402 ;; 11403 *) 11404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11405 for as_dir in $PATH 11406 do 11407 IFS=$as_save_IFS 11408 test -z "$as_dir" && as_dir=. 11409 for ac_exec_ext in '' $ac_executable_extensions; do 11410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11411 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11413 break 2 11414 fi 11415 done 11416 done 11417 IFS=$as_save_IFS 11418 11419 ;; 11420 esac 11421 fi 11422 TOUCH=$ac_cv_path_TOUCH 11423 if test -n "$TOUCH"; then 11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11425 $as_echo "$TOUCH" >&6; } 11426 else 11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11428 $as_echo "no" >&6; } 11429 fi 11430 11431 11432 if test "x$TOUCH" = x; then 11433 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11434 fi 11435 else 11436 # Otherwise we believe it is a complete path. Use it as it is. 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11438 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11440 $as_echo_n "checking for TOUCH... " >&6; } 11441 if test ! -x "$tool_specified"; then 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11443 $as_echo "not found" >&6; } 11444 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11445 fi 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11447 $as_echo "$tool_specified" >&6; } 11448 fi 11449 fi 11450 fi 11451 11452 fi 11453 11454 11455 11456 if test "x$TOUCH" = x; then 11457 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11458 fi 11459 11460 11461 11462 11463 11464 # Publish this variable in the help. 11465 11466 11467 if [ -z "${TR+x}" ]; then 11468 # The variable is not set by user, try to locate tool using the code snippet 11469 for ac_prog in tr 11470 do 11471 # Extract the first word of "$ac_prog", so it can be a program name with args. 11472 set dummy $ac_prog; ac_word=$2 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11474 $as_echo_n "checking for $ac_word... " >&6; } 11475 if ${ac_cv_path_TR+:} false; then : 11476 $as_echo_n "(cached) " >&6 11477 else 11478 case $TR in 11479 [\\/]* | ?:[\\/]*) 11480 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11481 ;; 11482 *) 11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11484 for as_dir in $PATH 11485 do 11486 IFS=$as_save_IFS 11487 test -z "$as_dir" && as_dir=. 11488 for ac_exec_ext in '' $ac_executable_extensions; do 11489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11490 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11492 break 2 11493 fi 11494 done 11495 done 11496 IFS=$as_save_IFS 11497 11498 ;; 11499 esac 11500 fi 11501 TR=$ac_cv_path_TR 11502 if test -n "$TR"; then 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11504 $as_echo "$TR" >&6; } 11505 else 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11507 $as_echo "no" >&6; } 11508 fi 11509 11510 11511 test -n "$TR" && break 11512 done 11513 11514 else 11515 # The variable is set, but is it from the command line or the environment? 11516 11517 # Try to remove the string !TR! from our list. 11518 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 11519 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11520 # If it failed, the variable was not from the command line. Ignore it, 11521 # but warn the user (except for BASH, which is always set by the calling BASH). 11522 if test "xTR" != xBASH; then 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 11524 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 11525 fi 11526 # Try to locate tool using the code snippet 11527 for ac_prog in tr 11528 do 11529 # Extract the first word of "$ac_prog", so it can be a program name with args. 11530 set dummy $ac_prog; ac_word=$2 11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11532 $as_echo_n "checking for $ac_word... " >&6; } 11533 if ${ac_cv_path_TR+:} false; then : 11534 $as_echo_n "(cached) " >&6 11535 else 11536 case $TR in 11537 [\\/]* | ?:[\\/]*) 11538 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11539 ;; 11540 *) 11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11542 for as_dir in $PATH 11543 do 11544 IFS=$as_save_IFS 11545 test -z "$as_dir" && as_dir=. 11546 for ac_exec_ext in '' $ac_executable_extensions; do 11547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11548 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11550 break 2 11551 fi 11552 done 11553 done 11554 IFS=$as_save_IFS 11555 11556 ;; 11557 esac 11558 fi 11559 TR=$ac_cv_path_TR 11560 if test -n "$TR"; then 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11562 $as_echo "$TR" >&6; } 11563 else 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11565 $as_echo "no" >&6; } 11566 fi 11567 11568 11569 test -n "$TR" && break 11570 done 11571 11572 else 11573 # If it succeeded, then it was overridden by the user. We will use it 11574 # for the tool. 11575 11576 # First remove it from the list of overridden variables, so we can test 11577 # for unknown variables in the end. 11578 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11579 11580 # Check if we try to supply an empty value 11581 if test "x$TR" = x; then 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 11583 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 11585 $as_echo_n "checking for TR... " >&6; } 11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11587 $as_echo "disabled" >&6; } 11588 else 11589 # Check if the provided tool contains a complete path. 11590 tool_specified="$TR" 11591 tool_basename="${tool_specified##*/}" 11592 if test "x$tool_basename" = "x$tool_specified"; then 11593 # A command without a complete path is provided, search $PATH. 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 11595 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 11596 # Extract the first word of "$tool_basename", so it can be a program name with args. 11597 set dummy $tool_basename; ac_word=$2 11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11599 $as_echo_n "checking for $ac_word... " >&6; } 11600 if ${ac_cv_path_TR+:} false; then : 11601 $as_echo_n "(cached) " >&6 11602 else 11603 case $TR in 11604 [\\/]* | ?:[\\/]*) 11605 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11606 ;; 11607 *) 11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11609 for as_dir in $PATH 11610 do 11611 IFS=$as_save_IFS 11612 test -z "$as_dir" && as_dir=. 11613 for ac_exec_ext in '' $ac_executable_extensions; do 11614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11615 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11617 break 2 11618 fi 11619 done 11620 done 11621 IFS=$as_save_IFS 11622 11623 ;; 11624 esac 11625 fi 11626 TR=$ac_cv_path_TR 11627 if test -n "$TR"; then 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 11629 $as_echo "$TR" >&6; } 11630 else 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11632 $as_echo "no" >&6; } 11633 fi 11634 11635 11636 if test "x$TR" = x; then 11637 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11638 fi 11639 else 11640 # Otherwise we believe it is a complete path. Use it as it is. 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 11642 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 11644 $as_echo_n "checking for TR... " >&6; } 11645 if test ! -x "$tool_specified"; then 11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11647 $as_echo "not found" >&6; } 11648 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 11649 fi 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11651 $as_echo "$tool_specified" >&6; } 11652 fi 11653 fi 11654 fi 11655 11656 fi 11657 11658 11659 11660 if test "x$TR" = x; then 11661 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 11662 fi 11663 11664 11665 11666 11667 11668 # Publish this variable in the help. 11669 11670 11671 if [ -z "${UNAME+x}" ]; then 11672 # The variable is not set by user, try to locate tool using the code snippet 11673 for ac_prog in uname 11674 do 11675 # Extract the first word of "$ac_prog", so it can be a program name with args. 11676 set dummy $ac_prog; ac_word=$2 11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11678 $as_echo_n "checking for $ac_word... " >&6; } 11679 if ${ac_cv_path_UNAME+:} false; then : 11680 $as_echo_n "(cached) " >&6 11681 else 11682 case $UNAME in 11683 [\\/]* | ?:[\\/]*) 11684 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11685 ;; 11686 *) 11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11688 for as_dir in $PATH 11689 do 11690 IFS=$as_save_IFS 11691 test -z "$as_dir" && as_dir=. 11692 for ac_exec_ext in '' $ac_executable_extensions; do 11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11694 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11696 break 2 11697 fi 11698 done 11699 done 11700 IFS=$as_save_IFS 11701 11702 ;; 11703 esac 11704 fi 11705 UNAME=$ac_cv_path_UNAME 11706 if test -n "$UNAME"; then 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11708 $as_echo "$UNAME" >&6; } 11709 else 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11711 $as_echo "no" >&6; } 11712 fi 11713 11714 11715 test -n "$UNAME" && break 11716 done 11717 11718 else 11719 # The variable is set, but is it from the command line or the environment? 11720 11721 # Try to remove the string !UNAME! from our list. 11722 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 11723 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11724 # If it failed, the variable was not from the command line. Ignore it, 11725 # but warn the user (except for BASH, which is always set by the calling BASH). 11726 if test "xUNAME" != xBASH; then 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 11728 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 11729 fi 11730 # Try to locate tool using the code snippet 11731 for ac_prog in uname 11732 do 11733 # Extract the first word of "$ac_prog", so it can be a program name with args. 11734 set dummy $ac_prog; ac_word=$2 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11736 $as_echo_n "checking for $ac_word... " >&6; } 11737 if ${ac_cv_path_UNAME+:} false; then : 11738 $as_echo_n "(cached) " >&6 11739 else 11740 case $UNAME in 11741 [\\/]* | ?:[\\/]*) 11742 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11743 ;; 11744 *) 11745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11746 for as_dir in $PATH 11747 do 11748 IFS=$as_save_IFS 11749 test -z "$as_dir" && as_dir=. 11750 for ac_exec_ext in '' $ac_executable_extensions; do 11751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11752 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11754 break 2 11755 fi 11756 done 11757 done 11758 IFS=$as_save_IFS 11759 11760 ;; 11761 esac 11762 fi 11763 UNAME=$ac_cv_path_UNAME 11764 if test -n "$UNAME"; then 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11766 $as_echo "$UNAME" >&6; } 11767 else 11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11769 $as_echo "no" >&6; } 11770 fi 11771 11772 11773 test -n "$UNAME" && break 11774 done 11775 11776 else 11777 # If it succeeded, then it was overridden by the user. We will use it 11778 # for the tool. 11779 11780 # First remove it from the list of overridden variables, so we can test 11781 # for unknown variables in the end. 11782 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11783 11784 # Check if we try to supply an empty value 11785 if test "x$UNAME" = x; then 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 11787 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 11789 $as_echo_n "checking for UNAME... " >&6; } 11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11791 $as_echo "disabled" >&6; } 11792 else 11793 # Check if the provided tool contains a complete path. 11794 tool_specified="$UNAME" 11795 tool_basename="${tool_specified##*/}" 11796 if test "x$tool_basename" = "x$tool_specified"; then 11797 # A command without a complete path is provided, search $PATH. 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 11799 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 11800 # Extract the first word of "$tool_basename", so it can be a program name with args. 11801 set dummy $tool_basename; ac_word=$2 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11803 $as_echo_n "checking for $ac_word... " >&6; } 11804 if ${ac_cv_path_UNAME+:} false; then : 11805 $as_echo_n "(cached) " >&6 11806 else 11807 case $UNAME in 11808 [\\/]* | ?:[\\/]*) 11809 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11810 ;; 11811 *) 11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11813 for as_dir in $PATH 11814 do 11815 IFS=$as_save_IFS 11816 test -z "$as_dir" && as_dir=. 11817 for ac_exec_ext in '' $ac_executable_extensions; do 11818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11819 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11821 break 2 11822 fi 11823 done 11824 done 11825 IFS=$as_save_IFS 11826 11827 ;; 11828 esac 11829 fi 11830 UNAME=$ac_cv_path_UNAME 11831 if test -n "$UNAME"; then 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11833 $as_echo "$UNAME" >&6; } 11834 else 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11836 $as_echo "no" >&6; } 11837 fi 11838 11839 11840 if test "x$UNAME" = x; then 11841 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11842 fi 11843 else 11844 # Otherwise we believe it is a complete path. Use it as it is. 11845 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 11846 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 11848 $as_echo_n "checking for UNAME... " >&6; } 11849 if test ! -x "$tool_specified"; then 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11851 $as_echo "not found" >&6; } 11852 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 11853 fi 11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11855 $as_echo "$tool_specified" >&6; } 11856 fi 11857 fi 11858 fi 11859 11860 fi 11861 11862 11863 11864 if test "x$UNAME" = x; then 11865 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 11866 fi 11867 11868 11869 11870 11871 11872 # Publish this variable in the help. 11873 11874 11875 if [ -z "${UNIQ+x}" ]; then 11876 # The variable is not set by user, try to locate tool using the code snippet 11877 for ac_prog in uniq 11878 do 11879 # Extract the first word of "$ac_prog", so it can be a program name with args. 11880 set dummy $ac_prog; ac_word=$2 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11882 $as_echo_n "checking for $ac_word... " >&6; } 11883 if ${ac_cv_path_UNIQ+:} false; then : 11884 $as_echo_n "(cached) " >&6 11885 else 11886 case $UNIQ in 11887 [\\/]* | ?:[\\/]*) 11888 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 11889 ;; 11890 *) 11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11892 for as_dir in $PATH 11893 do 11894 IFS=$as_save_IFS 11895 test -z "$as_dir" && as_dir=. 11896 for ac_exec_ext in '' $ac_executable_extensions; do 11897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11898 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11900 break 2 11901 fi 11902 done 11903 done 11904 IFS=$as_save_IFS 11905 11906 ;; 11907 esac 11908 fi 11909 UNIQ=$ac_cv_path_UNIQ 11910 if test -n "$UNIQ"; then 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11912 $as_echo "$UNIQ" >&6; } 11913 else 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11915 $as_echo "no" >&6; } 11916 fi 11917 11918 11919 test -n "$UNIQ" && break 11920 done 11921 11922 else 11923 # The variable is set, but is it from the command line or the environment? 11924 11925 # Try to remove the string !UNIQ! from our list. 11926 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 11927 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11928 # If it failed, the variable was not from the command line. Ignore it, 11929 # but warn the user (except for BASH, which is always set by the calling BASH). 11930 if test "xUNIQ" != xBASH; then 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 11932 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 11933 fi 11934 # Try to locate tool using the code snippet 11935 for ac_prog in uniq 11936 do 11937 # Extract the first word of "$ac_prog", so it can be a program name with args. 11938 set dummy $ac_prog; ac_word=$2 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11940 $as_echo_n "checking for $ac_word... " >&6; } 11941 if ${ac_cv_path_UNIQ+:} false; then : 11942 $as_echo_n "(cached) " >&6 11943 else 11944 case $UNIQ in 11945 [\\/]* | ?:[\\/]*) 11946 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 11947 ;; 11948 *) 11949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11950 for as_dir in $PATH 11951 do 11952 IFS=$as_save_IFS 11953 test -z "$as_dir" && as_dir=. 11954 for ac_exec_ext in '' $ac_executable_extensions; do 11955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11956 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11958 break 2 11959 fi 11960 done 11961 done 11962 IFS=$as_save_IFS 11963 11964 ;; 11965 esac 11966 fi 11967 UNIQ=$ac_cv_path_UNIQ 11968 if test -n "$UNIQ"; then 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11970 $as_echo "$UNIQ" >&6; } 11971 else 11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11973 $as_echo "no" >&6; } 11974 fi 11975 11976 11977 test -n "$UNIQ" && break 11978 done 11979 11980 else 11981 # If it succeeded, then it was overridden by the user. We will use it 11982 # for the tool. 11983 11984 # First remove it from the list of overridden variables, so we can test 11985 # for unknown variables in the end. 11986 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11987 11988 # Check if we try to supply an empty value 11989 if test "x$UNIQ" = x; then 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 11991 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 11993 $as_echo_n "checking for UNIQ... " >&6; } 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11995 $as_echo "disabled" >&6; } 11996 else 11997 # Check if the provided tool contains a complete path. 11998 tool_specified="$UNIQ" 11999 tool_basename="${tool_specified##*/}" 12000 if test "x$tool_basename" = "x$tool_specified"; then 12001 # A command without a complete path is provided, search $PATH. 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12003 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12004 # Extract the first word of "$tool_basename", so it can be a program name with args. 12005 set dummy $tool_basename; ac_word=$2 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12007 $as_echo_n "checking for $ac_word... " >&6; } 12008 if ${ac_cv_path_UNIQ+:} false; then : 12009 $as_echo_n "(cached) " >&6 12010 else 12011 case $UNIQ in 12012 [\\/]* | ?:[\\/]*) 12013 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12014 ;; 12015 *) 12016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12017 for as_dir in $PATH 12018 do 12019 IFS=$as_save_IFS 12020 test -z "$as_dir" && as_dir=. 12021 for ac_exec_ext in '' $ac_executable_extensions; do 12022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12023 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12025 break 2 12026 fi 12027 done 12028 done 12029 IFS=$as_save_IFS 12030 12031 ;; 12032 esac 12033 fi 12034 UNIQ=$ac_cv_path_UNIQ 12035 if test -n "$UNIQ"; then 12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12037 $as_echo "$UNIQ" >&6; } 12038 else 12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12040 $as_echo "no" >&6; } 12041 fi 12042 12043 12044 if test "x$UNIQ" = x; then 12045 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12046 fi 12047 else 12048 # Otherwise we believe it is a complete path. Use it as it is. 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12050 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12052 $as_echo_n "checking for UNIQ... " >&6; } 12053 if test ! -x "$tool_specified"; then 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12055 $as_echo "not found" >&6; } 12056 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12057 fi 12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12059 $as_echo "$tool_specified" >&6; } 12060 fi 12061 fi 12062 fi 12063 12064 fi 12065 12066 12067 12068 if test "x$UNIQ" = x; then 12069 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12070 fi 12071 12072 12073 12074 12075 12076 # Publish this variable in the help. 12077 12078 12079 if [ -z "${WC+x}" ]; then 12080 # The variable is not set by user, try to locate tool using the code snippet 12081 for ac_prog in wc 12082 do 12083 # Extract the first word of "$ac_prog", so it can be a program name with args. 12084 set dummy $ac_prog; ac_word=$2 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12086 $as_echo_n "checking for $ac_word... " >&6; } 12087 if ${ac_cv_path_WC+:} false; then : 12088 $as_echo_n "(cached) " >&6 12089 else 12090 case $WC in 12091 [\\/]* | ?:[\\/]*) 12092 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12093 ;; 12094 *) 12095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12096 for as_dir in $PATH 12097 do 12098 IFS=$as_save_IFS 12099 test -z "$as_dir" && as_dir=. 12100 for ac_exec_ext in '' $ac_executable_extensions; do 12101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12102 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12104 break 2 12105 fi 12106 done 12107 done 12108 IFS=$as_save_IFS 12109 12110 ;; 12111 esac 12112 fi 12113 WC=$ac_cv_path_WC 12114 if test -n "$WC"; then 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12116 $as_echo "$WC" >&6; } 12117 else 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12119 $as_echo "no" >&6; } 12120 fi 12121 12122 12123 test -n "$WC" && break 12124 done 12125 12126 else 12127 # The variable is set, but is it from the command line or the environment? 12128 12129 # Try to remove the string !WC! from our list. 12130 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12131 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12132 # If it failed, the variable was not from the command line. Ignore it, 12133 # but warn the user (except for BASH, which is always set by the calling BASH). 12134 if test "xWC" != xBASH; then 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12136 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12137 fi 12138 # Try to locate tool using the code snippet 12139 for ac_prog in wc 12140 do 12141 # Extract the first word of "$ac_prog", so it can be a program name with args. 12142 set dummy $ac_prog; ac_word=$2 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12144 $as_echo_n "checking for $ac_word... " >&6; } 12145 if ${ac_cv_path_WC+:} false; then : 12146 $as_echo_n "(cached) " >&6 12147 else 12148 case $WC in 12149 [\\/]* | ?:[\\/]*) 12150 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12151 ;; 12152 *) 12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12154 for as_dir in $PATH 12155 do 12156 IFS=$as_save_IFS 12157 test -z "$as_dir" && as_dir=. 12158 for ac_exec_ext in '' $ac_executable_extensions; do 12159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12160 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12162 break 2 12163 fi 12164 done 12165 done 12166 IFS=$as_save_IFS 12167 12168 ;; 12169 esac 12170 fi 12171 WC=$ac_cv_path_WC 12172 if test -n "$WC"; then 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12174 $as_echo "$WC" >&6; } 12175 else 12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12177 $as_echo "no" >&6; } 12178 fi 12179 12180 12181 test -n "$WC" && break 12182 done 12183 12184 else 12185 # If it succeeded, then it was overridden by the user. We will use it 12186 # for the tool. 12187 12188 # First remove it from the list of overridden variables, so we can test 12189 # for unknown variables in the end. 12190 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12191 12192 # Check if we try to supply an empty value 12193 if test "x$WC" = x; then 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12195 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12197 $as_echo_n "checking for WC... " >&6; } 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12199 $as_echo "disabled" >&6; } 12200 else 12201 # Check if the provided tool contains a complete path. 12202 tool_specified="$WC" 12203 tool_basename="${tool_specified##*/}" 12204 if test "x$tool_basename" = "x$tool_specified"; then 12205 # A command without a complete path is provided, search $PATH. 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12207 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12208 # Extract the first word of "$tool_basename", so it can be a program name with args. 12209 set dummy $tool_basename; ac_word=$2 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12211 $as_echo_n "checking for $ac_word... " >&6; } 12212 if ${ac_cv_path_WC+:} false; then : 12213 $as_echo_n "(cached) " >&6 12214 else 12215 case $WC in 12216 [\\/]* | ?:[\\/]*) 12217 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12218 ;; 12219 *) 12220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12221 for as_dir in $PATH 12222 do 12223 IFS=$as_save_IFS 12224 test -z "$as_dir" && as_dir=. 12225 for ac_exec_ext in '' $ac_executable_extensions; do 12226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12227 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12229 break 2 12230 fi 12231 done 12232 done 12233 IFS=$as_save_IFS 12234 12235 ;; 12236 esac 12237 fi 12238 WC=$ac_cv_path_WC 12239 if test -n "$WC"; then 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12241 $as_echo "$WC" >&6; } 12242 else 12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12244 $as_echo "no" >&6; } 12245 fi 12246 12247 12248 if test "x$WC" = x; then 12249 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12250 fi 12251 else 12252 # Otherwise we believe it is a complete path. Use it as it is. 12253 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12254 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12256 $as_echo_n "checking for WC... " >&6; } 12257 if test ! -x "$tool_specified"; then 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12259 $as_echo "not found" >&6; } 12260 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12261 fi 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12263 $as_echo "$tool_specified" >&6; } 12264 fi 12265 fi 12266 fi 12267 12268 fi 12269 12270 12271 12272 if test "x$WC" = x; then 12273 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12274 fi 12275 12276 12277 12278 12279 12280 # Publish this variable in the help. 12281 12282 12283 if [ -z "${WHICH+x}" ]; then 12284 # The variable is not set by user, try to locate tool using the code snippet 12285 for ac_prog in which 12286 do 12287 # Extract the first word of "$ac_prog", so it can be a program name with args. 12288 set dummy $ac_prog; ac_word=$2 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12290 $as_echo_n "checking for $ac_word... " >&6; } 12291 if ${ac_cv_path_WHICH+:} false; then : 12292 $as_echo_n "(cached) " >&6 12293 else 12294 case $WHICH in 12295 [\\/]* | ?:[\\/]*) 12296 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12297 ;; 12298 *) 12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12300 for as_dir in $PATH 12301 do 12302 IFS=$as_save_IFS 12303 test -z "$as_dir" && as_dir=. 12304 for ac_exec_ext in '' $ac_executable_extensions; do 12305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12306 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12308 break 2 12309 fi 12310 done 12311 done 12312 IFS=$as_save_IFS 12313 12314 ;; 12315 esac 12316 fi 12317 WHICH=$ac_cv_path_WHICH 12318 if test -n "$WHICH"; then 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12320 $as_echo "$WHICH" >&6; } 12321 else 12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12323 $as_echo "no" >&6; } 12324 fi 12325 12326 12327 test -n "$WHICH" && break 12328 done 12329 12330 else 12331 # The variable is set, but is it from the command line or the environment? 12332 12333 # Try to remove the string !WHICH! from our list. 12334 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12335 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12336 # If it failed, the variable was not from the command line. Ignore it, 12337 # but warn the user (except for BASH, which is always set by the calling BASH). 12338 if test "xWHICH" != xBASH; then 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12340 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12341 fi 12342 # Try to locate tool using the code snippet 12343 for ac_prog in which 12344 do 12345 # Extract the first word of "$ac_prog", so it can be a program name with args. 12346 set dummy $ac_prog; ac_word=$2 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12348 $as_echo_n "checking for $ac_word... " >&6; } 12349 if ${ac_cv_path_WHICH+:} false; then : 12350 $as_echo_n "(cached) " >&6 12351 else 12352 case $WHICH in 12353 [\\/]* | ?:[\\/]*) 12354 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12355 ;; 12356 *) 12357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12358 for as_dir in $PATH 12359 do 12360 IFS=$as_save_IFS 12361 test -z "$as_dir" && as_dir=. 12362 for ac_exec_ext in '' $ac_executable_extensions; do 12363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12364 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12366 break 2 12367 fi 12368 done 12369 done 12370 IFS=$as_save_IFS 12371 12372 ;; 12373 esac 12374 fi 12375 WHICH=$ac_cv_path_WHICH 12376 if test -n "$WHICH"; then 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12378 $as_echo "$WHICH" >&6; } 12379 else 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12381 $as_echo "no" >&6; } 12382 fi 12383 12384 12385 test -n "$WHICH" && break 12386 done 12387 12388 else 12389 # If it succeeded, then it was overridden by the user. We will use it 12390 # for the tool. 12391 12392 # First remove it from the list of overridden variables, so we can test 12393 # for unknown variables in the end. 12394 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12395 12396 # Check if we try to supply an empty value 12397 if test "x$WHICH" = x; then 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12399 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12401 $as_echo_n "checking for WHICH... " >&6; } 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12403 $as_echo "disabled" >&6; } 12404 else 12405 # Check if the provided tool contains a complete path. 12406 tool_specified="$WHICH" 12407 tool_basename="${tool_specified##*/}" 12408 if test "x$tool_basename" = "x$tool_specified"; then 12409 # A command without a complete path is provided, search $PATH. 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12411 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12412 # Extract the first word of "$tool_basename", so it can be a program name with args. 12413 set dummy $tool_basename; ac_word=$2 12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12415 $as_echo_n "checking for $ac_word... " >&6; } 12416 if ${ac_cv_path_WHICH+:} false; then : 12417 $as_echo_n "(cached) " >&6 12418 else 12419 case $WHICH in 12420 [\\/]* | ?:[\\/]*) 12421 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12422 ;; 12423 *) 12424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12425 for as_dir in $PATH 12426 do 12427 IFS=$as_save_IFS 12428 test -z "$as_dir" && as_dir=. 12429 for ac_exec_ext in '' $ac_executable_extensions; do 12430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12431 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12433 break 2 12434 fi 12435 done 12436 done 12437 IFS=$as_save_IFS 12438 12439 ;; 12440 esac 12441 fi 12442 WHICH=$ac_cv_path_WHICH 12443 if test -n "$WHICH"; then 12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12445 $as_echo "$WHICH" >&6; } 12446 else 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12448 $as_echo "no" >&6; } 12449 fi 12450 12451 12452 if test "x$WHICH" = x; then 12453 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12454 fi 12455 else 12456 # Otherwise we believe it is a complete path. Use it as it is. 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12458 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12460 $as_echo_n "checking for WHICH... " >&6; } 12461 if test ! -x "$tool_specified"; then 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12463 $as_echo "not found" >&6; } 12464 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12465 fi 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12467 $as_echo "$tool_specified" >&6; } 12468 fi 12469 fi 12470 fi 12471 12472 fi 12473 12474 12475 12476 if test "x$WHICH" = x; then 12477 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12478 fi 12479 12480 12481 12482 12483 12484 # Publish this variable in the help. 12485 12486 12487 if [ -z "${XARGS+x}" ]; then 12488 # The variable is not set by user, try to locate tool using the code snippet 12489 for ac_prog in xargs 12490 do 12491 # Extract the first word of "$ac_prog", so it can be a program name with args. 12492 set dummy $ac_prog; ac_word=$2 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12494 $as_echo_n "checking for $ac_word... " >&6; } 12495 if ${ac_cv_path_XARGS+:} false; then : 12496 $as_echo_n "(cached) " >&6 12497 else 12498 case $XARGS in 12499 [\\/]* | ?:[\\/]*) 12500 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12501 ;; 12502 *) 12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12504 for as_dir in $PATH 12505 do 12506 IFS=$as_save_IFS 12507 test -z "$as_dir" && as_dir=. 12508 for ac_exec_ext in '' $ac_executable_extensions; do 12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12510 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12512 break 2 12513 fi 12514 done 12515 done 12516 IFS=$as_save_IFS 12517 12518 ;; 12519 esac 12520 fi 12521 XARGS=$ac_cv_path_XARGS 12522 if test -n "$XARGS"; then 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12524 $as_echo "$XARGS" >&6; } 12525 else 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12527 $as_echo "no" >&6; } 12528 fi 12529 12530 12531 test -n "$XARGS" && break 12532 done 12533 12534 else 12535 # The variable is set, but is it from the command line or the environment? 12536 12537 # Try to remove the string !XARGS! from our list. 12538 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 12539 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12540 # If it failed, the variable was not from the command line. Ignore it, 12541 # but warn the user (except for BASH, which is always set by the calling BASH). 12542 if test "xXARGS" != xBASH; then 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 12544 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 12545 fi 12546 # Try to locate tool using the code snippet 12547 for ac_prog in xargs 12548 do 12549 # Extract the first word of "$ac_prog", so it can be a program name with args. 12550 set dummy $ac_prog; ac_word=$2 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12552 $as_echo_n "checking for $ac_word... " >&6; } 12553 if ${ac_cv_path_XARGS+:} false; then : 12554 $as_echo_n "(cached) " >&6 12555 else 12556 case $XARGS in 12557 [\\/]* | ?:[\\/]*) 12558 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12559 ;; 12560 *) 12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12562 for as_dir in $PATH 12563 do 12564 IFS=$as_save_IFS 12565 test -z "$as_dir" && as_dir=. 12566 for ac_exec_ext in '' $ac_executable_extensions; do 12567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12568 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12570 break 2 12571 fi 12572 done 12573 done 12574 IFS=$as_save_IFS 12575 12576 ;; 12577 esac 12578 fi 12579 XARGS=$ac_cv_path_XARGS 12580 if test -n "$XARGS"; then 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12582 $as_echo "$XARGS" >&6; } 12583 else 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12585 $as_echo "no" >&6; } 12586 fi 12587 12588 12589 test -n "$XARGS" && break 12590 done 12591 12592 else 12593 # If it succeeded, then it was overridden by the user. We will use it 12594 # for the tool. 12595 12596 # First remove it from the list of overridden variables, so we can test 12597 # for unknown variables in the end. 12598 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12599 12600 # Check if we try to supply an empty value 12601 if test "x$XARGS" = x; then 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 12603 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 12605 $as_echo_n "checking for XARGS... " >&6; } 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12607 $as_echo "disabled" >&6; } 12608 else 12609 # Check if the provided tool contains a complete path. 12610 tool_specified="$XARGS" 12611 tool_basename="${tool_specified##*/}" 12612 if test "x$tool_basename" = "x$tool_specified"; then 12613 # A command without a complete path is provided, search $PATH. 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 12615 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 12616 # Extract the first word of "$tool_basename", so it can be a program name with args. 12617 set dummy $tool_basename; ac_word=$2 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12619 $as_echo_n "checking for $ac_word... " >&6; } 12620 if ${ac_cv_path_XARGS+:} false; then : 12621 $as_echo_n "(cached) " >&6 12622 else 12623 case $XARGS in 12624 [\\/]* | ?:[\\/]*) 12625 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 12626 ;; 12627 *) 12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12629 for as_dir in $PATH 12630 do 12631 IFS=$as_save_IFS 12632 test -z "$as_dir" && as_dir=. 12633 for ac_exec_ext in '' $ac_executable_extensions; do 12634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12635 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12637 break 2 12638 fi 12639 done 12640 done 12641 IFS=$as_save_IFS 12642 12643 ;; 12644 esac 12645 fi 12646 XARGS=$ac_cv_path_XARGS 12647 if test -n "$XARGS"; then 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 12649 $as_echo "$XARGS" >&6; } 12650 else 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12652 $as_echo "no" >&6; } 12653 fi 12654 12655 12656 if test "x$XARGS" = x; then 12657 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12658 fi 12659 else 12660 # Otherwise we believe it is a complete path. Use it as it is. 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 12662 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 12664 $as_echo_n "checking for XARGS... " >&6; } 12665 if test ! -x "$tool_specified"; then 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12667 $as_echo "not found" >&6; } 12668 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 12669 fi 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12671 $as_echo "$tool_specified" >&6; } 12672 fi 12673 fi 12674 fi 12675 12676 fi 12677 12678 12679 12680 if test "x$XARGS" = x; then 12681 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 12682 fi 12683 12684 12685 12686 # Then required tools that require some special treatment. 12687 12688 12689 # Publish this variable in the help. 12690 12691 12692 if [ -z "${AWK+x}" ]; then 12693 # The variable is not set by user, try to locate tool using the code snippet 12694 for ac_prog in gawk mawk nawk awk 12695 do 12696 # Extract the first word of "$ac_prog", so it can be a program name with args. 12697 set dummy $ac_prog; ac_word=$2 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12699 $as_echo_n "checking for $ac_word... " >&6; } 12700 if ${ac_cv_prog_AWK+:} false; then : 12701 $as_echo_n "(cached) " >&6 12702 else 12703 if test -n "$AWK"; then 12704 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12705 else 12706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12707 for as_dir in $PATH 12708 do 12709 IFS=$as_save_IFS 12710 test -z "$as_dir" && as_dir=. 12711 for ac_exec_ext in '' $ac_executable_extensions; do 12712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12713 ac_cv_prog_AWK="$ac_prog" 12714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12715 break 2 12716 fi 12717 done 12718 done 12719 IFS=$as_save_IFS 12720 12721 fi 12722 fi 12723 AWK=$ac_cv_prog_AWK 12724 if test -n "$AWK"; then 12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12726 $as_echo "$AWK" >&6; } 12727 else 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12729 $as_echo "no" >&6; } 12730 fi 12731 12732 12733 test -n "$AWK" && break 12734 done 12735 12736 else 12737 # The variable is set, but is it from the command line or the environment? 12738 12739 # Try to remove the string !AWK! from our list. 12740 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 12741 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12742 # If it failed, the variable was not from the command line. Ignore it, 12743 # but warn the user (except for BASH, which is always set by the calling BASH). 12744 if test "xAWK" != xBASH; then 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 12746 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 12747 fi 12748 # Try to locate tool using the code snippet 12749 for ac_prog in gawk mawk nawk awk 12750 do 12751 # Extract the first word of "$ac_prog", so it can be a program name with args. 12752 set dummy $ac_prog; ac_word=$2 12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12754 $as_echo_n "checking for $ac_word... " >&6; } 12755 if ${ac_cv_prog_AWK+:} false; then : 12756 $as_echo_n "(cached) " >&6 12757 else 12758 if test -n "$AWK"; then 12759 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12760 else 12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12762 for as_dir in $PATH 12763 do 12764 IFS=$as_save_IFS 12765 test -z "$as_dir" && as_dir=. 12766 for ac_exec_ext in '' $ac_executable_extensions; do 12767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12768 ac_cv_prog_AWK="$ac_prog" 12769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12770 break 2 12771 fi 12772 done 12773 done 12774 IFS=$as_save_IFS 12775 12776 fi 12777 fi 12778 AWK=$ac_cv_prog_AWK 12779 if test -n "$AWK"; then 12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12781 $as_echo "$AWK" >&6; } 12782 else 12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12784 $as_echo "no" >&6; } 12785 fi 12786 12787 12788 test -n "$AWK" && break 12789 done 12790 12791 else 12792 # If it succeeded, then it was overridden by the user. We will use it 12793 # for the tool. 12794 12795 # First remove it from the list of overridden variables, so we can test 12796 # for unknown variables in the end. 12797 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12798 12799 # Check if we try to supply an empty value 12800 if test "x$AWK" = x; then 12801 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 12802 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 12804 $as_echo_n "checking for AWK... " >&6; } 12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12806 $as_echo "disabled" >&6; } 12807 else 12808 # Check if the provided tool contains a complete path. 12809 tool_specified="$AWK" 12810 tool_basename="${tool_specified##*/}" 12811 if test "x$tool_basename" = "x$tool_specified"; then 12812 # A command without a complete path is provided, search $PATH. 12813 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 12814 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 12815 # Extract the first word of "$tool_basename", so it can be a program name with args. 12816 set dummy $tool_basename; ac_word=$2 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12818 $as_echo_n "checking for $ac_word... " >&6; } 12819 if ${ac_cv_path_AWK+:} false; then : 12820 $as_echo_n "(cached) " >&6 12821 else 12822 case $AWK in 12823 [\\/]* | ?:[\\/]*) 12824 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 12825 ;; 12826 *) 12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12828 for as_dir in $PATH 12829 do 12830 IFS=$as_save_IFS 12831 test -z "$as_dir" && as_dir=. 12832 for ac_exec_ext in '' $ac_executable_extensions; do 12833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12834 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12836 break 2 12837 fi 12838 done 12839 done 12840 IFS=$as_save_IFS 12841 12842 ;; 12843 esac 12844 fi 12845 AWK=$ac_cv_path_AWK 12846 if test -n "$AWK"; then 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12848 $as_echo "$AWK" >&6; } 12849 else 12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12851 $as_echo "no" >&6; } 12852 fi 12853 12854 12855 if test "x$AWK" = x; then 12856 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12857 fi 12858 else 12859 # Otherwise we believe it is a complete path. Use it as it is. 12860 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 12861 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 12863 $as_echo_n "checking for AWK... " >&6; } 12864 if test ! -x "$tool_specified"; then 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12866 $as_echo "not found" >&6; } 12867 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 12868 fi 12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12870 $as_echo "$tool_specified" >&6; } 12871 fi 12872 fi 12873 fi 12874 12875 fi 12876 12877 12878 if test "x$AWK" = x; then 12879 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 12880 fi 12881 12882 12883 12884 12885 # Publish this variable in the help. 12886 12887 12888 if [ -z "${GREP+x}" ]; then 12889 # The variable is not set by user, try to locate tool using the code snippet 12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 12891 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 12892 if ${ac_cv_path_GREP+:} false; then : 12893 $as_echo_n "(cached) " >&6 12894 else 12895 if test -z "$GREP"; then 12896 ac_path_GREP_found=false 12897 # Loop through the user's path and test for each of PROGNAME-LIST 12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12899 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12900 do 12901 IFS=$as_save_IFS 12902 test -z "$as_dir" && as_dir=. 12903 for ac_prog in grep ggrep; do 12904 for ac_exec_ext in '' $ac_executable_extensions; do 12905 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 12906 as_fn_executable_p "$ac_path_GREP" || continue 12907 # Check for GNU ac_path_GREP and select it if it is found. 12908 # Check for GNU $ac_path_GREP 12909 case `"$ac_path_GREP" --version 2>&1` in 12910 *GNU*) 12911 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 12912 *) 12913 ac_count=0 12914 $as_echo_n 0123456789 >"conftest.in" 12915 while : 12916 do 12917 cat "conftest.in" "conftest.in" >"conftest.tmp" 12918 mv "conftest.tmp" "conftest.in" 12919 cp "conftest.in" "conftest.nl" 12920 $as_echo 'GREP' >> "conftest.nl" 12921 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12922 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12923 as_fn_arith $ac_count + 1 && ac_count=$as_val 12924 if test $ac_count -gt ${ac_path_GREP_max-0}; then 12925 # Best one so far, save it but keep looking for a better one 12926 ac_cv_path_GREP="$ac_path_GREP" 12927 ac_path_GREP_max=$ac_count 12928 fi 12929 # 10*(2^10) chars as input seems more than enough 12930 test $ac_count -gt 10 && break 12931 done 12932 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12933 esac 12934 12935 $ac_path_GREP_found && break 3 12936 done 12937 done 12938 done 12939 IFS=$as_save_IFS 12940 if test -z "$ac_cv_path_GREP"; then 12941 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12942 fi 12943 else 12944 ac_cv_path_GREP=$GREP 12945 fi 12946 12947 fi 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 12949 $as_echo "$ac_cv_path_GREP" >&6; } 12950 GREP="$ac_cv_path_GREP" 12951 12952 12953 else 12954 # The variable is set, but is it from the command line or the environment? 12955 12956 # Try to remove the string !GREP! from our list. 12957 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 12958 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12959 # If it failed, the variable was not from the command line. Ignore it, 12960 # but warn the user (except for BASH, which is always set by the calling BASH). 12961 if test "xGREP" != xBASH; then 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 12963 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 12964 fi 12965 # Try to locate tool using the code snippet 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 12967 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 12968 if ${ac_cv_path_GREP+:} false; then : 12969 $as_echo_n "(cached) " >&6 12970 else 12971 if test -z "$GREP"; then 12972 ac_path_GREP_found=false 12973 # Loop through the user's path and test for each of PROGNAME-LIST 12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12975 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12976 do 12977 IFS=$as_save_IFS 12978 test -z "$as_dir" && as_dir=. 12979 for ac_prog in grep ggrep; do 12980 for ac_exec_ext in '' $ac_executable_extensions; do 12981 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 12982 as_fn_executable_p "$ac_path_GREP" || continue 12983 # Check for GNU ac_path_GREP and select it if it is found. 12984 # Check for GNU $ac_path_GREP 12985 case `"$ac_path_GREP" --version 2>&1` in 12986 *GNU*) 12987 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 12988 *) 12989 ac_count=0 12990 $as_echo_n 0123456789 >"conftest.in" 12991 while : 12992 do 12993 cat "conftest.in" "conftest.in" >"conftest.tmp" 12994 mv "conftest.tmp" "conftest.in" 12995 cp "conftest.in" "conftest.nl" 12996 $as_echo 'GREP' >> "conftest.nl" 12997 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12999 as_fn_arith $ac_count + 1 && ac_count=$as_val 13000 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13001 # Best one so far, save it but keep looking for a better one 13002 ac_cv_path_GREP="$ac_path_GREP" 13003 ac_path_GREP_max=$ac_count 13004 fi 13005 # 10*(2^10) chars as input seems more than enough 13006 test $ac_count -gt 10 && break 13007 done 13008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13009 esac 13010 13011 $ac_path_GREP_found && break 3 13012 done 13013 done 13014 done 13015 IFS=$as_save_IFS 13016 if test -z "$ac_cv_path_GREP"; then 13017 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13018 fi 13019 else 13020 ac_cv_path_GREP=$GREP 13021 fi 13022 13023 fi 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13025 $as_echo "$ac_cv_path_GREP" >&6; } 13026 GREP="$ac_cv_path_GREP" 13027 13028 13029 else 13030 # If it succeeded, then it was overridden by the user. We will use it 13031 # for the tool. 13032 13033 # First remove it from the list of overridden variables, so we can test 13034 # for unknown variables in the end. 13035 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13036 13037 # Check if we try to supply an empty value 13038 if test "x$GREP" = x; then 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13040 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13042 $as_echo_n "checking for GREP... " >&6; } 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13044 $as_echo "disabled" >&6; } 13045 else 13046 # Check if the provided tool contains a complete path. 13047 tool_specified="$GREP" 13048 tool_basename="${tool_specified##*/}" 13049 if test "x$tool_basename" = "x$tool_specified"; then 13050 # A command without a complete path is provided, search $PATH. 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13052 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13053 # Extract the first word of "$tool_basename", so it can be a program name with args. 13054 set dummy $tool_basename; ac_word=$2 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13056 $as_echo_n "checking for $ac_word... " >&6; } 13057 if ${ac_cv_path_GREP+:} false; then : 13058 $as_echo_n "(cached) " >&6 13059 else 13060 case $GREP in 13061 [\\/]* | ?:[\\/]*) 13062 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13063 ;; 13064 *) 13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13066 for as_dir in $PATH 13067 do 13068 IFS=$as_save_IFS 13069 test -z "$as_dir" && as_dir=. 13070 for ac_exec_ext in '' $ac_executable_extensions; do 13071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13072 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13074 break 2 13075 fi 13076 done 13077 done 13078 IFS=$as_save_IFS 13079 13080 ;; 13081 esac 13082 fi 13083 GREP=$ac_cv_path_GREP 13084 if test -n "$GREP"; then 13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13086 $as_echo "$GREP" >&6; } 13087 else 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13089 $as_echo "no" >&6; } 13090 fi 13091 13092 13093 if test "x$GREP" = x; then 13094 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13095 fi 13096 else 13097 # Otherwise we believe it is a complete path. Use it as it is. 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13099 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13101 $as_echo_n "checking for GREP... " >&6; } 13102 if test ! -x "$tool_specified"; then 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13104 $as_echo "not found" >&6; } 13105 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13106 fi 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13108 $as_echo "$tool_specified" >&6; } 13109 fi 13110 fi 13111 fi 13112 13113 fi 13114 13115 13116 if test "x$GREP" = x; then 13117 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13118 fi 13119 13120 13121 13122 13123 # Publish this variable in the help. 13124 13125 13126 if [ -z "${EGREP+x}" ]; then 13127 # The variable is not set by user, try to locate tool using the code snippet 13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13129 $as_echo_n "checking for egrep... " >&6; } 13130 if ${ac_cv_path_EGREP+:} false; then : 13131 $as_echo_n "(cached) " >&6 13132 else 13133 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13134 then ac_cv_path_EGREP="$GREP -E" 13135 else 13136 if test -z "$EGREP"; then 13137 ac_path_EGREP_found=false 13138 # Loop through the user's path and test for each of PROGNAME-LIST 13139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13141 do 13142 IFS=$as_save_IFS 13143 test -z "$as_dir" && as_dir=. 13144 for ac_prog in egrep; do 13145 for ac_exec_ext in '' $ac_executable_extensions; do 13146 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13147 as_fn_executable_p "$ac_path_EGREP" || continue 13148 # Check for GNU ac_path_EGREP and select it if it is found. 13149 # Check for GNU $ac_path_EGREP 13150 case `"$ac_path_EGREP" --version 2>&1` in 13151 *GNU*) 13152 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13153 *) 13154 ac_count=0 13155 $as_echo_n 0123456789 >"conftest.in" 13156 while : 13157 do 13158 cat "conftest.in" "conftest.in" >"conftest.tmp" 13159 mv "conftest.tmp" "conftest.in" 13160 cp "conftest.in" "conftest.nl" 13161 $as_echo 'EGREP' >> "conftest.nl" 13162 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13164 as_fn_arith $ac_count + 1 && ac_count=$as_val 13165 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13166 # Best one so far, save it but keep looking for a better one 13167 ac_cv_path_EGREP="$ac_path_EGREP" 13168 ac_path_EGREP_max=$ac_count 13169 fi 13170 # 10*(2^10) chars as input seems more than enough 13171 test $ac_count -gt 10 && break 13172 done 13173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13174 esac 13175 13176 $ac_path_EGREP_found && break 3 13177 done 13178 done 13179 done 13180 IFS=$as_save_IFS 13181 if test -z "$ac_cv_path_EGREP"; then 13182 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13183 fi 13184 else 13185 ac_cv_path_EGREP=$EGREP 13186 fi 13187 13188 fi 13189 fi 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13191 $as_echo "$ac_cv_path_EGREP" >&6; } 13192 EGREP="$ac_cv_path_EGREP" 13193 13194 13195 else 13196 # The variable is set, but is it from the command line or the environment? 13197 13198 # Try to remove the string !EGREP! from our list. 13199 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13200 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13201 # If it failed, the variable was not from the command line. Ignore it, 13202 # but warn the user (except for BASH, which is always set by the calling BASH). 13203 if test "xEGREP" != xBASH; then 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13205 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13206 fi 13207 # Try to locate tool using the code snippet 13208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13209 $as_echo_n "checking for egrep... " >&6; } 13210 if ${ac_cv_path_EGREP+:} false; then : 13211 $as_echo_n "(cached) " >&6 13212 else 13213 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13214 then ac_cv_path_EGREP="$GREP -E" 13215 else 13216 if test -z "$EGREP"; then 13217 ac_path_EGREP_found=false 13218 # Loop through the user's path and test for each of PROGNAME-LIST 13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13221 do 13222 IFS=$as_save_IFS 13223 test -z "$as_dir" && as_dir=. 13224 for ac_prog in egrep; do 13225 for ac_exec_ext in '' $ac_executable_extensions; do 13226 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13227 as_fn_executable_p "$ac_path_EGREP" || continue 13228 # Check for GNU ac_path_EGREP and select it if it is found. 13229 # Check for GNU $ac_path_EGREP 13230 case `"$ac_path_EGREP" --version 2>&1` in 13231 *GNU*) 13232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13233 *) 13234 ac_count=0 13235 $as_echo_n 0123456789 >"conftest.in" 13236 while : 13237 do 13238 cat "conftest.in" "conftest.in" >"conftest.tmp" 13239 mv "conftest.tmp" "conftest.in" 13240 cp "conftest.in" "conftest.nl" 13241 $as_echo 'EGREP' >> "conftest.nl" 13242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13244 as_fn_arith $ac_count + 1 && ac_count=$as_val 13245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13246 # Best one so far, save it but keep looking for a better one 13247 ac_cv_path_EGREP="$ac_path_EGREP" 13248 ac_path_EGREP_max=$ac_count 13249 fi 13250 # 10*(2^10) chars as input seems more than enough 13251 test $ac_count -gt 10 && break 13252 done 13253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13254 esac 13255 13256 $ac_path_EGREP_found && break 3 13257 done 13258 done 13259 done 13260 IFS=$as_save_IFS 13261 if test -z "$ac_cv_path_EGREP"; then 13262 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13263 fi 13264 else 13265 ac_cv_path_EGREP=$EGREP 13266 fi 13267 13268 fi 13269 fi 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13271 $as_echo "$ac_cv_path_EGREP" >&6; } 13272 EGREP="$ac_cv_path_EGREP" 13273 13274 13275 else 13276 # If it succeeded, then it was overridden by the user. We will use it 13277 # for the tool. 13278 13279 # First remove it from the list of overridden variables, so we can test 13280 # for unknown variables in the end. 13281 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13282 13283 # Check if we try to supply an empty value 13284 if test "x$EGREP" = x; then 13285 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13286 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13288 $as_echo_n "checking for EGREP... " >&6; } 13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13290 $as_echo "disabled" >&6; } 13291 else 13292 # Check if the provided tool contains a complete path. 13293 tool_specified="$EGREP" 13294 tool_basename="${tool_specified##*/}" 13295 if test "x$tool_basename" = "x$tool_specified"; then 13296 # A command without a complete path is provided, search $PATH. 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13298 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13299 # Extract the first word of "$tool_basename", so it can be a program name with args. 13300 set dummy $tool_basename; ac_word=$2 13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13302 $as_echo_n "checking for $ac_word... " >&6; } 13303 if ${ac_cv_path_EGREP+:} false; then : 13304 $as_echo_n "(cached) " >&6 13305 else 13306 case $EGREP in 13307 [\\/]* | ?:[\\/]*) 13308 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13309 ;; 13310 *) 13311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13312 for as_dir in $PATH 13313 do 13314 IFS=$as_save_IFS 13315 test -z "$as_dir" && as_dir=. 13316 for ac_exec_ext in '' $ac_executable_extensions; do 13317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13318 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13320 break 2 13321 fi 13322 done 13323 done 13324 IFS=$as_save_IFS 13325 13326 ;; 13327 esac 13328 fi 13329 EGREP=$ac_cv_path_EGREP 13330 if test -n "$EGREP"; then 13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13332 $as_echo "$EGREP" >&6; } 13333 else 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13335 $as_echo "no" >&6; } 13336 fi 13337 13338 13339 if test "x$EGREP" = x; then 13340 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13341 fi 13342 else 13343 # Otherwise we believe it is a complete path. Use it as it is. 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13345 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13347 $as_echo_n "checking for EGREP... " >&6; } 13348 if test ! -x "$tool_specified"; then 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13350 $as_echo "not found" >&6; } 13351 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13352 fi 13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13354 $as_echo "$tool_specified" >&6; } 13355 fi 13356 fi 13357 fi 13358 13359 fi 13360 13361 13362 if test "x$EGREP" = x; then 13363 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13364 fi 13365 13366 13367 13368 13369 # Publish this variable in the help. 13370 13371 13372 if [ -z "${FGREP+x}" ]; then 13373 # The variable is not set by user, try to locate tool using the code snippet 13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13375 $as_echo_n "checking for fgrep... " >&6; } 13376 if ${ac_cv_path_FGREP+:} false; then : 13377 $as_echo_n "(cached) " >&6 13378 else 13379 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13380 then ac_cv_path_FGREP="$GREP -F" 13381 else 13382 if test -z "$FGREP"; then 13383 ac_path_FGREP_found=false 13384 # Loop through the user's path and test for each of PROGNAME-LIST 13385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13387 do 13388 IFS=$as_save_IFS 13389 test -z "$as_dir" && as_dir=. 13390 for ac_prog in fgrep; do 13391 for ac_exec_ext in '' $ac_executable_extensions; do 13392 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13393 as_fn_executable_p "$ac_path_FGREP" || continue 13394 # Check for GNU ac_path_FGREP and select it if it is found. 13395 # Check for GNU $ac_path_FGREP 13396 case `"$ac_path_FGREP" --version 2>&1` in 13397 *GNU*) 13398 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13399 *) 13400 ac_count=0 13401 $as_echo_n 0123456789 >"conftest.in" 13402 while : 13403 do 13404 cat "conftest.in" "conftest.in" >"conftest.tmp" 13405 mv "conftest.tmp" "conftest.in" 13406 cp "conftest.in" "conftest.nl" 13407 $as_echo 'FGREP' >> "conftest.nl" 13408 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13410 as_fn_arith $ac_count + 1 && ac_count=$as_val 13411 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13412 # Best one so far, save it but keep looking for a better one 13413 ac_cv_path_FGREP="$ac_path_FGREP" 13414 ac_path_FGREP_max=$ac_count 13415 fi 13416 # 10*(2^10) chars as input seems more than enough 13417 test $ac_count -gt 10 && break 13418 done 13419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13420 esac 13421 13422 $ac_path_FGREP_found && break 3 13423 done 13424 done 13425 done 13426 IFS=$as_save_IFS 13427 if test -z "$ac_cv_path_FGREP"; then 13428 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13429 fi 13430 else 13431 ac_cv_path_FGREP=$FGREP 13432 fi 13433 13434 fi 13435 fi 13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13437 $as_echo "$ac_cv_path_FGREP" >&6; } 13438 FGREP="$ac_cv_path_FGREP" 13439 13440 13441 else 13442 # The variable is set, but is it from the command line or the environment? 13443 13444 # Try to remove the string !FGREP! from our list. 13445 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13446 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13447 # If it failed, the variable was not from the command line. Ignore it, 13448 # but warn the user (except for BASH, which is always set by the calling BASH). 13449 if test "xFGREP" != xBASH; then 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13451 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13452 fi 13453 # Try to locate tool using the code snippet 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13455 $as_echo_n "checking for fgrep... " >&6; } 13456 if ${ac_cv_path_FGREP+:} false; then : 13457 $as_echo_n "(cached) " >&6 13458 else 13459 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13460 then ac_cv_path_FGREP="$GREP -F" 13461 else 13462 if test -z "$FGREP"; then 13463 ac_path_FGREP_found=false 13464 # Loop through the user's path and test for each of PROGNAME-LIST 13465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13466 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13467 do 13468 IFS=$as_save_IFS 13469 test -z "$as_dir" && as_dir=. 13470 for ac_prog in fgrep; do 13471 for ac_exec_ext in '' $ac_executable_extensions; do 13472 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13473 as_fn_executable_p "$ac_path_FGREP" || continue 13474 # Check for GNU ac_path_FGREP and select it if it is found. 13475 # Check for GNU $ac_path_FGREP 13476 case `"$ac_path_FGREP" --version 2>&1` in 13477 *GNU*) 13478 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13479 *) 13480 ac_count=0 13481 $as_echo_n 0123456789 >"conftest.in" 13482 while : 13483 do 13484 cat "conftest.in" "conftest.in" >"conftest.tmp" 13485 mv "conftest.tmp" "conftest.in" 13486 cp "conftest.in" "conftest.nl" 13487 $as_echo 'FGREP' >> "conftest.nl" 13488 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13489 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13490 as_fn_arith $ac_count + 1 && ac_count=$as_val 13491 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13492 # Best one so far, save it but keep looking for a better one 13493 ac_cv_path_FGREP="$ac_path_FGREP" 13494 ac_path_FGREP_max=$ac_count 13495 fi 13496 # 10*(2^10) chars as input seems more than enough 13497 test $ac_count -gt 10 && break 13498 done 13499 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13500 esac 13501 13502 $ac_path_FGREP_found && break 3 13503 done 13504 done 13505 done 13506 IFS=$as_save_IFS 13507 if test -z "$ac_cv_path_FGREP"; then 13508 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13509 fi 13510 else 13511 ac_cv_path_FGREP=$FGREP 13512 fi 13513 13514 fi 13515 fi 13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13517 $as_echo "$ac_cv_path_FGREP" >&6; } 13518 FGREP="$ac_cv_path_FGREP" 13519 13520 13521 else 13522 # If it succeeded, then it was overridden by the user. We will use it 13523 # for the tool. 13524 13525 # First remove it from the list of overridden variables, so we can test 13526 # for unknown variables in the end. 13527 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13528 13529 # Check if we try to supply an empty value 13530 if test "x$FGREP" = x; then 13531 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 13532 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13534 $as_echo_n "checking for FGREP... " >&6; } 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13536 $as_echo "disabled" >&6; } 13537 else 13538 # Check if the provided tool contains a complete path. 13539 tool_specified="$FGREP" 13540 tool_basename="${tool_specified##*/}" 13541 if test "x$tool_basename" = "x$tool_specified"; then 13542 # A command without a complete path is provided, search $PATH. 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 13544 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 13545 # Extract the first word of "$tool_basename", so it can be a program name with args. 13546 set dummy $tool_basename; ac_word=$2 13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13548 $as_echo_n "checking for $ac_word... " >&6; } 13549 if ${ac_cv_path_FGREP+:} false; then : 13550 $as_echo_n "(cached) " >&6 13551 else 13552 case $FGREP in 13553 [\\/]* | ?:[\\/]*) 13554 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 13555 ;; 13556 *) 13557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13558 for as_dir in $PATH 13559 do 13560 IFS=$as_save_IFS 13561 test -z "$as_dir" && as_dir=. 13562 for ac_exec_ext in '' $ac_executable_extensions; do 13563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13564 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 13565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13566 break 2 13567 fi 13568 done 13569 done 13570 IFS=$as_save_IFS 13571 13572 ;; 13573 esac 13574 fi 13575 FGREP=$ac_cv_path_FGREP 13576 if test -n "$FGREP"; then 13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 13578 $as_echo "$FGREP" >&6; } 13579 else 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13581 $as_echo "no" >&6; } 13582 fi 13583 13584 13585 if test "x$FGREP" = x; then 13586 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13587 fi 13588 else 13589 # Otherwise we believe it is a complete path. Use it as it is. 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 13591 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 13593 $as_echo_n "checking for FGREP... " >&6; } 13594 if test ! -x "$tool_specified"; then 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13596 $as_echo "not found" >&6; } 13597 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13598 fi 13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13600 $as_echo "$tool_specified" >&6; } 13601 fi 13602 fi 13603 fi 13604 13605 fi 13606 13607 13608 if test "x$FGREP" = x; then 13609 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 13610 fi 13611 13612 13613 13614 13615 # Publish this variable in the help. 13616 13617 13618 if [ -z "${SED+x}" ]; then 13619 # The variable is not set by user, try to locate tool using the code snippet 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13621 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 13622 if ${ac_cv_path_SED+:} false; then : 13623 $as_echo_n "(cached) " >&6 13624 else 13625 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13626 for ac_i in 1 2 3 4 5 6 7; do 13627 ac_script="$ac_script$as_nl$ac_script" 13628 done 13629 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13630 { ac_script=; unset ac_script;} 13631 if test -z "$SED"; then 13632 ac_path_SED_found=false 13633 # Loop through the user's path and test for each of PROGNAME-LIST 13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13635 for as_dir in $PATH 13636 do 13637 IFS=$as_save_IFS 13638 test -z "$as_dir" && as_dir=. 13639 for ac_prog in sed gsed; do 13640 for ac_exec_ext in '' $ac_executable_extensions; do 13641 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13642 as_fn_executable_p "$ac_path_SED" || continue 13643 # Check for GNU ac_path_SED and select it if it is found. 13644 # Check for GNU $ac_path_SED 13645 case `"$ac_path_SED" --version 2>&1` in 13646 *GNU*) 13647 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13648 *) 13649 ac_count=0 13650 $as_echo_n 0123456789 >"conftest.in" 13651 while : 13652 do 13653 cat "conftest.in" "conftest.in" >"conftest.tmp" 13654 mv "conftest.tmp" "conftest.in" 13655 cp "conftest.in" "conftest.nl" 13656 $as_echo '' >> "conftest.nl" 13657 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13659 as_fn_arith $ac_count + 1 && ac_count=$as_val 13660 if test $ac_count -gt ${ac_path_SED_max-0}; then 13661 # Best one so far, save it but keep looking for a better one 13662 ac_cv_path_SED="$ac_path_SED" 13663 ac_path_SED_max=$ac_count 13664 fi 13665 # 10*(2^10) chars as input seems more than enough 13666 test $ac_count -gt 10 && break 13667 done 13668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13669 esac 13670 13671 $ac_path_SED_found && break 3 13672 done 13673 done 13674 done 13675 IFS=$as_save_IFS 13676 if test -z "$ac_cv_path_SED"; then 13677 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13678 fi 13679 else 13680 ac_cv_path_SED=$SED 13681 fi 13682 13683 fi 13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13685 $as_echo "$ac_cv_path_SED" >&6; } 13686 SED="$ac_cv_path_SED" 13687 rm -f conftest.sed 13688 13689 else 13690 # The variable is set, but is it from the command line or the environment? 13691 13692 # Try to remove the string !SED! from our list. 13693 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 13694 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13695 # If it failed, the variable was not from the command line. Ignore it, 13696 # but warn the user (except for BASH, which is always set by the calling BASH). 13697 if test "xSED" != xBASH; then 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 13699 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 13700 fi 13701 # Try to locate tool using the code snippet 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 13703 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 13704 if ${ac_cv_path_SED+:} false; then : 13705 $as_echo_n "(cached) " >&6 13706 else 13707 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 13708 for ac_i in 1 2 3 4 5 6 7; do 13709 ac_script="$ac_script$as_nl$ac_script" 13710 done 13711 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 13712 { ac_script=; unset ac_script;} 13713 if test -z "$SED"; then 13714 ac_path_SED_found=false 13715 # Loop through the user's path and test for each of PROGNAME-LIST 13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13717 for as_dir in $PATH 13718 do 13719 IFS=$as_save_IFS 13720 test -z "$as_dir" && as_dir=. 13721 for ac_prog in sed gsed; do 13722 for ac_exec_ext in '' $ac_executable_extensions; do 13723 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 13724 as_fn_executable_p "$ac_path_SED" || continue 13725 # Check for GNU ac_path_SED and select it if it is found. 13726 # Check for GNU $ac_path_SED 13727 case `"$ac_path_SED" --version 2>&1` in 13728 *GNU*) 13729 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 13730 *) 13731 ac_count=0 13732 $as_echo_n 0123456789 >"conftest.in" 13733 while : 13734 do 13735 cat "conftest.in" "conftest.in" >"conftest.tmp" 13736 mv "conftest.tmp" "conftest.in" 13737 cp "conftest.in" "conftest.nl" 13738 $as_echo '' >> "conftest.nl" 13739 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 13740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13741 as_fn_arith $ac_count + 1 && ac_count=$as_val 13742 if test $ac_count -gt ${ac_path_SED_max-0}; then 13743 # Best one so far, save it but keep looking for a better one 13744 ac_cv_path_SED="$ac_path_SED" 13745 ac_path_SED_max=$ac_count 13746 fi 13747 # 10*(2^10) chars as input seems more than enough 13748 test $ac_count -gt 10 && break 13749 done 13750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13751 esac 13752 13753 $ac_path_SED_found && break 3 13754 done 13755 done 13756 done 13757 IFS=$as_save_IFS 13758 if test -z "$ac_cv_path_SED"; then 13759 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13760 fi 13761 else 13762 ac_cv_path_SED=$SED 13763 fi 13764 13765 fi 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13767 $as_echo "$ac_cv_path_SED" >&6; } 13768 SED="$ac_cv_path_SED" 13769 rm -f conftest.sed 13770 13771 else 13772 # If it succeeded, then it was overridden by the user. We will use it 13773 # for the tool. 13774 13775 # First remove it from the list of overridden variables, so we can test 13776 # for unknown variables in the end. 13777 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13778 13779 # Check if we try to supply an empty value 13780 if test "x$SED" = x; then 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 13782 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 13784 $as_echo_n "checking for SED... " >&6; } 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13786 $as_echo "disabled" >&6; } 13787 else 13788 # Check if the provided tool contains a complete path. 13789 tool_specified="$SED" 13790 tool_basename="${tool_specified##*/}" 13791 if test "x$tool_basename" = "x$tool_specified"; then 13792 # A command without a complete path is provided, search $PATH. 13793 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 13794 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 13795 # Extract the first word of "$tool_basename", so it can be a program name with args. 13796 set dummy $tool_basename; ac_word=$2 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13798 $as_echo_n "checking for $ac_word... " >&6; } 13799 if ${ac_cv_path_SED+:} false; then : 13800 $as_echo_n "(cached) " >&6 13801 else 13802 case $SED in 13803 [\\/]* | ?:[\\/]*) 13804 ac_cv_path_SED="$SED" # Let the user override the test with a path. 13805 ;; 13806 *) 13807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13808 for as_dir in $PATH 13809 do 13810 IFS=$as_save_IFS 13811 test -z "$as_dir" && as_dir=. 13812 for ac_exec_ext in '' $ac_executable_extensions; do 13813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13814 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 13815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13816 break 2 13817 fi 13818 done 13819 done 13820 IFS=$as_save_IFS 13821 13822 ;; 13823 esac 13824 fi 13825 SED=$ac_cv_path_SED 13826 if test -n "$SED"; then 13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 13828 $as_echo "$SED" >&6; } 13829 else 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13831 $as_echo "no" >&6; } 13832 fi 13833 13834 13835 if test "x$SED" = x; then 13836 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13837 fi 13838 else 13839 # Otherwise we believe it is a complete path. Use it as it is. 13840 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 13841 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 13843 $as_echo_n "checking for SED... " >&6; } 13844 if test ! -x "$tool_specified"; then 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13846 $as_echo "not found" >&6; } 13847 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 13848 fi 13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13850 $as_echo "$tool_specified" >&6; } 13851 fi 13852 fi 13853 fi 13854 13855 fi 13856 13857 13858 if test "x$SED" = x; then 13859 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 13860 fi 13861 13862 13863 13864 # Always force rm. 13865 RM="$RM -f" 13866 13867 # pwd behaves differently on various platforms and some don't support the -L flag. 13868 # Always use the bash builtin pwd to get uniform behavior. 13869 THEPWDCMD=pwd 13870 13871 # These are not required on all platforms 13872 13873 13874 # Publish this variable in the help. 13875 13876 13877 if [ -z "${CYGPATH+x}" ]; then 13878 # The variable is not set by user, try to locate tool using the code snippet 13879 for ac_prog in cygpath 13880 do 13881 # Extract the first word of "$ac_prog", so it can be a program name with args. 13882 set dummy $ac_prog; ac_word=$2 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13884 $as_echo_n "checking for $ac_word... " >&6; } 13885 if ${ac_cv_path_CYGPATH+:} false; then : 13886 $as_echo_n "(cached) " >&6 13887 else 13888 case $CYGPATH in 13889 [\\/]* | ?:[\\/]*) 13890 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13891 ;; 13892 *) 13893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13894 for as_dir in $PATH 13895 do 13896 IFS=$as_save_IFS 13897 test -z "$as_dir" && as_dir=. 13898 for ac_exec_ext in '' $ac_executable_extensions; do 13899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13900 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13902 break 2 13903 fi 13904 done 13905 done 13906 IFS=$as_save_IFS 13907 13908 ;; 13909 esac 13910 fi 13911 CYGPATH=$ac_cv_path_CYGPATH 13912 if test -n "$CYGPATH"; then 13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13914 $as_echo "$CYGPATH" >&6; } 13915 else 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13917 $as_echo "no" >&6; } 13918 fi 13919 13920 13921 test -n "$CYGPATH" && break 13922 done 13923 13924 else 13925 # The variable is set, but is it from the command line or the environment? 13926 13927 # Try to remove the string !CYGPATH! from our list. 13928 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 13929 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13930 # If it failed, the variable was not from the command line. Ignore it, 13931 # but warn the user (except for BASH, which is always set by the calling BASH). 13932 if test "xCYGPATH" != xBASH; then 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 13934 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 13935 fi 13936 # Try to locate tool using the code snippet 13937 for ac_prog in cygpath 13938 do 13939 # Extract the first word of "$ac_prog", so it can be a program name with args. 13940 set dummy $ac_prog; ac_word=$2 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13942 $as_echo_n "checking for $ac_word... " >&6; } 13943 if ${ac_cv_path_CYGPATH+:} false; then : 13944 $as_echo_n "(cached) " >&6 13945 else 13946 case $CYGPATH in 13947 [\\/]* | ?:[\\/]*) 13948 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13949 ;; 13950 *) 13951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13952 for as_dir in $PATH 13953 do 13954 IFS=$as_save_IFS 13955 test -z "$as_dir" && as_dir=. 13956 for ac_exec_ext in '' $ac_executable_extensions; do 13957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13958 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13960 break 2 13961 fi 13962 done 13963 done 13964 IFS=$as_save_IFS 13965 13966 ;; 13967 esac 13968 fi 13969 CYGPATH=$ac_cv_path_CYGPATH 13970 if test -n "$CYGPATH"; then 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13972 $as_echo "$CYGPATH" >&6; } 13973 else 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13975 $as_echo "no" >&6; } 13976 fi 13977 13978 13979 test -n "$CYGPATH" && break 13980 done 13981 13982 else 13983 # If it succeeded, then it was overridden by the user. We will use it 13984 # for the tool. 13985 13986 # First remove it from the list of overridden variables, so we can test 13987 # for unknown variables in the end. 13988 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13989 13990 # Check if we try to supply an empty value 13991 if test "x$CYGPATH" = x; then 13992 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 13993 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 13995 $as_echo_n "checking for CYGPATH... " >&6; } 13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13997 $as_echo "disabled" >&6; } 13998 else 13999 # Check if the provided tool contains a complete path. 14000 tool_specified="$CYGPATH" 14001 tool_basename="${tool_specified##*/}" 14002 if test "x$tool_basename" = "x$tool_specified"; then 14003 # A command without a complete path is provided, search $PATH. 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14005 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14006 # Extract the first word of "$tool_basename", so it can be a program name with args. 14007 set dummy $tool_basename; ac_word=$2 14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14009 $as_echo_n "checking for $ac_word... " >&6; } 14010 if ${ac_cv_path_CYGPATH+:} false; then : 14011 $as_echo_n "(cached) " >&6 14012 else 14013 case $CYGPATH in 14014 [\\/]* | ?:[\\/]*) 14015 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14016 ;; 14017 *) 14018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14019 for as_dir in $PATH 14020 do 14021 IFS=$as_save_IFS 14022 test -z "$as_dir" && as_dir=. 14023 for ac_exec_ext in '' $ac_executable_extensions; do 14024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14025 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14027 break 2 14028 fi 14029 done 14030 done 14031 IFS=$as_save_IFS 14032 14033 ;; 14034 esac 14035 fi 14036 CYGPATH=$ac_cv_path_CYGPATH 14037 if test -n "$CYGPATH"; then 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14039 $as_echo "$CYGPATH" >&6; } 14040 else 14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14042 $as_echo "no" >&6; } 14043 fi 14044 14045 14046 if test "x$CYGPATH" = x; then 14047 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14048 fi 14049 else 14050 # Otherwise we believe it is a complete path. Use it as it is. 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14052 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14054 $as_echo_n "checking for CYGPATH... " >&6; } 14055 if test ! -x "$tool_specified"; then 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14057 $as_echo "not found" >&6; } 14058 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14059 fi 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14061 $as_echo "$tool_specified" >&6; } 14062 fi 14063 fi 14064 fi 14065 14066 fi 14067 14068 14069 14070 14071 # Publish this variable in the help. 14072 14073 14074 if [ -z "${READLINK+x}" ]; then 14075 # The variable is not set by user, try to locate tool using the code snippet 14076 for ac_prog in greadlink readlink 14077 do 14078 # Extract the first word of "$ac_prog", so it can be a program name with args. 14079 set dummy $ac_prog; ac_word=$2 14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14081 $as_echo_n "checking for $ac_word... " >&6; } 14082 if ${ac_cv_path_READLINK+:} false; then : 14083 $as_echo_n "(cached) " >&6 14084 else 14085 case $READLINK in 14086 [\\/]* | ?:[\\/]*) 14087 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14088 ;; 14089 *) 14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14091 for as_dir in $PATH 14092 do 14093 IFS=$as_save_IFS 14094 test -z "$as_dir" && as_dir=. 14095 for ac_exec_ext in '' $ac_executable_extensions; do 14096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14097 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14099 break 2 14100 fi 14101 done 14102 done 14103 IFS=$as_save_IFS 14104 14105 ;; 14106 esac 14107 fi 14108 READLINK=$ac_cv_path_READLINK 14109 if test -n "$READLINK"; then 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14111 $as_echo "$READLINK" >&6; } 14112 else 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14114 $as_echo "no" >&6; } 14115 fi 14116 14117 14118 test -n "$READLINK" && break 14119 done 14120 14121 else 14122 # The variable is set, but is it from the command line or the environment? 14123 14124 # Try to remove the string !READLINK! from our list. 14125 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14126 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14127 # If it failed, the variable was not from the command line. Ignore it, 14128 # but warn the user (except for BASH, which is always set by the calling BASH). 14129 if test "xREADLINK" != xBASH; then 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14131 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14132 fi 14133 # Try to locate tool using the code snippet 14134 for ac_prog in greadlink readlink 14135 do 14136 # Extract the first word of "$ac_prog", so it can be a program name with args. 14137 set dummy $ac_prog; ac_word=$2 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14139 $as_echo_n "checking for $ac_word... " >&6; } 14140 if ${ac_cv_path_READLINK+:} false; then : 14141 $as_echo_n "(cached) " >&6 14142 else 14143 case $READLINK in 14144 [\\/]* | ?:[\\/]*) 14145 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14146 ;; 14147 *) 14148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14149 for as_dir in $PATH 14150 do 14151 IFS=$as_save_IFS 14152 test -z "$as_dir" && as_dir=. 14153 for ac_exec_ext in '' $ac_executable_extensions; do 14154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14155 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14157 break 2 14158 fi 14159 done 14160 done 14161 IFS=$as_save_IFS 14162 14163 ;; 14164 esac 14165 fi 14166 READLINK=$ac_cv_path_READLINK 14167 if test -n "$READLINK"; then 14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14169 $as_echo "$READLINK" >&6; } 14170 else 14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14172 $as_echo "no" >&6; } 14173 fi 14174 14175 14176 test -n "$READLINK" && break 14177 done 14178 14179 else 14180 # If it succeeded, then it was overridden by the user. We will use it 14181 # for the tool. 14182 14183 # First remove it from the list of overridden variables, so we can test 14184 # for unknown variables in the end. 14185 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14186 14187 # Check if we try to supply an empty value 14188 if test "x$READLINK" = x; then 14189 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14190 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14192 $as_echo_n "checking for READLINK... " >&6; } 14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14194 $as_echo "disabled" >&6; } 14195 else 14196 # Check if the provided tool contains a complete path. 14197 tool_specified="$READLINK" 14198 tool_basename="${tool_specified##*/}" 14199 if test "x$tool_basename" = "x$tool_specified"; then 14200 # A command without a complete path is provided, search $PATH. 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14202 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14203 # Extract the first word of "$tool_basename", so it can be a program name with args. 14204 set dummy $tool_basename; ac_word=$2 14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14206 $as_echo_n "checking for $ac_word... " >&6; } 14207 if ${ac_cv_path_READLINK+:} false; then : 14208 $as_echo_n "(cached) " >&6 14209 else 14210 case $READLINK in 14211 [\\/]* | ?:[\\/]*) 14212 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14213 ;; 14214 *) 14215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14216 for as_dir in $PATH 14217 do 14218 IFS=$as_save_IFS 14219 test -z "$as_dir" && as_dir=. 14220 for ac_exec_ext in '' $ac_executable_extensions; do 14221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14222 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14224 break 2 14225 fi 14226 done 14227 done 14228 IFS=$as_save_IFS 14229 14230 ;; 14231 esac 14232 fi 14233 READLINK=$ac_cv_path_READLINK 14234 if test -n "$READLINK"; then 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14236 $as_echo "$READLINK" >&6; } 14237 else 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14239 $as_echo "no" >&6; } 14240 fi 14241 14242 14243 if test "x$READLINK" = x; then 14244 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14245 fi 14246 else 14247 # Otherwise we believe it is a complete path. Use it as it is. 14248 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14249 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14251 $as_echo_n "checking for READLINK... " >&6; } 14252 if test ! -x "$tool_specified"; then 14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14254 $as_echo "not found" >&6; } 14255 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14256 fi 14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14258 $as_echo "$tool_specified" >&6; } 14259 fi 14260 fi 14261 fi 14262 14263 fi 14264 14265 14266 14267 14268 # Publish this variable in the help. 14269 14270 14271 if [ -z "${DF+x}" ]; then 14272 # The variable is not set by user, try to locate tool using the code snippet 14273 for ac_prog in df 14274 do 14275 # Extract the first word of "$ac_prog", so it can be a program name with args. 14276 set dummy $ac_prog; ac_word=$2 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14278 $as_echo_n "checking for $ac_word... " >&6; } 14279 if ${ac_cv_path_DF+:} false; then : 14280 $as_echo_n "(cached) " >&6 14281 else 14282 case $DF in 14283 [\\/]* | ?:[\\/]*) 14284 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14285 ;; 14286 *) 14287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14288 for as_dir in $PATH 14289 do 14290 IFS=$as_save_IFS 14291 test -z "$as_dir" && as_dir=. 14292 for ac_exec_ext in '' $ac_executable_extensions; do 14293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14294 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14296 break 2 14297 fi 14298 done 14299 done 14300 IFS=$as_save_IFS 14301 14302 ;; 14303 esac 14304 fi 14305 DF=$ac_cv_path_DF 14306 if test -n "$DF"; then 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14308 $as_echo "$DF" >&6; } 14309 else 14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14311 $as_echo "no" >&6; } 14312 fi 14313 14314 14315 test -n "$DF" && break 14316 done 14317 14318 else 14319 # The variable is set, but is it from the command line or the environment? 14320 14321 # Try to remove the string !DF! from our list. 14322 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14323 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14324 # If it failed, the variable was not from the command line. Ignore it, 14325 # but warn the user (except for BASH, which is always set by the calling BASH). 14326 if test "xDF" != xBASH; then 14327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14328 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14329 fi 14330 # Try to locate tool using the code snippet 14331 for ac_prog in df 14332 do 14333 # Extract the first word of "$ac_prog", so it can be a program name with args. 14334 set dummy $ac_prog; ac_word=$2 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14336 $as_echo_n "checking for $ac_word... " >&6; } 14337 if ${ac_cv_path_DF+:} false; then : 14338 $as_echo_n "(cached) " >&6 14339 else 14340 case $DF in 14341 [\\/]* | ?:[\\/]*) 14342 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14343 ;; 14344 *) 14345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14346 for as_dir in $PATH 14347 do 14348 IFS=$as_save_IFS 14349 test -z "$as_dir" && as_dir=. 14350 for ac_exec_ext in '' $ac_executable_extensions; do 14351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14352 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14354 break 2 14355 fi 14356 done 14357 done 14358 IFS=$as_save_IFS 14359 14360 ;; 14361 esac 14362 fi 14363 DF=$ac_cv_path_DF 14364 if test -n "$DF"; then 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14366 $as_echo "$DF" >&6; } 14367 else 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14369 $as_echo "no" >&6; } 14370 fi 14371 14372 14373 test -n "$DF" && break 14374 done 14375 14376 else 14377 # If it succeeded, then it was overridden by the user. We will use it 14378 # for the tool. 14379 14380 # First remove it from the list of overridden variables, so we can test 14381 # for unknown variables in the end. 14382 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14383 14384 # Check if we try to supply an empty value 14385 if test "x$DF" = x; then 14386 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14387 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14389 $as_echo_n "checking for DF... " >&6; } 14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14391 $as_echo "disabled" >&6; } 14392 else 14393 # Check if the provided tool contains a complete path. 14394 tool_specified="$DF" 14395 tool_basename="${tool_specified##*/}" 14396 if test "x$tool_basename" = "x$tool_specified"; then 14397 # A command without a complete path is provided, search $PATH. 14398 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14399 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14400 # Extract the first word of "$tool_basename", so it can be a program name with args. 14401 set dummy $tool_basename; ac_word=$2 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14403 $as_echo_n "checking for $ac_word... " >&6; } 14404 if ${ac_cv_path_DF+:} false; then : 14405 $as_echo_n "(cached) " >&6 14406 else 14407 case $DF in 14408 [\\/]* | ?:[\\/]*) 14409 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14410 ;; 14411 *) 14412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14413 for as_dir in $PATH 14414 do 14415 IFS=$as_save_IFS 14416 test -z "$as_dir" && as_dir=. 14417 for ac_exec_ext in '' $ac_executable_extensions; do 14418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14419 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14421 break 2 14422 fi 14423 done 14424 done 14425 IFS=$as_save_IFS 14426 14427 ;; 14428 esac 14429 fi 14430 DF=$ac_cv_path_DF 14431 if test -n "$DF"; then 14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14433 $as_echo "$DF" >&6; } 14434 else 14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14436 $as_echo "no" >&6; } 14437 fi 14438 14439 14440 if test "x$DF" = x; then 14441 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14442 fi 14443 else 14444 # Otherwise we believe it is a complete path. Use it as it is. 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14446 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14448 $as_echo_n "checking for DF... " >&6; } 14449 if test ! -x "$tool_specified"; then 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14451 $as_echo "not found" >&6; } 14452 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14453 fi 14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14455 $as_echo "$tool_specified" >&6; } 14456 fi 14457 fi 14458 fi 14459 14460 fi 14461 14462 14463 14464 14465 # Publish this variable in the help. 14466 14467 14468 if [ -z "${CPIO+x}" ]; then 14469 # The variable is not set by user, try to locate tool using the code snippet 14470 for ac_prog in cpio bsdcpio 14471 do 14472 # Extract the first word of "$ac_prog", so it can be a program name with args. 14473 set dummy $ac_prog; ac_word=$2 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14475 $as_echo_n "checking for $ac_word... " >&6; } 14476 if ${ac_cv_path_CPIO+:} false; then : 14477 $as_echo_n "(cached) " >&6 14478 else 14479 case $CPIO in 14480 [\\/]* | ?:[\\/]*) 14481 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14482 ;; 14483 *) 14484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14485 for as_dir in $PATH 14486 do 14487 IFS=$as_save_IFS 14488 test -z "$as_dir" && as_dir=. 14489 for ac_exec_ext in '' $ac_executable_extensions; do 14490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14491 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14493 break 2 14494 fi 14495 done 14496 done 14497 IFS=$as_save_IFS 14498 14499 ;; 14500 esac 14501 fi 14502 CPIO=$ac_cv_path_CPIO 14503 if test -n "$CPIO"; then 14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14505 $as_echo "$CPIO" >&6; } 14506 else 14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14508 $as_echo "no" >&6; } 14509 fi 14510 14511 14512 test -n "$CPIO" && break 14513 done 14514 14515 else 14516 # The variable is set, but is it from the command line or the environment? 14517 14518 # Try to remove the string !CPIO! from our list. 14519 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 14520 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14521 # If it failed, the variable was not from the command line. Ignore it, 14522 # but warn the user (except for BASH, which is always set by the calling BASH). 14523 if test "xCPIO" != xBASH; then 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 14525 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 14526 fi 14527 # Try to locate tool using the code snippet 14528 for ac_prog in cpio bsdcpio 14529 do 14530 # Extract the first word of "$ac_prog", so it can be a program name with args. 14531 set dummy $ac_prog; ac_word=$2 14532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14533 $as_echo_n "checking for $ac_word... " >&6; } 14534 if ${ac_cv_path_CPIO+:} false; then : 14535 $as_echo_n "(cached) " >&6 14536 else 14537 case $CPIO in 14538 [\\/]* | ?:[\\/]*) 14539 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14540 ;; 14541 *) 14542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14543 for as_dir in $PATH 14544 do 14545 IFS=$as_save_IFS 14546 test -z "$as_dir" && as_dir=. 14547 for ac_exec_ext in '' $ac_executable_extensions; do 14548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14549 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14551 break 2 14552 fi 14553 done 14554 done 14555 IFS=$as_save_IFS 14556 14557 ;; 14558 esac 14559 fi 14560 CPIO=$ac_cv_path_CPIO 14561 if test -n "$CPIO"; then 14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14563 $as_echo "$CPIO" >&6; } 14564 else 14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14566 $as_echo "no" >&6; } 14567 fi 14568 14569 14570 test -n "$CPIO" && break 14571 done 14572 14573 else 14574 # If it succeeded, then it was overridden by the user. We will use it 14575 # for the tool. 14576 14577 # First remove it from the list of overridden variables, so we can test 14578 # for unknown variables in the end. 14579 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14580 14581 # Check if we try to supply an empty value 14582 if test "x$CPIO" = x; then 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 14584 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 14586 $as_echo_n "checking for CPIO... " >&6; } 14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14588 $as_echo "disabled" >&6; } 14589 else 14590 # Check if the provided tool contains a complete path. 14591 tool_specified="$CPIO" 14592 tool_basename="${tool_specified##*/}" 14593 if test "x$tool_basename" = "x$tool_specified"; then 14594 # A command without a complete path is provided, search $PATH. 14595 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 14596 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 14597 # Extract the first word of "$tool_basename", so it can be a program name with args. 14598 set dummy $tool_basename; ac_word=$2 14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14600 $as_echo_n "checking for $ac_word... " >&6; } 14601 if ${ac_cv_path_CPIO+:} false; then : 14602 $as_echo_n "(cached) " >&6 14603 else 14604 case $CPIO in 14605 [\\/]* | ?:[\\/]*) 14606 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14607 ;; 14608 *) 14609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14610 for as_dir in $PATH 14611 do 14612 IFS=$as_save_IFS 14613 test -z "$as_dir" && as_dir=. 14614 for ac_exec_ext in '' $ac_executable_extensions; do 14615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14616 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14618 break 2 14619 fi 14620 done 14621 done 14622 IFS=$as_save_IFS 14623 14624 ;; 14625 esac 14626 fi 14627 CPIO=$ac_cv_path_CPIO 14628 if test -n "$CPIO"; then 14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 14630 $as_echo "$CPIO" >&6; } 14631 else 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14633 $as_echo "no" >&6; } 14634 fi 14635 14636 14637 if test "x$CPIO" = x; then 14638 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14639 fi 14640 else 14641 # Otherwise we believe it is a complete path. Use it as it is. 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 14643 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 14645 $as_echo_n "checking for CPIO... " >&6; } 14646 if test ! -x "$tool_specified"; then 14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14648 $as_echo "not found" >&6; } 14649 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 14650 fi 14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14652 $as_echo "$tool_specified" >&6; } 14653 fi 14654 fi 14655 fi 14656 14657 fi 14658 14659 14660 14661 14662 # Publish this variable in the help. 14663 14664 14665 if [ -z "${NICE+x}" ]; then 14666 # The variable is not set by user, try to locate tool using the code snippet 14667 for ac_prog in nice 14668 do 14669 # Extract the first word of "$ac_prog", so it can be a program name with args. 14670 set dummy $ac_prog; ac_word=$2 14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14672 $as_echo_n "checking for $ac_word... " >&6; } 14673 if ${ac_cv_path_NICE+:} false; then : 14674 $as_echo_n "(cached) " >&6 14675 else 14676 case $NICE in 14677 [\\/]* | ?:[\\/]*) 14678 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 14679 ;; 14680 *) 14681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14682 for as_dir in $PATH 14683 do 14684 IFS=$as_save_IFS 14685 test -z "$as_dir" && as_dir=. 14686 for ac_exec_ext in '' $ac_executable_extensions; do 14687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14688 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14690 break 2 14691 fi 14692 done 14693 done 14694 IFS=$as_save_IFS 14695 14696 ;; 14697 esac 14698 fi 14699 NICE=$ac_cv_path_NICE 14700 if test -n "$NICE"; then 14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14702 $as_echo "$NICE" >&6; } 14703 else 14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14705 $as_echo "no" >&6; } 14706 fi 14707 14708 14709 test -n "$NICE" && break 14710 done 14711 14712 else 14713 # The variable is set, but is it from the command line or the environment? 14714 14715 # Try to remove the string !NICE! from our list. 14716 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 14717 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14718 # If it failed, the variable was not from the command line. Ignore it, 14719 # but warn the user (except for BASH, which is always set by the calling BASH). 14720 if test "xNICE" != xBASH; then 14721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 14722 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 14723 fi 14724 # Try to locate tool using the code snippet 14725 for ac_prog in nice 14726 do 14727 # Extract the first word of "$ac_prog", so it can be a program name with args. 14728 set dummy $ac_prog; ac_word=$2 14729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14730 $as_echo_n "checking for $ac_word... " >&6; } 14731 if ${ac_cv_path_NICE+:} false; then : 14732 $as_echo_n "(cached) " >&6 14733 else 14734 case $NICE in 14735 [\\/]* | ?:[\\/]*) 14736 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 14737 ;; 14738 *) 14739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14740 for as_dir in $PATH 14741 do 14742 IFS=$as_save_IFS 14743 test -z "$as_dir" && as_dir=. 14744 for ac_exec_ext in '' $ac_executable_extensions; do 14745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14746 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14748 break 2 14749 fi 14750 done 14751 done 14752 IFS=$as_save_IFS 14753 14754 ;; 14755 esac 14756 fi 14757 NICE=$ac_cv_path_NICE 14758 if test -n "$NICE"; then 14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14760 $as_echo "$NICE" >&6; } 14761 else 14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14763 $as_echo "no" >&6; } 14764 fi 14765 14766 14767 test -n "$NICE" && break 14768 done 14769 14770 else 14771 # If it succeeded, then it was overridden by the user. We will use it 14772 # for the tool. 14773 14774 # First remove it from the list of overridden variables, so we can test 14775 # for unknown variables in the end. 14776 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14777 14778 # Check if we try to supply an empty value 14779 if test "x$NICE" = x; then 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 14781 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 14783 $as_echo_n "checking for NICE... " >&6; } 14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14785 $as_echo "disabled" >&6; } 14786 else 14787 # Check if the provided tool contains a complete path. 14788 tool_specified="$NICE" 14789 tool_basename="${tool_specified##*/}" 14790 if test "x$tool_basename" = "x$tool_specified"; then 14791 # A command without a complete path is provided, search $PATH. 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 14793 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 14794 # Extract the first word of "$tool_basename", so it can be a program name with args. 14795 set dummy $tool_basename; ac_word=$2 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14797 $as_echo_n "checking for $ac_word... " >&6; } 14798 if ${ac_cv_path_NICE+:} false; then : 14799 $as_echo_n "(cached) " >&6 14800 else 14801 case $NICE in 14802 [\\/]* | ?:[\\/]*) 14803 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 14804 ;; 14805 *) 14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14807 for as_dir in $PATH 14808 do 14809 IFS=$as_save_IFS 14810 test -z "$as_dir" && as_dir=. 14811 for ac_exec_ext in '' $ac_executable_extensions; do 14812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14813 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14815 break 2 14816 fi 14817 done 14818 done 14819 IFS=$as_save_IFS 14820 14821 ;; 14822 esac 14823 fi 14824 NICE=$ac_cv_path_NICE 14825 if test -n "$NICE"; then 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14827 $as_echo "$NICE" >&6; } 14828 else 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14830 $as_echo "no" >&6; } 14831 fi 14832 14833 14834 if test "x$NICE" = x; then 14835 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14836 fi 14837 else 14838 # Otherwise we believe it is a complete path. Use it as it is. 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 14840 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 14841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 14842 $as_echo_n "checking for NICE... " >&6; } 14843 if test ! -x "$tool_specified"; then 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14845 $as_echo "not found" >&6; } 14846 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 14847 fi 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14849 $as_echo "$tool_specified" >&6; } 14850 fi 14851 fi 14852 fi 14853 14854 fi 14855 14856 14857 14858 14859 # Now we can determine OpenJDK build and target platforms. This is required to 14860 # have early on. 14861 # Make sure we can run config.sub. 14862 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 14863 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 14864 14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 14866 $as_echo_n "checking build system type... " >&6; } 14867 if ${ac_cv_build+:} false; then : 14868 $as_echo_n "(cached) " >&6 14869 else 14870 ac_build_alias=$build_alias 14871 test "x$ac_build_alias" = x && 14872 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 14873 test "x$ac_build_alias" = x && 14874 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 14875 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 14876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 14877 14878 fi 14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 14880 $as_echo "$ac_cv_build" >&6; } 14881 case $ac_cv_build in 14882 *-*-*) ;; 14883 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 14884 esac 14885 build=$ac_cv_build 14886 ac_save_IFS=$IFS; IFS='-' 14887 set x $ac_cv_build 14888 shift 14889 build_cpu=$1 14890 build_vendor=$2 14891 shift; shift 14892 # Remember, the first character of IFS is used to create $*, 14893 # except with old shells: 14894 build_os=$* 14895 IFS=$ac_save_IFS 14896 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 14897 14898 14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 14900 $as_echo_n "checking host system type... " >&6; } 14901 if ${ac_cv_host+:} false; then : 14902 $as_echo_n "(cached) " >&6 14903 else 14904 if test "x$host_alias" = x; then 14905 ac_cv_host=$ac_cv_build 14906 else 14907 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 14908 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 14909 fi 14910 14911 fi 14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 14913 $as_echo "$ac_cv_host" >&6; } 14914 case $ac_cv_host in 14915 *-*-*) ;; 14916 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 14917 esac 14918 host=$ac_cv_host 14919 ac_save_IFS=$IFS; IFS='-' 14920 set x $ac_cv_host 14921 shift 14922 host_cpu=$1 14923 host_vendor=$2 14924 shift; shift 14925 # Remember, the first character of IFS is used to create $*, 14926 # except with old shells: 14927 host_os=$* 14928 IFS=$ac_save_IFS 14929 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 14930 14931 14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 14933 $as_echo_n "checking target system type... " >&6; } 14934 if ${ac_cv_target+:} false; then : 14935 $as_echo_n "(cached) " >&6 14936 else 14937 if test "x$target_alias" = x; then 14938 ac_cv_target=$ac_cv_host 14939 else 14940 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 14941 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 14942 fi 14943 14944 fi 14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 14946 $as_echo "$ac_cv_target" >&6; } 14947 case $ac_cv_target in 14948 *-*-*) ;; 14949 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 14950 esac 14951 target=$ac_cv_target 14952 ac_save_IFS=$IFS; IFS='-' 14953 set x $ac_cv_target 14954 shift 14955 target_cpu=$1 14956 target_vendor=$2 14957 shift; shift 14958 # Remember, the first character of IFS is used to create $*, 14959 # except with old shells: 14960 target_os=$* 14961 IFS=$ac_save_IFS 14962 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 14963 14964 14965 # The aliases save the names the user supplied, while $host etc. 14966 # will get canonicalized. 14967 test -n "$target_alias" && 14968 test "$program_prefix$program_suffix$program_transform_name" = \ 14969 NONENONEs,x,x, && 14970 program_prefix=${target_alias}- 14971 14972 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 14973 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 14974 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 14975 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 14976 # to use the configure naming style. 14977 14978 14979 14980 14981 14982 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 14983 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 14984 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 14985 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 14986 OPENJDK_TARGET_AUTOCONF_NAME="$host" 14987 OPENJDK_BUILD_AUTOCONF_NAME="$build" 14988 14989 14990 14991 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 14992 14993 case "$build_os" in 14994 *linux*) 14995 VAR_OS=linux 14996 VAR_OS_TYPE=unix 14997 ;; 14998 *solaris*) 14999 VAR_OS=solaris 15000 VAR_OS_TYPE=unix 15001 ;; 15002 *darwin*) 15003 VAR_OS=macosx 15004 VAR_OS_TYPE=unix 15005 ;; 15006 *bsd*) 15007 VAR_OS=bsd 15008 VAR_OS_TYPE=unix 15009 ;; 15010 *cygwin*) 15011 VAR_OS=windows 15012 VAR_OS_ENV=windows.cygwin 15013 ;; 15014 *mingw*) 15015 VAR_OS=windows 15016 VAR_OS_ENV=windows.msys 15017 ;; 15018 *aix*) 15019 VAR_OS=aix 15020 VAR_OS_TYPE=unix 15021 ;; 15022 *) 15023 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15024 ;; 15025 esac 15026 15027 15028 # First argument is the cpu name from the trip/quad 15029 case "$build_cpu" in 15030 x86_64) 15031 VAR_CPU=x86_64 15032 VAR_CPU_ARCH=x86 15033 VAR_CPU_BITS=64 15034 VAR_CPU_ENDIAN=little 15035 ;; 15036 i?86) 15037 VAR_CPU=x86 15038 VAR_CPU_ARCH=x86 15039 VAR_CPU_BITS=32 15040 VAR_CPU_ENDIAN=little 15041 ;; 15042 arm*) 15043 VAR_CPU=arm 15044 VAR_CPU_ARCH=arm 15045 VAR_CPU_BITS=32 15046 VAR_CPU_ENDIAN=little 15047 ;; 15048 aarch64) 15049 VAR_CPU=aarch64 15050 VAR_CPU_ARCH=aarch64 15051 VAR_CPU_BITS=64 15052 VAR_CPU_ENDIAN=little 15053 ;; 15054 powerpc) 15055 VAR_CPU=ppc 15056 VAR_CPU_ARCH=ppc 15057 VAR_CPU_BITS=32 15058 VAR_CPU_ENDIAN=big 15059 ;; 15060 powerpc64) 15061 VAR_CPU=ppc64 15062 VAR_CPU_ARCH=ppc 15063 VAR_CPU_BITS=64 15064 VAR_CPU_ENDIAN=big 15065 ;; 15066 powerpc64le) 15067 VAR_CPU=ppc64le 15068 VAR_CPU_ARCH=ppc 15069 VAR_CPU_BITS=64 15070 VAR_CPU_ENDIAN=little 15071 ;; 15072 s390) 15073 VAR_CPU=s390 15074 VAR_CPU_ARCH=s390 15075 VAR_CPU_BITS=32 15076 VAR_CPU_ENDIAN=big 15077 ;; 15078 s390x) 15079 VAR_CPU=s390x 15080 VAR_CPU_ARCH=s390 15081 VAR_CPU_BITS=64 15082 VAR_CPU_ENDIAN=big 15083 ;; 15084 sparc) 15085 VAR_CPU=sparc 15086 VAR_CPU_ARCH=sparc 15087 VAR_CPU_BITS=32 15088 VAR_CPU_ENDIAN=big 15089 ;; 15090 sparcv9|sparc64) 15091 VAR_CPU=sparcv9 15092 VAR_CPU_ARCH=sparc 15093 VAR_CPU_BITS=64 15094 VAR_CPU_ENDIAN=big 15095 ;; 15096 *) 15097 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15098 ;; 15099 esac 15100 15101 # ..and setup our own variables. (Do this explicitely to facilitate searching) 15102 OPENJDK_BUILD_OS="$VAR_OS" 15103 if test "x$VAR_OS_TYPE" != x; then 15104 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15105 else 15106 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15107 fi 15108 if test "x$VAR_OS_ENV" != x; then 15109 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15110 else 15111 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15112 fi 15113 OPENJDK_BUILD_CPU="$VAR_CPU" 15114 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15115 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15116 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15117 15118 15119 15120 15121 15122 15123 15124 15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15126 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15128 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15129 15130 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15131 15132 case "$host_os" in 15133 *linux*) 15134 VAR_OS=linux 15135 VAR_OS_TYPE=unix 15136 ;; 15137 *solaris*) 15138 VAR_OS=solaris 15139 VAR_OS_TYPE=unix 15140 ;; 15141 *darwin*) 15142 VAR_OS=macosx 15143 VAR_OS_TYPE=unix 15144 ;; 15145 *bsd*) 15146 VAR_OS=bsd 15147 VAR_OS_TYPE=unix 15148 ;; 15149 *cygwin*) 15150 VAR_OS=windows 15151 VAR_OS_ENV=windows.cygwin 15152 ;; 15153 *mingw*) 15154 VAR_OS=windows 15155 VAR_OS_ENV=windows.msys 15156 ;; 15157 *aix*) 15158 VAR_OS=aix 15159 VAR_OS_TYPE=unix 15160 ;; 15161 *) 15162 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15163 ;; 15164 esac 15165 15166 15167 # First argument is the cpu name from the trip/quad 15168 case "$host_cpu" in 15169 x86_64) 15170 VAR_CPU=x86_64 15171 VAR_CPU_ARCH=x86 15172 VAR_CPU_BITS=64 15173 VAR_CPU_ENDIAN=little 15174 ;; 15175 i?86) 15176 VAR_CPU=x86 15177 VAR_CPU_ARCH=x86 15178 VAR_CPU_BITS=32 15179 VAR_CPU_ENDIAN=little 15180 ;; 15181 arm*) 15182 VAR_CPU=arm 15183 VAR_CPU_ARCH=arm 15184 VAR_CPU_BITS=32 15185 VAR_CPU_ENDIAN=little 15186 ;; 15187 aarch64) 15188 VAR_CPU=aarch64 15189 VAR_CPU_ARCH=aarch64 15190 VAR_CPU_BITS=64 15191 VAR_CPU_ENDIAN=little 15192 ;; 15193 powerpc) 15194 VAR_CPU=ppc 15195 VAR_CPU_ARCH=ppc 15196 VAR_CPU_BITS=32 15197 VAR_CPU_ENDIAN=big 15198 ;; 15199 powerpc64) 15200 VAR_CPU=ppc64 15201 VAR_CPU_ARCH=ppc 15202 VAR_CPU_BITS=64 15203 VAR_CPU_ENDIAN=big 15204 ;; 15205 powerpc64le) 15206 VAR_CPU=ppc64le 15207 VAR_CPU_ARCH=ppc 15208 VAR_CPU_BITS=64 15209 VAR_CPU_ENDIAN=little 15210 ;; 15211 s390) 15212 VAR_CPU=s390 15213 VAR_CPU_ARCH=s390 15214 VAR_CPU_BITS=32 15215 VAR_CPU_ENDIAN=big 15216 ;; 15217 s390x) 15218 VAR_CPU=s390x 15219 VAR_CPU_ARCH=s390 15220 VAR_CPU_BITS=64 15221 VAR_CPU_ENDIAN=big 15222 ;; 15223 sparc) 15224 VAR_CPU=sparc 15225 VAR_CPU_ARCH=sparc 15226 VAR_CPU_BITS=32 15227 VAR_CPU_ENDIAN=big 15228 ;; 15229 sparcv9|sparc64) 15230 VAR_CPU=sparcv9 15231 VAR_CPU_ARCH=sparc 15232 VAR_CPU_BITS=64 15233 VAR_CPU_ENDIAN=big 15234 ;; 15235 *) 15236 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 15237 ;; 15238 esac 15239 15240 # ... and setup our own variables. (Do this explicitely to facilitate searching) 15241 OPENJDK_TARGET_OS="$VAR_OS" 15242 if test "x$VAR_OS_TYPE" != x; then 15243 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 15244 else 15245 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 15246 fi 15247 if test "x$VAR_OS_ENV" != x; then 15248 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 15249 else 15250 OPENJDK_TARGET_OS_ENV="$VAR_OS" 15251 fi 15252 OPENJDK_TARGET_CPU="$VAR_CPU" 15253 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 15254 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 15255 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15256 15257 15258 15259 15260 15261 15262 15263 15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 15265 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 15267 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 15268 15269 15270 15271 # Check whether --with-target-bits was given. 15272 if test "${with_target_bits+set}" = set; then : 15273 withval=$with_target_bits; 15274 fi 15275 15276 15277 # We have three types of compiles: 15278 # native == normal compilation, target system == build system 15279 # cross == traditional cross compilation, target system != build system; special toolchain needed 15280 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 15281 # 15282 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 15283 # We're doing a proper cross-compilation 15284 COMPILE_TYPE="cross" 15285 else 15286 COMPILE_TYPE="native" 15287 fi 15288 15289 if test "x$with_target_bits" != x; then 15290 if test "x$COMPILE_TYPE" = "xcross"; then 15291 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 15292 fi 15293 15294 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15295 # A reduced build is requested 15296 COMPILE_TYPE="reduced" 15297 OPENJDK_TARGET_CPU_BITS=32 15298 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 15299 OPENJDK_TARGET_CPU=x86 15300 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 15301 OPENJDK_TARGET_CPU=sparc 15302 else 15303 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 15304 fi 15305 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 15306 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 15307 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 15308 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 15309 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 15310 else 15311 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 15312 fi 15313 fi 15314 15315 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 15317 $as_echo_n "checking compilation type... " >&6; } 15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 15319 $as_echo "$COMPILE_TYPE" >&6; } 15320 15321 15322 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 15323 REQUIRED_OS_NAME=SunOS 15324 REQUIRED_OS_VERSION=5.10 15325 fi 15326 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 15327 REQUIRED_OS_NAME=Linux 15328 REQUIRED_OS_VERSION=2.6 15329 fi 15330 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 15331 REQUIRED_OS_NAME=Windows 15332 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 15333 REQUIRED_OS_VERSION=5.2 15334 else 15335 REQUIRED_OS_VERSION=5.1 15336 fi 15337 fi 15338 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15339 REQUIRED_OS_NAME=Darwin 15340 REQUIRED_OS_VERSION=11.2 15341 fi 15342 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 15343 REQUIRED_OS_NAME=AIX 15344 REQUIRED_OS_VERSION=7.1 15345 fi 15346 15347 15348 15349 15350 15351 15352 # Also store the legacy naming of the cpu. 15353 # Ie i586 and amd64 instead of x86 and x86_64 15354 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 15355 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15356 OPENJDK_TARGET_CPU_LEGACY="i586" 15357 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15358 # On all platforms except MacOSX replace x86_64 with amd64. 15359 OPENJDK_TARGET_CPU_LEGACY="amd64" 15360 fi 15361 15362 15363 # And the second legacy naming of the cpu. 15364 # Ie i386 and amd64 instead of x86 and x86_64. 15365 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 15366 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15367 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 15368 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15369 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 15370 fi 15371 15372 15373 # This is the name of the cpu (but using i386 and amd64 instead of 15374 # x86 and x86_64, respectively), preceeded by a /, to be used when 15375 # locating libraries. On macosx, it's empty, though. 15376 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 15377 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15378 OPENJDK_TARGET_CPU_LIBDIR="" 15379 fi 15380 15381 15382 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 15383 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 15384 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 15385 OPENJDK_TARGET_CPU_ISADIR="" 15386 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15387 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15388 OPENJDK_TARGET_CPU_ISADIR="/amd64" 15389 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15390 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 15391 fi 15392 fi 15393 15394 15395 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 15396 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 15397 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 15398 # On linux only, we replace x86 with i386. 15399 OPENJDK_TARGET_CPU_OSARCH="i386" 15400 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15401 # On all platforms except macosx, we replace x86_64 with amd64. 15402 OPENJDK_TARGET_CPU_OSARCH="amd64" 15403 fi 15404 15405 15406 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 15407 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15408 OPENJDK_TARGET_CPU_JLI="i386" 15409 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15410 # On all platforms except macosx, we replace x86_64 with amd64. 15411 OPENJDK_TARGET_CPU_JLI="amd64" 15412 fi 15413 # Now setup the -D flags for building libjli. 15414 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 15415 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 15416 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 15417 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 15418 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 15419 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 15420 fi 15421 fi 15422 15423 15424 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15425 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 15426 else 15427 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 15428 fi 15429 15430 15431 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15432 A_LP64="LP64:=" 15433 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 15434 # unpack200.exe 15435 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 15436 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 15437 fi 15438 fi 15439 LP64=$A_LP64 15440 15441 15442 if test "x$COMPILE_TYPE" = "xcross"; then 15443 # FIXME: ... or should this include reduced builds..? 15444 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 15445 else 15446 DEFINE_CROSS_COMPILE_ARCH="" 15447 fi 15448 15449 15450 # Convert openjdk platform names to hotspot names 15451 15452 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 15453 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 15454 HOTSPOT_TARGET_OS=bsd 15455 fi 15456 15457 15458 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 15459 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 15460 HOTSPOT_TARGET_OS_TYPE=posix 15461 fi 15462 15463 15464 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 15465 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15466 HOTSPOT_TARGET_CPU=x86_32 15467 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15468 HOTSPOT_TARGET_CPU=sparc 15469 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 15470 HOTSPOT_TARGET_CPU=ppc_64 15471 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 15472 HOTSPOT_TARGET_CPU=ppc_64 15473 fi 15474 15475 15476 # This is identical with OPENJDK_*, but define anyway for consistency. 15477 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 15478 15479 15480 # Setup HOTSPOT_TARGET_CPU_DEFINE 15481 if test "x$OPENJDK_TARGET_CPU" = xx86; then 15482 HOTSPOT_TARGET_CPU_DEFINE=IA32 15483 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 15484 HOTSPOT_TARGET_CPU_DEFINE=AMD64 15485 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 15486 HOTSPOT_TARGET_CPU_DEFINE=SPARC 15487 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 15488 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 15489 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 15490 HOTSPOT_TARGET_CPU_DEFINE=PPC64 15491 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 15492 HOTSPOT_TARGET_CPU_DEFINE=PPC64 15493 15494 # The cpu defines below are for zero, we don't support them directly. 15495 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 15496 HOTSPOT_TARGET_CPU_DEFINE=SPARC 15497 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 15498 HOTSPOT_TARGET_CPU_DEFINE=PPC32 15499 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 15500 HOTSPOT_TARGET_CPU_DEFINE=S390 15501 elif test "x$OPENJDK_TARGET_CPU" = ss390x; then 15502 HOTSPOT_TARGET_CPU_DEFINE=S390 15503 fi 15504 15505 15506 15507 15508 # Also store the legacy naming of the cpu. 15509 # Ie i586 and amd64 instead of x86 and x86_64 15510 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 15511 if test "x$OPENJDK_BUILD_CPU" = xx86; then 15512 OPENJDK_BUILD_CPU_LEGACY="i586" 15513 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15514 # On all platforms except MacOSX replace x86_64 with amd64. 15515 OPENJDK_BUILD_CPU_LEGACY="amd64" 15516 fi 15517 15518 15519 # And the second legacy naming of the cpu. 15520 # Ie i386 and amd64 instead of x86 and x86_64. 15521 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 15522 if test "x$OPENJDK_BUILD_CPU" = xx86; then 15523 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 15524 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15525 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 15526 fi 15527 15528 15529 # This is the name of the cpu (but using i386 and amd64 instead of 15530 # x86 and x86_64, respectively), preceeded by a /, to be used when 15531 # locating libraries. On macosx, it's empty, though. 15532 OPENJDK_BUILD_CPU_LIBDIR="/$OPENJDK_BUILD_CPU_LEGACY_LIB" 15533 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 15534 OPENJDK_BUILD_CPU_LIBDIR="" 15535 fi 15536 15537 15538 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 15539 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 15540 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 15541 OPENJDK_BUILD_CPU_ISADIR="" 15542 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 15543 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15544 OPENJDK_BUILD_CPU_ISADIR="/amd64" 15545 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 15546 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 15547 fi 15548 fi 15549 15550 15551 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 15552 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 15553 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 15554 # On linux only, we replace x86 with i386. 15555 OPENJDK_BUILD_CPU_OSARCH="i386" 15556 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15557 # On all platforms except macosx, we replace x86_64 with amd64. 15558 OPENJDK_BUILD_CPU_OSARCH="amd64" 15559 fi 15560 15561 15562 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 15563 if test "x$OPENJDK_BUILD_CPU" = xx86; then 15564 OPENJDK_BUILD_CPU_JLI="i386" 15565 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15566 # On all platforms except macosx, we replace x86_64 with amd64. 15567 OPENJDK_BUILD_CPU_JLI="amd64" 15568 fi 15569 # Now setup the -D flags for building libjli. 15570 OPENJDK_BUILD_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_BUILD_CPU_JLI\"'" 15571 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 15572 if test "x$OPENJDK_BUILD_CPU_ARCH" = xsparc; then 15573 OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 15574 elif test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 15575 OPENJDK_BUILD_CPU_JLI_CFLAGS="$OPENJDK_BUILD_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 15576 fi 15577 fi 15578 15579 15580 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 15581 OPENJDK_BUILD_OS_EXPORT_DIR=macosx 15582 else 15583 OPENJDK_BUILD_OS_EXPORT_DIR=${OPENJDK_BUILD_OS_TYPE} 15584 fi 15585 15586 15587 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 15588 A_LP64="LP64:=" 15589 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 15590 # unpack200.exe 15591 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 15592 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 15593 fi 15594 fi 15595 LP64=$A_LP64 15596 15597 15598 if test "x$COMPILE_TYPE" = "xcross"; then 15599 # FIXME: ... or should this include reduced builds..? 15600 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 15601 else 15602 DEFINE_CROSS_COMPILE_ARCH="" 15603 fi 15604 15605 15606 # Convert openjdk platform names to hotspot names 15607 15608 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 15609 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 15610 HOTSPOT_BUILD_OS=bsd 15611 fi 15612 15613 15614 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 15615 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 15616 HOTSPOT_BUILD_OS_TYPE=posix 15617 fi 15618 15619 15620 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 15621 if test "x$OPENJDK_BUILD_CPU" = xx86; then 15622 HOTSPOT_BUILD_CPU=x86_32 15623 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 15624 HOTSPOT_BUILD_CPU=sparc 15625 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 15626 HOTSPOT_BUILD_CPU=ppc_64 15627 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 15628 HOTSPOT_BUILD_CPU=ppc_64 15629 fi 15630 15631 15632 # This is identical with OPENJDK_*, but define anyway for consistency. 15633 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 15634 15635 15636 # Setup HOTSPOT_BUILD_CPU_DEFINE 15637 if test "x$OPENJDK_BUILD_CPU" = xx86; then 15638 HOTSPOT_BUILD_CPU_DEFINE=IA32 15639 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 15640 HOTSPOT_BUILD_CPU_DEFINE=AMD64 15641 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 15642 HOTSPOT_BUILD_CPU_DEFINE=SPARC 15643 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 15644 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 15645 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 15646 HOTSPOT_BUILD_CPU_DEFINE=PPC64 15647 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 15648 HOTSPOT_BUILD_CPU_DEFINE=PPC64 15649 15650 # The cpu defines below are for zero, we don't support them directly. 15651 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 15652 HOTSPOT_BUILD_CPU_DEFINE=SPARC 15653 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 15654 HOTSPOT_BUILD_CPU_DEFINE=PPC32 15655 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 15656 HOTSPOT_BUILD_CPU_DEFINE=S390 15657 elif test "x$OPENJDK_BUILD_CPU" = ss390x; then 15658 HOTSPOT_BUILD_CPU_DEFINE=S390 15659 fi 15660 15661 15662 15663 15664 # ZERO_ARCHDEF is used to enable architecture-specific code. 15665 # This is used in legacy hotspot build. 15666 ZERO_ARCHDEF="$HOTSPOT_TARGET_CPU_DEFINE" 15667 15668 15669 15670 15671 15672 # Continue setting up basic stuff. Most remaining code require fundamental tools. 15673 15674 # Save the current directory this script was started from 15675 CURDIR="$PWD" 15676 15677 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 15678 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 15679 # was not available at that time. 15680 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 15681 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 15682 ORIGINAL_PATH="$REWRITTEN_PATH" 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 15684 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 15685 fi 15686 15687 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 15688 PATH_SEP=";" 15689 15690 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 15691 if test $SRC_ROOT_LENGTH -gt 100; then 15692 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 15693 fi 15694 15695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 15697 $as_echo_n "checking cygwin release... " >&6; } 15698 CYGWIN_VERSION=`$UNAME -r` 15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 15700 $as_echo "$CYGWIN_VERSION" >&6; } 15701 WINDOWS_ENV_VENDOR='cygwin' 15702 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 15703 15704 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 15705 if test "x$CYGWIN_VERSION_OLD" != x; then 15706 { $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 15707 $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;} 15708 as_fn_error $? "Cannot continue" "$LINENO" 5 15709 fi 15710 if test "x$CYGPATH" = x; then 15711 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 15712 fi 15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 15714 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 15715 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 15716 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 15717 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 15718 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 15720 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 15721 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 15722 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 15723 if test "x$test_cygdrive_prefix" = x; then 15724 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 15725 fi 15726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 15728 $as_echo_n "checking msys release... " >&6; } 15729 MSYS_VERSION=`$UNAME -r` 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 15731 $as_echo "$MSYS_VERSION" >&6; } 15732 15733 WINDOWS_ENV_VENDOR='msys' 15734 WINDOWS_ENV_VERSION="$MSYS_VERSION" 15735 15736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 15737 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 15738 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 15739 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 15740 15741 windows_path="$MSYS_ROOT_PATH" 15742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15743 unix_path=`$CYGPATH -u "$windows_path"` 15744 MSYS_ROOT_PATH="$unix_path" 15745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15746 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15747 MSYS_ROOT_PATH="$unix_path" 15748 fi 15749 15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 15751 $as_echo "$MSYS_ROOT_PATH" >&6; } 15752 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 15753 else 15754 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 15755 fi 15756 15757 # Test if windows or unix (cygwin/msys) find is first in path. 15758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 15759 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 15760 FIND_BINARY_OUTPUT=`find --version 2>&1` 15761 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 15763 $as_echo "unix style" >&6; } 15764 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 15766 $as_echo "Windows" >&6; } 15767 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 15768 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 15769 { $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 15770 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 15771 as_fn_error $? "Cannot continue" "$LINENO" 5 15772 else 15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 15774 $as_echo "unknown" >&6; } 15775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 15776 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 15777 fi 15778 15779 else 15780 PATH_SEP=":" 15781 fi 15782 15783 15784 # We get the top-level directory from the supporting wrappers. 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 15786 $as_echo_n "checking for top-level directory... " >&6; } 15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 15788 $as_echo "$TOPDIR" >&6; } 15789 15790 15791 # Save the original version of TOPDIR for string comparisons 15792 ORIGINAL_TOPDIR="$TOPDIR" 15793 15794 15795 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 15796 15797 # Only process if variable expands to non-empty 15798 15799 if test "x$CURDIR" != x; then 15800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15801 15802 # Input might be given as Windows format, start by converting to 15803 # unix format. 15804 path="$CURDIR" 15805 new_path=`$CYGPATH -u "$path"` 15806 15807 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15808 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15809 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15810 # "foo.exe" is OK but "foo" is an error. 15811 # 15812 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15813 # It is also a way to make sure we got the proper file name for the real test later on. 15814 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15815 if test "x$test_shortpath" = x; then 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 15817 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 15818 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 15819 fi 15820 15821 # Call helper function which possibly converts this using DOS-style short mode. 15822 # If so, the updated path is stored in $new_path. 15823 15824 input_path="$new_path" 15825 # Check if we need to convert this using DOS-style short mode. If the path 15826 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15827 # take no chances and rewrite it. 15828 # Note: m4 eats our [], so we need to use [ and ] instead. 15829 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15830 if test "x$has_forbidden_chars" != x; then 15831 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15832 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15833 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15834 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15835 # Going to short mode and back again did indeed matter. Since short mode is 15836 # case insensitive, let's make it lowercase to improve readability. 15837 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15838 # Now convert it back to Unix-style (cygpath) 15839 input_path=`$CYGPATH -u "$shortmode_path"` 15840 new_path="$input_path" 15841 fi 15842 fi 15843 15844 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15845 if test "x$test_cygdrive_prefix" = x; then 15846 # As a simple fix, exclude /usr/bin since it's not a real path. 15847 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15848 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15849 # a path prefixed by /cygdrive for fixpath to work. 15850 new_path="$CYGWIN_ROOT_PATH$input_path" 15851 fi 15852 fi 15853 15854 15855 if test "x$path" != "x$new_path"; then 15856 CURDIR="$new_path" 15857 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 15858 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 15859 fi 15860 15861 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15862 15863 path="$CURDIR" 15864 has_colon=`$ECHO $path | $GREP ^.:` 15865 new_path="$path" 15866 if test "x$has_colon" = x; then 15867 # Not in mixed or Windows style, start by that. 15868 new_path=`cmd //c echo $path` 15869 fi 15870 15871 15872 input_path="$new_path" 15873 # Check if we need to convert this using DOS-style short mode. If the path 15874 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15875 # take no chances and rewrite it. 15876 # Note: m4 eats our [], so we need to use [ and ] instead. 15877 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15878 if test "x$has_forbidden_chars" != x; then 15879 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15880 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15881 fi 15882 15883 15884 windows_path="$new_path" 15885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15886 unix_path=`$CYGPATH -u "$windows_path"` 15887 new_path="$unix_path" 15888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15890 new_path="$unix_path" 15891 fi 15892 15893 if test "x$path" != "x$new_path"; then 15894 CURDIR="$new_path" 15895 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 15896 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 15897 fi 15898 15899 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15900 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15901 15902 else 15903 # We're on a unix platform. Hooray! :) 15904 path="$CURDIR" 15905 has_space=`$ECHO "$path" | $GREP " "` 15906 if test "x$has_space" != x; then 15907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 15908 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 15909 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15910 fi 15911 15912 # Use eval to expand a potential ~ 15913 eval path="$path" 15914 if test ! -f "$path" && test ! -d "$path"; then 15915 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 15916 fi 15917 15918 if test -d "$path"; then 15919 CURDIR="`cd "$path"; $THEPWDCMD -L`" 15920 else 15921 dir="`$DIRNAME "$path"`" 15922 base="`$BASENAME "$path"`" 15923 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 15924 fi 15925 fi 15926 fi 15927 15928 15929 # Only process if variable expands to non-empty 15930 15931 if test "x$TOPDIR" != x; then 15932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15933 15934 # Input might be given as Windows format, start by converting to 15935 # unix format. 15936 path="$TOPDIR" 15937 new_path=`$CYGPATH -u "$path"` 15938 15939 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15940 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15941 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15942 # "foo.exe" is OK but "foo" is an error. 15943 # 15944 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15945 # It is also a way to make sure we got the proper file name for the real test later on. 15946 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15947 if test "x$test_shortpath" = x; then 15948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 15949 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 15950 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 15951 fi 15952 15953 # Call helper function which possibly converts this using DOS-style short mode. 15954 # If so, the updated path is stored in $new_path. 15955 15956 input_path="$new_path" 15957 # Check if we need to convert this using DOS-style short mode. If the path 15958 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15959 # take no chances and rewrite it. 15960 # Note: m4 eats our [], so we need to use [ and ] instead. 15961 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15962 if test "x$has_forbidden_chars" != x; then 15963 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15964 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15965 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15966 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15967 # Going to short mode and back again did indeed matter. Since short mode is 15968 # case insensitive, let's make it lowercase to improve readability. 15969 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15970 # Now convert it back to Unix-style (cygpath) 15971 input_path=`$CYGPATH -u "$shortmode_path"` 15972 new_path="$input_path" 15973 fi 15974 fi 15975 15976 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15977 if test "x$test_cygdrive_prefix" = x; then 15978 # As a simple fix, exclude /usr/bin since it's not a real path. 15979 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15980 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15981 # a path prefixed by /cygdrive for fixpath to work. 15982 new_path="$CYGWIN_ROOT_PATH$input_path" 15983 fi 15984 fi 15985 15986 15987 if test "x$path" != "x$new_path"; then 15988 TOPDIR="$new_path" 15989 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 15990 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 15991 fi 15992 15993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15994 15995 path="$TOPDIR" 15996 has_colon=`$ECHO $path | $GREP ^.:` 15997 new_path="$path" 15998 if test "x$has_colon" = x; then 15999 # Not in mixed or Windows style, start by that. 16000 new_path=`cmd //c echo $path` 16001 fi 16002 16003 16004 input_path="$new_path" 16005 # Check if we need to convert this using DOS-style short mode. If the path 16006 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16007 # take no chances and rewrite it. 16008 # Note: m4 eats our [], so we need to use [ and ] instead. 16009 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16010 if test "x$has_forbidden_chars" != x; then 16011 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16012 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16013 fi 16014 16015 16016 windows_path="$new_path" 16017 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16018 unix_path=`$CYGPATH -u "$windows_path"` 16019 new_path="$unix_path" 16020 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16021 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16022 new_path="$unix_path" 16023 fi 16024 16025 if test "x$path" != "x$new_path"; then 16026 TOPDIR="$new_path" 16027 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16028 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16029 fi 16030 16031 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16032 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16033 16034 else 16035 # We're on a unix platform. Hooray! :) 16036 path="$TOPDIR" 16037 has_space=`$ECHO "$path" | $GREP " "` 16038 if test "x$has_space" != x; then 16039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16040 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16041 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16042 fi 16043 16044 # Use eval to expand a potential ~ 16045 eval path="$path" 16046 if test ! -f "$path" && test ! -d "$path"; then 16047 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16048 fi 16049 16050 if test -d "$path"; then 16051 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16052 else 16053 dir="`$DIRNAME "$path"`" 16054 base="`$BASENAME "$path"`" 16055 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16056 fi 16057 fi 16058 fi 16059 16060 # SRC_ROOT is a traditional alias for TOPDIR. 16061 SRC_ROOT=$TOPDIR 16062 16063 # Calculate a canonical version of TOPDIR for string comparisons 16064 CANONICAL_TOPDIR=$TOPDIR 16065 16066 if test "x$OPENJDK_BUILD_OS" != xwindows; then 16067 # Follow a chain of symbolic links. Use readlink 16068 # where it exists, else fall back to horribly 16069 # complicated shell code. 16070 if test "x$READLINK_TESTED" != yes; then 16071 # On MacOSX there is a readlink tool with a different 16072 # purpose than the GNU readlink tool. Check the found readlink. 16073 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 16074 if test "x$ISGNU" = x; then 16075 # A readlink that we do not know how to use. 16076 # Are there other non-GNU readlinks out there? 16077 READLINK_TESTED=yes 16078 READLINK= 16079 fi 16080 fi 16081 16082 if test "x$READLINK" != x; then 16083 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 16084 else 16085 # Save the current directory for restoring afterwards 16086 STARTDIR=$PWD 16087 COUNTER=0 16088 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 16089 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 16090 cd $sym_link_dir 16091 # Use -P flag to resolve symlinks in directories. 16092 cd `$THEPWDCMD -P` 16093 sym_link_dir=`$THEPWDCMD -P` 16094 # Resolve file symlinks 16095 while test $COUNTER -lt 20; do 16096 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 16097 if test "x$ISLINK" == x; then 16098 # This is not a symbolic link! We are done! 16099 break 16100 fi 16101 # Again resolve directory symlinks since the target of the just found 16102 # link could be in a different directory 16103 cd `$DIRNAME $ISLINK` 16104 sym_link_dir=`$THEPWDCMD -P` 16105 sym_link_file=`$BASENAME $ISLINK` 16106 let COUNTER=COUNTER+1 16107 done 16108 cd $STARTDIR 16109 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 16110 fi 16111 fi 16112 16113 16114 16115 # Locate the directory of this script. 16116 AUTOCONF_DIR=$TOPDIR/common/autoconf 16117 16118 # Setup username (for use in adhoc version strings etc) 16119 # Outer [ ] to quote m4. 16120 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16121 16122 16123 16124 # Check if it's a pure open build or if custom sources are to be used. 16125 16126 # Check whether --enable-openjdk-only was given. 16127 if test "${enable_openjdk_only+set}" = set; then : 16128 enableval=$enable_openjdk_only; 16129 else 16130 enable_openjdk_only="no" 16131 fi 16132 16133 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 16135 $as_echo_n "checking for presence of closed sources... " >&6; } 16136 if test -d "$SRC_ROOT/jdk/src/closed"; then 16137 CLOSED_SOURCE_PRESENT=yes 16138 else 16139 CLOSED_SOURCE_PRESENT=no 16140 fi 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 16142 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 16143 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 16145 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 16146 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 16148 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 16149 16150 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 16151 OPENJDK=true 16152 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 16154 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 16155 fi 16156 else 16157 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 16158 OPENJDK=true 16159 else 16160 OPENJDK=false 16161 fi 16162 fi 16163 16164 if test "x$OPENJDK" = "xtrue"; then 16165 SET_OPENJDK="OPENJDK=true" 16166 fi 16167 16168 16169 16170 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16171 # the IncludeCustomExtension macro. 16172 16173 16174 # Check whether --with-custom-make-dir was given. 16175 if test "${with_custom_make_dir+set}" = set; then : 16176 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 16177 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16178 fi 16179 16180 16181 16182 16183 # These are needed to be able to create a configuration name (and thus the output directory) 16184 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16186 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16187 16188 # Check whether --with-jdk-variant was given. 16189 if test "${with_jdk_variant+set}" = set; then : 16190 withval=$with_jdk_variant; 16191 fi 16192 16193 16194 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16195 JDK_VARIANT="normal" 16196 else 16197 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16198 fi 16199 16200 16201 16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16203 $as_echo "$JDK_VARIANT" >&6; } 16204 16205 16206 DEBUG_LEVEL="release" 16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16208 $as_echo_n "checking which debug level to use... " >&6; } 16209 # Check whether --enable-debug was given. 16210 if test "${enable_debug+set}" = set; then : 16211 enableval=$enable_debug; 16212 ENABLE_DEBUG="${enableval}" 16213 DEBUG_LEVEL="fastdebug" 16214 16215 else 16216 ENABLE_DEBUG="no" 16217 fi 16218 16219 16220 16221 # Check whether --with-debug-level was given. 16222 if test "${with_debug_level+set}" = set; then : 16223 withval=$with_debug_level; 16224 DEBUG_LEVEL="${withval}" 16225 if test "x$ENABLE_DEBUG" = xyes; then 16226 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16227 fi 16228 16229 fi 16230 16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16232 $as_echo "$DEBUG_LEVEL" >&6; } 16233 16234 if test "x$DEBUG_LEVEL" != xrelease && \ 16235 test "x$DEBUG_LEVEL" != xoptimized && \ 16236 test "x$DEBUG_LEVEL" != xfastdebug && \ 16237 test "x$DEBUG_LEVEL" != xslowdebug; then 16238 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16239 fi 16240 16241 # Translate DEBUG_LEVEL to debug level used by Hotspot 16242 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16243 if test "x$DEBUG_LEVEL" = xrelease; then 16244 HOTSPOT_DEBUG_LEVEL="product" 16245 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16246 HOTSPOT_DEBUG_LEVEL="debug" 16247 fi 16248 16249 if test "x$DEBUG_LEVEL" = xoptimized; then 16250 # The debug level 'optimized' is a little special because it is currently only 16251 # applicable to the HotSpot build where it means to build a completely 16252 # optimized version of the VM without any debugging code (like for the 16253 # 'release' debug level which is called 'product' in the HotSpot build) but 16254 # with the exception that it can contain additional code which is otherwise 16255 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16256 # test new and/or experimental features which are not intended for customer 16257 # shipment. Because these new features need to be tested and benchmarked in 16258 # real world scenarios, we want to build the containing JDK at the 'release' 16259 # debug level. 16260 DEBUG_LEVEL="release" 16261 fi 16262 16263 16264 16265 16266 16267 16268 # Check whether --with-jvm-variants was given. 16269 if test "${with_jvm_variants+set}" = set; then : 16270 withval=$with_jvm_variants; 16271 fi 16272 16273 16274 if test "x$with_jvm_variants" = x; then 16275 with_jvm_variants="server" 16276 fi 16277 JVM_VARIANTS_OPT="$with_jvm_variants" 16278 16279 # Has the user listed more than one variant? 16280 # Additional [] needed to keep m4 from mangling shell constructs. 16281 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 16282 BUILDING_MULTIPLE_JVM_VARIANTS=true 16283 else 16284 BUILDING_MULTIPLE_JVM_VARIANTS=false 16285 fi 16286 # Replace the commas with AND for use in the build directory name. 16287 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 16288 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 16290 $as_echo_n "checking which variants of the JVM to build... " >&6; } 16291 # JVM_VARIANTS is a space-separated list. 16292 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 16293 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 16295 $as_echo "$JVM_VARIANTS" >&6; } 16296 16297 # Check that the selected variants are valid 16298 16299 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 16300 # Notice that the original variant failes on SLES 10 and 11 16301 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 16302 STACK=${JVM_VARIANTS// /$'\n'} 16303 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16304 if test "x$INVALID_VARIANTS" != x; then 16305 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 16306 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 16307 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 16308 fi 16309 16310 # All "special" variants share the same output directory ("server") 16311 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 16312 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 16313 STACK=${JVM_VARIANTS// /$'\n'} 16314 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 16315 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 16316 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 16317 fi 16318 16319 16320 16321 16322 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 16323 # zero behaves as a platform and rewrites these values. This is really weird. :( 16324 # We are guaranteed that we do not build any other variants when building zero. 16325 HOTSPOT_TARGET_CPU=zero 16326 HOTSPOT_TARGET_CPU_ARCH=zero 16327 fi 16328 16329 16330 # With basic setup done, call the custom early hook. 16331 16332 16333 # Check if we have devkits, extra paths or sysroot set. 16334 16335 16336 # Check whether --with-devkit was given. 16337 if test "${with_devkit+set}" = set; then : 16338 withval=$with_devkit; 16339 16340 # Only process if variable expands to non-empty 16341 16342 if test "x$with_devkit" != x; then 16343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16344 16345 # Input might be given as Windows format, start by converting to 16346 # unix format. 16347 path="$with_devkit" 16348 new_path=`$CYGPATH -u "$path"` 16349 16350 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16351 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16352 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16353 # "foo.exe" is OK but "foo" is an error. 16354 # 16355 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16356 # It is also a way to make sure we got the proper file name for the real test later on. 16357 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16358 if test "x$test_shortpath" = x; then 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16360 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16361 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 16362 fi 16363 16364 # Call helper function which possibly converts this using DOS-style short mode. 16365 # If so, the updated path is stored in $new_path. 16366 16367 input_path="$new_path" 16368 # Check if we need to convert this using DOS-style short mode. If the path 16369 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16370 # take no chances and rewrite it. 16371 # Note: m4 eats our [], so we need to use [ and ] instead. 16372 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16373 if test "x$has_forbidden_chars" != x; then 16374 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16375 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16376 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16377 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16378 # Going to short mode and back again did indeed matter. Since short mode is 16379 # case insensitive, let's make it lowercase to improve readability. 16380 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16381 # Now convert it back to Unix-style (cygpath) 16382 input_path=`$CYGPATH -u "$shortmode_path"` 16383 new_path="$input_path" 16384 fi 16385 fi 16386 16387 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16388 if test "x$test_cygdrive_prefix" = x; then 16389 # As a simple fix, exclude /usr/bin since it's not a real path. 16390 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16391 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16392 # a path prefixed by /cygdrive for fixpath to work. 16393 new_path="$CYGWIN_ROOT_PATH$input_path" 16394 fi 16395 fi 16396 16397 16398 if test "x$path" != "x$new_path"; then 16399 with_devkit="$new_path" 16400 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16401 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16402 fi 16403 16404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16405 16406 path="$with_devkit" 16407 has_colon=`$ECHO $path | $GREP ^.:` 16408 new_path="$path" 16409 if test "x$has_colon" = x; then 16410 # Not in mixed or Windows style, start by that. 16411 new_path=`cmd //c echo $path` 16412 fi 16413 16414 16415 input_path="$new_path" 16416 # Check if we need to convert this using DOS-style short mode. If the path 16417 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16418 # take no chances and rewrite it. 16419 # Note: m4 eats our [], so we need to use [ and ] instead. 16420 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16421 if test "x$has_forbidden_chars" != x; then 16422 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16423 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16424 fi 16425 16426 16427 windows_path="$new_path" 16428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16429 unix_path=`$CYGPATH -u "$windows_path"` 16430 new_path="$unix_path" 16431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16432 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16433 new_path="$unix_path" 16434 fi 16435 16436 if test "x$path" != "x$new_path"; then 16437 with_devkit="$new_path" 16438 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 16439 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 16440 fi 16441 16442 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16443 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16444 16445 else 16446 # We're on a unix platform. Hooray! :) 16447 path="$with_devkit" 16448 has_space=`$ECHO "$path" | $GREP " "` 16449 if test "x$has_space" != x; then 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 16451 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 16452 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16453 fi 16454 16455 # Use eval to expand a potential ~ 16456 eval path="$path" 16457 if test ! -f "$path" && test ! -d "$path"; then 16458 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 16459 fi 16460 16461 if test -d "$path"; then 16462 with_devkit="`cd "$path"; $THEPWDCMD -L`" 16463 else 16464 dir="`$DIRNAME "$path"`" 16465 base="`$BASENAME "$path"`" 16466 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 16467 fi 16468 fi 16469 fi 16470 16471 DEVKIT_ROOT="$with_devkit" 16472 # Check for a meta data info file in the root of the devkit 16473 if test -f "$DEVKIT_ROOT/devkit.info"; then 16474 . $DEVKIT_ROOT/devkit.info 16475 # This potentially sets the following: 16476 # A descriptive name of the devkit 16477 16478 if test "x$DEVKIT_NAME" = x; then 16479 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 16480 fi 16481 16482 # Corresponds to --with-extra-path 16483 16484 if test "x$DEVKIT_EXTRA_PATH" = x; then 16485 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 16486 fi 16487 16488 # Corresponds to --with-toolchain-path 16489 16490 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16491 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 16492 fi 16493 16494 # Corresponds to --with-sysroot 16495 16496 if test "x$DEVKIT_SYSROOT" = x; then 16497 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 16498 fi 16499 16500 16501 # Identifies the Visual Studio version in the devkit 16502 16503 if test "x$DEVKIT_VS_VERSION" = x; then 16504 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 16505 fi 16506 16507 # The Visual Studio include environment variable 16508 16509 if test "x$DEVKIT_VS_INCLUDE" = x; then 16510 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 16511 fi 16512 16513 # The Visual Studio lib environment variable 16514 16515 if test "x$DEVKIT_VS_LIB" = x; then 16516 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 16517 fi 16518 16519 # Corresponds to --with-msvcr-dll 16520 16521 if test "x$DEVKIT_MSVCR_DLL" = x; then 16522 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 16523 fi 16524 16525 # Corresponds to --with-msvcp-dll 16526 16527 if test "x$DEVKIT_MSVCP_DLL" = x; then 16528 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 16529 fi 16530 16531 fi 16532 16533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 16534 $as_echo_n "checking for devkit... " >&6; } 16535 if test "x$DEVKIT_NAME" != x; then 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 16537 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 16538 else 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 16540 $as_echo "$DEVKIT_ROOT" >&6; } 16541 fi 16542 16543 16544 if test "x$DEVKIT_EXTRA_PATH" != x; then 16545 if test "x$EXTRA_PATH" = x; then 16546 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 16547 else 16548 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 16549 fi 16550 fi 16551 16552 16553 # Fallback default of just /bin if DEVKIT_PATH is not defined 16554 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 16555 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 16556 fi 16557 16558 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 16559 if test "x$TOOLCHAIN_PATH" = x; then 16560 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 16561 else 16562 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 16563 fi 16564 fi 16565 16566 16567 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 16568 # places for backwards compatiblity. 16569 if test "x$DEVKIT_SYSROOT" != x; then 16570 SYSROOT="$DEVKIT_SYSROOT" 16571 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 16572 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 16573 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 16574 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 16575 fi 16576 16577 16578 fi 16579 16580 16581 # You can force the sysroot if the sysroot encoded into the compiler tools 16582 # is not correct. 16583 16584 # Check whether --with-sys-root was given. 16585 if test "${with_sys_root+set}" = set; then : 16586 withval=$with_sys_root; SYSROOT=$with_sys_root 16587 16588 fi 16589 16590 16591 16592 # Check whether --with-sysroot was given. 16593 if test "${with_sysroot+set}" = set; then : 16594 withval=$with_sysroot; SYSROOT=$with_sysroot 16595 16596 fi 16597 16598 16599 16600 # Check whether --with-tools-dir was given. 16601 if test "${with_tools_dir+set}" = set; then : 16602 withval=$with_tools_dir; 16603 if test "x$with_tools_dir" != x; then 16604 if test "x$TOOLCHAIN_PATH" = x; then 16605 TOOLCHAIN_PATH="$with_tools_dir" 16606 else 16607 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 16608 fi 16609 fi 16610 16611 16612 fi 16613 16614 16615 16616 # Check whether --with-toolchain-path was given. 16617 if test "${with_toolchain_path+set}" = set; then : 16618 withval=$with_toolchain_path; 16619 if test "x$with_toolchain_path" != x; then 16620 if test "x$TOOLCHAIN_PATH" = x; then 16621 TOOLCHAIN_PATH="$with_toolchain_path" 16622 else 16623 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 16624 fi 16625 fi 16626 16627 16628 fi 16629 16630 16631 16632 # Check whether --with-extra-path was given. 16633 if test "${with_extra_path+set}" = set; then : 16634 withval=$with_extra_path; 16635 if test "x$with_extra_path" != x; then 16636 if test "x$EXTRA_PATH" = x; then 16637 EXTRA_PATH="$with_extra_path" 16638 else 16639 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 16640 fi 16641 fi 16642 16643 16644 fi 16645 16646 16647 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 16648 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 16649 # If not, detect if Xcode is installed by running xcodebuild -version 16650 # if no Xcode installed, xcodebuild exits with 1 16651 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 16652 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 16653 # We need to use xcodebuild in the toolchain dir provided by the user, this will 16654 # fall back on the stub binary in /usr/bin/xcodebuild 16655 # Extract the first word of "xcodebuild", so it can be a program name with args. 16656 set dummy xcodebuild; ac_word=$2 16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16658 $as_echo_n "checking for $ac_word... " >&6; } 16659 if ${ac_cv_path_XCODEBUILD+:} false; then : 16660 $as_echo_n "(cached) " >&6 16661 else 16662 case $XCODEBUILD in 16663 [\\/]* | ?:[\\/]*) 16664 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 16665 ;; 16666 *) 16667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16668 for as_dir in $TOOLCHAIN_PATH 16669 do 16670 IFS=$as_save_IFS 16671 test -z "$as_dir" && as_dir=. 16672 for ac_exec_ext in '' $ac_executable_extensions; do 16673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16674 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 16675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16676 break 2 16677 fi 16678 done 16679 done 16680 IFS=$as_save_IFS 16681 16682 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 16683 ;; 16684 esac 16685 fi 16686 XCODEBUILD=$ac_cv_path_XCODEBUILD 16687 if test -n "$XCODEBUILD"; then 16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 16689 $as_echo "$XCODEBUILD" >&6; } 16690 else 16691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16692 $as_echo "no" >&6; } 16693 fi 16694 16695 16696 else 16697 # this should result in SYSROOT being empty, unless --with-sysroot is provided 16698 # when only the command line tools are installed there are no SDKs, so headers 16699 # are copied into the system frameworks 16700 XCODEBUILD= 16701 16702 fi 16703 16704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 16705 $as_echo_n "checking for sdk name... " >&6; } 16706 16707 # Check whether --with-sdk-name was given. 16708 if test "${with_sdk_name+set}" = set; then : 16709 withval=$with_sdk_name; SDKNAME=$with_sdk_name 16710 16711 fi 16712 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 16714 $as_echo "$SDKNAME" >&6; } 16715 16716 # if toolchain path is specified then don't rely on system headers, they may not compile 16717 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 16718 test -z "$TOOLCHAIN_PATH" && \ 16719 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 16720 16721 if test -z "$SYSROOT"; then 16722 if test -n "$XCODEBUILD"; then 16723 # if we don't have system headers, use default SDK name (last resort) 16724 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 16725 SDKNAME=${SDKNAME:-macosx} 16726 fi 16727 16728 if test -n "$SDKNAME"; then 16729 # Call xcodebuild to determine SYSROOT 16730 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 16731 fi 16732 else 16733 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 16734 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 16735 fi 16736 fi 16737 else 16738 # warn user if --with-sdk-name was also set 16739 if test -n "$with_sdk_name"; then 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 16741 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 16742 fi 16743 fi 16744 16745 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 16746 # If no system framework headers, then SYSROOT must be set, or we won't build 16747 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 16748 fi 16749 16750 # Perform a basic sanity test 16751 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 16752 if test -z "$SYSROOT"; then 16753 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 16754 else 16755 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 16756 fi 16757 fi 16758 16759 # set SDKROOT too, Xcode tools will pick it up 16760 SDKROOT=$SYSROOT 16761 16762 fi 16763 16764 # Prepend the extra path to the global path 16765 16766 if test "x$EXTRA_PATH" != x; then 16767 if test "x$PATH" = x; then 16768 PATH="$EXTRA_PATH" 16769 else 16770 PATH="$EXTRA_PATH:$PATH" 16771 fi 16772 fi 16773 16774 16775 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 16776 # Add extra search paths on solaris for utilities like ar, as, dtrace etc... 16777 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin:/usr/sbin" 16778 fi 16779 16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 16781 $as_echo_n "checking for sysroot... " >&6; } 16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 16783 $as_echo "$SYSROOT" >&6; } 16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 16785 $as_echo_n "checking for toolchain path... " >&6; } 16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 16787 $as_echo "$TOOLCHAIN_PATH" >&6; } 16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 16789 $as_echo_n "checking for extra path... " >&6; } 16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 16791 $as_echo "$EXTRA_PATH" >&6; } 16792 16793 16794 # To properly create a configuration name, we need to have the OpenJDK target 16795 # and options (variants and debug level) parsed. 16796 16797 16798 16799 # Check whether --with-conf-name was given. 16800 if test "${with_conf_name+set}" = set; then : 16801 withval=$with_conf_name; CONF_NAME=${with_conf_name} 16802 fi 16803 16804 16805 # Test from where we are running configure, in or outside of src root. 16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 16807 $as_echo_n "checking where to store configuration... " >&6; } 16808 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 16809 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 16810 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 16811 # We are running configure from the src root. 16812 # Create a default ./build/target-variant-debuglevel output root. 16813 if test "x${CONF_NAME}" = x; then 16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 16815 $as_echo "in default location" >&6; } 16816 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 16817 else 16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 16819 $as_echo "in build directory with custom name" >&6; } 16820 fi 16821 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 16822 $MKDIR -p "$OUTPUT_ROOT" 16823 if test ! -d "$OUTPUT_ROOT"; then 16824 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 16825 fi 16826 else 16827 # We are running configure from outside of the src dir. 16828 # Then use the current directory as output dir! 16829 # If configuration is situated in normal build directory, just use the build 16830 # directory name as configuration name, otherwise use the complete path. 16831 if test "x${CONF_NAME}" = x; then 16832 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 16833 fi 16834 OUTPUT_ROOT="$CURDIR" 16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 16836 $as_echo "in current directory" >&6; } 16837 16838 # WARNING: This might be a bad thing to do. You need to be sure you want to 16839 # have a configuration in this directory. Do some sanity checks! 16840 16841 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 16842 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 16843 # other files 16844 files_present=`$LS $OUTPUT_ROOT` 16845 # Configure has already touched config.log and confdefs.h in the current dir when this check 16846 # is performed. 16847 filtered_files=`$ECHO "$files_present" \ 16848 | $SED -e 's/config.log//g' \ 16849 -e 's/configure.log//g' \ 16850 -e 's/confdefs.h//g' \ 16851 -e 's/ //g' \ 16852 | $TR -d '\n'` 16853 if test "x$filtered_files" != x; then 16854 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 16855 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 16856 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 16857 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 16858 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 16859 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 16860 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 16861 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 16862 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 16863 $as_echo "$as_me: seriously mess up just about everything." >&6;} 16864 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 16865 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 16866 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 16867 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 16868 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 16869 fi 16870 fi 16871 fi 16872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 16873 $as_echo_n "checking what configuration name to use... " >&6; } 16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 16875 $as_echo "$CONF_NAME" >&6; } 16876 16877 16878 # Only process if variable expands to non-empty 16879 16880 if test "x$OUTPUT_ROOT" != x; then 16881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16882 16883 # Input might be given as Windows format, start by converting to 16884 # unix format. 16885 path="$OUTPUT_ROOT" 16886 new_path=`$CYGPATH -u "$path"` 16887 16888 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16889 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16890 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16891 # "foo.exe" is OK but "foo" is an error. 16892 # 16893 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16894 # It is also a way to make sure we got the proper file name for the real test later on. 16895 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16896 if test "x$test_shortpath" = x; then 16897 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 16898 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 16899 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 16900 fi 16901 16902 # Call helper function which possibly converts this using DOS-style short mode. 16903 # If so, the updated path is stored in $new_path. 16904 16905 input_path="$new_path" 16906 # Check if we need to convert this using DOS-style short mode. If the path 16907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16908 # take no chances and rewrite it. 16909 # Note: m4 eats our [], so we need to use [ and ] instead. 16910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16911 if test "x$has_forbidden_chars" != x; then 16912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16913 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16914 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16915 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16916 # Going to short mode and back again did indeed matter. Since short mode is 16917 # case insensitive, let's make it lowercase to improve readability. 16918 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16919 # Now convert it back to Unix-style (cygpath) 16920 input_path=`$CYGPATH -u "$shortmode_path"` 16921 new_path="$input_path" 16922 fi 16923 fi 16924 16925 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16926 if test "x$test_cygdrive_prefix" = x; then 16927 # As a simple fix, exclude /usr/bin since it's not a real path. 16928 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16929 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16930 # a path prefixed by /cygdrive for fixpath to work. 16931 new_path="$CYGWIN_ROOT_PATH$input_path" 16932 fi 16933 fi 16934 16935 16936 if test "x$path" != "x$new_path"; then 16937 OUTPUT_ROOT="$new_path" 16938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 16939 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 16940 fi 16941 16942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16943 16944 path="$OUTPUT_ROOT" 16945 has_colon=`$ECHO $path | $GREP ^.:` 16946 new_path="$path" 16947 if test "x$has_colon" = x; then 16948 # Not in mixed or Windows style, start by that. 16949 new_path=`cmd //c echo $path` 16950 fi 16951 16952 16953 input_path="$new_path" 16954 # Check if we need to convert this using DOS-style short mode. If the path 16955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16956 # take no chances and rewrite it. 16957 # Note: m4 eats our [], so we need to use [ and ] instead. 16958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16959 if test "x$has_forbidden_chars" != x; then 16960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16961 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16962 fi 16963 16964 16965 windows_path="$new_path" 16966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16967 unix_path=`$CYGPATH -u "$windows_path"` 16968 new_path="$unix_path" 16969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16970 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16971 new_path="$unix_path" 16972 fi 16973 16974 if test "x$path" != "x$new_path"; then 16975 OUTPUT_ROOT="$new_path" 16976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 16977 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 16978 fi 16979 16980 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16981 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16982 16983 else 16984 # We're on a unix platform. Hooray! :) 16985 path="$OUTPUT_ROOT" 16986 has_space=`$ECHO "$path" | $GREP " "` 16987 if test "x$has_space" != x; then 16988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 16989 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 16990 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16991 fi 16992 16993 # Use eval to expand a potential ~ 16994 eval path="$path" 16995 if test ! -f "$path" && test ! -d "$path"; then 16996 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 16997 fi 16998 16999 if test -d "$path"; then 17000 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 17001 else 17002 dir="`$DIRNAME "$path"`" 17003 base="`$BASENAME "$path"`" 17004 OUTPUT_ROOT="`cd "$dir"; $THEPWDCMD -L`/$base" 17005 fi 17006 fi 17007 fi 17008 17009 17010 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 17011 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17012 17013 SPEC=$OUTPUT_ROOT/spec.gmk 17014 17015 CONF_NAME=$CONF_NAME 17016 17017 OUTPUT_ROOT=$OUTPUT_ROOT 17018 17019 17020 17021 # The spec.gmk file contains all variables for the make system. 17022 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17023 17024 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 17025 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 17026 17027 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17028 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17029 17030 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17031 ac_config_files="$ac_config_files $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17032 17033 # The compare.sh is used to compare the build output to other builds. 17034 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17035 17036 # The generated Makefile knows where the spec.gmk is and where the source is. 17037 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 17038 # which will look for generated configurations 17039 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 17040 17041 17042 17043 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17044 17045 for ac_prog in apt-get yum port pkgutil pkgadd 17046 do 17047 # Extract the first word of "$ac_prog", so it can be a program name with args. 17048 set dummy $ac_prog; ac_word=$2 17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17050 $as_echo_n "checking for $ac_word... " >&6; } 17051 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17052 $as_echo_n "(cached) " >&6 17053 else 17054 if test -n "$PKGHANDLER"; then 17055 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17056 else 17057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17058 for as_dir in $PATH 17059 do 17060 IFS=$as_save_IFS 17061 test -z "$as_dir" && as_dir=. 17062 for ac_exec_ext in '' $ac_executable_extensions; do 17063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17064 ac_cv_prog_PKGHANDLER="$ac_prog" 17065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17066 break 2 17067 fi 17068 done 17069 done 17070 IFS=$as_save_IFS 17071 17072 fi 17073 fi 17074 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17075 if test -n "$PKGHANDLER"; then 17076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17077 $as_echo "$PKGHANDLER" >&6; } 17078 else 17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17080 $as_echo "no" >&6; } 17081 fi 17082 17083 17084 test -n "$PKGHANDLER" && break 17085 done 17086 17087 17088 17089 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17090 17091 17092 17093 # Publish this variable in the help. 17094 17095 17096 if [ -z "${MAKE+x}" ]; then 17097 # The variable is not set by user, try to locate tool using the code snippet 17098 17099 # Try our hardest to locate a correct version of GNU make 17100 for ac_prog in gmake 17101 do 17102 # Extract the first word of "$ac_prog", so it can be a program name with args. 17103 set dummy $ac_prog; ac_word=$2 17104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17105 $as_echo_n "checking for $ac_word... " >&6; } 17106 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17107 $as_echo_n "(cached) " >&6 17108 else 17109 case $CHECK_GMAKE in 17110 [\\/]* | ?:[\\/]*) 17111 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17112 ;; 17113 *) 17114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17115 for as_dir in $PATH 17116 do 17117 IFS=$as_save_IFS 17118 test -z "$as_dir" && as_dir=. 17119 for ac_exec_ext in '' $ac_executable_extensions; do 17120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17121 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17123 break 2 17124 fi 17125 done 17126 done 17127 IFS=$as_save_IFS 17128 17129 ;; 17130 esac 17131 fi 17132 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17133 if test -n "$CHECK_GMAKE"; then 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17135 $as_echo "$CHECK_GMAKE" >&6; } 17136 else 17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17138 $as_echo "no" >&6; } 17139 fi 17140 17141 17142 test -n "$CHECK_GMAKE" && break 17143 done 17144 17145 17146 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17147 DESCRIPTION="gmake in PATH" 17148 17149 # On Cygwin, we require a newer version of make than on other platforms 17150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17151 MAKE_VERSION_EXPR="-e 4\." 17152 MAKE_REQUIRED_VERSION="4.0" 17153 else 17154 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17155 MAKE_REQUIRED_VERSION="3.81" 17156 fi 17157 17158 if test "x$MAKE_CANDIDATE" != x; then 17159 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17160 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17161 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17162 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17163 if test "x$IS_GNU_MAKE" = x; then 17164 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17165 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17166 else 17167 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17168 if test "x$IS_MODERN_MAKE" = x; then 17169 { $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 17170 $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;} 17171 else 17172 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17174 MAKE_EXPECTED_ENV='cygwin' 17175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17176 MAKE_EXPECTED_ENV='msys' 17177 else 17178 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17179 fi 17180 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17181 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17182 else 17183 # Not relevant for non-Windows 17184 IS_MAKE_CORRECT_ENV=true 17185 fi 17186 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17187 { $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 17188 $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;} 17189 else 17190 FOUND_MAKE=$MAKE_CANDIDATE 17191 17192 # Only process if variable expands to non-empty 17193 17194 if test "x$FOUND_MAKE" != x; then 17195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17196 17197 # First separate the path from the arguments. This will split at the first 17198 # space. 17199 complete="$FOUND_MAKE" 17200 path="${complete%% *}" 17201 tmp="$complete EOL" 17202 arguments="${tmp#* }" 17203 17204 # Input might be given as Windows format, start by converting to 17205 # unix format. 17206 new_path=`$CYGPATH -u "$path"` 17207 17208 # Now try to locate executable using which 17209 new_path=`$WHICH "$new_path" 2> /dev/null` 17210 # bat and cmd files are not always considered executable in cygwin causing which 17211 # to not find them 17212 if test "x$new_path" = x \ 17213 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17214 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17215 new_path=`$CYGPATH -u "$path"` 17216 fi 17217 if test "x$new_path" = x; then 17218 # Oops. Which didn't find the executable. 17219 # The splitting of arguments from the executable at a space might have been incorrect, 17220 # since paths with space are more likely in Windows. Give it another try with the whole 17221 # argument. 17222 path="$complete" 17223 arguments="EOL" 17224 new_path=`$CYGPATH -u "$path"` 17225 new_path=`$WHICH "$new_path" 2> /dev/null` 17226 # bat and cmd files are not always considered executable in cygwin causing which 17227 # to not find them 17228 if test "x$new_path" = x \ 17229 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17230 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17231 new_path=`$CYGPATH -u "$path"` 17232 fi 17233 if test "x$new_path" = x; then 17234 # It's still not found. Now this is an unrecoverable error. 17235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17236 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17237 has_space=`$ECHO "$complete" | $GREP " "` 17238 if test "x$has_space" != x; then 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17240 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17241 fi 17242 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17243 fi 17244 fi 17245 17246 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17247 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17248 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17249 # "foo.exe" is OK but "foo" is an error. 17250 # 17251 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17252 # It is also a way to make sure we got the proper file name for the real test later on. 17253 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17254 if test "x$test_shortpath" = x; then 17255 # Short path failed, file does not exist as specified. 17256 # Try adding .exe or .cmd 17257 if test -f "${new_path}.exe"; then 17258 input_to_shortpath="${new_path}.exe" 17259 elif test -f "${new_path}.cmd"; then 17260 input_to_shortpath="${new_path}.cmd" 17261 else 17262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17263 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17264 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17265 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17266 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17267 fi 17268 else 17269 input_to_shortpath="$new_path" 17270 fi 17271 17272 # Call helper function which possibly converts this using DOS-style short mode. 17273 # If so, the updated path is stored in $new_path. 17274 new_path="$input_to_shortpath" 17275 17276 input_path="$input_to_shortpath" 17277 # Check if we need to convert this using DOS-style short mode. If the path 17278 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17279 # take no chances and rewrite it. 17280 # Note: m4 eats our [], so we need to use [ and ] instead. 17281 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17282 if test "x$has_forbidden_chars" != x; then 17283 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17284 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17285 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17286 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17287 # Going to short mode and back again did indeed matter. Since short mode is 17288 # case insensitive, let's make it lowercase to improve readability. 17289 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17290 # Now convert it back to Unix-style (cygpath) 17291 input_path=`$CYGPATH -u "$shortmode_path"` 17292 new_path="$input_path" 17293 fi 17294 fi 17295 17296 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17297 if test "x$test_cygdrive_prefix" = x; then 17298 # As a simple fix, exclude /usr/bin since it's not a real path. 17299 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17300 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17301 # a path prefixed by /cygdrive for fixpath to work. 17302 new_path="$CYGWIN_ROOT_PATH$input_path" 17303 fi 17304 fi 17305 17306 # remove trailing .exe if any 17307 new_path="${new_path/%.exe/}" 17308 17309 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17310 17311 # First separate the path from the arguments. This will split at the first 17312 # space. 17313 complete="$FOUND_MAKE" 17314 path="${complete%% *}" 17315 tmp="$complete EOL" 17316 arguments="${tmp#* }" 17317 17318 # Input might be given as Windows format, start by converting to 17319 # unix format. 17320 new_path="$path" 17321 17322 windows_path="$new_path" 17323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17324 unix_path=`$CYGPATH -u "$windows_path"` 17325 new_path="$unix_path" 17326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17328 new_path="$unix_path" 17329 fi 17330 17331 17332 # Now try to locate executable using which 17333 new_path=`$WHICH "$new_path" 2> /dev/null` 17334 17335 if test "x$new_path" = x; then 17336 # Oops. Which didn't find the executable. 17337 # The splitting of arguments from the executable at a space might have been incorrect, 17338 # since paths with space are more likely in Windows. Give it another try with the whole 17339 # argument. 17340 path="$complete" 17341 arguments="EOL" 17342 new_path="$path" 17343 17344 windows_path="$new_path" 17345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17346 unix_path=`$CYGPATH -u "$windows_path"` 17347 new_path="$unix_path" 17348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17350 new_path="$unix_path" 17351 fi 17352 17353 17354 new_path=`$WHICH "$new_path" 2> /dev/null` 17355 # bat and cmd files are not always considered executable in MSYS causing which 17356 # to not find them 17357 if test "x$new_path" = x \ 17358 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17359 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17360 new_path="$path" 17361 17362 windows_path="$new_path" 17363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17364 unix_path=`$CYGPATH -u "$windows_path"` 17365 new_path="$unix_path" 17366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17368 new_path="$unix_path" 17369 fi 17370 17371 fi 17372 17373 if test "x$new_path" = x; then 17374 # It's still not found. Now this is an unrecoverable error. 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17376 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17377 has_space=`$ECHO "$complete" | $GREP " "` 17378 if test "x$has_space" != x; then 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17380 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17381 fi 17382 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17383 fi 17384 fi 17385 17386 # Now new_path has a complete unix path to the binary 17387 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17388 # Keep paths in /bin as-is, but remove trailing .exe if any 17389 new_path="${new_path/%.exe/}" 17390 # Do not save /bin paths to all_fixpath_prefixes! 17391 else 17392 # Not in mixed or Windows style, start by that. 17393 new_path=`cmd //c echo $new_path` 17394 17395 input_path="$new_path" 17396 # Check if we need to convert this using DOS-style short mode. If the path 17397 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17398 # take no chances and rewrite it. 17399 # Note: m4 eats our [], so we need to use [ and ] instead. 17400 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17401 if test "x$has_forbidden_chars" != x; then 17402 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17403 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17404 fi 17405 17406 # Output is in $new_path 17407 17408 windows_path="$new_path" 17409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17410 unix_path=`$CYGPATH -u "$windows_path"` 17411 new_path="$unix_path" 17412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17414 new_path="$unix_path" 17415 fi 17416 17417 # remove trailing .exe if any 17418 new_path="${new_path/%.exe/}" 17419 17420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17422 fi 17423 17424 else 17425 # We're on a unix platform. Hooray! :) 17426 # First separate the path from the arguments. This will split at the first 17427 # space. 17428 complete="$FOUND_MAKE" 17429 path="${complete%% *}" 17430 tmp="$complete EOL" 17431 arguments="${tmp#* }" 17432 17433 # Cannot rely on the command "which" here since it doesn't always work. 17434 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17435 if test -z "$is_absolute_path"; then 17436 # Path to executable is not absolute. Find it. 17437 IFS_save="$IFS" 17438 IFS=: 17439 for p in $PATH; do 17440 if test -f "$p/$path" && test -x "$p/$path"; then 17441 new_path="$p/$path" 17442 break 17443 fi 17444 done 17445 IFS="$IFS_save" 17446 else 17447 # This is an absolute path, we can use it without further modifications. 17448 new_path="$path" 17449 fi 17450 17451 if test "x$new_path" = x; then 17452 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17453 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17454 has_space=`$ECHO "$complete" | $GREP " "` 17455 if test "x$has_space" != x; then 17456 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17457 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17458 fi 17459 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17460 fi 17461 fi 17462 17463 # Now join together the path and the arguments once again 17464 if test "x$arguments" != xEOL; then 17465 new_complete="$new_path ${arguments% *}" 17466 else 17467 new_complete="$new_path" 17468 fi 17469 17470 if test "x$complete" != "x$new_complete"; then 17471 FOUND_MAKE="$new_complete" 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17473 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17474 fi 17475 fi 17476 17477 fi 17478 fi 17479 fi 17480 fi 17481 17482 17483 if test "x$FOUND_MAKE" = x; then 17484 for ac_prog in make 17485 do 17486 # Extract the first word of "$ac_prog", so it can be a program name with args. 17487 set dummy $ac_prog; ac_word=$2 17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17489 $as_echo_n "checking for $ac_word... " >&6; } 17490 if ${ac_cv_path_CHECK_MAKE+:} false; then : 17491 $as_echo_n "(cached) " >&6 17492 else 17493 case $CHECK_MAKE in 17494 [\\/]* | ?:[\\/]*) 17495 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 17496 ;; 17497 *) 17498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17499 for as_dir in $PATH 17500 do 17501 IFS=$as_save_IFS 17502 test -z "$as_dir" && as_dir=. 17503 for ac_exec_ext in '' $ac_executable_extensions; do 17504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17505 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 17506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17507 break 2 17508 fi 17509 done 17510 done 17511 IFS=$as_save_IFS 17512 17513 ;; 17514 esac 17515 fi 17516 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 17517 if test -n "$CHECK_MAKE"; then 17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 17519 $as_echo "$CHECK_MAKE" >&6; } 17520 else 17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17522 $as_echo "no" >&6; } 17523 fi 17524 17525 17526 test -n "$CHECK_MAKE" && break 17527 done 17528 17529 17530 MAKE_CANDIDATE=""$CHECK_MAKE"" 17531 DESCRIPTION="make in PATH" 17532 17533 # On Cygwin, we require a newer version of make than on other platforms 17534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17535 MAKE_VERSION_EXPR="-e 4\." 17536 MAKE_REQUIRED_VERSION="4.0" 17537 else 17538 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17539 MAKE_REQUIRED_VERSION="3.81" 17540 fi 17541 17542 if test "x$MAKE_CANDIDATE" != x; then 17543 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17544 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17545 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17546 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17547 if test "x$IS_GNU_MAKE" = x; then 17548 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17549 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17550 else 17551 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17552 if test "x$IS_MODERN_MAKE" = x; then 17553 { $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 17554 $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;} 17555 else 17556 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17558 MAKE_EXPECTED_ENV='cygwin' 17559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17560 MAKE_EXPECTED_ENV='msys' 17561 else 17562 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17563 fi 17564 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17565 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17566 else 17567 # Not relevant for non-Windows 17568 IS_MAKE_CORRECT_ENV=true 17569 fi 17570 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17571 { $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 17572 $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;} 17573 else 17574 FOUND_MAKE=$MAKE_CANDIDATE 17575 17576 # Only process if variable expands to non-empty 17577 17578 if test "x$FOUND_MAKE" != x; then 17579 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17580 17581 # First separate the path from the arguments. This will split at the first 17582 # space. 17583 complete="$FOUND_MAKE" 17584 path="${complete%% *}" 17585 tmp="$complete EOL" 17586 arguments="${tmp#* }" 17587 17588 # Input might be given as Windows format, start by converting to 17589 # unix format. 17590 new_path=`$CYGPATH -u "$path"` 17591 17592 # Now try to locate executable using which 17593 new_path=`$WHICH "$new_path" 2> /dev/null` 17594 # bat and cmd files are not always considered executable in cygwin causing which 17595 # to not find them 17596 if test "x$new_path" = x \ 17597 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17598 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17599 new_path=`$CYGPATH -u "$path"` 17600 fi 17601 if test "x$new_path" = x; then 17602 # Oops. Which didn't find the executable. 17603 # The splitting of arguments from the executable at a space might have been incorrect, 17604 # since paths with space are more likely in Windows. Give it another try with the whole 17605 # argument. 17606 path="$complete" 17607 arguments="EOL" 17608 new_path=`$CYGPATH -u "$path"` 17609 new_path=`$WHICH "$new_path" 2> /dev/null` 17610 # bat and cmd files are not always considered executable in cygwin causing which 17611 # to not find them 17612 if test "x$new_path" = x \ 17613 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17614 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17615 new_path=`$CYGPATH -u "$path"` 17616 fi 17617 if test "x$new_path" = x; then 17618 # It's still not found. Now this is an unrecoverable error. 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17620 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17621 has_space=`$ECHO "$complete" | $GREP " "` 17622 if test "x$has_space" != x; then 17623 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17624 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17625 fi 17626 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17627 fi 17628 fi 17629 17630 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17631 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17632 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17633 # "foo.exe" is OK but "foo" is an error. 17634 # 17635 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17636 # It is also a way to make sure we got the proper file name for the real test later on. 17637 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17638 if test "x$test_shortpath" = x; then 17639 # Short path failed, file does not exist as specified. 17640 # Try adding .exe or .cmd 17641 if test -f "${new_path}.exe"; then 17642 input_to_shortpath="${new_path}.exe" 17643 elif test -f "${new_path}.cmd"; then 17644 input_to_shortpath="${new_path}.cmd" 17645 else 17646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17647 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17648 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17649 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17650 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17651 fi 17652 else 17653 input_to_shortpath="$new_path" 17654 fi 17655 17656 # Call helper function which possibly converts this using DOS-style short mode. 17657 # If so, the updated path is stored in $new_path. 17658 new_path="$input_to_shortpath" 17659 17660 input_path="$input_to_shortpath" 17661 # Check if we need to convert this using DOS-style short mode. If the path 17662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17663 # take no chances and rewrite it. 17664 # Note: m4 eats our [], so we need to use [ and ] instead. 17665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17666 if test "x$has_forbidden_chars" != x; then 17667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17668 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17669 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17670 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17671 # Going to short mode and back again did indeed matter. Since short mode is 17672 # case insensitive, let's make it lowercase to improve readability. 17673 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17674 # Now convert it back to Unix-style (cygpath) 17675 input_path=`$CYGPATH -u "$shortmode_path"` 17676 new_path="$input_path" 17677 fi 17678 fi 17679 17680 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17681 if test "x$test_cygdrive_prefix" = x; then 17682 # As a simple fix, exclude /usr/bin since it's not a real path. 17683 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17684 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17685 # a path prefixed by /cygdrive for fixpath to work. 17686 new_path="$CYGWIN_ROOT_PATH$input_path" 17687 fi 17688 fi 17689 17690 # remove trailing .exe if any 17691 new_path="${new_path/%.exe/}" 17692 17693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17694 17695 # First separate the path from the arguments. This will split at the first 17696 # space. 17697 complete="$FOUND_MAKE" 17698 path="${complete%% *}" 17699 tmp="$complete EOL" 17700 arguments="${tmp#* }" 17701 17702 # Input might be given as Windows format, start by converting to 17703 # unix format. 17704 new_path="$path" 17705 17706 windows_path="$new_path" 17707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17708 unix_path=`$CYGPATH -u "$windows_path"` 17709 new_path="$unix_path" 17710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17712 new_path="$unix_path" 17713 fi 17714 17715 17716 # Now try to locate executable using which 17717 new_path=`$WHICH "$new_path" 2> /dev/null` 17718 17719 if test "x$new_path" = x; then 17720 # Oops. Which didn't find the executable. 17721 # The splitting of arguments from the executable at a space might have been incorrect, 17722 # since paths with space are more likely in Windows. Give it another try with the whole 17723 # argument. 17724 path="$complete" 17725 arguments="EOL" 17726 new_path="$path" 17727 17728 windows_path="$new_path" 17729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17730 unix_path=`$CYGPATH -u "$windows_path"` 17731 new_path="$unix_path" 17732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17733 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17734 new_path="$unix_path" 17735 fi 17736 17737 17738 new_path=`$WHICH "$new_path" 2> /dev/null` 17739 # bat and cmd files are not always considered executable in MSYS causing which 17740 # to not find them 17741 if test "x$new_path" = x \ 17742 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17743 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17744 new_path="$path" 17745 17746 windows_path="$new_path" 17747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17748 unix_path=`$CYGPATH -u "$windows_path"` 17749 new_path="$unix_path" 17750 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17751 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17752 new_path="$unix_path" 17753 fi 17754 17755 fi 17756 17757 if test "x$new_path" = x; then 17758 # It's still not found. Now this is an unrecoverable error. 17759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17760 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17761 has_space=`$ECHO "$complete" | $GREP " "` 17762 if test "x$has_space" != x; then 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17764 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17765 fi 17766 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17767 fi 17768 fi 17769 17770 # Now new_path has a complete unix path to the binary 17771 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17772 # Keep paths in /bin as-is, but remove trailing .exe if any 17773 new_path="${new_path/%.exe/}" 17774 # Do not save /bin paths to all_fixpath_prefixes! 17775 else 17776 # Not in mixed or Windows style, start by that. 17777 new_path=`cmd //c echo $new_path` 17778 17779 input_path="$new_path" 17780 # Check if we need to convert this using DOS-style short mode. If the path 17781 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17782 # take no chances and rewrite it. 17783 # Note: m4 eats our [], so we need to use [ and ] instead. 17784 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17785 if test "x$has_forbidden_chars" != x; then 17786 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17787 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17788 fi 17789 17790 # Output is in $new_path 17791 17792 windows_path="$new_path" 17793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17794 unix_path=`$CYGPATH -u "$windows_path"` 17795 new_path="$unix_path" 17796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17797 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17798 new_path="$unix_path" 17799 fi 17800 17801 # remove trailing .exe if any 17802 new_path="${new_path/%.exe/}" 17803 17804 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17805 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17806 fi 17807 17808 else 17809 # We're on a unix platform. Hooray! :) 17810 # First separate the path from the arguments. This will split at the first 17811 # space. 17812 complete="$FOUND_MAKE" 17813 path="${complete%% *}" 17814 tmp="$complete EOL" 17815 arguments="${tmp#* }" 17816 17817 # Cannot rely on the command "which" here since it doesn't always work. 17818 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17819 if test -z "$is_absolute_path"; then 17820 # Path to executable is not absolute. Find it. 17821 IFS_save="$IFS" 17822 IFS=: 17823 for p in $PATH; do 17824 if test -f "$p/$path" && test -x "$p/$path"; then 17825 new_path="$p/$path" 17826 break 17827 fi 17828 done 17829 IFS="$IFS_save" 17830 else 17831 # This is an absolute path, we can use it without further modifications. 17832 new_path="$path" 17833 fi 17834 17835 if test "x$new_path" = x; then 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17837 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17838 has_space=`$ECHO "$complete" | $GREP " "` 17839 if test "x$has_space" != x; then 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17841 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17842 fi 17843 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17844 fi 17845 fi 17846 17847 # Now join together the path and the arguments once again 17848 if test "x$arguments" != xEOL; then 17849 new_complete="$new_path ${arguments% *}" 17850 else 17851 new_complete="$new_path" 17852 fi 17853 17854 if test "x$complete" != "x$new_complete"; then 17855 FOUND_MAKE="$new_complete" 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17857 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17858 fi 17859 fi 17860 17861 fi 17862 fi 17863 fi 17864 fi 17865 17866 fi 17867 17868 if test "x$FOUND_MAKE" = x; then 17869 if test "x$TOOLCHAIN_PATH" != x; then 17870 # We have a toolchain path, check that as well before giving up. 17871 OLD_PATH=$PATH 17872 PATH=$TOOLCHAIN_PATH:$PATH 17873 for ac_prog in gmake 17874 do 17875 # Extract the first word of "$ac_prog", so it can be a program name with args. 17876 set dummy $ac_prog; ac_word=$2 17877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17878 $as_echo_n "checking for $ac_word... " >&6; } 17879 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 17880 $as_echo_n "(cached) " >&6 17881 else 17882 case $CHECK_TOOLSDIR_GMAKE in 17883 [\\/]* | ?:[\\/]*) 17884 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 17885 ;; 17886 *) 17887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17888 for as_dir in $PATH 17889 do 17890 IFS=$as_save_IFS 17891 test -z "$as_dir" && as_dir=. 17892 for ac_exec_ext in '' $ac_executable_extensions; do 17893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17894 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17896 break 2 17897 fi 17898 done 17899 done 17900 IFS=$as_save_IFS 17901 17902 ;; 17903 esac 17904 fi 17905 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 17906 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 17908 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 17909 else 17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17911 $as_echo "no" >&6; } 17912 fi 17913 17914 17915 test -n "$CHECK_TOOLSDIR_GMAKE" && break 17916 done 17917 17918 17919 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 17920 DESCRIPTION="gmake in tools-dir" 17921 17922 # On Cygwin, we require a newer version of make than on other platforms 17923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17924 MAKE_VERSION_EXPR="-e 4\." 17925 MAKE_REQUIRED_VERSION="4.0" 17926 else 17927 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17928 MAKE_REQUIRED_VERSION="3.81" 17929 fi 17930 17931 if test "x$MAKE_CANDIDATE" != x; then 17932 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17933 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17934 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17935 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17936 if test "x$IS_GNU_MAKE" = x; then 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17938 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17939 else 17940 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17941 if test "x$IS_MODERN_MAKE" = x; then 17942 { $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 17943 $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;} 17944 else 17945 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17947 MAKE_EXPECTED_ENV='cygwin' 17948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17949 MAKE_EXPECTED_ENV='msys' 17950 else 17951 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17952 fi 17953 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17954 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17955 else 17956 # Not relevant for non-Windows 17957 IS_MAKE_CORRECT_ENV=true 17958 fi 17959 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17960 { $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 17961 $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;} 17962 else 17963 FOUND_MAKE=$MAKE_CANDIDATE 17964 17965 # Only process if variable expands to non-empty 17966 17967 if test "x$FOUND_MAKE" != x; then 17968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17969 17970 # First separate the path from the arguments. This will split at the first 17971 # space. 17972 complete="$FOUND_MAKE" 17973 path="${complete%% *}" 17974 tmp="$complete EOL" 17975 arguments="${tmp#* }" 17976 17977 # Input might be given as Windows format, start by converting to 17978 # unix format. 17979 new_path=`$CYGPATH -u "$path"` 17980 17981 # Now try to locate executable using which 17982 new_path=`$WHICH "$new_path" 2> /dev/null` 17983 # bat and cmd files are not always considered executable in cygwin causing which 17984 # to not find them 17985 if test "x$new_path" = x \ 17986 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17987 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17988 new_path=`$CYGPATH -u "$path"` 17989 fi 17990 if test "x$new_path" = x; then 17991 # Oops. Which didn't find the executable. 17992 # The splitting of arguments from the executable at a space might have been incorrect, 17993 # since paths with space are more likely in Windows. Give it another try with the whole 17994 # argument. 17995 path="$complete" 17996 arguments="EOL" 17997 new_path=`$CYGPATH -u "$path"` 17998 new_path=`$WHICH "$new_path" 2> /dev/null` 17999 # bat and cmd files are not always considered executable in cygwin causing which 18000 # to not find them 18001 if test "x$new_path" = x \ 18002 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18003 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18004 new_path=`$CYGPATH -u "$path"` 18005 fi 18006 if test "x$new_path" = x; then 18007 # It's still not found. Now this is an unrecoverable error. 18008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18009 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18010 has_space=`$ECHO "$complete" | $GREP " "` 18011 if test "x$has_space" != x; then 18012 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18013 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18014 fi 18015 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18016 fi 18017 fi 18018 18019 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18020 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18021 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18022 # "foo.exe" is OK but "foo" is an error. 18023 # 18024 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18025 # It is also a way to make sure we got the proper file name for the real test later on. 18026 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18027 if test "x$test_shortpath" = x; then 18028 # Short path failed, file does not exist as specified. 18029 # Try adding .exe or .cmd 18030 if test -f "${new_path}.exe"; then 18031 input_to_shortpath="${new_path}.exe" 18032 elif test -f "${new_path}.cmd"; then 18033 input_to_shortpath="${new_path}.cmd" 18034 else 18035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18036 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18037 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18038 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18039 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18040 fi 18041 else 18042 input_to_shortpath="$new_path" 18043 fi 18044 18045 # Call helper function which possibly converts this using DOS-style short mode. 18046 # If so, the updated path is stored in $new_path. 18047 new_path="$input_to_shortpath" 18048 18049 input_path="$input_to_shortpath" 18050 # Check if we need to convert this using DOS-style short mode. If the path 18051 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18052 # take no chances and rewrite it. 18053 # Note: m4 eats our [], so we need to use [ and ] instead. 18054 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18055 if test "x$has_forbidden_chars" != x; then 18056 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18057 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18058 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18059 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18060 # Going to short mode and back again did indeed matter. Since short mode is 18061 # case insensitive, let's make it lowercase to improve readability. 18062 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18063 # Now convert it back to Unix-style (cygpath) 18064 input_path=`$CYGPATH -u "$shortmode_path"` 18065 new_path="$input_path" 18066 fi 18067 fi 18068 18069 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18070 if test "x$test_cygdrive_prefix" = x; then 18071 # As a simple fix, exclude /usr/bin since it's not a real path. 18072 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18073 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18074 # a path prefixed by /cygdrive for fixpath to work. 18075 new_path="$CYGWIN_ROOT_PATH$input_path" 18076 fi 18077 fi 18078 18079 # remove trailing .exe if any 18080 new_path="${new_path/%.exe/}" 18081 18082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18083 18084 # First separate the path from the arguments. This will split at the first 18085 # space. 18086 complete="$FOUND_MAKE" 18087 path="${complete%% *}" 18088 tmp="$complete EOL" 18089 arguments="${tmp#* }" 18090 18091 # Input might be given as Windows format, start by converting to 18092 # unix format. 18093 new_path="$path" 18094 18095 windows_path="$new_path" 18096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18097 unix_path=`$CYGPATH -u "$windows_path"` 18098 new_path="$unix_path" 18099 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18100 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18101 new_path="$unix_path" 18102 fi 18103 18104 18105 # Now try to locate executable using which 18106 new_path=`$WHICH "$new_path" 2> /dev/null` 18107 18108 if test "x$new_path" = x; then 18109 # Oops. Which didn't find the executable. 18110 # The splitting of arguments from the executable at a space might have been incorrect, 18111 # since paths with space are more likely in Windows. Give it another try with the whole 18112 # argument. 18113 path="$complete" 18114 arguments="EOL" 18115 new_path="$path" 18116 18117 windows_path="$new_path" 18118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18119 unix_path=`$CYGPATH -u "$windows_path"` 18120 new_path="$unix_path" 18121 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18122 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18123 new_path="$unix_path" 18124 fi 18125 18126 18127 new_path=`$WHICH "$new_path" 2> /dev/null` 18128 # bat and cmd files are not always considered executable in MSYS causing which 18129 # to not find them 18130 if test "x$new_path" = x \ 18131 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18132 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18133 new_path="$path" 18134 18135 windows_path="$new_path" 18136 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18137 unix_path=`$CYGPATH -u "$windows_path"` 18138 new_path="$unix_path" 18139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18140 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18141 new_path="$unix_path" 18142 fi 18143 18144 fi 18145 18146 if test "x$new_path" = x; then 18147 # It's still not found. Now this is an unrecoverable error. 18148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18149 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18150 has_space=`$ECHO "$complete" | $GREP " "` 18151 if test "x$has_space" != x; then 18152 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18153 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18154 fi 18155 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18156 fi 18157 fi 18158 18159 # Now new_path has a complete unix path to the binary 18160 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18161 # Keep paths in /bin as-is, but remove trailing .exe if any 18162 new_path="${new_path/%.exe/}" 18163 # Do not save /bin paths to all_fixpath_prefixes! 18164 else 18165 # Not in mixed or Windows style, start by that. 18166 new_path=`cmd //c echo $new_path` 18167 18168 input_path="$new_path" 18169 # Check if we need to convert this using DOS-style short mode. If the path 18170 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18171 # take no chances and rewrite it. 18172 # Note: m4 eats our [], so we need to use [ and ] instead. 18173 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18174 if test "x$has_forbidden_chars" != x; then 18175 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18176 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18177 fi 18178 18179 # Output is in $new_path 18180 18181 windows_path="$new_path" 18182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18183 unix_path=`$CYGPATH -u "$windows_path"` 18184 new_path="$unix_path" 18185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18187 new_path="$unix_path" 18188 fi 18189 18190 # remove trailing .exe if any 18191 new_path="${new_path/%.exe/}" 18192 18193 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18194 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18195 fi 18196 18197 else 18198 # We're on a unix platform. Hooray! :) 18199 # First separate the path from the arguments. This will split at the first 18200 # space. 18201 complete="$FOUND_MAKE" 18202 path="${complete%% *}" 18203 tmp="$complete EOL" 18204 arguments="${tmp#* }" 18205 18206 # Cannot rely on the command "which" here since it doesn't always work. 18207 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18208 if test -z "$is_absolute_path"; then 18209 # Path to executable is not absolute. Find it. 18210 IFS_save="$IFS" 18211 IFS=: 18212 for p in $PATH; do 18213 if test -f "$p/$path" && test -x "$p/$path"; then 18214 new_path="$p/$path" 18215 break 18216 fi 18217 done 18218 IFS="$IFS_save" 18219 else 18220 # This is an absolute path, we can use it without further modifications. 18221 new_path="$path" 18222 fi 18223 18224 if test "x$new_path" = x; then 18225 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18226 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18227 has_space=`$ECHO "$complete" | $GREP " "` 18228 if test "x$has_space" != x; then 18229 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18230 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18231 fi 18232 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18233 fi 18234 fi 18235 18236 # Now join together the path and the arguments once again 18237 if test "x$arguments" != xEOL; then 18238 new_complete="$new_path ${arguments% *}" 18239 else 18240 new_complete="$new_path" 18241 fi 18242 18243 if test "x$complete" != "x$new_complete"; then 18244 FOUND_MAKE="$new_complete" 18245 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18246 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18247 fi 18248 fi 18249 18250 fi 18251 fi 18252 fi 18253 fi 18254 18255 if test "x$FOUND_MAKE" = x; then 18256 for ac_prog in make 18257 do 18258 # Extract the first word of "$ac_prog", so it can be a program name with args. 18259 set dummy $ac_prog; ac_word=$2 18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18261 $as_echo_n "checking for $ac_word... " >&6; } 18262 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 18263 $as_echo_n "(cached) " >&6 18264 else 18265 case $CHECK_TOOLSDIR_MAKE in 18266 [\\/]* | ?:[\\/]*) 18267 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 18268 ;; 18269 *) 18270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18271 for as_dir in $PATH 18272 do 18273 IFS=$as_save_IFS 18274 test -z "$as_dir" && as_dir=. 18275 for ac_exec_ext in '' $ac_executable_extensions; do 18276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18277 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 18278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18279 break 2 18280 fi 18281 done 18282 done 18283 IFS=$as_save_IFS 18284 18285 ;; 18286 esac 18287 fi 18288 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 18289 if test -n "$CHECK_TOOLSDIR_MAKE"; then 18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 18291 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 18292 else 18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18294 $as_echo "no" >&6; } 18295 fi 18296 18297 18298 test -n "$CHECK_TOOLSDIR_MAKE" && break 18299 done 18300 18301 18302 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 18303 DESCRIPTION="make in tools-dir" 18304 18305 # On Cygwin, we require a newer version of make than on other platforms 18306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18307 MAKE_VERSION_EXPR="-e 4\." 18308 MAKE_REQUIRED_VERSION="4.0" 18309 else 18310 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18311 MAKE_REQUIRED_VERSION="3.81" 18312 fi 18313 18314 if test "x$MAKE_CANDIDATE" != x; then 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18316 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18317 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18318 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18319 if test "x$IS_GNU_MAKE" = x; then 18320 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18321 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18322 else 18323 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18324 if test "x$IS_MODERN_MAKE" = x; then 18325 { $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 18326 $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;} 18327 else 18328 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18330 MAKE_EXPECTED_ENV='cygwin' 18331 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18332 MAKE_EXPECTED_ENV='msys' 18333 else 18334 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18335 fi 18336 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18337 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18338 else 18339 # Not relevant for non-Windows 18340 IS_MAKE_CORRECT_ENV=true 18341 fi 18342 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18343 { $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 18344 $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;} 18345 else 18346 FOUND_MAKE=$MAKE_CANDIDATE 18347 18348 # Only process if variable expands to non-empty 18349 18350 if test "x$FOUND_MAKE" != x; then 18351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18352 18353 # First separate the path from the arguments. This will split at the first 18354 # space. 18355 complete="$FOUND_MAKE" 18356 path="${complete%% *}" 18357 tmp="$complete EOL" 18358 arguments="${tmp#* }" 18359 18360 # Input might be given as Windows format, start by converting to 18361 # unix format. 18362 new_path=`$CYGPATH -u "$path"` 18363 18364 # Now try to locate executable using which 18365 new_path=`$WHICH "$new_path" 2> /dev/null` 18366 # bat and cmd files are not always considered executable in cygwin causing which 18367 # to not find them 18368 if test "x$new_path" = x \ 18369 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18370 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18371 new_path=`$CYGPATH -u "$path"` 18372 fi 18373 if test "x$new_path" = x; then 18374 # Oops. Which didn't find the executable. 18375 # The splitting of arguments from the executable at a space might have been incorrect, 18376 # since paths with space are more likely in Windows. Give it another try with the whole 18377 # argument. 18378 path="$complete" 18379 arguments="EOL" 18380 new_path=`$CYGPATH -u "$path"` 18381 new_path=`$WHICH "$new_path" 2> /dev/null` 18382 # bat and cmd files are not always considered executable in cygwin causing which 18383 # to not find them 18384 if test "x$new_path" = x \ 18385 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18386 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18387 new_path=`$CYGPATH -u "$path"` 18388 fi 18389 if test "x$new_path" = x; then 18390 # It's still not found. Now this is an unrecoverable error. 18391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18392 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18393 has_space=`$ECHO "$complete" | $GREP " "` 18394 if test "x$has_space" != x; then 18395 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18396 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18397 fi 18398 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18399 fi 18400 fi 18401 18402 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18403 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18404 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18405 # "foo.exe" is OK but "foo" is an error. 18406 # 18407 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18408 # It is also a way to make sure we got the proper file name for the real test later on. 18409 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18410 if test "x$test_shortpath" = x; then 18411 # Short path failed, file does not exist as specified. 18412 # Try adding .exe or .cmd 18413 if test -f "${new_path}.exe"; then 18414 input_to_shortpath="${new_path}.exe" 18415 elif test -f "${new_path}.cmd"; then 18416 input_to_shortpath="${new_path}.cmd" 18417 else 18418 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18419 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18420 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18421 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18422 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18423 fi 18424 else 18425 input_to_shortpath="$new_path" 18426 fi 18427 18428 # Call helper function which possibly converts this using DOS-style short mode. 18429 # If so, the updated path is stored in $new_path. 18430 new_path="$input_to_shortpath" 18431 18432 input_path="$input_to_shortpath" 18433 # Check if we need to convert this using DOS-style short mode. If the path 18434 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18435 # take no chances and rewrite it. 18436 # Note: m4 eats our [], so we need to use [ and ] instead. 18437 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18438 if test "x$has_forbidden_chars" != x; then 18439 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18440 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18441 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18442 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18443 # Going to short mode and back again did indeed matter. Since short mode is 18444 # case insensitive, let's make it lowercase to improve readability. 18445 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18446 # Now convert it back to Unix-style (cygpath) 18447 input_path=`$CYGPATH -u "$shortmode_path"` 18448 new_path="$input_path" 18449 fi 18450 fi 18451 18452 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18453 if test "x$test_cygdrive_prefix" = x; then 18454 # As a simple fix, exclude /usr/bin since it's not a real path. 18455 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18456 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18457 # a path prefixed by /cygdrive for fixpath to work. 18458 new_path="$CYGWIN_ROOT_PATH$input_path" 18459 fi 18460 fi 18461 18462 # remove trailing .exe if any 18463 new_path="${new_path/%.exe/}" 18464 18465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18466 18467 # First separate the path from the arguments. This will split at the first 18468 # space. 18469 complete="$FOUND_MAKE" 18470 path="${complete%% *}" 18471 tmp="$complete EOL" 18472 arguments="${tmp#* }" 18473 18474 # Input might be given as Windows format, start by converting to 18475 # unix format. 18476 new_path="$path" 18477 18478 windows_path="$new_path" 18479 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18480 unix_path=`$CYGPATH -u "$windows_path"` 18481 new_path="$unix_path" 18482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18483 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18484 new_path="$unix_path" 18485 fi 18486 18487 18488 # Now try to locate executable using which 18489 new_path=`$WHICH "$new_path" 2> /dev/null` 18490 18491 if test "x$new_path" = x; then 18492 # Oops. Which didn't find the executable. 18493 # The splitting of arguments from the executable at a space might have been incorrect, 18494 # since paths with space are more likely in Windows. Give it another try with the whole 18495 # argument. 18496 path="$complete" 18497 arguments="EOL" 18498 new_path="$path" 18499 18500 windows_path="$new_path" 18501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18502 unix_path=`$CYGPATH -u "$windows_path"` 18503 new_path="$unix_path" 18504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18505 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18506 new_path="$unix_path" 18507 fi 18508 18509 18510 new_path=`$WHICH "$new_path" 2> /dev/null` 18511 # bat and cmd files are not always considered executable in MSYS causing which 18512 # to not find them 18513 if test "x$new_path" = x \ 18514 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18515 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18516 new_path="$path" 18517 18518 windows_path="$new_path" 18519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18520 unix_path=`$CYGPATH -u "$windows_path"` 18521 new_path="$unix_path" 18522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18523 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18524 new_path="$unix_path" 18525 fi 18526 18527 fi 18528 18529 if test "x$new_path" = x; then 18530 # It's still not found. Now this is an unrecoverable error. 18531 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18532 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18533 has_space=`$ECHO "$complete" | $GREP " "` 18534 if test "x$has_space" != x; then 18535 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18536 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18537 fi 18538 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18539 fi 18540 fi 18541 18542 # Now new_path has a complete unix path to the binary 18543 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18544 # Keep paths in /bin as-is, but remove trailing .exe if any 18545 new_path="${new_path/%.exe/}" 18546 # Do not save /bin paths to all_fixpath_prefixes! 18547 else 18548 # Not in mixed or Windows style, start by that. 18549 new_path=`cmd //c echo $new_path` 18550 18551 input_path="$new_path" 18552 # Check if we need to convert this using DOS-style short mode. If the path 18553 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18554 # take no chances and rewrite it. 18555 # Note: m4 eats our [], so we need to use [ and ] instead. 18556 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18557 if test "x$has_forbidden_chars" != x; then 18558 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18559 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18560 fi 18561 18562 # Output is in $new_path 18563 18564 windows_path="$new_path" 18565 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18566 unix_path=`$CYGPATH -u "$windows_path"` 18567 new_path="$unix_path" 18568 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18569 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18570 new_path="$unix_path" 18571 fi 18572 18573 # remove trailing .exe if any 18574 new_path="${new_path/%.exe/}" 18575 18576 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18577 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18578 fi 18579 18580 else 18581 # We're on a unix platform. Hooray! :) 18582 # First separate the path from the arguments. This will split at the first 18583 # space. 18584 complete="$FOUND_MAKE" 18585 path="${complete%% *}" 18586 tmp="$complete EOL" 18587 arguments="${tmp#* }" 18588 18589 # Cannot rely on the command "which" here since it doesn't always work. 18590 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18591 if test -z "$is_absolute_path"; then 18592 # Path to executable is not absolute. Find it. 18593 IFS_save="$IFS" 18594 IFS=: 18595 for p in $PATH; do 18596 if test -f "$p/$path" && test -x "$p/$path"; then 18597 new_path="$p/$path" 18598 break 18599 fi 18600 done 18601 IFS="$IFS_save" 18602 else 18603 # This is an absolute path, we can use it without further modifications. 18604 new_path="$path" 18605 fi 18606 18607 if test "x$new_path" = x; then 18608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18609 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18610 has_space=`$ECHO "$complete" | $GREP " "` 18611 if test "x$has_space" != x; then 18612 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18613 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18614 fi 18615 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18616 fi 18617 fi 18618 18619 # Now join together the path and the arguments once again 18620 if test "x$arguments" != xEOL; then 18621 new_complete="$new_path ${arguments% *}" 18622 else 18623 new_complete="$new_path" 18624 fi 18625 18626 if test "x$complete" != "x$new_complete"; then 18627 FOUND_MAKE="$new_complete" 18628 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18629 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18630 fi 18631 fi 18632 18633 fi 18634 fi 18635 fi 18636 fi 18637 18638 fi 18639 PATH=$OLD_PATH 18640 fi 18641 fi 18642 18643 if test "x$FOUND_MAKE" = x; then 18644 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 18645 fi 18646 18647 else 18648 # The variable is set, but is it from the command line or the environment? 18649 18650 # Try to remove the string !MAKE! from our list. 18651 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 18652 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18653 # If it failed, the variable was not from the command line. Ignore it, 18654 # but warn the user (except for BASH, which is always set by the calling BASH). 18655 if test "xMAKE" != xBASH; then 18656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 18657 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 18658 fi 18659 # Try to locate tool using the code snippet 18660 18661 # Try our hardest to locate a correct version of GNU make 18662 for ac_prog in gmake 18663 do 18664 # Extract the first word of "$ac_prog", so it can be a program name with args. 18665 set dummy $ac_prog; ac_word=$2 18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18667 $as_echo_n "checking for $ac_word... " >&6; } 18668 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 18669 $as_echo_n "(cached) " >&6 18670 else 18671 case $CHECK_GMAKE in 18672 [\\/]* | ?:[\\/]*) 18673 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 18674 ;; 18675 *) 18676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18677 for as_dir in $PATH 18678 do 18679 IFS=$as_save_IFS 18680 test -z "$as_dir" && as_dir=. 18681 for ac_exec_ext in '' $ac_executable_extensions; do 18682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18683 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18685 break 2 18686 fi 18687 done 18688 done 18689 IFS=$as_save_IFS 18690 18691 ;; 18692 esac 18693 fi 18694 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 18695 if test -n "$CHECK_GMAKE"; then 18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 18697 $as_echo "$CHECK_GMAKE" >&6; } 18698 else 18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18700 $as_echo "no" >&6; } 18701 fi 18702 18703 18704 test -n "$CHECK_GMAKE" && break 18705 done 18706 18707 18708 MAKE_CANDIDATE=""$CHECK_GMAKE"" 18709 DESCRIPTION="gmake in PATH" 18710 18711 # On Cygwin, we require a newer version of make than on other platforms 18712 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18713 MAKE_VERSION_EXPR="-e 4\." 18714 MAKE_REQUIRED_VERSION="4.0" 18715 else 18716 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18717 MAKE_REQUIRED_VERSION="3.81" 18718 fi 18719 18720 if test "x$MAKE_CANDIDATE" != x; then 18721 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18722 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18723 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18724 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18725 if test "x$IS_GNU_MAKE" = x; then 18726 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18727 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18728 else 18729 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18730 if test "x$IS_MODERN_MAKE" = x; then 18731 { $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 18732 $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;} 18733 else 18734 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18736 MAKE_EXPECTED_ENV='cygwin' 18737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18738 MAKE_EXPECTED_ENV='msys' 18739 else 18740 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18741 fi 18742 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18743 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18744 else 18745 # Not relevant for non-Windows 18746 IS_MAKE_CORRECT_ENV=true 18747 fi 18748 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18749 { $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 18750 $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;} 18751 else 18752 FOUND_MAKE=$MAKE_CANDIDATE 18753 18754 # Only process if variable expands to non-empty 18755 18756 if test "x$FOUND_MAKE" != x; then 18757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18758 18759 # First separate the path from the arguments. This will split at the first 18760 # space. 18761 complete="$FOUND_MAKE" 18762 path="${complete%% *}" 18763 tmp="$complete EOL" 18764 arguments="${tmp#* }" 18765 18766 # Input might be given as Windows format, start by converting to 18767 # unix format. 18768 new_path=`$CYGPATH -u "$path"` 18769 18770 # Now try to locate executable using which 18771 new_path=`$WHICH "$new_path" 2> /dev/null` 18772 # bat and cmd files are not always considered executable in cygwin causing which 18773 # to not find them 18774 if test "x$new_path" = x \ 18775 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18776 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18777 new_path=`$CYGPATH -u "$path"` 18778 fi 18779 if test "x$new_path" = x; then 18780 # Oops. Which didn't find the executable. 18781 # The splitting of arguments from the executable at a space might have been incorrect, 18782 # since paths with space are more likely in Windows. Give it another try with the whole 18783 # argument. 18784 path="$complete" 18785 arguments="EOL" 18786 new_path=`$CYGPATH -u "$path"` 18787 new_path=`$WHICH "$new_path" 2> /dev/null` 18788 # bat and cmd files are not always considered executable in cygwin causing which 18789 # to not find them 18790 if test "x$new_path" = x \ 18791 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18792 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18793 new_path=`$CYGPATH -u "$path"` 18794 fi 18795 if test "x$new_path" = x; then 18796 # It's still not found. Now this is an unrecoverable error. 18797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18798 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18799 has_space=`$ECHO "$complete" | $GREP " "` 18800 if test "x$has_space" != x; then 18801 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18802 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18803 fi 18804 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18805 fi 18806 fi 18807 18808 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18809 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18810 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18811 # "foo.exe" is OK but "foo" is an error. 18812 # 18813 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18814 # It is also a way to make sure we got the proper file name for the real test later on. 18815 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18816 if test "x$test_shortpath" = x; then 18817 # Short path failed, file does not exist as specified. 18818 # Try adding .exe or .cmd 18819 if test -f "${new_path}.exe"; then 18820 input_to_shortpath="${new_path}.exe" 18821 elif test -f "${new_path}.cmd"; then 18822 input_to_shortpath="${new_path}.cmd" 18823 else 18824 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18825 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18826 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18827 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18828 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18829 fi 18830 else 18831 input_to_shortpath="$new_path" 18832 fi 18833 18834 # Call helper function which possibly converts this using DOS-style short mode. 18835 # If so, the updated path is stored in $new_path. 18836 new_path="$input_to_shortpath" 18837 18838 input_path="$input_to_shortpath" 18839 # Check if we need to convert this using DOS-style short mode. If the path 18840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18841 # take no chances and rewrite it. 18842 # Note: m4 eats our [], so we need to use [ and ] instead. 18843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18844 if test "x$has_forbidden_chars" != x; then 18845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18846 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18847 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18848 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18849 # Going to short mode and back again did indeed matter. Since short mode is 18850 # case insensitive, let's make it lowercase to improve readability. 18851 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18852 # Now convert it back to Unix-style (cygpath) 18853 input_path=`$CYGPATH -u "$shortmode_path"` 18854 new_path="$input_path" 18855 fi 18856 fi 18857 18858 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18859 if test "x$test_cygdrive_prefix" = x; then 18860 # As a simple fix, exclude /usr/bin since it's not a real path. 18861 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18862 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18863 # a path prefixed by /cygdrive for fixpath to work. 18864 new_path="$CYGWIN_ROOT_PATH$input_path" 18865 fi 18866 fi 18867 18868 # remove trailing .exe if any 18869 new_path="${new_path/%.exe/}" 18870 18871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18872 18873 # First separate the path from the arguments. This will split at the first 18874 # space. 18875 complete="$FOUND_MAKE" 18876 path="${complete%% *}" 18877 tmp="$complete EOL" 18878 arguments="${tmp#* }" 18879 18880 # Input might be given as Windows format, start by converting to 18881 # unix format. 18882 new_path="$path" 18883 18884 windows_path="$new_path" 18885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18886 unix_path=`$CYGPATH -u "$windows_path"` 18887 new_path="$unix_path" 18888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18890 new_path="$unix_path" 18891 fi 18892 18893 18894 # Now try to locate executable using which 18895 new_path=`$WHICH "$new_path" 2> /dev/null` 18896 18897 if test "x$new_path" = x; then 18898 # Oops. Which didn't find the executable. 18899 # The splitting of arguments from the executable at a space might have been incorrect, 18900 # since paths with space are more likely in Windows. Give it another try with the whole 18901 # argument. 18902 path="$complete" 18903 arguments="EOL" 18904 new_path="$path" 18905 18906 windows_path="$new_path" 18907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18908 unix_path=`$CYGPATH -u "$windows_path"` 18909 new_path="$unix_path" 18910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18912 new_path="$unix_path" 18913 fi 18914 18915 18916 new_path=`$WHICH "$new_path" 2> /dev/null` 18917 # bat and cmd files are not always considered executable in MSYS causing which 18918 # to not find them 18919 if test "x$new_path" = x \ 18920 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18921 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18922 new_path="$path" 18923 18924 windows_path="$new_path" 18925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18926 unix_path=`$CYGPATH -u "$windows_path"` 18927 new_path="$unix_path" 18928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18930 new_path="$unix_path" 18931 fi 18932 18933 fi 18934 18935 if test "x$new_path" = x; then 18936 # It's still not found. Now this is an unrecoverable error. 18937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18938 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18939 has_space=`$ECHO "$complete" | $GREP " "` 18940 if test "x$has_space" != x; then 18941 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18942 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18943 fi 18944 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18945 fi 18946 fi 18947 18948 # Now new_path has a complete unix path to the binary 18949 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18950 # Keep paths in /bin as-is, but remove trailing .exe if any 18951 new_path="${new_path/%.exe/}" 18952 # Do not save /bin paths to all_fixpath_prefixes! 18953 else 18954 # Not in mixed or Windows style, start by that. 18955 new_path=`cmd //c echo $new_path` 18956 18957 input_path="$new_path" 18958 # Check if we need to convert this using DOS-style short mode. If the path 18959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18960 # take no chances and rewrite it. 18961 # Note: m4 eats our [], so we need to use [ and ] instead. 18962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18963 if test "x$has_forbidden_chars" != x; then 18964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18965 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18966 fi 18967 18968 # Output is in $new_path 18969 18970 windows_path="$new_path" 18971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18972 unix_path=`$CYGPATH -u "$windows_path"` 18973 new_path="$unix_path" 18974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18975 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18976 new_path="$unix_path" 18977 fi 18978 18979 # remove trailing .exe if any 18980 new_path="${new_path/%.exe/}" 18981 18982 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18983 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18984 fi 18985 18986 else 18987 # We're on a unix platform. Hooray! :) 18988 # First separate the path from the arguments. This will split at the first 18989 # space. 18990 complete="$FOUND_MAKE" 18991 path="${complete%% *}" 18992 tmp="$complete EOL" 18993 arguments="${tmp#* }" 18994 18995 # Cannot rely on the command "which" here since it doesn't always work. 18996 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18997 if test -z "$is_absolute_path"; then 18998 # Path to executable is not absolute. Find it. 18999 IFS_save="$IFS" 19000 IFS=: 19001 for p in $PATH; do 19002 if test -f "$p/$path" && test -x "$p/$path"; then 19003 new_path="$p/$path" 19004 break 19005 fi 19006 done 19007 IFS="$IFS_save" 19008 else 19009 # This is an absolute path, we can use it without further modifications. 19010 new_path="$path" 19011 fi 19012 19013 if test "x$new_path" = x; then 19014 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19015 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19016 has_space=`$ECHO "$complete" | $GREP " "` 19017 if test "x$has_space" != x; then 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19019 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19020 fi 19021 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19022 fi 19023 fi 19024 19025 # Now join together the path and the arguments once again 19026 if test "x$arguments" != xEOL; then 19027 new_complete="$new_path ${arguments% *}" 19028 else 19029 new_complete="$new_path" 19030 fi 19031 19032 if test "x$complete" != "x$new_complete"; then 19033 FOUND_MAKE="$new_complete" 19034 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19035 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19036 fi 19037 fi 19038 19039 fi 19040 fi 19041 fi 19042 fi 19043 19044 19045 if test "x$FOUND_MAKE" = x; then 19046 for ac_prog in make 19047 do 19048 # Extract the first word of "$ac_prog", so it can be a program name with args. 19049 set dummy $ac_prog; ac_word=$2 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19051 $as_echo_n "checking for $ac_word... " >&6; } 19052 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19053 $as_echo_n "(cached) " >&6 19054 else 19055 case $CHECK_MAKE in 19056 [\\/]* | ?:[\\/]*) 19057 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19058 ;; 19059 *) 19060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19061 for as_dir in $PATH 19062 do 19063 IFS=$as_save_IFS 19064 test -z "$as_dir" && as_dir=. 19065 for ac_exec_ext in '' $ac_executable_extensions; do 19066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19067 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19069 break 2 19070 fi 19071 done 19072 done 19073 IFS=$as_save_IFS 19074 19075 ;; 19076 esac 19077 fi 19078 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19079 if test -n "$CHECK_MAKE"; then 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19081 $as_echo "$CHECK_MAKE" >&6; } 19082 else 19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19084 $as_echo "no" >&6; } 19085 fi 19086 19087 19088 test -n "$CHECK_MAKE" && break 19089 done 19090 19091 19092 MAKE_CANDIDATE=""$CHECK_MAKE"" 19093 DESCRIPTION="make in PATH" 19094 19095 # On Cygwin, we require a newer version of make than on other platforms 19096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19097 MAKE_VERSION_EXPR="-e 4\." 19098 MAKE_REQUIRED_VERSION="4.0" 19099 else 19100 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19101 MAKE_REQUIRED_VERSION="3.81" 19102 fi 19103 19104 if test "x$MAKE_CANDIDATE" != x; then 19105 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19106 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19107 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19108 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19109 if test "x$IS_GNU_MAKE" = x; then 19110 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19111 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19112 else 19113 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19114 if test "x$IS_MODERN_MAKE" = x; then 19115 { $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 19116 $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;} 19117 else 19118 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19120 MAKE_EXPECTED_ENV='cygwin' 19121 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19122 MAKE_EXPECTED_ENV='msys' 19123 else 19124 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19125 fi 19126 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19127 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19128 else 19129 # Not relevant for non-Windows 19130 IS_MAKE_CORRECT_ENV=true 19131 fi 19132 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19133 { $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 19134 $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;} 19135 else 19136 FOUND_MAKE=$MAKE_CANDIDATE 19137 19138 # Only process if variable expands to non-empty 19139 19140 if test "x$FOUND_MAKE" != x; then 19141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19142 19143 # First separate the path from the arguments. This will split at the first 19144 # space. 19145 complete="$FOUND_MAKE" 19146 path="${complete%% *}" 19147 tmp="$complete EOL" 19148 arguments="${tmp#* }" 19149 19150 # Input might be given as Windows format, start by converting to 19151 # unix format. 19152 new_path=`$CYGPATH -u "$path"` 19153 19154 # Now try to locate executable using which 19155 new_path=`$WHICH "$new_path" 2> /dev/null` 19156 # bat and cmd files are not always considered executable in cygwin causing which 19157 # to not find them 19158 if test "x$new_path" = x \ 19159 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19160 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19161 new_path=`$CYGPATH -u "$path"` 19162 fi 19163 if test "x$new_path" = x; then 19164 # Oops. Which didn't find the executable. 19165 # The splitting of arguments from the executable at a space might have been incorrect, 19166 # since paths with space are more likely in Windows. Give it another try with the whole 19167 # argument. 19168 path="$complete" 19169 arguments="EOL" 19170 new_path=`$CYGPATH -u "$path"` 19171 new_path=`$WHICH "$new_path" 2> /dev/null` 19172 # bat and cmd files are not always considered executable in cygwin causing which 19173 # to not find them 19174 if test "x$new_path" = x \ 19175 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19176 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19177 new_path=`$CYGPATH -u "$path"` 19178 fi 19179 if test "x$new_path" = x; then 19180 # It's still not found. Now this is an unrecoverable error. 19181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19182 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19183 has_space=`$ECHO "$complete" | $GREP " "` 19184 if test "x$has_space" != x; then 19185 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19186 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19187 fi 19188 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19189 fi 19190 fi 19191 19192 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19193 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19194 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19195 # "foo.exe" is OK but "foo" is an error. 19196 # 19197 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19198 # It is also a way to make sure we got the proper file name for the real test later on. 19199 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19200 if test "x$test_shortpath" = x; then 19201 # Short path failed, file does not exist as specified. 19202 # Try adding .exe or .cmd 19203 if test -f "${new_path}.exe"; then 19204 input_to_shortpath="${new_path}.exe" 19205 elif test -f "${new_path}.cmd"; then 19206 input_to_shortpath="${new_path}.cmd" 19207 else 19208 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19209 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19210 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19211 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19212 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19213 fi 19214 else 19215 input_to_shortpath="$new_path" 19216 fi 19217 19218 # Call helper function which possibly converts this using DOS-style short mode. 19219 # If so, the updated path is stored in $new_path. 19220 new_path="$input_to_shortpath" 19221 19222 input_path="$input_to_shortpath" 19223 # Check if we need to convert this using DOS-style short mode. If the path 19224 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19225 # take no chances and rewrite it. 19226 # Note: m4 eats our [], so we need to use [ and ] instead. 19227 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19228 if test "x$has_forbidden_chars" != x; then 19229 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19230 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19231 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19232 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19233 # Going to short mode and back again did indeed matter. Since short mode is 19234 # case insensitive, let's make it lowercase to improve readability. 19235 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19236 # Now convert it back to Unix-style (cygpath) 19237 input_path=`$CYGPATH -u "$shortmode_path"` 19238 new_path="$input_path" 19239 fi 19240 fi 19241 19242 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19243 if test "x$test_cygdrive_prefix" = x; then 19244 # As a simple fix, exclude /usr/bin since it's not a real path. 19245 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19246 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19247 # a path prefixed by /cygdrive for fixpath to work. 19248 new_path="$CYGWIN_ROOT_PATH$input_path" 19249 fi 19250 fi 19251 19252 # remove trailing .exe if any 19253 new_path="${new_path/%.exe/}" 19254 19255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19256 19257 # First separate the path from the arguments. This will split at the first 19258 # space. 19259 complete="$FOUND_MAKE" 19260 path="${complete%% *}" 19261 tmp="$complete EOL" 19262 arguments="${tmp#* }" 19263 19264 # Input might be given as Windows format, start by converting to 19265 # unix format. 19266 new_path="$path" 19267 19268 windows_path="$new_path" 19269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19270 unix_path=`$CYGPATH -u "$windows_path"` 19271 new_path="$unix_path" 19272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19273 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19274 new_path="$unix_path" 19275 fi 19276 19277 19278 # Now try to locate executable using which 19279 new_path=`$WHICH "$new_path" 2> /dev/null` 19280 19281 if test "x$new_path" = x; then 19282 # Oops. Which didn't find the executable. 19283 # The splitting of arguments from the executable at a space might have been incorrect, 19284 # since paths with space are more likely in Windows. Give it another try with the whole 19285 # argument. 19286 path="$complete" 19287 arguments="EOL" 19288 new_path="$path" 19289 19290 windows_path="$new_path" 19291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19292 unix_path=`$CYGPATH -u "$windows_path"` 19293 new_path="$unix_path" 19294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19296 new_path="$unix_path" 19297 fi 19298 19299 19300 new_path=`$WHICH "$new_path" 2> /dev/null` 19301 # bat and cmd files are not always considered executable in MSYS causing which 19302 # to not find them 19303 if test "x$new_path" = x \ 19304 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19305 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19306 new_path="$path" 19307 19308 windows_path="$new_path" 19309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19310 unix_path=`$CYGPATH -u "$windows_path"` 19311 new_path="$unix_path" 19312 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19313 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19314 new_path="$unix_path" 19315 fi 19316 19317 fi 19318 19319 if test "x$new_path" = x; then 19320 # It's still not found. Now this is an unrecoverable error. 19321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19322 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19323 has_space=`$ECHO "$complete" | $GREP " "` 19324 if test "x$has_space" != x; then 19325 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19326 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19327 fi 19328 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19329 fi 19330 fi 19331 19332 # Now new_path has a complete unix path to the binary 19333 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19334 # Keep paths in /bin as-is, but remove trailing .exe if any 19335 new_path="${new_path/%.exe/}" 19336 # Do not save /bin paths to all_fixpath_prefixes! 19337 else 19338 # Not in mixed or Windows style, start by that. 19339 new_path=`cmd //c echo $new_path` 19340 19341 input_path="$new_path" 19342 # Check if we need to convert this using DOS-style short mode. If the path 19343 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19344 # take no chances and rewrite it. 19345 # Note: m4 eats our [], so we need to use [ and ] instead. 19346 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19347 if test "x$has_forbidden_chars" != x; then 19348 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19349 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19350 fi 19351 19352 # Output is in $new_path 19353 19354 windows_path="$new_path" 19355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19356 unix_path=`$CYGPATH -u "$windows_path"` 19357 new_path="$unix_path" 19358 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19359 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19360 new_path="$unix_path" 19361 fi 19362 19363 # remove trailing .exe if any 19364 new_path="${new_path/%.exe/}" 19365 19366 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19367 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19368 fi 19369 19370 else 19371 # We're on a unix platform. Hooray! :) 19372 # First separate the path from the arguments. This will split at the first 19373 # space. 19374 complete="$FOUND_MAKE" 19375 path="${complete%% *}" 19376 tmp="$complete EOL" 19377 arguments="${tmp#* }" 19378 19379 # Cannot rely on the command "which" here since it doesn't always work. 19380 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19381 if test -z "$is_absolute_path"; then 19382 # Path to executable is not absolute. Find it. 19383 IFS_save="$IFS" 19384 IFS=: 19385 for p in $PATH; do 19386 if test -f "$p/$path" && test -x "$p/$path"; then 19387 new_path="$p/$path" 19388 break 19389 fi 19390 done 19391 IFS="$IFS_save" 19392 else 19393 # This is an absolute path, we can use it without further modifications. 19394 new_path="$path" 19395 fi 19396 19397 if test "x$new_path" = x; then 19398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19399 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19400 has_space=`$ECHO "$complete" | $GREP " "` 19401 if test "x$has_space" != x; then 19402 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19403 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19404 fi 19405 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19406 fi 19407 fi 19408 19409 # Now join together the path and the arguments once again 19410 if test "x$arguments" != xEOL; then 19411 new_complete="$new_path ${arguments% *}" 19412 else 19413 new_complete="$new_path" 19414 fi 19415 19416 if test "x$complete" != "x$new_complete"; then 19417 FOUND_MAKE="$new_complete" 19418 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19419 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19420 fi 19421 fi 19422 19423 fi 19424 fi 19425 fi 19426 fi 19427 19428 fi 19429 19430 if test "x$FOUND_MAKE" = x; then 19431 if test "x$TOOLCHAIN_PATH" != x; then 19432 # We have a toolchain path, check that as well before giving up. 19433 OLD_PATH=$PATH 19434 PATH=$TOOLCHAIN_PATH:$PATH 19435 for ac_prog in gmake 19436 do 19437 # Extract the first word of "$ac_prog", so it can be a program name with args. 19438 set dummy $ac_prog; ac_word=$2 19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19440 $as_echo_n "checking for $ac_word... " >&6; } 19441 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 19442 $as_echo_n "(cached) " >&6 19443 else 19444 case $CHECK_TOOLSDIR_GMAKE in 19445 [\\/]* | ?:[\\/]*) 19446 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 19447 ;; 19448 *) 19449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19450 for as_dir in $PATH 19451 do 19452 IFS=$as_save_IFS 19453 test -z "$as_dir" && as_dir=. 19454 for ac_exec_ext in '' $ac_executable_extensions; do 19455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19456 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19458 break 2 19459 fi 19460 done 19461 done 19462 IFS=$as_save_IFS 19463 19464 ;; 19465 esac 19466 fi 19467 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 19468 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 19470 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 19471 else 19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19473 $as_echo "no" >&6; } 19474 fi 19475 19476 19477 test -n "$CHECK_TOOLSDIR_GMAKE" && break 19478 done 19479 19480 19481 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 19482 DESCRIPTION="gmake in tools-dir" 19483 19484 # On Cygwin, we require a newer version of make than on other platforms 19485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19486 MAKE_VERSION_EXPR="-e 4\." 19487 MAKE_REQUIRED_VERSION="4.0" 19488 else 19489 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19490 MAKE_REQUIRED_VERSION="3.81" 19491 fi 19492 19493 if test "x$MAKE_CANDIDATE" != x; then 19494 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19495 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19496 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19497 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19498 if test "x$IS_GNU_MAKE" = x; then 19499 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19500 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19501 else 19502 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19503 if test "x$IS_MODERN_MAKE" = x; then 19504 { $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 19505 $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;} 19506 else 19507 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19509 MAKE_EXPECTED_ENV='cygwin' 19510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19511 MAKE_EXPECTED_ENV='msys' 19512 else 19513 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19514 fi 19515 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19516 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19517 else 19518 # Not relevant for non-Windows 19519 IS_MAKE_CORRECT_ENV=true 19520 fi 19521 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19522 { $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 19523 $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;} 19524 else 19525 FOUND_MAKE=$MAKE_CANDIDATE 19526 19527 # Only process if variable expands to non-empty 19528 19529 if test "x$FOUND_MAKE" != x; then 19530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19531 19532 # First separate the path from the arguments. This will split at the first 19533 # space. 19534 complete="$FOUND_MAKE" 19535 path="${complete%% *}" 19536 tmp="$complete EOL" 19537 arguments="${tmp#* }" 19538 19539 # Input might be given as Windows format, start by converting to 19540 # unix format. 19541 new_path=`$CYGPATH -u "$path"` 19542 19543 # Now try to locate executable using which 19544 new_path=`$WHICH "$new_path" 2> /dev/null` 19545 # bat and cmd files are not always considered executable in cygwin causing which 19546 # to not find them 19547 if test "x$new_path" = x \ 19548 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19549 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19550 new_path=`$CYGPATH -u "$path"` 19551 fi 19552 if test "x$new_path" = x; then 19553 # Oops. Which didn't find the executable. 19554 # The splitting of arguments from the executable at a space might have been incorrect, 19555 # since paths with space are more likely in Windows. Give it another try with the whole 19556 # argument. 19557 path="$complete" 19558 arguments="EOL" 19559 new_path=`$CYGPATH -u "$path"` 19560 new_path=`$WHICH "$new_path" 2> /dev/null` 19561 # bat and cmd files are not always considered executable in cygwin causing which 19562 # to not find them 19563 if test "x$new_path" = x \ 19564 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19565 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19566 new_path=`$CYGPATH -u "$path"` 19567 fi 19568 if test "x$new_path" = x; then 19569 # It's still not found. Now this is an unrecoverable error. 19570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19571 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19572 has_space=`$ECHO "$complete" | $GREP " "` 19573 if test "x$has_space" != x; then 19574 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19575 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19576 fi 19577 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19578 fi 19579 fi 19580 19581 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19582 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19583 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19584 # "foo.exe" is OK but "foo" is an error. 19585 # 19586 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19587 # It is also a way to make sure we got the proper file name for the real test later on. 19588 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19589 if test "x$test_shortpath" = x; then 19590 # Short path failed, file does not exist as specified. 19591 # Try adding .exe or .cmd 19592 if test -f "${new_path}.exe"; then 19593 input_to_shortpath="${new_path}.exe" 19594 elif test -f "${new_path}.cmd"; then 19595 input_to_shortpath="${new_path}.cmd" 19596 else 19597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19598 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19599 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19600 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19601 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19602 fi 19603 else 19604 input_to_shortpath="$new_path" 19605 fi 19606 19607 # Call helper function which possibly converts this using DOS-style short mode. 19608 # If so, the updated path is stored in $new_path. 19609 new_path="$input_to_shortpath" 19610 19611 input_path="$input_to_shortpath" 19612 # Check if we need to convert this using DOS-style short mode. If the path 19613 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19614 # take no chances and rewrite it. 19615 # Note: m4 eats our [], so we need to use [ and ] instead. 19616 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19617 if test "x$has_forbidden_chars" != x; then 19618 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19619 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19620 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19621 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19622 # Going to short mode and back again did indeed matter. Since short mode is 19623 # case insensitive, let's make it lowercase to improve readability. 19624 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19625 # Now convert it back to Unix-style (cygpath) 19626 input_path=`$CYGPATH -u "$shortmode_path"` 19627 new_path="$input_path" 19628 fi 19629 fi 19630 19631 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19632 if test "x$test_cygdrive_prefix" = x; then 19633 # As a simple fix, exclude /usr/bin since it's not a real path. 19634 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19635 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19636 # a path prefixed by /cygdrive for fixpath to work. 19637 new_path="$CYGWIN_ROOT_PATH$input_path" 19638 fi 19639 fi 19640 19641 # remove trailing .exe if any 19642 new_path="${new_path/%.exe/}" 19643 19644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19645 19646 # First separate the path from the arguments. This will split at the first 19647 # space. 19648 complete="$FOUND_MAKE" 19649 path="${complete%% *}" 19650 tmp="$complete EOL" 19651 arguments="${tmp#* }" 19652 19653 # Input might be given as Windows format, start by converting to 19654 # unix format. 19655 new_path="$path" 19656 19657 windows_path="$new_path" 19658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19659 unix_path=`$CYGPATH -u "$windows_path"` 19660 new_path="$unix_path" 19661 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19662 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19663 new_path="$unix_path" 19664 fi 19665 19666 19667 # Now try to locate executable using which 19668 new_path=`$WHICH "$new_path" 2> /dev/null` 19669 19670 if test "x$new_path" = x; then 19671 # Oops. Which didn't find the executable. 19672 # The splitting of arguments from the executable at a space might have been incorrect, 19673 # since paths with space are more likely in Windows. Give it another try with the whole 19674 # argument. 19675 path="$complete" 19676 arguments="EOL" 19677 new_path="$path" 19678 19679 windows_path="$new_path" 19680 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19681 unix_path=`$CYGPATH -u "$windows_path"` 19682 new_path="$unix_path" 19683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19684 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19685 new_path="$unix_path" 19686 fi 19687 19688 19689 new_path=`$WHICH "$new_path" 2> /dev/null` 19690 # bat and cmd files are not always considered executable in MSYS causing which 19691 # to not find them 19692 if test "x$new_path" = x \ 19693 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19694 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19695 new_path="$path" 19696 19697 windows_path="$new_path" 19698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19699 unix_path=`$CYGPATH -u "$windows_path"` 19700 new_path="$unix_path" 19701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19702 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19703 new_path="$unix_path" 19704 fi 19705 19706 fi 19707 19708 if test "x$new_path" = x; then 19709 # It's still not found. Now this is an unrecoverable error. 19710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19711 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19712 has_space=`$ECHO "$complete" | $GREP " "` 19713 if test "x$has_space" != x; then 19714 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19715 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19716 fi 19717 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19718 fi 19719 fi 19720 19721 # Now new_path has a complete unix path to the binary 19722 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19723 # Keep paths in /bin as-is, but remove trailing .exe if any 19724 new_path="${new_path/%.exe/}" 19725 # Do not save /bin paths to all_fixpath_prefixes! 19726 else 19727 # Not in mixed or Windows style, start by that. 19728 new_path=`cmd //c echo $new_path` 19729 19730 input_path="$new_path" 19731 # Check if we need to convert this using DOS-style short mode. If the path 19732 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19733 # take no chances and rewrite it. 19734 # Note: m4 eats our [], so we need to use [ and ] instead. 19735 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19736 if test "x$has_forbidden_chars" != x; then 19737 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19738 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19739 fi 19740 19741 # Output is in $new_path 19742 19743 windows_path="$new_path" 19744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19745 unix_path=`$CYGPATH -u "$windows_path"` 19746 new_path="$unix_path" 19747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19748 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19749 new_path="$unix_path" 19750 fi 19751 19752 # remove trailing .exe if any 19753 new_path="${new_path/%.exe/}" 19754 19755 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19756 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19757 fi 19758 19759 else 19760 # We're on a unix platform. Hooray! :) 19761 # First separate the path from the arguments. This will split at the first 19762 # space. 19763 complete="$FOUND_MAKE" 19764 path="${complete%% *}" 19765 tmp="$complete EOL" 19766 arguments="${tmp#* }" 19767 19768 # Cannot rely on the command "which" here since it doesn't always work. 19769 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19770 if test -z "$is_absolute_path"; then 19771 # Path to executable is not absolute. Find it. 19772 IFS_save="$IFS" 19773 IFS=: 19774 for p in $PATH; do 19775 if test -f "$p/$path" && test -x "$p/$path"; then 19776 new_path="$p/$path" 19777 break 19778 fi 19779 done 19780 IFS="$IFS_save" 19781 else 19782 # This is an absolute path, we can use it without further modifications. 19783 new_path="$path" 19784 fi 19785 19786 if test "x$new_path" = x; then 19787 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19788 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19789 has_space=`$ECHO "$complete" | $GREP " "` 19790 if test "x$has_space" != x; then 19791 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19792 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19793 fi 19794 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19795 fi 19796 fi 19797 19798 # Now join together the path and the arguments once again 19799 if test "x$arguments" != xEOL; then 19800 new_complete="$new_path ${arguments% *}" 19801 else 19802 new_complete="$new_path" 19803 fi 19804 19805 if test "x$complete" != "x$new_complete"; then 19806 FOUND_MAKE="$new_complete" 19807 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19808 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19809 fi 19810 fi 19811 19812 fi 19813 fi 19814 fi 19815 fi 19816 19817 if test "x$FOUND_MAKE" = x; then 19818 for ac_prog in make 19819 do 19820 # Extract the first word of "$ac_prog", so it can be a program name with args. 19821 set dummy $ac_prog; ac_word=$2 19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19823 $as_echo_n "checking for $ac_word... " >&6; } 19824 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 19825 $as_echo_n "(cached) " >&6 19826 else 19827 case $CHECK_TOOLSDIR_MAKE in 19828 [\\/]* | ?:[\\/]*) 19829 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 19830 ;; 19831 *) 19832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19833 for as_dir in $PATH 19834 do 19835 IFS=$as_save_IFS 19836 test -z "$as_dir" && as_dir=. 19837 for ac_exec_ext in '' $ac_executable_extensions; do 19838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19839 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 19840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19841 break 2 19842 fi 19843 done 19844 done 19845 IFS=$as_save_IFS 19846 19847 ;; 19848 esac 19849 fi 19850 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19851 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19853 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19854 else 19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19856 $as_echo "no" >&6; } 19857 fi 19858 19859 19860 test -n "$CHECK_TOOLSDIR_MAKE" && break 19861 done 19862 19863 19864 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19865 DESCRIPTION="make in tools-dir" 19866 19867 # On Cygwin, we require a newer version of make than on other platforms 19868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19869 MAKE_VERSION_EXPR="-e 4\." 19870 MAKE_REQUIRED_VERSION="4.0" 19871 else 19872 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19873 MAKE_REQUIRED_VERSION="3.81" 19874 fi 19875 19876 if test "x$MAKE_CANDIDATE" != x; then 19877 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19878 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19879 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19880 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19881 if test "x$IS_GNU_MAKE" = x; then 19882 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19883 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19884 else 19885 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19886 if test "x$IS_MODERN_MAKE" = x; then 19887 { $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 19888 $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;} 19889 else 19890 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19892 MAKE_EXPECTED_ENV='cygwin' 19893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19894 MAKE_EXPECTED_ENV='msys' 19895 else 19896 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19897 fi 19898 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19899 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19900 else 19901 # Not relevant for non-Windows 19902 IS_MAKE_CORRECT_ENV=true 19903 fi 19904 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19905 { $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 19906 $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;} 19907 else 19908 FOUND_MAKE=$MAKE_CANDIDATE 19909 19910 # Only process if variable expands to non-empty 19911 19912 if test "x$FOUND_MAKE" != x; then 19913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19914 19915 # First separate the path from the arguments. This will split at the first 19916 # space. 19917 complete="$FOUND_MAKE" 19918 path="${complete%% *}" 19919 tmp="$complete EOL" 19920 arguments="${tmp#* }" 19921 19922 # Input might be given as Windows format, start by converting to 19923 # unix format. 19924 new_path=`$CYGPATH -u "$path"` 19925 19926 # Now try to locate executable using which 19927 new_path=`$WHICH "$new_path" 2> /dev/null` 19928 # bat and cmd files are not always considered executable in cygwin causing which 19929 # to not find them 19930 if test "x$new_path" = x \ 19931 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19932 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19933 new_path=`$CYGPATH -u "$path"` 19934 fi 19935 if test "x$new_path" = x; then 19936 # Oops. Which didn't find the executable. 19937 # The splitting of arguments from the executable at a space might have been incorrect, 19938 # since paths with space are more likely in Windows. Give it another try with the whole 19939 # argument. 19940 path="$complete" 19941 arguments="EOL" 19942 new_path=`$CYGPATH -u "$path"` 19943 new_path=`$WHICH "$new_path" 2> /dev/null` 19944 # bat and cmd files are not always considered executable in cygwin causing which 19945 # to not find them 19946 if test "x$new_path" = x \ 19947 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19948 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19949 new_path=`$CYGPATH -u "$path"` 19950 fi 19951 if test "x$new_path" = x; then 19952 # It's still not found. Now this is an unrecoverable error. 19953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19954 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19955 has_space=`$ECHO "$complete" | $GREP " "` 19956 if test "x$has_space" != x; then 19957 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19958 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19959 fi 19960 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19961 fi 19962 fi 19963 19964 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19965 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19966 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19967 # "foo.exe" is OK but "foo" is an error. 19968 # 19969 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19970 # It is also a way to make sure we got the proper file name for the real test later on. 19971 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19972 if test "x$test_shortpath" = x; then 19973 # Short path failed, file does not exist as specified. 19974 # Try adding .exe or .cmd 19975 if test -f "${new_path}.exe"; then 19976 input_to_shortpath="${new_path}.exe" 19977 elif test -f "${new_path}.cmd"; then 19978 input_to_shortpath="${new_path}.cmd" 19979 else 19980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19981 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19982 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19983 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19984 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19985 fi 19986 else 19987 input_to_shortpath="$new_path" 19988 fi 19989 19990 # Call helper function which possibly converts this using DOS-style short mode. 19991 # If so, the updated path is stored in $new_path. 19992 new_path="$input_to_shortpath" 19993 19994 input_path="$input_to_shortpath" 19995 # Check if we need to convert this using DOS-style short mode. If the path 19996 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19997 # take no chances and rewrite it. 19998 # Note: m4 eats our [], so we need to use [ and ] instead. 19999 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20000 if test "x$has_forbidden_chars" != x; then 20001 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20002 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20003 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20004 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20005 # Going to short mode and back again did indeed matter. Since short mode is 20006 # case insensitive, let's make it lowercase to improve readability. 20007 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20008 # Now convert it back to Unix-style (cygpath) 20009 input_path=`$CYGPATH -u "$shortmode_path"` 20010 new_path="$input_path" 20011 fi 20012 fi 20013 20014 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20015 if test "x$test_cygdrive_prefix" = x; then 20016 # As a simple fix, exclude /usr/bin since it's not a real path. 20017 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20018 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20019 # a path prefixed by /cygdrive for fixpath to work. 20020 new_path="$CYGWIN_ROOT_PATH$input_path" 20021 fi 20022 fi 20023 20024 # remove trailing .exe if any 20025 new_path="${new_path/%.exe/}" 20026 20027 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20028 20029 # First separate the path from the arguments. This will split at the first 20030 # space. 20031 complete="$FOUND_MAKE" 20032 path="${complete%% *}" 20033 tmp="$complete EOL" 20034 arguments="${tmp#* }" 20035 20036 # Input might be given as Windows format, start by converting to 20037 # unix format. 20038 new_path="$path" 20039 20040 windows_path="$new_path" 20041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20042 unix_path=`$CYGPATH -u "$windows_path"` 20043 new_path="$unix_path" 20044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20045 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20046 new_path="$unix_path" 20047 fi 20048 20049 20050 # Now try to locate executable using which 20051 new_path=`$WHICH "$new_path" 2> /dev/null` 20052 20053 if test "x$new_path" = x; then 20054 # Oops. Which didn't find the executable. 20055 # The splitting of arguments from the executable at a space might have been incorrect, 20056 # since paths with space are more likely in Windows. Give it another try with the whole 20057 # argument. 20058 path="$complete" 20059 arguments="EOL" 20060 new_path="$path" 20061 20062 windows_path="$new_path" 20063 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20064 unix_path=`$CYGPATH -u "$windows_path"` 20065 new_path="$unix_path" 20066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20067 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20068 new_path="$unix_path" 20069 fi 20070 20071 20072 new_path=`$WHICH "$new_path" 2> /dev/null` 20073 # bat and cmd files are not always considered executable in MSYS causing which 20074 # to not find them 20075 if test "x$new_path" = x \ 20076 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20077 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20078 new_path="$path" 20079 20080 windows_path="$new_path" 20081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20082 unix_path=`$CYGPATH -u "$windows_path"` 20083 new_path="$unix_path" 20084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20086 new_path="$unix_path" 20087 fi 20088 20089 fi 20090 20091 if test "x$new_path" = x; then 20092 # It's still not found. Now this is an unrecoverable error. 20093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20094 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20095 has_space=`$ECHO "$complete" | $GREP " "` 20096 if test "x$has_space" != x; then 20097 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20098 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20099 fi 20100 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20101 fi 20102 fi 20103 20104 # Now new_path has a complete unix path to the binary 20105 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20106 # Keep paths in /bin as-is, but remove trailing .exe if any 20107 new_path="${new_path/%.exe/}" 20108 # Do not save /bin paths to all_fixpath_prefixes! 20109 else 20110 # Not in mixed or Windows style, start by that. 20111 new_path=`cmd //c echo $new_path` 20112 20113 input_path="$new_path" 20114 # Check if we need to convert this using DOS-style short mode. If the path 20115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20116 # take no chances and rewrite it. 20117 # Note: m4 eats our [], so we need to use [ and ] instead. 20118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20119 if test "x$has_forbidden_chars" != x; then 20120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20121 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20122 fi 20123 20124 # Output is in $new_path 20125 20126 windows_path="$new_path" 20127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20128 unix_path=`$CYGPATH -u "$windows_path"` 20129 new_path="$unix_path" 20130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20132 new_path="$unix_path" 20133 fi 20134 20135 # remove trailing .exe if any 20136 new_path="${new_path/%.exe/}" 20137 20138 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20139 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20140 fi 20141 20142 else 20143 # We're on a unix platform. Hooray! :) 20144 # First separate the path from the arguments. This will split at the first 20145 # space. 20146 complete="$FOUND_MAKE" 20147 path="${complete%% *}" 20148 tmp="$complete EOL" 20149 arguments="${tmp#* }" 20150 20151 # Cannot rely on the command "which" here since it doesn't always work. 20152 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20153 if test -z "$is_absolute_path"; then 20154 # Path to executable is not absolute. Find it. 20155 IFS_save="$IFS" 20156 IFS=: 20157 for p in $PATH; do 20158 if test -f "$p/$path" && test -x "$p/$path"; then 20159 new_path="$p/$path" 20160 break 20161 fi 20162 done 20163 IFS="$IFS_save" 20164 else 20165 # This is an absolute path, we can use it without further modifications. 20166 new_path="$path" 20167 fi 20168 20169 if test "x$new_path" = x; then 20170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20171 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20172 has_space=`$ECHO "$complete" | $GREP " "` 20173 if test "x$has_space" != x; then 20174 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20175 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20176 fi 20177 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20178 fi 20179 fi 20180 20181 # Now join together the path and the arguments once again 20182 if test "x$arguments" != xEOL; then 20183 new_complete="$new_path ${arguments% *}" 20184 else 20185 new_complete="$new_path" 20186 fi 20187 20188 if test "x$complete" != "x$new_complete"; then 20189 FOUND_MAKE="$new_complete" 20190 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20191 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20192 fi 20193 fi 20194 20195 fi 20196 fi 20197 fi 20198 fi 20199 20200 fi 20201 PATH=$OLD_PATH 20202 fi 20203 fi 20204 20205 if test "x$FOUND_MAKE" = x; then 20206 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 20207 fi 20208 20209 else 20210 # If it succeeded, then it was overridden by the user. We will use it 20211 # for the tool. 20212 20213 # First remove it from the list of overridden variables, so we can test 20214 # for unknown variables in the end. 20215 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20216 20217 # Check if we try to supply an empty value 20218 if test "x$MAKE" = x; then 20219 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 20220 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20222 $as_echo_n "checking for MAKE... " >&6; } 20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20224 $as_echo "disabled" >&6; } 20225 else 20226 # Check if the provided tool contains a complete path. 20227 tool_specified="$MAKE" 20228 tool_basename="${tool_specified##*/}" 20229 if test "x$tool_basename" = "x$tool_specified"; then 20230 # A command without a complete path is provided, search $PATH. 20231 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 20232 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 20233 # Extract the first word of "$tool_basename", so it can be a program name with args. 20234 set dummy $tool_basename; ac_word=$2 20235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20236 $as_echo_n "checking for $ac_word... " >&6; } 20237 if ${ac_cv_path_MAKE+:} false; then : 20238 $as_echo_n "(cached) " >&6 20239 else 20240 case $MAKE in 20241 [\\/]* | ?:[\\/]*) 20242 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 20243 ;; 20244 *) 20245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20246 for as_dir in $PATH 20247 do 20248 IFS=$as_save_IFS 20249 test -z "$as_dir" && as_dir=. 20250 for ac_exec_ext in '' $ac_executable_extensions; do 20251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20252 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 20253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20254 break 2 20255 fi 20256 done 20257 done 20258 IFS=$as_save_IFS 20259 20260 ;; 20261 esac 20262 fi 20263 MAKE=$ac_cv_path_MAKE 20264 if test -n "$MAKE"; then 20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 20266 $as_echo "$MAKE" >&6; } 20267 else 20268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20269 $as_echo "no" >&6; } 20270 fi 20271 20272 20273 if test "x$MAKE" = x; then 20274 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20275 fi 20276 else 20277 # Otherwise we believe it is a complete path. Use it as it is. 20278 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 20279 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20281 $as_echo_n "checking for MAKE... " >&6; } 20282 if test ! -x "$tool_specified"; then 20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20284 $as_echo "not found" >&6; } 20285 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 20286 fi 20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20288 $as_echo "$tool_specified" >&6; } 20289 fi 20290 fi 20291 fi 20292 20293 # If MAKE was set by user, verify the version 20294 20295 MAKE_CANDIDATE=""$MAKE"" 20296 DESCRIPTION="user supplied MAKE=$MAKE" 20297 20298 # On Cygwin, we require a newer version of make than on other platforms 20299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20300 MAKE_VERSION_EXPR="-e 4\." 20301 MAKE_REQUIRED_VERSION="4.0" 20302 else 20303 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20304 MAKE_REQUIRED_VERSION="3.81" 20305 fi 20306 20307 if test "x$MAKE_CANDIDATE" != x; then 20308 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20309 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20310 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20311 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20312 if test "x$IS_GNU_MAKE" = x; then 20313 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20314 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20315 else 20316 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20317 if test "x$IS_MODERN_MAKE" = x; then 20318 { $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 20319 $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;} 20320 else 20321 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20323 MAKE_EXPECTED_ENV='cygwin' 20324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20325 MAKE_EXPECTED_ENV='msys' 20326 else 20327 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20328 fi 20329 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20330 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20331 else 20332 # Not relevant for non-Windows 20333 IS_MAKE_CORRECT_ENV=true 20334 fi 20335 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20336 { $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 20337 $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;} 20338 else 20339 FOUND_MAKE=$MAKE_CANDIDATE 20340 20341 # Only process if variable expands to non-empty 20342 20343 if test "x$FOUND_MAKE" != x; then 20344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20345 20346 # First separate the path from the arguments. This will split at the first 20347 # space. 20348 complete="$FOUND_MAKE" 20349 path="${complete%% *}" 20350 tmp="$complete EOL" 20351 arguments="${tmp#* }" 20352 20353 # Input might be given as Windows format, start by converting to 20354 # unix format. 20355 new_path=`$CYGPATH -u "$path"` 20356 20357 # Now try to locate executable using which 20358 new_path=`$WHICH "$new_path" 2> /dev/null` 20359 # bat and cmd files are not always considered executable in cygwin causing which 20360 # to not find them 20361 if test "x$new_path" = x \ 20362 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20363 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20364 new_path=`$CYGPATH -u "$path"` 20365 fi 20366 if test "x$new_path" = x; then 20367 # Oops. Which didn't find the executable. 20368 # The splitting of arguments from the executable at a space might have been incorrect, 20369 # since paths with space are more likely in Windows. Give it another try with the whole 20370 # argument. 20371 path="$complete" 20372 arguments="EOL" 20373 new_path=`$CYGPATH -u "$path"` 20374 new_path=`$WHICH "$new_path" 2> /dev/null` 20375 # bat and cmd files are not always considered executable in cygwin causing which 20376 # to not find them 20377 if test "x$new_path" = x \ 20378 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20379 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20380 new_path=`$CYGPATH -u "$path"` 20381 fi 20382 if test "x$new_path" = x; then 20383 # It's still not found. Now this is an unrecoverable error. 20384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20385 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20386 has_space=`$ECHO "$complete" | $GREP " "` 20387 if test "x$has_space" != x; then 20388 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20389 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20390 fi 20391 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20392 fi 20393 fi 20394 20395 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20396 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20397 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20398 # "foo.exe" is OK but "foo" is an error. 20399 # 20400 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20401 # It is also a way to make sure we got the proper file name for the real test later on. 20402 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20403 if test "x$test_shortpath" = x; then 20404 # Short path failed, file does not exist as specified. 20405 # Try adding .exe or .cmd 20406 if test -f "${new_path}.exe"; then 20407 input_to_shortpath="${new_path}.exe" 20408 elif test -f "${new_path}.cmd"; then 20409 input_to_shortpath="${new_path}.cmd" 20410 else 20411 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20412 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20413 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20414 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20415 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20416 fi 20417 else 20418 input_to_shortpath="$new_path" 20419 fi 20420 20421 # Call helper function which possibly converts this using DOS-style short mode. 20422 # If so, the updated path is stored in $new_path. 20423 new_path="$input_to_shortpath" 20424 20425 input_path="$input_to_shortpath" 20426 # Check if we need to convert this using DOS-style short mode. If the path 20427 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20428 # take no chances and rewrite it. 20429 # Note: m4 eats our [], so we need to use [ and ] instead. 20430 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20431 if test "x$has_forbidden_chars" != x; then 20432 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20433 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20434 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20435 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20436 # Going to short mode and back again did indeed matter. Since short mode is 20437 # case insensitive, let's make it lowercase to improve readability. 20438 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20439 # Now convert it back to Unix-style (cygpath) 20440 input_path=`$CYGPATH -u "$shortmode_path"` 20441 new_path="$input_path" 20442 fi 20443 fi 20444 20445 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20446 if test "x$test_cygdrive_prefix" = x; then 20447 # As a simple fix, exclude /usr/bin since it's not a real path. 20448 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20449 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20450 # a path prefixed by /cygdrive for fixpath to work. 20451 new_path="$CYGWIN_ROOT_PATH$input_path" 20452 fi 20453 fi 20454 20455 # remove trailing .exe if any 20456 new_path="${new_path/%.exe/}" 20457 20458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20459 20460 # First separate the path from the arguments. This will split at the first 20461 # space. 20462 complete="$FOUND_MAKE" 20463 path="${complete%% *}" 20464 tmp="$complete EOL" 20465 arguments="${tmp#* }" 20466 20467 # Input might be given as Windows format, start by converting to 20468 # unix format. 20469 new_path="$path" 20470 20471 windows_path="$new_path" 20472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20473 unix_path=`$CYGPATH -u "$windows_path"` 20474 new_path="$unix_path" 20475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20477 new_path="$unix_path" 20478 fi 20479 20480 20481 # Now try to locate executable using which 20482 new_path=`$WHICH "$new_path" 2> /dev/null` 20483 20484 if test "x$new_path" = x; then 20485 # Oops. Which didn't find the executable. 20486 # The splitting of arguments from the executable at a space might have been incorrect, 20487 # since paths with space are more likely in Windows. Give it another try with the whole 20488 # argument. 20489 path="$complete" 20490 arguments="EOL" 20491 new_path="$path" 20492 20493 windows_path="$new_path" 20494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20495 unix_path=`$CYGPATH -u "$windows_path"` 20496 new_path="$unix_path" 20497 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20498 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20499 new_path="$unix_path" 20500 fi 20501 20502 20503 new_path=`$WHICH "$new_path" 2> /dev/null` 20504 # bat and cmd files are not always considered executable in MSYS causing which 20505 # to not find them 20506 if test "x$new_path" = x \ 20507 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20508 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20509 new_path="$path" 20510 20511 windows_path="$new_path" 20512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20513 unix_path=`$CYGPATH -u "$windows_path"` 20514 new_path="$unix_path" 20515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20517 new_path="$unix_path" 20518 fi 20519 20520 fi 20521 20522 if test "x$new_path" = x; then 20523 # It's still not found. Now this is an unrecoverable error. 20524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20525 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20526 has_space=`$ECHO "$complete" | $GREP " "` 20527 if test "x$has_space" != x; then 20528 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20529 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20530 fi 20531 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20532 fi 20533 fi 20534 20535 # Now new_path has a complete unix path to the binary 20536 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20537 # Keep paths in /bin as-is, but remove trailing .exe if any 20538 new_path="${new_path/%.exe/}" 20539 # Do not save /bin paths to all_fixpath_prefixes! 20540 else 20541 # Not in mixed or Windows style, start by that. 20542 new_path=`cmd //c echo $new_path` 20543 20544 input_path="$new_path" 20545 # Check if we need to convert this using DOS-style short mode. If the path 20546 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20547 # take no chances and rewrite it. 20548 # Note: m4 eats our [], so we need to use [ and ] instead. 20549 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20550 if test "x$has_forbidden_chars" != x; then 20551 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20552 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20553 fi 20554 20555 # Output is in $new_path 20556 20557 windows_path="$new_path" 20558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20559 unix_path=`$CYGPATH -u "$windows_path"` 20560 new_path="$unix_path" 20561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20563 new_path="$unix_path" 20564 fi 20565 20566 # remove trailing .exe if any 20567 new_path="${new_path/%.exe/}" 20568 20569 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20570 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20571 fi 20572 20573 else 20574 # We're on a unix platform. Hooray! :) 20575 # First separate the path from the arguments. This will split at the first 20576 # space. 20577 complete="$FOUND_MAKE" 20578 path="${complete%% *}" 20579 tmp="$complete EOL" 20580 arguments="${tmp#* }" 20581 20582 # Cannot rely on the command "which" here since it doesn't always work. 20583 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20584 if test -z "$is_absolute_path"; then 20585 # Path to executable is not absolute. Find it. 20586 IFS_save="$IFS" 20587 IFS=: 20588 for p in $PATH; do 20589 if test -f "$p/$path" && test -x "$p/$path"; then 20590 new_path="$p/$path" 20591 break 20592 fi 20593 done 20594 IFS="$IFS_save" 20595 else 20596 # This is an absolute path, we can use it without further modifications. 20597 new_path="$path" 20598 fi 20599 20600 if test "x$new_path" = x; then 20601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20602 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20603 has_space=`$ECHO "$complete" | $GREP " "` 20604 if test "x$has_space" != x; then 20605 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20606 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20607 fi 20608 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20609 fi 20610 fi 20611 20612 # Now join together the path and the arguments once again 20613 if test "x$arguments" != xEOL; then 20614 new_complete="$new_path ${arguments% *}" 20615 else 20616 new_complete="$new_path" 20617 fi 20618 20619 if test "x$complete" != "x$new_complete"; then 20620 FOUND_MAKE="$new_complete" 20621 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20622 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20623 fi 20624 fi 20625 20626 fi 20627 fi 20628 fi 20629 fi 20630 20631 if test "x$FOUND_MAKE" = x; then 20632 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 20633 fi 20634 20635 fi 20636 20637 20638 MAKE=$FOUND_MAKE 20639 20640 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 20641 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 20642 20643 20644 # Check if make supports the output sync option and if so, setup using it. 20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 20646 $as_echo_n "checking if make --output-sync is supported... " >&6; } 20647 if $MAKE --version -O > /dev/null 2>&1; then 20648 OUTPUT_SYNC_SUPPORTED=true 20649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20650 $as_echo "yes" >&6; } 20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 20652 $as_echo_n "checking for output-sync value... " >&6; } 20653 20654 # Check whether --with-output-sync was given. 20655 if test "${with_output_sync+set}" = set; then : 20656 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 20657 fi 20658 20659 if test "x$OUTPUT_SYNC" = "x"; then 20660 OUTPUT_SYNC=none 20661 fi 20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 20663 $as_echo "$OUTPUT_SYNC" >&6; } 20664 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 20665 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 20666 fi 20667 else 20668 OUTPUT_SYNC_SUPPORTED=false 20669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20670 $as_echo "no" >&6; } 20671 fi 20672 20673 20674 20675 20676 20677 20678 # Test if find supports -delete 20679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 20680 $as_echo_n "checking if find supports -delete... " >&6; } 20681 FIND_DELETE="-delete" 20682 20683 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 20684 20685 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 20686 20687 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 20688 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 20689 # No, it does not. 20690 rm $DELETEDIR/TestIfFindSupportsDelete 20691 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 20692 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 20693 FIND_DELETE="-print | xargs rm" 20694 else 20695 FIND_DELETE="-exec rm \{\} \+" 20696 fi 20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20698 $as_echo "no" >&6; } 20699 else 20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20701 $as_echo "yes" >&6; } 20702 fi 20703 rmdir $DELETEDIR 20704 20705 20706 20707 # These tools might not be installed by default, 20708 # need hint on how to install them. 20709 20710 20711 20712 # Publish this variable in the help. 20713 20714 20715 if [ -z "${UNZIP+x}" ]; then 20716 # The variable is not set by user, try to locate tool using the code snippet 20717 for ac_prog in unzip 20718 do 20719 # Extract the first word of "$ac_prog", so it can be a program name with args. 20720 set dummy $ac_prog; ac_word=$2 20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20722 $as_echo_n "checking for $ac_word... " >&6; } 20723 if ${ac_cv_path_UNZIP+:} false; then : 20724 $as_echo_n "(cached) " >&6 20725 else 20726 case $UNZIP in 20727 [\\/]* | ?:[\\/]*) 20728 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 20729 ;; 20730 *) 20731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20732 for as_dir in $PATH 20733 do 20734 IFS=$as_save_IFS 20735 test -z "$as_dir" && as_dir=. 20736 for ac_exec_ext in '' $ac_executable_extensions; do 20737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20738 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 20739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20740 break 2 20741 fi 20742 done 20743 done 20744 IFS=$as_save_IFS 20745 20746 ;; 20747 esac 20748 fi 20749 UNZIP=$ac_cv_path_UNZIP 20750 if test -n "$UNZIP"; then 20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 20752 $as_echo "$UNZIP" >&6; } 20753 else 20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20755 $as_echo "no" >&6; } 20756 fi 20757 20758 20759 test -n "$UNZIP" && break 20760 done 20761 20762 else 20763 # The variable is set, but is it from the command line or the environment? 20764 20765 # Try to remove the string !UNZIP! from our list. 20766 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 20767 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20768 # If it failed, the variable was not from the command line. Ignore it, 20769 # but warn the user (except for BASH, which is always set by the calling BASH). 20770 if test "xUNZIP" != xBASH; then 20771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 20772 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 20773 fi 20774 # Try to locate tool using the code snippet 20775 for ac_prog in unzip 20776 do 20777 # Extract the first word of "$ac_prog", so it can be a program name with args. 20778 set dummy $ac_prog; ac_word=$2 20779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20780 $as_echo_n "checking for $ac_word... " >&6; } 20781 if ${ac_cv_path_UNZIP+:} false; then : 20782 $as_echo_n "(cached) " >&6 20783 else 20784 case $UNZIP in 20785 [\\/]* | ?:[\\/]*) 20786 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 20787 ;; 20788 *) 20789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20790 for as_dir in $PATH 20791 do 20792 IFS=$as_save_IFS 20793 test -z "$as_dir" && as_dir=. 20794 for ac_exec_ext in '' $ac_executable_extensions; do 20795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20796 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 20797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20798 break 2 20799 fi 20800 done 20801 done 20802 IFS=$as_save_IFS 20803 20804 ;; 20805 esac 20806 fi 20807 UNZIP=$ac_cv_path_UNZIP 20808 if test -n "$UNZIP"; then 20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 20810 $as_echo "$UNZIP" >&6; } 20811 else 20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20813 $as_echo "no" >&6; } 20814 fi 20815 20816 20817 test -n "$UNZIP" && break 20818 done 20819 20820 else 20821 # If it succeeded, then it was overridden by the user. We will use it 20822 # for the tool. 20823 20824 # First remove it from the list of overridden variables, so we can test 20825 # for unknown variables in the end. 20826 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20827 20828 # Check if we try to supply an empty value 20829 if test "x$UNZIP" = x; then 20830 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 20831 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 20833 $as_echo_n "checking for UNZIP... " >&6; } 20834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20835 $as_echo "disabled" >&6; } 20836 else 20837 # Check if the provided tool contains a complete path. 20838 tool_specified="$UNZIP" 20839 tool_basename="${tool_specified##*/}" 20840 if test "x$tool_basename" = "x$tool_specified"; then 20841 # A command without a complete path is provided, search $PATH. 20842 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 20843 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 20844 # Extract the first word of "$tool_basename", so it can be a program name with args. 20845 set dummy $tool_basename; ac_word=$2 20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20847 $as_echo_n "checking for $ac_word... " >&6; } 20848 if ${ac_cv_path_UNZIP+:} false; then : 20849 $as_echo_n "(cached) " >&6 20850 else 20851 case $UNZIP in 20852 [\\/]* | ?:[\\/]*) 20853 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 20854 ;; 20855 *) 20856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20857 for as_dir in $PATH 20858 do 20859 IFS=$as_save_IFS 20860 test -z "$as_dir" && as_dir=. 20861 for ac_exec_ext in '' $ac_executable_extensions; do 20862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20863 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 20864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20865 break 2 20866 fi 20867 done 20868 done 20869 IFS=$as_save_IFS 20870 20871 ;; 20872 esac 20873 fi 20874 UNZIP=$ac_cv_path_UNZIP 20875 if test -n "$UNZIP"; then 20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 20877 $as_echo "$UNZIP" >&6; } 20878 else 20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20880 $as_echo "no" >&6; } 20881 fi 20882 20883 20884 if test "x$UNZIP" = x; then 20885 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20886 fi 20887 else 20888 # Otherwise we believe it is a complete path. Use it as it is. 20889 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 20890 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 20891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 20892 $as_echo_n "checking for UNZIP... " >&6; } 20893 if test ! -x "$tool_specified"; then 20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20895 $as_echo "not found" >&6; } 20896 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 20897 fi 20898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20899 $as_echo "$tool_specified" >&6; } 20900 fi 20901 fi 20902 fi 20903 20904 fi 20905 20906 20907 20908 if test "x$UNZIP" = x; then 20909 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 20910 fi 20911 20912 20913 20914 20915 20916 # Publish this variable in the help. 20917 20918 20919 if [ -z "${ZIP+x}" ]; then 20920 # The variable is not set by user, try to locate tool using the code snippet 20921 for ac_prog in zip 20922 do 20923 # Extract the first word of "$ac_prog", so it can be a program name with args. 20924 set dummy $ac_prog; ac_word=$2 20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20926 $as_echo_n "checking for $ac_word... " >&6; } 20927 if ${ac_cv_path_ZIP+:} false; then : 20928 $as_echo_n "(cached) " >&6 20929 else 20930 case $ZIP in 20931 [\\/]* | ?:[\\/]*) 20932 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 20933 ;; 20934 *) 20935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20936 for as_dir in $PATH 20937 do 20938 IFS=$as_save_IFS 20939 test -z "$as_dir" && as_dir=. 20940 for ac_exec_ext in '' $ac_executable_extensions; do 20941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20942 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 20943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20944 break 2 20945 fi 20946 done 20947 done 20948 IFS=$as_save_IFS 20949 20950 ;; 20951 esac 20952 fi 20953 ZIP=$ac_cv_path_ZIP 20954 if test -n "$ZIP"; then 20955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 20956 $as_echo "$ZIP" >&6; } 20957 else 20958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20959 $as_echo "no" >&6; } 20960 fi 20961 20962 20963 test -n "$ZIP" && break 20964 done 20965 20966 else 20967 # The variable is set, but is it from the command line or the environment? 20968 20969 # Try to remove the string !ZIP! from our list. 20970 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 20971 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20972 # If it failed, the variable was not from the command line. Ignore it, 20973 # but warn the user (except for BASH, which is always set by the calling BASH). 20974 if test "xZIP" != xBASH; then 20975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 20976 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 20977 fi 20978 # Try to locate tool using the code snippet 20979 for ac_prog in zip 20980 do 20981 # Extract the first word of "$ac_prog", so it can be a program name with args. 20982 set dummy $ac_prog; ac_word=$2 20983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20984 $as_echo_n "checking for $ac_word... " >&6; } 20985 if ${ac_cv_path_ZIP+:} false; then : 20986 $as_echo_n "(cached) " >&6 20987 else 20988 case $ZIP in 20989 [\\/]* | ?:[\\/]*) 20990 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 20991 ;; 20992 *) 20993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20994 for as_dir in $PATH 20995 do 20996 IFS=$as_save_IFS 20997 test -z "$as_dir" && as_dir=. 20998 for ac_exec_ext in '' $ac_executable_extensions; do 20999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21000 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21002 break 2 21003 fi 21004 done 21005 done 21006 IFS=$as_save_IFS 21007 21008 ;; 21009 esac 21010 fi 21011 ZIP=$ac_cv_path_ZIP 21012 if test -n "$ZIP"; then 21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21014 $as_echo "$ZIP" >&6; } 21015 else 21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21017 $as_echo "no" >&6; } 21018 fi 21019 21020 21021 test -n "$ZIP" && break 21022 done 21023 21024 else 21025 # If it succeeded, then it was overridden by the user. We will use it 21026 # for the tool. 21027 21028 # First remove it from the list of overridden variables, so we can test 21029 # for unknown variables in the end. 21030 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21031 21032 # Check if we try to supply an empty value 21033 if test "x$ZIP" = x; then 21034 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5 21035 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;} 21036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 21037 $as_echo_n "checking for ZIP... " >&6; } 21038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21039 $as_echo "disabled" >&6; } 21040 else 21041 # Check if the provided tool contains a complete path. 21042 tool_specified="$ZIP" 21043 tool_basename="${tool_specified##*/}" 21044 if test "x$tool_basename" = "x$tool_specified"; then 21045 # A command without a complete path is provided, search $PATH. 21046 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 21047 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 21048 # Extract the first word of "$tool_basename", so it can be a program name with args. 21049 set dummy $tool_basename; ac_word=$2 21050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21051 $as_echo_n "checking for $ac_word... " >&6; } 21052 if ${ac_cv_path_ZIP+:} false; then : 21053 $as_echo_n "(cached) " >&6 21054 else 21055 case $ZIP in 21056 [\\/]* | ?:[\\/]*) 21057 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 21058 ;; 21059 *) 21060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21061 for as_dir in $PATH 21062 do 21063 IFS=$as_save_IFS 21064 test -z "$as_dir" && as_dir=. 21065 for ac_exec_ext in '' $ac_executable_extensions; do 21066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21067 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 21068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21069 break 2 21070 fi 21071 done 21072 done 21073 IFS=$as_save_IFS 21074 21075 ;; 21076 esac 21077 fi 21078 ZIP=$ac_cv_path_ZIP 21079 if test -n "$ZIP"; then 21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 21081 $as_echo "$ZIP" >&6; } 21082 else 21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21084 $as_echo "no" >&6; } 21085 fi 21086 21087 21088 if test "x$ZIP" = x; then 21089 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21090 fi 21091 else 21092 # Otherwise we believe it is a complete path. Use it as it is. 21093 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 21094 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 21096 $as_echo_n "checking for ZIP... " >&6; } 21097 if test ! -x "$tool_specified"; then 21098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21099 $as_echo "not found" >&6; } 21100 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21101 fi 21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21103 $as_echo "$tool_specified" >&6; } 21104 fi 21105 fi 21106 fi 21107 21108 fi 21109 21110 21111 21112 if test "x$ZIP" = x; then 21113 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 21114 fi 21115 21116 21117 21118 # Non-required basic tools 21119 21120 21121 21122 # Publish this variable in the help. 21123 21124 21125 if [ -z "${LDD+x}" ]; then 21126 # The variable is not set by user, try to locate tool using the code snippet 21127 for ac_prog in ldd 21128 do 21129 # Extract the first word of "$ac_prog", so it can be a program name with args. 21130 set dummy $ac_prog; ac_word=$2 21131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21132 $as_echo_n "checking for $ac_word... " >&6; } 21133 if ${ac_cv_path_LDD+:} false; then : 21134 $as_echo_n "(cached) " >&6 21135 else 21136 case $LDD in 21137 [\\/]* | ?:[\\/]*) 21138 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21139 ;; 21140 *) 21141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21142 for as_dir in $PATH 21143 do 21144 IFS=$as_save_IFS 21145 test -z "$as_dir" && as_dir=. 21146 for ac_exec_ext in '' $ac_executable_extensions; do 21147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21148 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21150 break 2 21151 fi 21152 done 21153 done 21154 IFS=$as_save_IFS 21155 21156 ;; 21157 esac 21158 fi 21159 LDD=$ac_cv_path_LDD 21160 if test -n "$LDD"; then 21161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21162 $as_echo "$LDD" >&6; } 21163 else 21164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21165 $as_echo "no" >&6; } 21166 fi 21167 21168 21169 test -n "$LDD" && break 21170 done 21171 21172 else 21173 # The variable is set, but is it from the command line or the environment? 21174 21175 # Try to remove the string !LDD! from our list. 21176 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 21177 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21178 # If it failed, the variable was not from the command line. Ignore it, 21179 # but warn the user (except for BASH, which is always set by the calling BASH). 21180 if test "xLDD" != xBASH; then 21181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 21182 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 21183 fi 21184 # Try to locate tool using the code snippet 21185 for ac_prog in ldd 21186 do 21187 # Extract the first word of "$ac_prog", so it can be a program name with args. 21188 set dummy $ac_prog; ac_word=$2 21189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21190 $as_echo_n "checking for $ac_word... " >&6; } 21191 if ${ac_cv_path_LDD+:} false; then : 21192 $as_echo_n "(cached) " >&6 21193 else 21194 case $LDD in 21195 [\\/]* | ?:[\\/]*) 21196 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21197 ;; 21198 *) 21199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21200 for as_dir in $PATH 21201 do 21202 IFS=$as_save_IFS 21203 test -z "$as_dir" && as_dir=. 21204 for ac_exec_ext in '' $ac_executable_extensions; do 21205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21206 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21208 break 2 21209 fi 21210 done 21211 done 21212 IFS=$as_save_IFS 21213 21214 ;; 21215 esac 21216 fi 21217 LDD=$ac_cv_path_LDD 21218 if test -n "$LDD"; then 21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21220 $as_echo "$LDD" >&6; } 21221 else 21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21223 $as_echo "no" >&6; } 21224 fi 21225 21226 21227 test -n "$LDD" && break 21228 done 21229 21230 else 21231 # If it succeeded, then it was overridden by the user. We will use it 21232 # for the tool. 21233 21234 # First remove it from the list of overridden variables, so we can test 21235 # for unknown variables in the end. 21236 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21237 21238 # Check if we try to supply an empty value 21239 if test "x$LDD" = x; then 21240 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 21241 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21243 $as_echo_n "checking for LDD... " >&6; } 21244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21245 $as_echo "disabled" >&6; } 21246 else 21247 # Check if the provided tool contains a complete path. 21248 tool_specified="$LDD" 21249 tool_basename="${tool_specified##*/}" 21250 if test "x$tool_basename" = "x$tool_specified"; then 21251 # A command without a complete path is provided, search $PATH. 21252 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 21253 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 21254 # Extract the first word of "$tool_basename", so it can be a program name with args. 21255 set dummy $tool_basename; ac_word=$2 21256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21257 $as_echo_n "checking for $ac_word... " >&6; } 21258 if ${ac_cv_path_LDD+:} false; then : 21259 $as_echo_n "(cached) " >&6 21260 else 21261 case $LDD in 21262 [\\/]* | ?:[\\/]*) 21263 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21264 ;; 21265 *) 21266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21267 for as_dir in $PATH 21268 do 21269 IFS=$as_save_IFS 21270 test -z "$as_dir" && as_dir=. 21271 for ac_exec_ext in '' $ac_executable_extensions; do 21272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21273 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21275 break 2 21276 fi 21277 done 21278 done 21279 IFS=$as_save_IFS 21280 21281 ;; 21282 esac 21283 fi 21284 LDD=$ac_cv_path_LDD 21285 if test -n "$LDD"; then 21286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21287 $as_echo "$LDD" >&6; } 21288 else 21289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21290 $as_echo "no" >&6; } 21291 fi 21292 21293 21294 if test "x$LDD" = x; then 21295 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21296 fi 21297 else 21298 # Otherwise we believe it is a complete path. Use it as it is. 21299 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 21300 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 21301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 21302 $as_echo_n "checking for LDD... " >&6; } 21303 if test ! -x "$tool_specified"; then 21304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21305 $as_echo "not found" >&6; } 21306 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 21307 fi 21308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21309 $as_echo "$tool_specified" >&6; } 21310 fi 21311 fi 21312 fi 21313 21314 fi 21315 21316 21317 if test "x$LDD" = "x"; then 21318 # List shared lib dependencies is used for 21319 # debug output and checking for forbidden dependencies. 21320 # We can build without it. 21321 LDD="true" 21322 fi 21323 21324 21325 # Publish this variable in the help. 21326 21327 21328 if [ -z "${OTOOL+x}" ]; then 21329 # The variable is not set by user, try to locate tool using the code snippet 21330 for ac_prog in otool 21331 do 21332 # Extract the first word of "$ac_prog", so it can be a program name with args. 21333 set dummy $ac_prog; ac_word=$2 21334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21335 $as_echo_n "checking for $ac_word... " >&6; } 21336 if ${ac_cv_path_OTOOL+:} false; then : 21337 $as_echo_n "(cached) " >&6 21338 else 21339 case $OTOOL in 21340 [\\/]* | ?:[\\/]*) 21341 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21342 ;; 21343 *) 21344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21345 for as_dir in $PATH 21346 do 21347 IFS=$as_save_IFS 21348 test -z "$as_dir" && as_dir=. 21349 for ac_exec_ext in '' $ac_executable_extensions; do 21350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21351 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21353 break 2 21354 fi 21355 done 21356 done 21357 IFS=$as_save_IFS 21358 21359 ;; 21360 esac 21361 fi 21362 OTOOL=$ac_cv_path_OTOOL 21363 if test -n "$OTOOL"; then 21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21365 $as_echo "$OTOOL" >&6; } 21366 else 21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21368 $as_echo "no" >&6; } 21369 fi 21370 21371 21372 test -n "$OTOOL" && break 21373 done 21374 21375 else 21376 # The variable is set, but is it from the command line or the environment? 21377 21378 # Try to remove the string !OTOOL! from our list. 21379 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 21380 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21381 # If it failed, the variable was not from the command line. Ignore it, 21382 # but warn the user (except for BASH, which is always set by the calling BASH). 21383 if test "xOTOOL" != xBASH; then 21384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 21385 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 21386 fi 21387 # Try to locate tool using the code snippet 21388 for ac_prog in otool 21389 do 21390 # Extract the first word of "$ac_prog", so it can be a program name with args. 21391 set dummy $ac_prog; ac_word=$2 21392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21393 $as_echo_n "checking for $ac_word... " >&6; } 21394 if ${ac_cv_path_OTOOL+:} false; then : 21395 $as_echo_n "(cached) " >&6 21396 else 21397 case $OTOOL in 21398 [\\/]* | ?:[\\/]*) 21399 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21400 ;; 21401 *) 21402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21403 for as_dir in $PATH 21404 do 21405 IFS=$as_save_IFS 21406 test -z "$as_dir" && as_dir=. 21407 for ac_exec_ext in '' $ac_executable_extensions; do 21408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21409 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21411 break 2 21412 fi 21413 done 21414 done 21415 IFS=$as_save_IFS 21416 21417 ;; 21418 esac 21419 fi 21420 OTOOL=$ac_cv_path_OTOOL 21421 if test -n "$OTOOL"; then 21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21423 $as_echo "$OTOOL" >&6; } 21424 else 21425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21426 $as_echo "no" >&6; } 21427 fi 21428 21429 21430 test -n "$OTOOL" && break 21431 done 21432 21433 else 21434 # If it succeeded, then it was overridden by the user. We will use it 21435 # for the tool. 21436 21437 # First remove it from the list of overridden variables, so we can test 21438 # for unknown variables in the end. 21439 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21440 21441 # Check if we try to supply an empty value 21442 if test "x$OTOOL" = x; then 21443 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 21444 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21446 $as_echo_n "checking for OTOOL... " >&6; } 21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21448 $as_echo "disabled" >&6; } 21449 else 21450 # Check if the provided tool contains a complete path. 21451 tool_specified="$OTOOL" 21452 tool_basename="${tool_specified##*/}" 21453 if test "x$tool_basename" = "x$tool_specified"; then 21454 # A command without a complete path is provided, search $PATH. 21455 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 21456 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 21457 # Extract the first word of "$tool_basename", so it can be a program name with args. 21458 set dummy $tool_basename; ac_word=$2 21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21460 $as_echo_n "checking for $ac_word... " >&6; } 21461 if ${ac_cv_path_OTOOL+:} false; then : 21462 $as_echo_n "(cached) " >&6 21463 else 21464 case $OTOOL in 21465 [\\/]* | ?:[\\/]*) 21466 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 21467 ;; 21468 *) 21469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21470 for as_dir in $PATH 21471 do 21472 IFS=$as_save_IFS 21473 test -z "$as_dir" && as_dir=. 21474 for ac_exec_ext in '' $ac_executable_extensions; do 21475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21476 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 21477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21478 break 2 21479 fi 21480 done 21481 done 21482 IFS=$as_save_IFS 21483 21484 ;; 21485 esac 21486 fi 21487 OTOOL=$ac_cv_path_OTOOL 21488 if test -n "$OTOOL"; then 21489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 21490 $as_echo "$OTOOL" >&6; } 21491 else 21492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21493 $as_echo "no" >&6; } 21494 fi 21495 21496 21497 if test "x$OTOOL" = x; then 21498 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21499 fi 21500 else 21501 # Otherwise we believe it is a complete path. Use it as it is. 21502 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 21503 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 21504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 21505 $as_echo_n "checking for OTOOL... " >&6; } 21506 if test ! -x "$tool_specified"; then 21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21508 $as_echo "not found" >&6; } 21509 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 21510 fi 21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21512 $as_echo "$tool_specified" >&6; } 21513 fi 21514 fi 21515 fi 21516 21517 fi 21518 21519 21520 if test "x$OTOOL" = "x"; then 21521 OTOOL="true" 21522 fi 21523 21524 21525 # Publish this variable in the help. 21526 21527 21528 if [ -z "${READELF+x}" ]; then 21529 # The variable is not set by user, try to locate tool using the code snippet 21530 for ac_prog in greadelf readelf 21531 do 21532 # Extract the first word of "$ac_prog", so it can be a program name with args. 21533 set dummy $ac_prog; ac_word=$2 21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21535 $as_echo_n "checking for $ac_word... " >&6; } 21536 if ${ac_cv_path_READELF+:} false; then : 21537 $as_echo_n "(cached) " >&6 21538 else 21539 case $READELF in 21540 [\\/]* | ?:[\\/]*) 21541 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 21542 ;; 21543 *) 21544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21545 for as_dir in $PATH 21546 do 21547 IFS=$as_save_IFS 21548 test -z "$as_dir" && as_dir=. 21549 for ac_exec_ext in '' $ac_executable_extensions; do 21550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21551 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 21552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21553 break 2 21554 fi 21555 done 21556 done 21557 IFS=$as_save_IFS 21558 21559 ;; 21560 esac 21561 fi 21562 READELF=$ac_cv_path_READELF 21563 if test -n "$READELF"; then 21564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 21565 $as_echo "$READELF" >&6; } 21566 else 21567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21568 $as_echo "no" >&6; } 21569 fi 21570 21571 21572 test -n "$READELF" && break 21573 done 21574 21575 else 21576 # The variable is set, but is it from the command line or the environment? 21577 21578 # Try to remove the string !READELF! from our list. 21579 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 21580 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21581 # If it failed, the variable was not from the command line. Ignore it, 21582 # but warn the user (except for BASH, which is always set by the calling BASH). 21583 if test "xREADELF" != xBASH; then 21584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 21585 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 21586 fi 21587 # Try to locate tool using the code snippet 21588 for ac_prog in greadelf readelf 21589 do 21590 # Extract the first word of "$ac_prog", so it can be a program name with args. 21591 set dummy $ac_prog; ac_word=$2 21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21593 $as_echo_n "checking for $ac_word... " >&6; } 21594 if ${ac_cv_path_READELF+:} false; then : 21595 $as_echo_n "(cached) " >&6 21596 else 21597 case $READELF in 21598 [\\/]* | ?:[\\/]*) 21599 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 21600 ;; 21601 *) 21602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21603 for as_dir in $PATH 21604 do 21605 IFS=$as_save_IFS 21606 test -z "$as_dir" && as_dir=. 21607 for ac_exec_ext in '' $ac_executable_extensions; do 21608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21609 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 21610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21611 break 2 21612 fi 21613 done 21614 done 21615 IFS=$as_save_IFS 21616 21617 ;; 21618 esac 21619 fi 21620 READELF=$ac_cv_path_READELF 21621 if test -n "$READELF"; then 21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 21623 $as_echo "$READELF" >&6; } 21624 else 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21626 $as_echo "no" >&6; } 21627 fi 21628 21629 21630 test -n "$READELF" && break 21631 done 21632 21633 else 21634 # If it succeeded, then it was overridden by the user. We will use it 21635 # for the tool. 21636 21637 # First remove it from the list of overridden variables, so we can test 21638 # for unknown variables in the end. 21639 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21640 21641 # Check if we try to supply an empty value 21642 if test "x$READELF" = x; then 21643 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 21644 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 21645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 21646 $as_echo_n "checking for READELF... " >&6; } 21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21648 $as_echo "disabled" >&6; } 21649 else 21650 # Check if the provided tool contains a complete path. 21651 tool_specified="$READELF" 21652 tool_basename="${tool_specified##*/}" 21653 if test "x$tool_basename" = "x$tool_specified"; then 21654 # A command without a complete path is provided, search $PATH. 21655 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 21656 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 21657 # Extract the first word of "$tool_basename", so it can be a program name with args. 21658 set dummy $tool_basename; ac_word=$2 21659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21660 $as_echo_n "checking for $ac_word... " >&6; } 21661 if ${ac_cv_path_READELF+:} false; then : 21662 $as_echo_n "(cached) " >&6 21663 else 21664 case $READELF in 21665 [\\/]* | ?:[\\/]*) 21666 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 21667 ;; 21668 *) 21669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21670 for as_dir in $PATH 21671 do 21672 IFS=$as_save_IFS 21673 test -z "$as_dir" && as_dir=. 21674 for ac_exec_ext in '' $ac_executable_extensions; do 21675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21676 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 21677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21678 break 2 21679 fi 21680 done 21681 done 21682 IFS=$as_save_IFS 21683 21684 ;; 21685 esac 21686 fi 21687 READELF=$ac_cv_path_READELF 21688 if test -n "$READELF"; then 21689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 21690 $as_echo "$READELF" >&6; } 21691 else 21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21693 $as_echo "no" >&6; } 21694 fi 21695 21696 21697 if test "x$READELF" = x; then 21698 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21699 fi 21700 else 21701 # Otherwise we believe it is a complete path. Use it as it is. 21702 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 21703 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 21705 $as_echo_n "checking for READELF... " >&6; } 21706 if test ! -x "$tool_specified"; then 21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21708 $as_echo "not found" >&6; } 21709 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 21710 fi 21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21712 $as_echo "$tool_specified" >&6; } 21713 fi 21714 fi 21715 fi 21716 21717 fi 21718 21719 21720 21721 21722 # Publish this variable in the help. 21723 21724 21725 if [ -z "${HG+x}" ]; then 21726 # The variable is not set by user, try to locate tool using the code snippet 21727 for ac_prog in hg 21728 do 21729 # Extract the first word of "$ac_prog", so it can be a program name with args. 21730 set dummy $ac_prog; ac_word=$2 21731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21732 $as_echo_n "checking for $ac_word... " >&6; } 21733 if ${ac_cv_path_HG+:} false; then : 21734 $as_echo_n "(cached) " >&6 21735 else 21736 case $HG in 21737 [\\/]* | ?:[\\/]*) 21738 ac_cv_path_HG="$HG" # Let the user override the test with a path. 21739 ;; 21740 *) 21741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21742 for as_dir in $PATH 21743 do 21744 IFS=$as_save_IFS 21745 test -z "$as_dir" && as_dir=. 21746 for ac_exec_ext in '' $ac_executable_extensions; do 21747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21748 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 21749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21750 break 2 21751 fi 21752 done 21753 done 21754 IFS=$as_save_IFS 21755 21756 ;; 21757 esac 21758 fi 21759 HG=$ac_cv_path_HG 21760 if test -n "$HG"; then 21761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 21762 $as_echo "$HG" >&6; } 21763 else 21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21765 $as_echo "no" >&6; } 21766 fi 21767 21768 21769 test -n "$HG" && break 21770 done 21771 21772 else 21773 # The variable is set, but is it from the command line or the environment? 21774 21775 # Try to remove the string !HG! from our list. 21776 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 21777 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21778 # If it failed, the variable was not from the command line. Ignore it, 21779 # but warn the user (except for BASH, which is always set by the calling BASH). 21780 if test "xHG" != xBASH; then 21781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 21782 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 21783 fi 21784 # Try to locate tool using the code snippet 21785 for ac_prog in hg 21786 do 21787 # Extract the first word of "$ac_prog", so it can be a program name with args. 21788 set dummy $ac_prog; ac_word=$2 21789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21790 $as_echo_n "checking for $ac_word... " >&6; } 21791 if ${ac_cv_path_HG+:} false; then : 21792 $as_echo_n "(cached) " >&6 21793 else 21794 case $HG in 21795 [\\/]* | ?:[\\/]*) 21796 ac_cv_path_HG="$HG" # Let the user override the test with a path. 21797 ;; 21798 *) 21799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21800 for as_dir in $PATH 21801 do 21802 IFS=$as_save_IFS 21803 test -z "$as_dir" && as_dir=. 21804 for ac_exec_ext in '' $ac_executable_extensions; do 21805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21806 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 21807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21808 break 2 21809 fi 21810 done 21811 done 21812 IFS=$as_save_IFS 21813 21814 ;; 21815 esac 21816 fi 21817 HG=$ac_cv_path_HG 21818 if test -n "$HG"; then 21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 21820 $as_echo "$HG" >&6; } 21821 else 21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21823 $as_echo "no" >&6; } 21824 fi 21825 21826 21827 test -n "$HG" && break 21828 done 21829 21830 else 21831 # If it succeeded, then it was overridden by the user. We will use it 21832 # for the tool. 21833 21834 # First remove it from the list of overridden variables, so we can test 21835 # for unknown variables in the end. 21836 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21837 21838 # Check if we try to supply an empty value 21839 if test "x$HG" = x; then 21840 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 21841 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 21842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 21843 $as_echo_n "checking for HG... " >&6; } 21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21845 $as_echo "disabled" >&6; } 21846 else 21847 # Check if the provided tool contains a complete path. 21848 tool_specified="$HG" 21849 tool_basename="${tool_specified##*/}" 21850 if test "x$tool_basename" = "x$tool_specified"; then 21851 # A command without a complete path is provided, search $PATH. 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 21853 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 21854 # Extract the first word of "$tool_basename", so it can be a program name with args. 21855 set dummy $tool_basename; ac_word=$2 21856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21857 $as_echo_n "checking for $ac_word... " >&6; } 21858 if ${ac_cv_path_HG+:} false; then : 21859 $as_echo_n "(cached) " >&6 21860 else 21861 case $HG in 21862 [\\/]* | ?:[\\/]*) 21863 ac_cv_path_HG="$HG" # Let the user override the test with a path. 21864 ;; 21865 *) 21866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21867 for as_dir in $PATH 21868 do 21869 IFS=$as_save_IFS 21870 test -z "$as_dir" && as_dir=. 21871 for ac_exec_ext in '' $ac_executable_extensions; do 21872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21873 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 21874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21875 break 2 21876 fi 21877 done 21878 done 21879 IFS=$as_save_IFS 21880 21881 ;; 21882 esac 21883 fi 21884 HG=$ac_cv_path_HG 21885 if test -n "$HG"; then 21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 21887 $as_echo "$HG" >&6; } 21888 else 21889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21890 $as_echo "no" >&6; } 21891 fi 21892 21893 21894 if test "x$HG" = x; then 21895 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21896 fi 21897 else 21898 # Otherwise we believe it is a complete path. Use it as it is. 21899 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 21900 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 21902 $as_echo_n "checking for HG... " >&6; } 21903 if test ! -x "$tool_specified"; then 21904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21905 $as_echo "not found" >&6; } 21906 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 21907 fi 21908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21909 $as_echo "$tool_specified" >&6; } 21910 fi 21911 fi 21912 fi 21913 21914 fi 21915 21916 21917 21918 21919 # Publish this variable in the help. 21920 21921 21922 if [ -z "${STAT+x}" ]; then 21923 # The variable is not set by user, try to locate tool using the code snippet 21924 for ac_prog in stat 21925 do 21926 # Extract the first word of "$ac_prog", so it can be a program name with args. 21927 set dummy $ac_prog; ac_word=$2 21928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21929 $as_echo_n "checking for $ac_word... " >&6; } 21930 if ${ac_cv_path_STAT+:} false; then : 21931 $as_echo_n "(cached) " >&6 21932 else 21933 case $STAT in 21934 [\\/]* | ?:[\\/]*) 21935 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 21936 ;; 21937 *) 21938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21939 for as_dir in $PATH 21940 do 21941 IFS=$as_save_IFS 21942 test -z "$as_dir" && as_dir=. 21943 for ac_exec_ext in '' $ac_executable_extensions; do 21944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21945 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 21946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21947 break 2 21948 fi 21949 done 21950 done 21951 IFS=$as_save_IFS 21952 21953 ;; 21954 esac 21955 fi 21956 STAT=$ac_cv_path_STAT 21957 if test -n "$STAT"; then 21958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 21959 $as_echo "$STAT" >&6; } 21960 else 21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21962 $as_echo "no" >&6; } 21963 fi 21964 21965 21966 test -n "$STAT" && break 21967 done 21968 21969 else 21970 # The variable is set, but is it from the command line or the environment? 21971 21972 # Try to remove the string !STAT! from our list. 21973 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 21974 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21975 # If it failed, the variable was not from the command line. Ignore it, 21976 # but warn the user (except for BASH, which is always set by the calling BASH). 21977 if test "xSTAT" != xBASH; then 21978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 21979 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 21980 fi 21981 # Try to locate tool using the code snippet 21982 for ac_prog in stat 21983 do 21984 # Extract the first word of "$ac_prog", so it can be a program name with args. 21985 set dummy $ac_prog; ac_word=$2 21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21987 $as_echo_n "checking for $ac_word... " >&6; } 21988 if ${ac_cv_path_STAT+:} false; then : 21989 $as_echo_n "(cached) " >&6 21990 else 21991 case $STAT in 21992 [\\/]* | ?:[\\/]*) 21993 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 21994 ;; 21995 *) 21996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21997 for as_dir in $PATH 21998 do 21999 IFS=$as_save_IFS 22000 test -z "$as_dir" && as_dir=. 22001 for ac_exec_ext in '' $ac_executable_extensions; do 22002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22003 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22005 break 2 22006 fi 22007 done 22008 done 22009 IFS=$as_save_IFS 22010 22011 ;; 22012 esac 22013 fi 22014 STAT=$ac_cv_path_STAT 22015 if test -n "$STAT"; then 22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22017 $as_echo "$STAT" >&6; } 22018 else 22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22020 $as_echo "no" >&6; } 22021 fi 22022 22023 22024 test -n "$STAT" && break 22025 done 22026 22027 else 22028 # If it succeeded, then it was overridden by the user. We will use it 22029 # for the tool. 22030 22031 # First remove it from the list of overridden variables, so we can test 22032 # for unknown variables in the end. 22033 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22034 22035 # Check if we try to supply an empty value 22036 if test "x$STAT" = x; then 22037 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 22038 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22040 $as_echo_n "checking for STAT... " >&6; } 22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22042 $as_echo "disabled" >&6; } 22043 else 22044 # Check if the provided tool contains a complete path. 22045 tool_specified="$STAT" 22046 tool_basename="${tool_specified##*/}" 22047 if test "x$tool_basename" = "x$tool_specified"; then 22048 # A command without a complete path is provided, search $PATH. 22049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 22050 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 22051 # Extract the first word of "$tool_basename", so it can be a program name with args. 22052 set dummy $tool_basename; ac_word=$2 22053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22054 $as_echo_n "checking for $ac_word... " >&6; } 22055 if ${ac_cv_path_STAT+:} false; then : 22056 $as_echo_n "(cached) " >&6 22057 else 22058 case $STAT in 22059 [\\/]* | ?:[\\/]*) 22060 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22061 ;; 22062 *) 22063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22064 for as_dir in $PATH 22065 do 22066 IFS=$as_save_IFS 22067 test -z "$as_dir" && as_dir=. 22068 for ac_exec_ext in '' $ac_executable_extensions; do 22069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22070 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22072 break 2 22073 fi 22074 done 22075 done 22076 IFS=$as_save_IFS 22077 22078 ;; 22079 esac 22080 fi 22081 STAT=$ac_cv_path_STAT 22082 if test -n "$STAT"; then 22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22084 $as_echo "$STAT" >&6; } 22085 else 22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22087 $as_echo "no" >&6; } 22088 fi 22089 22090 22091 if test "x$STAT" = x; then 22092 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22093 fi 22094 else 22095 # Otherwise we believe it is a complete path. Use it as it is. 22096 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 22097 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 22098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22099 $as_echo_n "checking for STAT... " >&6; } 22100 if test ! -x "$tool_specified"; then 22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22102 $as_echo "not found" >&6; } 22103 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 22104 fi 22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22106 $as_echo "$tool_specified" >&6; } 22107 fi 22108 fi 22109 fi 22110 22111 fi 22112 22113 22114 22115 22116 # Publish this variable in the help. 22117 22118 22119 if [ -z "${TIME+x}" ]; then 22120 # The variable is not set by user, try to locate tool using the code snippet 22121 for ac_prog in time 22122 do 22123 # Extract the first word of "$ac_prog", so it can be a program name with args. 22124 set dummy $ac_prog; ac_word=$2 22125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22126 $as_echo_n "checking for $ac_word... " >&6; } 22127 if ${ac_cv_path_TIME+:} false; then : 22128 $as_echo_n "(cached) " >&6 22129 else 22130 case $TIME in 22131 [\\/]* | ?:[\\/]*) 22132 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22133 ;; 22134 *) 22135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22136 for as_dir in $PATH 22137 do 22138 IFS=$as_save_IFS 22139 test -z "$as_dir" && as_dir=. 22140 for ac_exec_ext in '' $ac_executable_extensions; do 22141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22142 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22144 break 2 22145 fi 22146 done 22147 done 22148 IFS=$as_save_IFS 22149 22150 ;; 22151 esac 22152 fi 22153 TIME=$ac_cv_path_TIME 22154 if test -n "$TIME"; then 22155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22156 $as_echo "$TIME" >&6; } 22157 else 22158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22159 $as_echo "no" >&6; } 22160 fi 22161 22162 22163 test -n "$TIME" && break 22164 done 22165 22166 else 22167 # The variable is set, but is it from the command line or the environment? 22168 22169 # Try to remove the string !TIME! from our list. 22170 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 22171 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22172 # If it failed, the variable was not from the command line. Ignore it, 22173 # but warn the user (except for BASH, which is always set by the calling BASH). 22174 if test "xTIME" != xBASH; then 22175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 22176 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 22177 fi 22178 # Try to locate tool using the code snippet 22179 for ac_prog in time 22180 do 22181 # Extract the first word of "$ac_prog", so it can be a program name with args. 22182 set dummy $ac_prog; ac_word=$2 22183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22184 $as_echo_n "checking for $ac_word... " >&6; } 22185 if ${ac_cv_path_TIME+:} false; then : 22186 $as_echo_n "(cached) " >&6 22187 else 22188 case $TIME in 22189 [\\/]* | ?:[\\/]*) 22190 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22191 ;; 22192 *) 22193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22194 for as_dir in $PATH 22195 do 22196 IFS=$as_save_IFS 22197 test -z "$as_dir" && as_dir=. 22198 for ac_exec_ext in '' $ac_executable_extensions; do 22199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22200 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22202 break 2 22203 fi 22204 done 22205 done 22206 IFS=$as_save_IFS 22207 22208 ;; 22209 esac 22210 fi 22211 TIME=$ac_cv_path_TIME 22212 if test -n "$TIME"; then 22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22214 $as_echo "$TIME" >&6; } 22215 else 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22217 $as_echo "no" >&6; } 22218 fi 22219 22220 22221 test -n "$TIME" && break 22222 done 22223 22224 else 22225 # If it succeeded, then it was overridden by the user. We will use it 22226 # for the tool. 22227 22228 # First remove it from the list of overridden variables, so we can test 22229 # for unknown variables in the end. 22230 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22231 22232 # Check if we try to supply an empty value 22233 if test "x$TIME" = x; then 22234 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 22235 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22237 $as_echo_n "checking for TIME... " >&6; } 22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22239 $as_echo "disabled" >&6; } 22240 else 22241 # Check if the provided tool contains a complete path. 22242 tool_specified="$TIME" 22243 tool_basename="${tool_specified##*/}" 22244 if test "x$tool_basename" = "x$tool_specified"; then 22245 # A command without a complete path is provided, search $PATH. 22246 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 22247 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 22248 # Extract the first word of "$tool_basename", so it can be a program name with args. 22249 set dummy $tool_basename; ac_word=$2 22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22251 $as_echo_n "checking for $ac_word... " >&6; } 22252 if ${ac_cv_path_TIME+:} false; then : 22253 $as_echo_n "(cached) " >&6 22254 else 22255 case $TIME in 22256 [\\/]* | ?:[\\/]*) 22257 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22258 ;; 22259 *) 22260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22261 for as_dir in $PATH 22262 do 22263 IFS=$as_save_IFS 22264 test -z "$as_dir" && as_dir=. 22265 for ac_exec_ext in '' $ac_executable_extensions; do 22266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22267 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22269 break 2 22270 fi 22271 done 22272 done 22273 IFS=$as_save_IFS 22274 22275 ;; 22276 esac 22277 fi 22278 TIME=$ac_cv_path_TIME 22279 if test -n "$TIME"; then 22280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22281 $as_echo "$TIME" >&6; } 22282 else 22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22284 $as_echo "no" >&6; } 22285 fi 22286 22287 22288 if test "x$TIME" = x; then 22289 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22290 fi 22291 else 22292 # Otherwise we believe it is a complete path. Use it as it is. 22293 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 22294 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 22295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 22296 $as_echo_n "checking for TIME... " >&6; } 22297 if test ! -x "$tool_specified"; then 22298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22299 $as_echo "not found" >&6; } 22300 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 22301 fi 22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22303 $as_echo "$tool_specified" >&6; } 22304 fi 22305 fi 22306 fi 22307 22308 fi 22309 22310 22311 22312 22313 # Publish this variable in the help. 22314 22315 22316 if [ -z "${DTRACE+x}" ]; then 22317 # The variable is not set by user, try to locate tool using the code snippet 22318 for ac_prog in dtrace 22319 do 22320 # Extract the first word of "$ac_prog", so it can be a program name with args. 22321 set dummy $ac_prog; ac_word=$2 22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22323 $as_echo_n "checking for $ac_word... " >&6; } 22324 if ${ac_cv_path_DTRACE+:} false; then : 22325 $as_echo_n "(cached) " >&6 22326 else 22327 case $DTRACE in 22328 [\\/]* | ?:[\\/]*) 22329 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22330 ;; 22331 *) 22332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22333 for as_dir in $PATH 22334 do 22335 IFS=$as_save_IFS 22336 test -z "$as_dir" && as_dir=. 22337 for ac_exec_ext in '' $ac_executable_extensions; do 22338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22339 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22341 break 2 22342 fi 22343 done 22344 done 22345 IFS=$as_save_IFS 22346 22347 ;; 22348 esac 22349 fi 22350 DTRACE=$ac_cv_path_DTRACE 22351 if test -n "$DTRACE"; then 22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22353 $as_echo "$DTRACE" >&6; } 22354 else 22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22356 $as_echo "no" >&6; } 22357 fi 22358 22359 22360 test -n "$DTRACE" && break 22361 done 22362 22363 else 22364 # The variable is set, but is it from the command line or the environment? 22365 22366 # Try to remove the string !DTRACE! from our list. 22367 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 22368 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22369 # If it failed, the variable was not from the command line. Ignore it, 22370 # but warn the user (except for BASH, which is always set by the calling BASH). 22371 if test "xDTRACE" != xBASH; then 22372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 22373 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 22374 fi 22375 # Try to locate tool using the code snippet 22376 for ac_prog in dtrace 22377 do 22378 # Extract the first word of "$ac_prog", so it can be a program name with args. 22379 set dummy $ac_prog; ac_word=$2 22380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22381 $as_echo_n "checking for $ac_word... " >&6; } 22382 if ${ac_cv_path_DTRACE+:} false; then : 22383 $as_echo_n "(cached) " >&6 22384 else 22385 case $DTRACE in 22386 [\\/]* | ?:[\\/]*) 22387 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22388 ;; 22389 *) 22390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22391 for as_dir in $PATH 22392 do 22393 IFS=$as_save_IFS 22394 test -z "$as_dir" && as_dir=. 22395 for ac_exec_ext in '' $ac_executable_extensions; do 22396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22397 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22399 break 2 22400 fi 22401 done 22402 done 22403 IFS=$as_save_IFS 22404 22405 ;; 22406 esac 22407 fi 22408 DTRACE=$ac_cv_path_DTRACE 22409 if test -n "$DTRACE"; then 22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22411 $as_echo "$DTRACE" >&6; } 22412 else 22413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22414 $as_echo "no" >&6; } 22415 fi 22416 22417 22418 test -n "$DTRACE" && break 22419 done 22420 22421 else 22422 # If it succeeded, then it was overridden by the user. We will use it 22423 # for the tool. 22424 22425 # First remove it from the list of overridden variables, so we can test 22426 # for unknown variables in the end. 22427 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22428 22429 # Check if we try to supply an empty value 22430 if test "x$DTRACE" = x; then 22431 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 22432 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 22433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 22434 $as_echo_n "checking for DTRACE... " >&6; } 22435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22436 $as_echo "disabled" >&6; } 22437 else 22438 # Check if the provided tool contains a complete path. 22439 tool_specified="$DTRACE" 22440 tool_basename="${tool_specified##*/}" 22441 if test "x$tool_basename" = "x$tool_specified"; then 22442 # A command without a complete path is provided, search $PATH. 22443 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 22444 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 22445 # Extract the first word of "$tool_basename", so it can be a program name with args. 22446 set dummy $tool_basename; ac_word=$2 22447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22448 $as_echo_n "checking for $ac_word... " >&6; } 22449 if ${ac_cv_path_DTRACE+:} false; then : 22450 $as_echo_n "(cached) " >&6 22451 else 22452 case $DTRACE in 22453 [\\/]* | ?:[\\/]*) 22454 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 22455 ;; 22456 *) 22457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22458 for as_dir in $PATH 22459 do 22460 IFS=$as_save_IFS 22461 test -z "$as_dir" && as_dir=. 22462 for ac_exec_ext in '' $ac_executable_extensions; do 22463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22464 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 22465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22466 break 2 22467 fi 22468 done 22469 done 22470 IFS=$as_save_IFS 22471 22472 ;; 22473 esac 22474 fi 22475 DTRACE=$ac_cv_path_DTRACE 22476 if test -n "$DTRACE"; then 22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 22478 $as_echo "$DTRACE" >&6; } 22479 else 22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22481 $as_echo "no" >&6; } 22482 fi 22483 22484 22485 if test "x$DTRACE" = x; then 22486 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22487 fi 22488 else 22489 # Otherwise we believe it is a complete path. Use it as it is. 22490 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 22491 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 22492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 22493 $as_echo_n "checking for DTRACE... " >&6; } 22494 if test ! -x "$tool_specified"; then 22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22496 $as_echo "not found" >&6; } 22497 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 22498 fi 22499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22500 $as_echo "$tool_specified" >&6; } 22501 fi 22502 fi 22503 fi 22504 22505 fi 22506 22507 22508 22509 22510 # Publish this variable in the help. 22511 22512 22513 if [ -z "${PATCH+x}" ]; then 22514 # The variable is not set by user, try to locate tool using the code snippet 22515 for ac_prog in gpatch patch 22516 do 22517 # Extract the first word of "$ac_prog", so it can be a program name with args. 22518 set dummy $ac_prog; ac_word=$2 22519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22520 $as_echo_n "checking for $ac_word... " >&6; } 22521 if ${ac_cv_path_PATCH+:} false; then : 22522 $as_echo_n "(cached) " >&6 22523 else 22524 case $PATCH in 22525 [\\/]* | ?:[\\/]*) 22526 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 22527 ;; 22528 *) 22529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22530 for as_dir in $PATH 22531 do 22532 IFS=$as_save_IFS 22533 test -z "$as_dir" && as_dir=. 22534 for ac_exec_ext in '' $ac_executable_extensions; do 22535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22536 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 22537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22538 break 2 22539 fi 22540 done 22541 done 22542 IFS=$as_save_IFS 22543 22544 ;; 22545 esac 22546 fi 22547 PATCH=$ac_cv_path_PATCH 22548 if test -n "$PATCH"; then 22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 22550 $as_echo "$PATCH" >&6; } 22551 else 22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22553 $as_echo "no" >&6; } 22554 fi 22555 22556 22557 test -n "$PATCH" && break 22558 done 22559 22560 else 22561 # The variable is set, but is it from the command line or the environment? 22562 22563 # Try to remove the string !PATCH! from our list. 22564 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 22565 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22566 # If it failed, the variable was not from the command line. Ignore it, 22567 # but warn the user (except for BASH, which is always set by the calling BASH). 22568 if test "xPATCH" != xBASH; then 22569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 22570 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 22571 fi 22572 # Try to locate tool using the code snippet 22573 for ac_prog in gpatch patch 22574 do 22575 # Extract the first word of "$ac_prog", so it can be a program name with args. 22576 set dummy $ac_prog; ac_word=$2 22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22578 $as_echo_n "checking for $ac_word... " >&6; } 22579 if ${ac_cv_path_PATCH+:} false; then : 22580 $as_echo_n "(cached) " >&6 22581 else 22582 case $PATCH in 22583 [\\/]* | ?:[\\/]*) 22584 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 22585 ;; 22586 *) 22587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22588 for as_dir in $PATH 22589 do 22590 IFS=$as_save_IFS 22591 test -z "$as_dir" && as_dir=. 22592 for ac_exec_ext in '' $ac_executable_extensions; do 22593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22594 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 22595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22596 break 2 22597 fi 22598 done 22599 done 22600 IFS=$as_save_IFS 22601 22602 ;; 22603 esac 22604 fi 22605 PATCH=$ac_cv_path_PATCH 22606 if test -n "$PATCH"; then 22607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 22608 $as_echo "$PATCH" >&6; } 22609 else 22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22611 $as_echo "no" >&6; } 22612 fi 22613 22614 22615 test -n "$PATCH" && break 22616 done 22617 22618 else 22619 # If it succeeded, then it was overridden by the user. We will use it 22620 # for the tool. 22621 22622 # First remove it from the list of overridden variables, so we can test 22623 # for unknown variables in the end. 22624 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22625 22626 # Check if we try to supply an empty value 22627 if test "x$PATCH" = x; then 22628 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 22629 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 22631 $as_echo_n "checking for PATCH... " >&6; } 22632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22633 $as_echo "disabled" >&6; } 22634 else 22635 # Check if the provided tool contains a complete path. 22636 tool_specified="$PATCH" 22637 tool_basename="${tool_specified##*/}" 22638 if test "x$tool_basename" = "x$tool_specified"; then 22639 # A command without a complete path is provided, search $PATH. 22640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 22641 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 22642 # Extract the first word of "$tool_basename", so it can be a program name with args. 22643 set dummy $tool_basename; ac_word=$2 22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22645 $as_echo_n "checking for $ac_word... " >&6; } 22646 if ${ac_cv_path_PATCH+:} false; then : 22647 $as_echo_n "(cached) " >&6 22648 else 22649 case $PATCH in 22650 [\\/]* | ?:[\\/]*) 22651 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 22652 ;; 22653 *) 22654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22655 for as_dir in $PATH 22656 do 22657 IFS=$as_save_IFS 22658 test -z "$as_dir" && as_dir=. 22659 for ac_exec_ext in '' $ac_executable_extensions; do 22660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22661 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 22662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22663 break 2 22664 fi 22665 done 22666 done 22667 IFS=$as_save_IFS 22668 22669 ;; 22670 esac 22671 fi 22672 PATCH=$ac_cv_path_PATCH 22673 if test -n "$PATCH"; then 22674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 22675 $as_echo "$PATCH" >&6; } 22676 else 22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22678 $as_echo "no" >&6; } 22679 fi 22680 22681 22682 if test "x$PATCH" = x; then 22683 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22684 fi 22685 else 22686 # Otherwise we believe it is a complete path. Use it as it is. 22687 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 22688 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 22689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 22690 $as_echo_n "checking for PATCH... " >&6; } 22691 if test ! -x "$tool_specified"; then 22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22693 $as_echo "not found" >&6; } 22694 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 22695 fi 22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22697 $as_echo "$tool_specified" >&6; } 22698 fi 22699 fi 22700 fi 22701 22702 fi 22703 22704 22705 # Check if it's GNU time 22706 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 22707 if test "x$IS_GNU_TIME" != x; then 22708 IS_GNU_TIME=yes 22709 else 22710 IS_GNU_TIME=no 22711 fi 22712 22713 22714 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 22715 22716 22717 22718 # Publish this variable in the help. 22719 22720 22721 if [ -z "${DSYMUTIL+x}" ]; then 22722 # The variable is not set by user, try to locate tool using the code snippet 22723 for ac_prog in dsymutil 22724 do 22725 # Extract the first word of "$ac_prog", so it can be a program name with args. 22726 set dummy $ac_prog; ac_word=$2 22727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22728 $as_echo_n "checking for $ac_word... " >&6; } 22729 if ${ac_cv_path_DSYMUTIL+:} false; then : 22730 $as_echo_n "(cached) " >&6 22731 else 22732 case $DSYMUTIL in 22733 [\\/]* | ?:[\\/]*) 22734 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 22735 ;; 22736 *) 22737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22738 for as_dir in $PATH 22739 do 22740 IFS=$as_save_IFS 22741 test -z "$as_dir" && as_dir=. 22742 for ac_exec_ext in '' $ac_executable_extensions; do 22743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22744 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 22745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22746 break 2 22747 fi 22748 done 22749 done 22750 IFS=$as_save_IFS 22751 22752 ;; 22753 esac 22754 fi 22755 DSYMUTIL=$ac_cv_path_DSYMUTIL 22756 if test -n "$DSYMUTIL"; then 22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 22758 $as_echo "$DSYMUTIL" >&6; } 22759 else 22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22761 $as_echo "no" >&6; } 22762 fi 22763 22764 22765 test -n "$DSYMUTIL" && break 22766 done 22767 22768 else 22769 # The variable is set, but is it from the command line or the environment? 22770 22771 # Try to remove the string !DSYMUTIL! from our list. 22772 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 22773 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22774 # If it failed, the variable was not from the command line. Ignore it, 22775 # but warn the user (except for BASH, which is always set by the calling BASH). 22776 if test "xDSYMUTIL" != xBASH; then 22777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 22778 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 22779 fi 22780 # Try to locate tool using the code snippet 22781 for ac_prog in dsymutil 22782 do 22783 # Extract the first word of "$ac_prog", so it can be a program name with args. 22784 set dummy $ac_prog; ac_word=$2 22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22786 $as_echo_n "checking for $ac_word... " >&6; } 22787 if ${ac_cv_path_DSYMUTIL+:} false; then : 22788 $as_echo_n "(cached) " >&6 22789 else 22790 case $DSYMUTIL in 22791 [\\/]* | ?:[\\/]*) 22792 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 22793 ;; 22794 *) 22795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22796 for as_dir in $PATH 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_DSYMUTIL="$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 DSYMUTIL=$ac_cv_path_DSYMUTIL 22814 if test -n "$DSYMUTIL"; then 22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 22816 $as_echo "$DSYMUTIL" >&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 "$DSYMUTIL" && break 22824 done 22825 22826 else 22827 # If it succeeded, then it was overridden by the user. We will use it 22828 # for the tool. 22829 22830 # First remove it from the list of overridden variables, so we can test 22831 # for unknown variables in the end. 22832 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22833 22834 # Check if we try to supply an empty value 22835 if test "x$DSYMUTIL" = x; then 22836 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 22837 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 22838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 22839 $as_echo_n "checking for DSYMUTIL... " >&6; } 22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22841 $as_echo "disabled" >&6; } 22842 else 22843 # Check if the provided tool contains a complete path. 22844 tool_specified="$DSYMUTIL" 22845 tool_basename="${tool_specified##*/}" 22846 if test "x$tool_basename" = "x$tool_specified"; then 22847 # A command without a complete path is provided, search $PATH. 22848 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 22849 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 22850 # Extract the first word of "$tool_basename", so it can be a program name with args. 22851 set dummy $tool_basename; ac_word=$2 22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22853 $as_echo_n "checking for $ac_word... " >&6; } 22854 if ${ac_cv_path_DSYMUTIL+:} false; then : 22855 $as_echo_n "(cached) " >&6 22856 else 22857 case $DSYMUTIL in 22858 [\\/]* | ?:[\\/]*) 22859 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 22860 ;; 22861 *) 22862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22863 for as_dir in $PATH 22864 do 22865 IFS=$as_save_IFS 22866 test -z "$as_dir" && as_dir=. 22867 for ac_exec_ext in '' $ac_executable_extensions; do 22868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22869 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 22870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22871 break 2 22872 fi 22873 done 22874 done 22875 IFS=$as_save_IFS 22876 22877 ;; 22878 esac 22879 fi 22880 DSYMUTIL=$ac_cv_path_DSYMUTIL 22881 if test -n "$DSYMUTIL"; then 22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 22883 $as_echo "$DSYMUTIL" >&6; } 22884 else 22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22886 $as_echo "no" >&6; } 22887 fi 22888 22889 22890 if test "x$DSYMUTIL" = x; then 22891 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22892 fi 22893 else 22894 # Otherwise we believe it is a complete path. Use it as it is. 22895 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 22896 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 22898 $as_echo_n "checking for DSYMUTIL... " >&6; } 22899 if test ! -x "$tool_specified"; then 22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22901 $as_echo "not found" >&6; } 22902 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 22903 fi 22904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22905 $as_echo "$tool_specified" >&6; } 22906 fi 22907 fi 22908 fi 22909 22910 fi 22911 22912 22913 22914 if test "x$DSYMUTIL" = x; then 22915 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 22916 fi 22917 22918 22919 22920 22921 22922 # Publish this variable in the help. 22923 22924 22925 if [ -z "${XATTR+x}" ]; then 22926 # The variable is not set by user, try to locate tool using the code snippet 22927 for ac_prog in xattr 22928 do 22929 # Extract the first word of "$ac_prog", so it can be a program name with args. 22930 set dummy $ac_prog; ac_word=$2 22931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22932 $as_echo_n "checking for $ac_word... " >&6; } 22933 if ${ac_cv_path_XATTR+:} false; then : 22934 $as_echo_n "(cached) " >&6 22935 else 22936 case $XATTR in 22937 [\\/]* | ?:[\\/]*) 22938 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 22939 ;; 22940 *) 22941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22942 for as_dir in $PATH 22943 do 22944 IFS=$as_save_IFS 22945 test -z "$as_dir" && as_dir=. 22946 for ac_exec_ext in '' $ac_executable_extensions; do 22947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22948 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 22949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22950 break 2 22951 fi 22952 done 22953 done 22954 IFS=$as_save_IFS 22955 22956 ;; 22957 esac 22958 fi 22959 XATTR=$ac_cv_path_XATTR 22960 if test -n "$XATTR"; then 22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 22962 $as_echo "$XATTR" >&6; } 22963 else 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22965 $as_echo "no" >&6; } 22966 fi 22967 22968 22969 test -n "$XATTR" && break 22970 done 22971 22972 else 22973 # The variable is set, but is it from the command line or the environment? 22974 22975 # Try to remove the string !XATTR! from our list. 22976 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 22977 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22978 # If it failed, the variable was not from the command line. Ignore it, 22979 # but warn the user (except for BASH, which is always set by the calling BASH). 22980 if test "xXATTR" != xBASH; then 22981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 22982 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 22983 fi 22984 # Try to locate tool using the code snippet 22985 for ac_prog in xattr 22986 do 22987 # Extract the first word of "$ac_prog", so it can be a program name with args. 22988 set dummy $ac_prog; ac_word=$2 22989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22990 $as_echo_n "checking for $ac_word... " >&6; } 22991 if ${ac_cv_path_XATTR+:} false; then : 22992 $as_echo_n "(cached) " >&6 22993 else 22994 case $XATTR in 22995 [\\/]* | ?:[\\/]*) 22996 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 22997 ;; 22998 *) 22999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23000 for as_dir in $PATH 23001 do 23002 IFS=$as_save_IFS 23003 test -z "$as_dir" && as_dir=. 23004 for ac_exec_ext in '' $ac_executable_extensions; do 23005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23006 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23008 break 2 23009 fi 23010 done 23011 done 23012 IFS=$as_save_IFS 23013 23014 ;; 23015 esac 23016 fi 23017 XATTR=$ac_cv_path_XATTR 23018 if test -n "$XATTR"; then 23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23020 $as_echo "$XATTR" >&6; } 23021 else 23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23023 $as_echo "no" >&6; } 23024 fi 23025 23026 23027 test -n "$XATTR" && break 23028 done 23029 23030 else 23031 # If it succeeded, then it was overridden by the user. We will use it 23032 # for the tool. 23033 23034 # First remove it from the list of overridden variables, so we can test 23035 # for unknown variables in the end. 23036 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23037 23038 # Check if we try to supply an empty value 23039 if test "x$XATTR" = x; then 23040 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 23041 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 23042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23043 $as_echo_n "checking for XATTR... " >&6; } 23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23045 $as_echo "disabled" >&6; } 23046 else 23047 # Check if the provided tool contains a complete path. 23048 tool_specified="$XATTR" 23049 tool_basename="${tool_specified##*/}" 23050 if test "x$tool_basename" = "x$tool_specified"; then 23051 # A command without a complete path is provided, search $PATH. 23052 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 23053 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 23054 # Extract the first word of "$tool_basename", so it can be a program name with args. 23055 set dummy $tool_basename; ac_word=$2 23056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23057 $as_echo_n "checking for $ac_word... " >&6; } 23058 if ${ac_cv_path_XATTR+:} false; then : 23059 $as_echo_n "(cached) " >&6 23060 else 23061 case $XATTR in 23062 [\\/]* | ?:[\\/]*) 23063 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23064 ;; 23065 *) 23066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23067 for as_dir in $PATH 23068 do 23069 IFS=$as_save_IFS 23070 test -z "$as_dir" && as_dir=. 23071 for ac_exec_ext in '' $ac_executable_extensions; do 23072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23073 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23075 break 2 23076 fi 23077 done 23078 done 23079 IFS=$as_save_IFS 23080 23081 ;; 23082 esac 23083 fi 23084 XATTR=$ac_cv_path_XATTR 23085 if test -n "$XATTR"; then 23086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23087 $as_echo "$XATTR" >&6; } 23088 else 23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23090 $as_echo "no" >&6; } 23091 fi 23092 23093 23094 if test "x$XATTR" = x; then 23095 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23096 fi 23097 else 23098 # Otherwise we believe it is a complete path. Use it as it is. 23099 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 23100 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 23102 $as_echo_n "checking for XATTR... " >&6; } 23103 if test ! -x "$tool_specified"; then 23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23105 $as_echo "not found" >&6; } 23106 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 23107 fi 23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23109 $as_echo "$tool_specified" >&6; } 23110 fi 23111 fi 23112 fi 23113 23114 fi 23115 23116 23117 23118 if test "x$XATTR" = x; then 23119 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 23120 fi 23121 23122 23123 23124 23125 # Publish this variable in the help. 23126 23127 23128 if [ -z "${CODESIGN+x}" ]; then 23129 # The variable is not set by user, try to locate tool using the code snippet 23130 for ac_prog in codesign 23131 do 23132 # Extract the first word of "$ac_prog", so it can be a program name with args. 23133 set dummy $ac_prog; ac_word=$2 23134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23135 $as_echo_n "checking for $ac_word... " >&6; } 23136 if ${ac_cv_path_CODESIGN+:} false; then : 23137 $as_echo_n "(cached) " >&6 23138 else 23139 case $CODESIGN in 23140 [\\/]* | ?:[\\/]*) 23141 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23142 ;; 23143 *) 23144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23145 for as_dir in $PATH 23146 do 23147 IFS=$as_save_IFS 23148 test -z "$as_dir" && as_dir=. 23149 for ac_exec_ext in '' $ac_executable_extensions; do 23150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23151 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23153 break 2 23154 fi 23155 done 23156 done 23157 IFS=$as_save_IFS 23158 23159 ;; 23160 esac 23161 fi 23162 CODESIGN=$ac_cv_path_CODESIGN 23163 if test -n "$CODESIGN"; then 23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23165 $as_echo "$CODESIGN" >&6; } 23166 else 23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23168 $as_echo "no" >&6; } 23169 fi 23170 23171 23172 test -n "$CODESIGN" && break 23173 done 23174 23175 else 23176 # The variable is set, but is it from the command line or the environment? 23177 23178 # Try to remove the string !CODESIGN! from our list. 23179 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 23180 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23181 # If it failed, the variable was not from the command line. Ignore it, 23182 # but warn the user (except for BASH, which is always set by the calling BASH). 23183 if test "xCODESIGN" != xBASH; then 23184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 23185 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 23186 fi 23187 # Try to locate tool using the code snippet 23188 for ac_prog in codesign 23189 do 23190 # Extract the first word of "$ac_prog", so it can be a program name with args. 23191 set dummy $ac_prog; ac_word=$2 23192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23193 $as_echo_n "checking for $ac_word... " >&6; } 23194 if ${ac_cv_path_CODESIGN+:} false; then : 23195 $as_echo_n "(cached) " >&6 23196 else 23197 case $CODESIGN in 23198 [\\/]* | ?:[\\/]*) 23199 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23200 ;; 23201 *) 23202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23203 for as_dir in $PATH 23204 do 23205 IFS=$as_save_IFS 23206 test -z "$as_dir" && as_dir=. 23207 for ac_exec_ext in '' $ac_executable_extensions; do 23208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23209 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23211 break 2 23212 fi 23213 done 23214 done 23215 IFS=$as_save_IFS 23216 23217 ;; 23218 esac 23219 fi 23220 CODESIGN=$ac_cv_path_CODESIGN 23221 if test -n "$CODESIGN"; then 23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23223 $as_echo "$CODESIGN" >&6; } 23224 else 23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23226 $as_echo "no" >&6; } 23227 fi 23228 23229 23230 test -n "$CODESIGN" && break 23231 done 23232 23233 else 23234 # If it succeeded, then it was overridden by the user. We will use it 23235 # for the tool. 23236 23237 # First remove it from the list of overridden variables, so we can test 23238 # for unknown variables in the end. 23239 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23240 23241 # Check if we try to supply an empty value 23242 if test "x$CODESIGN" = x; then 23243 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 23244 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 23246 $as_echo_n "checking for CODESIGN... " >&6; } 23247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23248 $as_echo "disabled" >&6; } 23249 else 23250 # Check if the provided tool contains a complete path. 23251 tool_specified="$CODESIGN" 23252 tool_basename="${tool_specified##*/}" 23253 if test "x$tool_basename" = "x$tool_specified"; then 23254 # A command without a complete path is provided, search $PATH. 23255 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 23256 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 23257 # Extract the first word of "$tool_basename", so it can be a program name with args. 23258 set dummy $tool_basename; ac_word=$2 23259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23260 $as_echo_n "checking for $ac_word... " >&6; } 23261 if ${ac_cv_path_CODESIGN+:} false; then : 23262 $as_echo_n "(cached) " >&6 23263 else 23264 case $CODESIGN in 23265 [\\/]* | ?:[\\/]*) 23266 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 23267 ;; 23268 *) 23269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23270 for as_dir in $PATH 23271 do 23272 IFS=$as_save_IFS 23273 test -z "$as_dir" && as_dir=. 23274 for ac_exec_ext in '' $ac_executable_extensions; do 23275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23276 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 23277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23278 break 2 23279 fi 23280 done 23281 done 23282 IFS=$as_save_IFS 23283 23284 ;; 23285 esac 23286 fi 23287 CODESIGN=$ac_cv_path_CODESIGN 23288 if test -n "$CODESIGN"; then 23289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 23290 $as_echo "$CODESIGN" >&6; } 23291 else 23292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23293 $as_echo "no" >&6; } 23294 fi 23295 23296 23297 if test "x$CODESIGN" = x; then 23298 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23299 fi 23300 else 23301 # Otherwise we believe it is a complete path. Use it as it is. 23302 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 23303 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 23304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 23305 $as_echo_n "checking for CODESIGN... " >&6; } 23306 if test ! -x "$tool_specified"; then 23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23308 $as_echo "not found" >&6; } 23309 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 23310 fi 23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23312 $as_echo "$tool_specified" >&6; } 23313 fi 23314 fi 23315 fi 23316 23317 fi 23318 23319 23320 if test "x$CODESIGN" != "x"; then 23321 # Verify that the openjdk_codesign certificate is present 23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 23323 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 23324 rm -f codesign-testfile 23325 touch codesign-testfile 23326 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 23327 rm -f codesign-testfile 23328 if test "x$CODESIGN" = x; then 23329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23330 $as_echo "no" >&6; } 23331 else 23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23333 $as_echo "yes" >&6; } 23334 fi 23335 fi 23336 23337 23338 23339 # Publish this variable in the help. 23340 23341 23342 if [ -z "${SETFILE+x}" ]; then 23343 # The variable is not set by user, try to locate tool using the code snippet 23344 for ac_prog in SetFile 23345 do 23346 # Extract the first word of "$ac_prog", so it can be a program name with args. 23347 set dummy $ac_prog; ac_word=$2 23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23349 $as_echo_n "checking for $ac_word... " >&6; } 23350 if ${ac_cv_path_SETFILE+:} false; then : 23351 $as_echo_n "(cached) " >&6 23352 else 23353 case $SETFILE in 23354 [\\/]* | ?:[\\/]*) 23355 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23356 ;; 23357 *) 23358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23359 for as_dir in $PATH 23360 do 23361 IFS=$as_save_IFS 23362 test -z "$as_dir" && as_dir=. 23363 for ac_exec_ext in '' $ac_executable_extensions; do 23364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23365 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23367 break 2 23368 fi 23369 done 23370 done 23371 IFS=$as_save_IFS 23372 23373 ;; 23374 esac 23375 fi 23376 SETFILE=$ac_cv_path_SETFILE 23377 if test -n "$SETFILE"; then 23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23379 $as_echo "$SETFILE" >&6; } 23380 else 23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23382 $as_echo "no" >&6; } 23383 fi 23384 23385 23386 test -n "$SETFILE" && break 23387 done 23388 23389 else 23390 # The variable is set, but is it from the command line or the environment? 23391 23392 # Try to remove the string !SETFILE! from our list. 23393 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 23394 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23395 # If it failed, the variable was not from the command line. Ignore it, 23396 # but warn the user (except for BASH, which is always set by the calling BASH). 23397 if test "xSETFILE" != xBASH; then 23398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 23399 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 23400 fi 23401 # Try to locate tool using the code snippet 23402 for ac_prog in SetFile 23403 do 23404 # Extract the first word of "$ac_prog", so it can be a program name with args. 23405 set dummy $ac_prog; ac_word=$2 23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23407 $as_echo_n "checking for $ac_word... " >&6; } 23408 if ${ac_cv_path_SETFILE+:} false; then : 23409 $as_echo_n "(cached) " >&6 23410 else 23411 case $SETFILE in 23412 [\\/]* | ?:[\\/]*) 23413 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23414 ;; 23415 *) 23416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23417 for as_dir in $PATH 23418 do 23419 IFS=$as_save_IFS 23420 test -z "$as_dir" && as_dir=. 23421 for ac_exec_ext in '' $ac_executable_extensions; do 23422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23423 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23425 break 2 23426 fi 23427 done 23428 done 23429 IFS=$as_save_IFS 23430 23431 ;; 23432 esac 23433 fi 23434 SETFILE=$ac_cv_path_SETFILE 23435 if test -n "$SETFILE"; then 23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23437 $as_echo "$SETFILE" >&6; } 23438 else 23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23440 $as_echo "no" >&6; } 23441 fi 23442 23443 23444 test -n "$SETFILE" && break 23445 done 23446 23447 else 23448 # If it succeeded, then it was overridden by the user. We will use it 23449 # for the tool. 23450 23451 # First remove it from the list of overridden variables, so we can test 23452 # for unknown variables in the end. 23453 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23454 23455 # Check if we try to supply an empty value 23456 if test "x$SETFILE" = x; then 23457 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 23458 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 23459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 23460 $as_echo_n "checking for SETFILE... " >&6; } 23461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23462 $as_echo "disabled" >&6; } 23463 else 23464 # Check if the provided tool contains a complete path. 23465 tool_specified="$SETFILE" 23466 tool_basename="${tool_specified##*/}" 23467 if test "x$tool_basename" = "x$tool_specified"; then 23468 # A command without a complete path is provided, search $PATH. 23469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 23470 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 23471 # Extract the first word of "$tool_basename", so it can be a program name with args. 23472 set dummy $tool_basename; ac_word=$2 23473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23474 $as_echo_n "checking for $ac_word... " >&6; } 23475 if ${ac_cv_path_SETFILE+:} false; then : 23476 $as_echo_n "(cached) " >&6 23477 else 23478 case $SETFILE in 23479 [\\/]* | ?:[\\/]*) 23480 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 23481 ;; 23482 *) 23483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23484 for as_dir in $PATH 23485 do 23486 IFS=$as_save_IFS 23487 test -z "$as_dir" && as_dir=. 23488 for ac_exec_ext in '' $ac_executable_extensions; do 23489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23490 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 23491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23492 break 2 23493 fi 23494 done 23495 done 23496 IFS=$as_save_IFS 23497 23498 ;; 23499 esac 23500 fi 23501 SETFILE=$ac_cv_path_SETFILE 23502 if test -n "$SETFILE"; then 23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 23504 $as_echo "$SETFILE" >&6; } 23505 else 23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23507 $as_echo "no" >&6; } 23508 fi 23509 23510 23511 if test "x$SETFILE" = x; then 23512 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23513 fi 23514 else 23515 # Otherwise we believe it is a complete path. Use it as it is. 23516 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 23517 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 23519 $as_echo_n "checking for SETFILE... " >&6; } 23520 if test ! -x "$tool_specified"; then 23521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23522 $as_echo "not found" >&6; } 23523 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 23524 fi 23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23526 $as_echo "$tool_specified" >&6; } 23527 fi 23528 fi 23529 fi 23530 23531 fi 23532 23533 23534 23535 if test "x$SETFILE" = x; then 23536 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 23537 fi 23538 23539 23540 fi 23541 23542 23543 # Test if bash supports pipefail. 23544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 23545 $as_echo_n "checking if bash supports pipefail... " >&6; } 23546 if ${BASH} -c 'set -o pipefail'; then 23547 BASH_ARGS="$BASH_ARGS -o pipefail" 23548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23549 $as_echo "yes" >&6; } 23550 else 23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23552 $as_echo "no" >&6; } 23553 fi 23554 23555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 23556 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 23557 if ${BASH} -e -c 'true'; then 23558 BASH_ARGS="$BASH_ARGS -e" 23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23560 $as_echo "yes" >&6; } 23561 else 23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23563 $as_echo "no" >&6; } 23564 fi 23565 23566 23567 23568 23569 # Check if pkg-config is available. 23570 23571 23572 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 23573 if test -n "$ac_tool_prefix"; then 23574 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 23575 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23577 $as_echo_n "checking for $ac_word... " >&6; } 23578 if ${ac_cv_path_PKG_CONFIG+:} false; then : 23579 $as_echo_n "(cached) " >&6 23580 else 23581 case $PKG_CONFIG in 23582 [\\/]* | ?:[\\/]*) 23583 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 23584 ;; 23585 *) 23586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23587 for as_dir in $PATH 23588 do 23589 IFS=$as_save_IFS 23590 test -z "$as_dir" && as_dir=. 23591 for ac_exec_ext in '' $ac_executable_extensions; do 23592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23593 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23595 break 2 23596 fi 23597 done 23598 done 23599 IFS=$as_save_IFS 23600 23601 ;; 23602 esac 23603 fi 23604 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 23605 if test -n "$PKG_CONFIG"; then 23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 23607 $as_echo "$PKG_CONFIG" >&6; } 23608 else 23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23610 $as_echo "no" >&6; } 23611 fi 23612 23613 23614 fi 23615 if test -z "$ac_cv_path_PKG_CONFIG"; then 23616 ac_pt_PKG_CONFIG=$PKG_CONFIG 23617 # Extract the first word of "pkg-config", so it can be a program name with args. 23618 set dummy pkg-config; ac_word=$2 23619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23620 $as_echo_n "checking for $ac_word... " >&6; } 23621 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 23622 $as_echo_n "(cached) " >&6 23623 else 23624 case $ac_pt_PKG_CONFIG in 23625 [\\/]* | ?:[\\/]*) 23626 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 23627 ;; 23628 *) 23629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23630 for as_dir in $PATH 23631 do 23632 IFS=$as_save_IFS 23633 test -z "$as_dir" && as_dir=. 23634 for ac_exec_ext in '' $ac_executable_extensions; do 23635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23636 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 23637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23638 break 2 23639 fi 23640 done 23641 done 23642 IFS=$as_save_IFS 23643 23644 ;; 23645 esac 23646 fi 23647 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 23648 if test -n "$ac_pt_PKG_CONFIG"; then 23649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 23650 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 23651 else 23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23653 $as_echo "no" >&6; } 23654 fi 23655 23656 if test "x$ac_pt_PKG_CONFIG" = x; then 23657 PKG_CONFIG="" 23658 else 23659 case $cross_compiling:$ac_tool_warned in 23660 yes:) 23661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 23662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 23663 ac_tool_warned=yes ;; 23664 esac 23665 PKG_CONFIG=$ac_pt_PKG_CONFIG 23666 fi 23667 else 23668 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 23669 fi 23670 23671 fi 23672 if test -n "$PKG_CONFIG"; then 23673 _pkg_min_version=0.9.0 23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 23675 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 23676 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23678 $as_echo "yes" >&6; } 23679 else 23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23681 $as_echo "no" >&6; } 23682 PKG_CONFIG="" 23683 fi 23684 23685 fi 23686 23687 # After basic tools have been setup, we can check build os specific details. 23688 23689 ############################################################################### 23690 23691 # Note that this is the build platform OS version! 23692 23693 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 23694 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 23695 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 23696 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 23697 23698 23699 23700 23701 23702 # Misc basic settings 23703 23704 23705 # Check whether --with-default-make-target was given. 23706 if test "${with_default_make_target+set}" = set; then : 23707 withval=$with_default_make_target; 23708 fi 23709 23710 if test "x$with_default_make_target" = "x" \ 23711 || test "x$with_default_make_target" = "xyes"; then 23712 DEFAULT_MAKE_TARGET="exploded-image" 23713 elif test "x$with_default_make_target" = "xno"; then 23714 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 23715 else 23716 DEFAULT_MAKE_TARGET="$with_default_make_target" 23717 fi 23718 23719 23720 23721 23722 ############################################################################### 23723 # 23724 # Determine OpenJDK variants, options and version numbers. 23725 # 23726 ############################################################################### 23727 23728 # We need build & target for this. 23729 23730 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 23731 # We always build headless support. 23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 23733 $as_echo_n "checking headful support... " >&6; } 23734 # Check whether --enable-headful was given. 23735 if test "${enable_headful+set}" = set; then : 23736 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 23737 else 23738 SUPPORT_HEADFUL=yes 23739 fi 23740 23741 23742 SUPPORT_HEADLESS=yes 23743 BUILD_HEADLESS="BUILD_HEADLESS:=true" 23744 23745 if test "x$SUPPORT_HEADFUL" = xyes; then 23746 # We are building both headful and headless. 23747 headful_msg="include support for both headful and headless" 23748 fi 23749 23750 if test "x$SUPPORT_HEADFUL" = xno; then 23751 # Thus we are building headless only. 23752 BUILD_HEADLESS="BUILD_HEADLESS:=true" 23753 headful_msg="headless only" 23754 fi 23755 23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 23757 $as_echo "$headful_msg" >&6; } 23758 23759 23760 23761 23762 23763 # Choose cacerts source file 23764 23765 # Check whether --with-cacerts-file was given. 23766 if test "${with_cacerts_file+set}" = set; then : 23767 withval=$with_cacerts_file; 23768 fi 23769 23770 if test "x$with_cacerts_file" != x; then 23771 CACERTS_FILE=$with_cacerts_file 23772 fi 23773 23774 23775 # Enable or disable unlimited crypto 23776 # Check whether --enable-unlimited-crypto was given. 23777 if test "${enable_unlimited_crypto+set}" = set; then : 23778 enableval=$enable_unlimited_crypto; 23779 else 23780 enable_unlimited_crypto=no 23781 fi 23782 23783 if test "x$enable_unlimited_crypto" = "xyes"; then 23784 UNLIMITED_CRYPTO=true 23785 else 23786 UNLIMITED_CRYPTO=false 23787 fi 23788 23789 23790 # Should we build the serviceability agent (SA)? 23791 INCLUDE_SA=true 23792 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 23793 INCLUDE_SA=false 23794 fi 23795 if test "x$OPENJDK_TARGET_OS" = xaix ; then 23796 INCLUDE_SA=false 23797 fi 23798 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 23799 INCLUDE_SA=false 23800 fi 23801 23802 23803 # Compress jars 23804 COMPRESS_JARS=false 23805 23806 23807 23808 # Setup default copyright year. Mostly overridden when building close to a new year. 23809 23810 # Check whether --with-copyright-year was given. 23811 if test "${with_copyright_year+set}" = set; then : 23812 withval=$with_copyright_year; 23813 fi 23814 23815 if test "x$with_copyright_year" = xyes; then 23816 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 23817 elif test "x$with_copyright_year" != x; then 23818 COPYRIGHT_YEAR="$with_copyright_year" 23819 else 23820 COPYRIGHT_YEAR=`date +'%Y'` 23821 fi 23822 23823 23824 23825 # Check whether --enable-keep-packaged-modules was given. 23826 if test "${enable_keep_packaged_modules+set}" = set; then : 23827 enableval=$enable_keep_packaged_modules; 23828 fi 23829 23830 23831 if test "x$enable_keep_packaged_modules" = "xyes"; then 23832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 23833 $as_echo_n "checking if packaged modules are kept... " >&6; } 23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23835 $as_echo "yes" >&6; } 23836 JLINK_KEEP_PACKAGED_MODULES=true 23837 elif test "x$enable_keep_packaged_modules" = "xno"; then 23838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 23839 $as_echo_n "checking if packaged modules are kept... " >&6; } 23840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23841 $as_echo "no" >&6; } 23842 JLINK_KEEP_PACKAGED_MODULES=false 23843 elif test "x$enable_keep_packaged_modules" = "x"; then 23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 23845 $as_echo "yes (default)" >&6; } 23846 JLINK_KEEP_PACKAGED_MODULES=true 23847 else 23848 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 23849 fi 23850 23851 23852 23853 23854 # Warn user that old version arguments are deprecated. 23855 23856 23857 # Check whether --with-milestone was given. 23858 if test "${with_milestone+set}" = set; then : 23859 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 23860 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 23861 fi 23862 23863 23864 23865 23866 # Check whether --with-update-version was given. 23867 if test "${with_update_version+set}" = set; then : 23868 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 23869 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 23870 fi 23871 23872 23873 23874 23875 # Check whether --with-user-release-suffix was given. 23876 if test "${with_user_release_suffix+set}" = set; then : 23877 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 23878 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 23879 fi 23880 23881 23882 23883 23884 # Check whether --with-build-number was given. 23885 if test "${with_build_number+set}" = set; then : 23886 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 23887 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 23888 fi 23889 23890 23891 23892 # Source the version numbers file 23893 . $AUTOCONF_DIR/version-numbers 23894 23895 # Some non-version number information is set in that file 23896 23897 23898 23899 23900 23901 23902 23903 23904 23905 # Override version from arguments 23906 23907 # If --with-version-string is set, process it first. It is possible to 23908 # override parts with more specific flags, since these are processed later. 23909 23910 # Check whether --with-version-string was given. 23911 if test "${with_version_string+set}" = set; then : 23912 withval=$with_version_string; 23913 fi 23914 23915 if test "x$with_version_string" = xyes; then 23916 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 23917 elif test "x$with_version_string" != x; then 23918 # Additional [] needed to keep m4 from mangling shell constructs. 23919 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 23920 VERSION_MAJOR=${BASH_REMATCH[1]} 23921 VERSION_MINOR=${BASH_REMATCH[3]} 23922 VERSION_SECURITY=${BASH_REMATCH[5]} 23923 VERSION_PATCH=${BASH_REMATCH[7]} 23924 VERSION_PRE=${BASH_REMATCH[9]} 23925 version_plus_separator=${BASH_REMATCH[11]} 23926 VERSION_BUILD=${BASH_REMATCH[12]} 23927 VERSION_OPT=${BASH_REMATCH[14]} 23928 # Unspecified numerical fields are interpreted as 0. 23929 if test "x$VERSION_MINOR" = x; then 23930 VERSION_MINOR=0 23931 fi 23932 if test "x$VERSION_SECURITY" = x; then 23933 VERSION_SECURITY=0 23934 fi 23935 if test "x$VERSION_PATCH" = x; then 23936 VERSION_PATCH=0 23937 fi 23938 if test "x$version_plus_separator" != x \ 23939 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 23940 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 23941 fi 23942 # Stop the version part process from setting default values. 23943 # We still allow them to explicitely override though. 23944 NO_DEFAULT_VERSION_PARTS=true 23945 else 23946 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 23947 fi 23948 fi 23949 23950 23951 # Check whether --with-version-pre was given. 23952 if test "${with_version_pre+set}" = set; then : 23953 withval=$with_version_pre; with_version_pre_present=true 23954 else 23955 with_version_pre_present=false 23956 fi 23957 23958 23959 if test "x$with_version_pre_present" = xtrue; then 23960 if test "x$with_version_pre" = xyes; then 23961 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 23962 elif test "x$with_version_pre" = xno; then 23963 # Interpret --without-* as empty string instead of the literal "no" 23964 VERSION_PRE= 23965 else 23966 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 23967 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 23968 if test "x$VERSION_PRE" != "x$with_version_pre"; then 23969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 23970 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 23971 fi 23972 fi 23973 else 23974 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 23975 # Default is to use "internal" as pre 23976 VERSION_PRE="internal" 23977 fi 23978 fi 23979 23980 23981 # Check whether --with-version-opt was given. 23982 if test "${with_version_opt+set}" = set; then : 23983 withval=$with_version_opt; with_version_opt_present=true 23984 else 23985 with_version_opt_present=false 23986 fi 23987 23988 23989 if test "x$with_version_opt_present" = xtrue; then 23990 if test "x$with_version_opt" = xyes; then 23991 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 23992 elif test "x$with_version_opt" = xno; then 23993 # Interpret --without-* as empty string instead of the literal "no" 23994 VERSION_OPT= 23995 else 23996 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 23997 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 23998 if test "x$VERSION_OPT" != "x$with_version_opt"; then 23999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 24000 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 24001 fi 24002 fi 24003 else 24004 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24005 # Default is to calculate a string like this <timestamp>.<username>.<base dir name> 24006 timestamp=`$DATE '+%Y-%m-%d-%H%M%S'` 24007 # Outer [ ] to quote m4. 24008 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 24009 VERSION_OPT="$timestamp.$USERNAME.$basedirname" 24010 fi 24011 fi 24012 24013 24014 # Check whether --with-version-build was given. 24015 if test "${with_version_build+set}" = set; then : 24016 withval=$with_version_build; with_version_build_present=true 24017 else 24018 with_version_build_present=false 24019 fi 24020 24021 24022 if test "x$with_version_build_present" = xtrue; then 24023 if test "x$with_version_build" = xyes; then 24024 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 24025 elif test "x$with_version_build" = xno; then 24026 # Interpret --without-* as empty string instead of the literal "no" 24027 VERSION_BUILD= 24028 elif test "x$with_version_build" = x; then 24029 VERSION_BUILD= 24030 else 24031 24032 # Additional [] needed to keep m4 from mangling shell constructs. 24033 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24034 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 24035 fi 24036 # Extract the version number without leading zeros. 24037 cleaned_value=${BASH_REMATCH[1]} 24038 if test "x$cleaned_value" = x; then 24039 # Special case for zero 24040 cleaned_value=${BASH_REMATCH[2]} 24041 fi 24042 24043 if test $cleaned_value -gt 255; then 24044 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 24045 fi 24046 if test "x$cleaned_value" != "x$with_version_build"; then 24047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 24048 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 24049 fi 24050 VERSION_BUILD=$cleaned_value 24051 24052 fi 24053 else 24054 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24055 # Default is to not have a build number. 24056 VERSION_BUILD="" 24057 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 24058 VERSION_BUILD=0 24059 fi 24060 fi 24061 24062 24063 # Check whether --with-version-major was given. 24064 if test "${with_version_major+set}" = set; then : 24065 withval=$with_version_major; with_version_major_present=true 24066 else 24067 with_version_major_present=false 24068 fi 24069 24070 24071 if test "x$with_version_major_present" = xtrue; then 24072 if test "x$with_version_major" = xyes; then 24073 as_fn_error $? "--with-version-major must have a value" "$LINENO" 5 24074 else 24075 24076 # Additional [] needed to keep m4 from mangling shell constructs. 24077 if ! [[ "$with_version_major" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24078 as_fn_error $? "\"$with_version_major\" is not a valid numerical value for VERSION_MAJOR" "$LINENO" 5 24079 fi 24080 # Extract the version number without leading zeros. 24081 cleaned_value=${BASH_REMATCH[1]} 24082 if test "x$cleaned_value" = x; then 24083 # Special case for zero 24084 cleaned_value=${BASH_REMATCH[2]} 24085 fi 24086 24087 if test $cleaned_value -gt 255; then 24088 as_fn_error $? "VERSION_MAJOR is given as $with_version_major. This is greater than 255 which is not allowed." "$LINENO" 5 24089 fi 24090 if test "x$cleaned_value" != "x$with_version_major"; then 24091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&5 24092 $as_echo "$as_me: WARNING: Value for VERSION_MAJOR has been sanitized from '$with_version_major' to '$cleaned_value'" >&2;} 24093 fi 24094 VERSION_MAJOR=$cleaned_value 24095 24096 fi 24097 else 24098 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24099 # Default is to get value from version-numbers 24100 VERSION_MAJOR="$DEFAULT_VERSION_MAJOR" 24101 fi 24102 fi 24103 24104 24105 # Check whether --with-version-minor was given. 24106 if test "${with_version_minor+set}" = set; then : 24107 withval=$with_version_minor; with_version_minor_present=true 24108 else 24109 with_version_minor_present=false 24110 fi 24111 24112 24113 if test "x$with_version_minor_present" = xtrue; then 24114 if test "x$with_version_minor" = xyes; then 24115 as_fn_error $? "--with-version-minor must have a value" "$LINENO" 5 24116 elif test "x$with_version_minor" = xno; then 24117 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24118 VERSION_MINOR=0 24119 elif test "x$with_version_minor" = x; then 24120 VERSION_MINOR=0 24121 else 24122 24123 # Additional [] needed to keep m4 from mangling shell constructs. 24124 if ! [[ "$with_version_minor" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24125 as_fn_error $? "\"$with_version_minor\" is not a valid numerical value for VERSION_MINOR" "$LINENO" 5 24126 fi 24127 # Extract the version number without leading zeros. 24128 cleaned_value=${BASH_REMATCH[1]} 24129 if test "x$cleaned_value" = x; then 24130 # Special case for zero 24131 cleaned_value=${BASH_REMATCH[2]} 24132 fi 24133 24134 if test $cleaned_value -gt 255; then 24135 as_fn_error $? "VERSION_MINOR is given as $with_version_minor. This is greater than 255 which is not allowed." "$LINENO" 5 24136 fi 24137 if test "x$cleaned_value" != "x$with_version_minor"; then 24138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&5 24139 $as_echo "$as_me: WARNING: Value for VERSION_MINOR has been sanitized from '$with_version_minor' to '$cleaned_value'" >&2;} 24140 fi 24141 VERSION_MINOR=$cleaned_value 24142 24143 fi 24144 else 24145 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24146 # Default is 0, if unspecified 24147 VERSION_MINOR=0 24148 fi 24149 fi 24150 24151 24152 # Check whether --with-version-security was given. 24153 if test "${with_version_security+set}" = set; then : 24154 withval=$with_version_security; with_version_security_present=true 24155 else 24156 with_version_security_present=false 24157 fi 24158 24159 24160 if test "x$with_version_security_present" = xtrue; then 24161 if test "x$with_version_security" = xyes; then 24162 as_fn_error $? "--with-version-security must have a value" "$LINENO" 5 24163 elif test "x$with_version_security" = xno; then 24164 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24165 VERSION_SECURITY=0 24166 elif test "x$with_version_security" = x; then 24167 VERSION_SECURITY=0 24168 else 24169 24170 # Additional [] needed to keep m4 from mangling shell constructs. 24171 if ! [[ "$with_version_security" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24172 as_fn_error $? "\"$with_version_security\" is not a valid numerical value for VERSION_SECURITY" "$LINENO" 5 24173 fi 24174 # Extract the version number without leading zeros. 24175 cleaned_value=${BASH_REMATCH[1]} 24176 if test "x$cleaned_value" = x; then 24177 # Special case for zero 24178 cleaned_value=${BASH_REMATCH[2]} 24179 fi 24180 24181 if test $cleaned_value -gt 255; then 24182 as_fn_error $? "VERSION_SECURITY is given as $with_version_security. This is greater than 255 which is not allowed." "$LINENO" 5 24183 fi 24184 if test "x$cleaned_value" != "x$with_version_security"; then 24185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&5 24186 $as_echo "$as_me: WARNING: Value for VERSION_SECURITY has been sanitized from '$with_version_security' to '$cleaned_value'" >&2;} 24187 fi 24188 VERSION_SECURITY=$cleaned_value 24189 24190 fi 24191 else 24192 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24193 # Default is 0, if unspecified 24194 VERSION_SECURITY=0 24195 fi 24196 fi 24197 24198 24199 # Check whether --with-version-patch was given. 24200 if test "${with_version_patch+set}" = set; then : 24201 withval=$with_version_patch; with_version_patch_present=true 24202 else 24203 with_version_patch_present=false 24204 fi 24205 24206 24207 if test "x$with_version_patch_present" = xtrue; then 24208 if test "x$with_version_patch" = xyes; then 24209 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 24210 elif test "x$with_version_patch" = xno; then 24211 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 24212 VERSION_PATCH=0 24213 elif test "x$with_version_patch" = x; then 24214 VERSION_PATCH=0 24215 else 24216 24217 # Additional [] needed to keep m4 from mangling shell constructs. 24218 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 24219 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 24220 fi 24221 # Extract the version number without leading zeros. 24222 cleaned_value=${BASH_REMATCH[1]} 24223 if test "x$cleaned_value" = x; then 24224 # Special case for zero 24225 cleaned_value=${BASH_REMATCH[2]} 24226 fi 24227 24228 if test $cleaned_value -gt 255; then 24229 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 24230 fi 24231 if test "x$cleaned_value" != "x$with_version_patch"; then 24232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 24233 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 24234 fi 24235 VERSION_PATCH=$cleaned_value 24236 24237 fi 24238 else 24239 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 24240 # Default is 0, if unspecified 24241 VERSION_PATCH=0 24242 fi 24243 fi 24244 24245 # Calculate derived version properties 24246 24247 # Set VERSION_IS_GA based on if VERSION_PRE has a value 24248 if test "x$VERSION_PRE" = x; then 24249 VERSION_IS_GA=true 24250 else 24251 VERSION_IS_GA=false 24252 fi 24253 24254 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 24255 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_MAJOR.$VERSION_MINOR.$VERSION_SECURITY.$VERSION_PATCH 24256 24257 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 24258 # Strip trailing zeroes from stripped_version_number 24259 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 24260 VERSION_NUMBER=$stripped_version_number 24261 24262 # The complete version string, with additional build information 24263 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 24264 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 24265 else 24266 # If either build or opt is set, we need a + separator 24267 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 24268 fi 24269 24270 # The short version string, just VERSION_NUMBER and PRE, if present. 24271 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 24272 24273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 24274 $as_echo_n "checking for version string... " >&6; } 24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 24276 $as_echo "$VERSION_STRING" >&6; } 24277 24278 24279 24280 24281 24282 24283 24284 24285 24286 24287 24288 24289 24290 24291 24292 ############################################################################### 24293 # 24294 # Setup BootJDK, used to bootstrap the build. 24295 # 24296 ############################################################################### 24297 24298 24299 BOOT_JDK_FOUND=no 24300 24301 # Check whether --with-boot-jdk was given. 24302 if test "${with_boot_jdk+set}" = set; then : 24303 withval=$with_boot_jdk; 24304 fi 24305 24306 24307 # We look for the Boot JDK through various means, going from more certain to 24308 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 24309 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 24310 # must check if this is indeed valid; otherwise we'll continue looking. 24311 24312 # Test: Is bootjdk explicitely set by command line arguments? 24313 24314 if test "x$BOOT_JDK_FOUND" = xno; then 24315 # Now execute the test 24316 24317 if test "x$with_boot_jdk" != x; then 24318 BOOT_JDK=$with_boot_jdk 24319 BOOT_JDK_FOUND=maybe 24320 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 24321 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 24322 fi 24323 24324 24325 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24326 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24327 # Do we have a bin/java? 24328 if test ! -x "$BOOT_JDK/bin/java"; then 24329 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24330 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24331 BOOT_JDK_FOUND=no 24332 else 24333 # Do we have a bin/javac? 24334 if test ! -x "$BOOT_JDK/bin/javac"; then 24335 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24336 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24337 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24338 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24339 BOOT_JDK_FOUND=no 24340 else 24341 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24342 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24343 24344 # Extra M4 quote needed to protect [] in grep expression. 24345 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24346 if test "x$FOUND_CORRECT_VERSION" = x; then 24347 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24348 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24349 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24350 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24351 BOOT_JDK_FOUND=no 24352 else 24353 # We're done! :-) 24354 BOOT_JDK_FOUND=yes 24355 24356 # Only process if variable expands to non-empty 24357 24358 if test "x$BOOT_JDK" != x; then 24359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24360 24361 # Input might be given as Windows format, start by converting to 24362 # unix format. 24363 path="$BOOT_JDK" 24364 new_path=`$CYGPATH -u "$path"` 24365 24366 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24367 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24368 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24369 # "foo.exe" is OK but "foo" is an error. 24370 # 24371 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24372 # It is also a way to make sure we got the proper file name for the real test later on. 24373 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24374 if test "x$test_shortpath" = x; then 24375 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24376 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24377 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24378 fi 24379 24380 # Call helper function which possibly converts this using DOS-style short mode. 24381 # If so, the updated path is stored in $new_path. 24382 24383 input_path="$new_path" 24384 # Check if we need to convert this using DOS-style short mode. If the path 24385 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24386 # take no chances and rewrite it. 24387 # Note: m4 eats our [], so we need to use [ and ] instead. 24388 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24389 if test "x$has_forbidden_chars" != x; then 24390 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24391 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24392 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24393 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24394 # Going to short mode and back again did indeed matter. Since short mode is 24395 # case insensitive, let's make it lowercase to improve readability. 24396 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24397 # Now convert it back to Unix-style (cygpath) 24398 input_path=`$CYGPATH -u "$shortmode_path"` 24399 new_path="$input_path" 24400 fi 24401 fi 24402 24403 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24404 if test "x$test_cygdrive_prefix" = x; then 24405 # As a simple fix, exclude /usr/bin since it's not a real path. 24406 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24407 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24408 # a path prefixed by /cygdrive for fixpath to work. 24409 new_path="$CYGWIN_ROOT_PATH$input_path" 24410 fi 24411 fi 24412 24413 24414 if test "x$path" != "x$new_path"; then 24415 BOOT_JDK="$new_path" 24416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24417 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24418 fi 24419 24420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24421 24422 path="$BOOT_JDK" 24423 has_colon=`$ECHO $path | $GREP ^.:` 24424 new_path="$path" 24425 if test "x$has_colon" = x; then 24426 # Not in mixed or Windows style, start by that. 24427 new_path=`cmd //c echo $path` 24428 fi 24429 24430 24431 input_path="$new_path" 24432 # Check if we need to convert this using DOS-style short mode. If the path 24433 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24434 # take no chances and rewrite it. 24435 # Note: m4 eats our [], so we need to use [ and ] instead. 24436 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24437 if test "x$has_forbidden_chars" != x; then 24438 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24439 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24440 fi 24441 24442 24443 windows_path="$new_path" 24444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24445 unix_path=`$CYGPATH -u "$windows_path"` 24446 new_path="$unix_path" 24447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24448 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24449 new_path="$unix_path" 24450 fi 24451 24452 if test "x$path" != "x$new_path"; then 24453 BOOT_JDK="$new_path" 24454 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24455 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24456 fi 24457 24458 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24459 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24460 24461 else 24462 # We're on a unix platform. Hooray! :) 24463 path="$BOOT_JDK" 24464 has_space=`$ECHO "$path" | $GREP " "` 24465 if test "x$has_space" != x; then 24466 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24467 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24468 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24469 fi 24470 24471 # Use eval to expand a potential ~ 24472 eval path="$path" 24473 if test ! -f "$path" && test ! -d "$path"; then 24474 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24475 fi 24476 24477 if test -d "$path"; then 24478 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24479 else 24480 dir="`$DIRNAME "$path"`" 24481 base="`$BASENAME "$path"`" 24482 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24483 fi 24484 fi 24485 fi 24486 24487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24488 $as_echo_n "checking for Boot JDK... " >&6; } 24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24490 $as_echo "$BOOT_JDK" >&6; } 24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24492 $as_echo_n "checking Boot JDK version... " >&6; } 24493 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24495 $as_echo "$BOOT_JDK_VERSION" >&6; } 24496 fi # end check jdk version 24497 fi # end check javac 24498 fi # end check java 24499 fi # end check boot jdk found 24500 fi 24501 24502 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 24503 # Having specified an argument which is incorrect will produce an instant failure; 24504 # we should not go on looking 24505 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 24506 fi 24507 24508 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 24509 24510 if test "x$BOOT_JDK_FOUND" = xno; then 24511 # Now execute the test 24512 24513 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 24514 # First check at user selected default 24515 24516 if test "x$BOOT_JDK_FOUND" = xno; then 24517 # Now execute the test 24518 24519 if test -x /usr/libexec/java_home; then 24520 BOOT_JDK=`/usr/libexec/java_home ` 24521 BOOT_JDK_FOUND=maybe 24522 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 24523 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 24524 fi 24525 24526 24527 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24528 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24529 # Do we have a bin/java? 24530 if test ! -x "$BOOT_JDK/bin/java"; then 24531 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24532 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24533 BOOT_JDK_FOUND=no 24534 else 24535 # Do we have a bin/javac? 24536 if test ! -x "$BOOT_JDK/bin/javac"; then 24537 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24538 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24539 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24540 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24541 BOOT_JDK_FOUND=no 24542 else 24543 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24544 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24545 24546 # Extra M4 quote needed to protect [] in grep expression. 24547 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24548 if test "x$FOUND_CORRECT_VERSION" = x; then 24549 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24550 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24551 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24552 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24553 BOOT_JDK_FOUND=no 24554 else 24555 # We're done! :-) 24556 BOOT_JDK_FOUND=yes 24557 24558 # Only process if variable expands to non-empty 24559 24560 if test "x$BOOT_JDK" != x; then 24561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24562 24563 # Input might be given as Windows format, start by converting to 24564 # unix format. 24565 path="$BOOT_JDK" 24566 new_path=`$CYGPATH -u "$path"` 24567 24568 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24569 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24570 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24571 # "foo.exe" is OK but "foo" is an error. 24572 # 24573 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24574 # It is also a way to make sure we got the proper file name for the real test later on. 24575 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24576 if test "x$test_shortpath" = x; then 24577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24578 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24579 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24580 fi 24581 24582 # Call helper function which possibly converts this using DOS-style short mode. 24583 # If so, the updated path is stored in $new_path. 24584 24585 input_path="$new_path" 24586 # Check if we need to convert this using DOS-style short mode. If the path 24587 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24588 # take no chances and rewrite it. 24589 # Note: m4 eats our [], so we need to use [ and ] instead. 24590 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24591 if test "x$has_forbidden_chars" != x; then 24592 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24593 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24594 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24595 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24596 # Going to short mode and back again did indeed matter. Since short mode is 24597 # case insensitive, let's make it lowercase to improve readability. 24598 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24599 # Now convert it back to Unix-style (cygpath) 24600 input_path=`$CYGPATH -u "$shortmode_path"` 24601 new_path="$input_path" 24602 fi 24603 fi 24604 24605 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24606 if test "x$test_cygdrive_prefix" = x; then 24607 # As a simple fix, exclude /usr/bin since it's not a real path. 24608 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24609 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24610 # a path prefixed by /cygdrive for fixpath to work. 24611 new_path="$CYGWIN_ROOT_PATH$input_path" 24612 fi 24613 fi 24614 24615 24616 if test "x$path" != "x$new_path"; then 24617 BOOT_JDK="$new_path" 24618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24619 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24620 fi 24621 24622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24623 24624 path="$BOOT_JDK" 24625 has_colon=`$ECHO $path | $GREP ^.:` 24626 new_path="$path" 24627 if test "x$has_colon" = x; then 24628 # Not in mixed or Windows style, start by that. 24629 new_path=`cmd //c echo $path` 24630 fi 24631 24632 24633 input_path="$new_path" 24634 # Check if we need to convert this using DOS-style short mode. If the path 24635 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24636 # take no chances and rewrite it. 24637 # Note: m4 eats our [], so we need to use [ and ] instead. 24638 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24639 if test "x$has_forbidden_chars" != x; then 24640 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24641 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24642 fi 24643 24644 24645 windows_path="$new_path" 24646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24647 unix_path=`$CYGPATH -u "$windows_path"` 24648 new_path="$unix_path" 24649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24650 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24651 new_path="$unix_path" 24652 fi 24653 24654 if test "x$path" != "x$new_path"; then 24655 BOOT_JDK="$new_path" 24656 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24657 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24658 fi 24659 24660 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24661 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24662 24663 else 24664 # We're on a unix platform. Hooray! :) 24665 path="$BOOT_JDK" 24666 has_space=`$ECHO "$path" | $GREP " "` 24667 if test "x$has_space" != x; then 24668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24670 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24671 fi 24672 24673 # Use eval to expand a potential ~ 24674 eval path="$path" 24675 if test ! -f "$path" && test ! -d "$path"; then 24676 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24677 fi 24678 24679 if test -d "$path"; then 24680 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24681 else 24682 dir="`$DIRNAME "$path"`" 24683 base="`$BASENAME "$path"`" 24684 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24685 fi 24686 fi 24687 fi 24688 24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24690 $as_echo_n "checking for Boot JDK... " >&6; } 24691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24692 $as_echo "$BOOT_JDK" >&6; } 24693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24694 $as_echo_n "checking Boot JDK version... " >&6; } 24695 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24697 $as_echo "$BOOT_JDK_VERSION" >&6; } 24698 fi # end check jdk version 24699 fi # end check javac 24700 fi # end check java 24701 fi # end check boot jdk found 24702 fi 24703 24704 # If that did not work out (e.g. too old), try explicit versions instead 24705 24706 if test "x$BOOT_JDK_FOUND" = xno; then 24707 # Now execute the test 24708 24709 if test -x /usr/libexec/java_home; then 24710 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 24711 BOOT_JDK_FOUND=maybe 24712 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 24713 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 24714 fi 24715 24716 24717 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24718 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24719 # Do we have a bin/java? 24720 if test ! -x "$BOOT_JDK/bin/java"; then 24721 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24722 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24723 BOOT_JDK_FOUND=no 24724 else 24725 # Do we have a bin/javac? 24726 if test ! -x "$BOOT_JDK/bin/javac"; then 24727 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24728 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24729 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24730 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24731 BOOT_JDK_FOUND=no 24732 else 24733 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24734 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24735 24736 # Extra M4 quote needed to protect [] in grep expression. 24737 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24738 if test "x$FOUND_CORRECT_VERSION" = x; then 24739 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24740 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24741 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24742 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24743 BOOT_JDK_FOUND=no 24744 else 24745 # We're done! :-) 24746 BOOT_JDK_FOUND=yes 24747 24748 # Only process if variable expands to non-empty 24749 24750 if test "x$BOOT_JDK" != x; then 24751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24752 24753 # Input might be given as Windows format, start by converting to 24754 # unix format. 24755 path="$BOOT_JDK" 24756 new_path=`$CYGPATH -u "$path"` 24757 24758 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24759 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24760 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24761 # "foo.exe" is OK but "foo" is an error. 24762 # 24763 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24764 # It is also a way to make sure we got the proper file name for the real test later on. 24765 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24766 if test "x$test_shortpath" = x; then 24767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24768 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24769 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24770 fi 24771 24772 # Call helper function which possibly converts this using DOS-style short mode. 24773 # If so, the updated path is stored in $new_path. 24774 24775 input_path="$new_path" 24776 # Check if we need to convert this using DOS-style short mode. If the path 24777 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24778 # take no chances and rewrite it. 24779 # Note: m4 eats our [], so we need to use [ and ] instead. 24780 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24781 if test "x$has_forbidden_chars" != x; then 24782 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24783 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24784 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24785 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24786 # Going to short mode and back again did indeed matter. Since short mode is 24787 # case insensitive, let's make it lowercase to improve readability. 24788 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24789 # Now convert it back to Unix-style (cygpath) 24790 input_path=`$CYGPATH -u "$shortmode_path"` 24791 new_path="$input_path" 24792 fi 24793 fi 24794 24795 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24796 if test "x$test_cygdrive_prefix" = x; then 24797 # As a simple fix, exclude /usr/bin since it's not a real path. 24798 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24799 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24800 # a path prefixed by /cygdrive for fixpath to work. 24801 new_path="$CYGWIN_ROOT_PATH$input_path" 24802 fi 24803 fi 24804 24805 24806 if test "x$path" != "x$new_path"; then 24807 BOOT_JDK="$new_path" 24808 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24809 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24810 fi 24811 24812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24813 24814 path="$BOOT_JDK" 24815 has_colon=`$ECHO $path | $GREP ^.:` 24816 new_path="$path" 24817 if test "x$has_colon" = x; then 24818 # Not in mixed or Windows style, start by that. 24819 new_path=`cmd //c echo $path` 24820 fi 24821 24822 24823 input_path="$new_path" 24824 # Check if we need to convert this using DOS-style short mode. If the path 24825 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24826 # take no chances and rewrite it. 24827 # Note: m4 eats our [], so we need to use [ and ] instead. 24828 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24829 if test "x$has_forbidden_chars" != x; then 24830 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24831 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24832 fi 24833 24834 24835 windows_path="$new_path" 24836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24837 unix_path=`$CYGPATH -u "$windows_path"` 24838 new_path="$unix_path" 24839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24840 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24841 new_path="$unix_path" 24842 fi 24843 24844 if test "x$path" != "x$new_path"; then 24845 BOOT_JDK="$new_path" 24846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24847 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24848 fi 24849 24850 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24851 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24852 24853 else 24854 # We're on a unix platform. Hooray! :) 24855 path="$BOOT_JDK" 24856 has_space=`$ECHO "$path" | $GREP " "` 24857 if test "x$has_space" != x; then 24858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24859 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24860 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24861 fi 24862 24863 # Use eval to expand a potential ~ 24864 eval path="$path" 24865 if test ! -f "$path" && test ! -d "$path"; then 24866 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24867 fi 24868 24869 if test -d "$path"; then 24870 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24871 else 24872 dir="`$DIRNAME "$path"`" 24873 base="`$BASENAME "$path"`" 24874 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 24875 fi 24876 fi 24877 fi 24878 24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24880 $as_echo_n "checking for Boot JDK... " >&6; } 24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24882 $as_echo "$BOOT_JDK" >&6; } 24883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24884 $as_echo_n "checking Boot JDK version... " >&6; } 24885 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24887 $as_echo "$BOOT_JDK_VERSION" >&6; } 24888 fi # end check jdk version 24889 fi # end check javac 24890 fi # end check java 24891 fi # end check boot jdk found 24892 fi 24893 24894 24895 if test "x$BOOT_JDK_FOUND" = xno; then 24896 # Now execute the test 24897 24898 if test -x /usr/libexec/java_home; then 24899 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 24900 BOOT_JDK_FOUND=maybe 24901 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 24902 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 24903 fi 24904 24905 24906 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24907 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24908 # Do we have a bin/java? 24909 if test ! -x "$BOOT_JDK/bin/java"; then 24910 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24911 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24912 BOOT_JDK_FOUND=no 24913 else 24914 # Do we have a bin/javac? 24915 if test ! -x "$BOOT_JDK/bin/javac"; then 24916 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24917 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24918 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24919 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24920 BOOT_JDK_FOUND=no 24921 else 24922 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24923 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24924 24925 # Extra M4 quote needed to protect [] in grep expression. 24926 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 24927 if test "x$FOUND_CORRECT_VERSION" = x; then 24928 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24929 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24930 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24931 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24932 BOOT_JDK_FOUND=no 24933 else 24934 # We're done! :-) 24935 BOOT_JDK_FOUND=yes 24936 24937 # Only process if variable expands to non-empty 24938 24939 if test "x$BOOT_JDK" != x; then 24940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24941 24942 # Input might be given as Windows format, start by converting to 24943 # unix format. 24944 path="$BOOT_JDK" 24945 new_path=`$CYGPATH -u "$path"` 24946 24947 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24948 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24949 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24950 # "foo.exe" is OK but "foo" is an error. 24951 # 24952 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24953 # It is also a way to make sure we got the proper file name for the real test later on. 24954 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24955 if test "x$test_shortpath" = x; then 24956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24957 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24958 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24959 fi 24960 24961 # Call helper function which possibly converts this using DOS-style short mode. 24962 # If so, the updated path is stored in $new_path. 24963 24964 input_path="$new_path" 24965 # Check if we need to convert this using DOS-style short mode. If the path 24966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24967 # take no chances and rewrite it. 24968 # Note: m4 eats our [], so we need to use [ and ] instead. 24969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24970 if test "x$has_forbidden_chars" != x; then 24971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24972 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24973 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24974 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24975 # Going to short mode and back again did indeed matter. Since short mode is 24976 # case insensitive, let's make it lowercase to improve readability. 24977 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24978 # Now convert it back to Unix-style (cygpath) 24979 input_path=`$CYGPATH -u "$shortmode_path"` 24980 new_path="$input_path" 24981 fi 24982 fi 24983 24984 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24985 if test "x$test_cygdrive_prefix" = x; then 24986 # As a simple fix, exclude /usr/bin since it's not a real path. 24987 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24988 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24989 # a path prefixed by /cygdrive for fixpath to work. 24990 new_path="$CYGWIN_ROOT_PATH$input_path" 24991 fi 24992 fi 24993 24994 24995 if test "x$path" != "x$new_path"; then 24996 BOOT_JDK="$new_path" 24997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24998 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24999 fi 25000 25001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25002 25003 path="$BOOT_JDK" 25004 has_colon=`$ECHO $path | $GREP ^.:` 25005 new_path="$path" 25006 if test "x$has_colon" = x; then 25007 # Not in mixed or Windows style, start by that. 25008 new_path=`cmd //c echo $path` 25009 fi 25010 25011 25012 input_path="$new_path" 25013 # Check if we need to convert this using DOS-style short mode. If the path 25014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25015 # take no chances and rewrite it. 25016 # Note: m4 eats our [], so we need to use [ and ] instead. 25017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25018 if test "x$has_forbidden_chars" != x; then 25019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25021 fi 25022 25023 25024 windows_path="$new_path" 25025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25026 unix_path=`$CYGPATH -u "$windows_path"` 25027 new_path="$unix_path" 25028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25030 new_path="$unix_path" 25031 fi 25032 25033 if test "x$path" != "x$new_path"; then 25034 BOOT_JDK="$new_path" 25035 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25036 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25037 fi 25038 25039 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25040 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25041 25042 else 25043 # We're on a unix platform. Hooray! :) 25044 path="$BOOT_JDK" 25045 has_space=`$ECHO "$path" | $GREP " "` 25046 if test "x$has_space" != x; then 25047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25048 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25049 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25050 fi 25051 25052 # Use eval to expand a potential ~ 25053 eval path="$path" 25054 if test ! -f "$path" && test ! -d "$path"; then 25055 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25056 fi 25057 25058 if test -d "$path"; then 25059 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25060 else 25061 dir="`$DIRNAME "$path"`" 25062 base="`$BASENAME "$path"`" 25063 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25064 fi 25065 fi 25066 fi 25067 25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25069 $as_echo_n "checking for Boot JDK... " >&6; } 25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25071 $as_echo "$BOOT_JDK" >&6; } 25072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25073 $as_echo_n "checking Boot JDK version... " >&6; } 25074 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25076 $as_echo "$BOOT_JDK_VERSION" >&6; } 25077 fi # end check jdk version 25078 fi # end check javac 25079 fi # end check java 25080 fi # end check boot jdk found 25081 fi 25082 25083 25084 if test "x$BOOT_JDK_FOUND" = xno; then 25085 # Now execute the test 25086 25087 if test -x /usr/libexec/java_home; then 25088 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 25089 BOOT_JDK_FOUND=maybe 25090 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 25091 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 25092 fi 25093 25094 25095 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25096 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25097 # Do we have a bin/java? 25098 if test ! -x "$BOOT_JDK/bin/java"; then 25099 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25101 BOOT_JDK_FOUND=no 25102 else 25103 # Do we have a bin/javac? 25104 if test ! -x "$BOOT_JDK/bin/javac"; then 25105 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25106 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25107 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25108 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25109 BOOT_JDK_FOUND=no 25110 else 25111 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25112 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25113 25114 # Extra M4 quote needed to protect [] in grep expression. 25115 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25116 if test "x$FOUND_CORRECT_VERSION" = x; then 25117 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25119 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25120 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25121 BOOT_JDK_FOUND=no 25122 else 25123 # We're done! :-) 25124 BOOT_JDK_FOUND=yes 25125 25126 # Only process if variable expands to non-empty 25127 25128 if test "x$BOOT_JDK" != x; then 25129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25130 25131 # Input might be given as Windows format, start by converting to 25132 # unix format. 25133 path="$BOOT_JDK" 25134 new_path=`$CYGPATH -u "$path"` 25135 25136 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25137 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25138 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25139 # "foo.exe" is OK but "foo" is an error. 25140 # 25141 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25142 # It is also a way to make sure we got the proper file name for the real test later on. 25143 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25144 if test "x$test_shortpath" = x; then 25145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25146 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25147 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25148 fi 25149 25150 # Call helper function which possibly converts this using DOS-style short mode. 25151 # If so, the updated path is stored in $new_path. 25152 25153 input_path="$new_path" 25154 # Check if we need to convert this using DOS-style short mode. If the path 25155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25156 # take no chances and rewrite it. 25157 # Note: m4 eats our [], so we need to use [ and ] instead. 25158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25159 if test "x$has_forbidden_chars" != x; then 25160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25161 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25162 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25163 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25164 # Going to short mode and back again did indeed matter. Since short mode is 25165 # case insensitive, let's make it lowercase to improve readability. 25166 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25167 # Now convert it back to Unix-style (cygpath) 25168 input_path=`$CYGPATH -u "$shortmode_path"` 25169 new_path="$input_path" 25170 fi 25171 fi 25172 25173 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25174 if test "x$test_cygdrive_prefix" = x; then 25175 # As a simple fix, exclude /usr/bin since it's not a real path. 25176 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25177 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25178 # a path prefixed by /cygdrive for fixpath to work. 25179 new_path="$CYGWIN_ROOT_PATH$input_path" 25180 fi 25181 fi 25182 25183 25184 if test "x$path" != "x$new_path"; then 25185 BOOT_JDK="$new_path" 25186 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25187 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25188 fi 25189 25190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25191 25192 path="$BOOT_JDK" 25193 has_colon=`$ECHO $path | $GREP ^.:` 25194 new_path="$path" 25195 if test "x$has_colon" = x; then 25196 # Not in mixed or Windows style, start by that. 25197 new_path=`cmd //c echo $path` 25198 fi 25199 25200 25201 input_path="$new_path" 25202 # Check if we need to convert this using DOS-style short mode. If the path 25203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25204 # take no chances and rewrite it. 25205 # Note: m4 eats our [], so we need to use [ and ] instead. 25206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25207 if test "x$has_forbidden_chars" != x; then 25208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25209 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25210 fi 25211 25212 25213 windows_path="$new_path" 25214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25215 unix_path=`$CYGPATH -u "$windows_path"` 25216 new_path="$unix_path" 25217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25218 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25219 new_path="$unix_path" 25220 fi 25221 25222 if test "x$path" != "x$new_path"; then 25223 BOOT_JDK="$new_path" 25224 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25225 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25226 fi 25227 25228 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25229 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25230 25231 else 25232 # We're on a unix platform. Hooray! :) 25233 path="$BOOT_JDK" 25234 has_space=`$ECHO "$path" | $GREP " "` 25235 if test "x$has_space" != x; then 25236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25238 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25239 fi 25240 25241 # Use eval to expand a potential ~ 25242 eval path="$path" 25243 if test ! -f "$path" && test ! -d "$path"; then 25244 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25245 fi 25246 25247 if test -d "$path"; then 25248 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25249 else 25250 dir="`$DIRNAME "$path"`" 25251 base="`$BASENAME "$path"`" 25252 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25253 fi 25254 fi 25255 fi 25256 25257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25258 $as_echo_n "checking for Boot JDK... " >&6; } 25259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25260 $as_echo "$BOOT_JDK" >&6; } 25261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25262 $as_echo_n "checking Boot JDK version... " >&6; } 25263 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25265 $as_echo "$BOOT_JDK_VERSION" >&6; } 25266 fi # end check jdk version 25267 fi # end check javac 25268 fi # end check java 25269 fi # end check boot jdk found 25270 fi 25271 25272 fi 25273 25274 25275 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25276 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25277 # Do we have a bin/java? 25278 if test ! -x "$BOOT_JDK/bin/java"; then 25279 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25281 BOOT_JDK_FOUND=no 25282 else 25283 # Do we have a bin/javac? 25284 if test ! -x "$BOOT_JDK/bin/javac"; then 25285 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25286 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25287 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25288 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25289 BOOT_JDK_FOUND=no 25290 else 25291 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25292 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25293 25294 # Extra M4 quote needed to protect [] in grep expression. 25295 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25296 if test "x$FOUND_CORRECT_VERSION" = x; then 25297 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25298 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25299 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25300 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25301 BOOT_JDK_FOUND=no 25302 else 25303 # We're done! :-) 25304 BOOT_JDK_FOUND=yes 25305 25306 # Only process if variable expands to non-empty 25307 25308 if test "x$BOOT_JDK" != x; then 25309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25310 25311 # Input might be given as Windows format, start by converting to 25312 # unix format. 25313 path="$BOOT_JDK" 25314 new_path=`$CYGPATH -u "$path"` 25315 25316 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25317 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25318 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25319 # "foo.exe" is OK but "foo" is an error. 25320 # 25321 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25322 # It is also a way to make sure we got the proper file name for the real test later on. 25323 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25324 if test "x$test_shortpath" = x; then 25325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25326 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25327 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25328 fi 25329 25330 # Call helper function which possibly converts this using DOS-style short mode. 25331 # If so, the updated path is stored in $new_path. 25332 25333 input_path="$new_path" 25334 # Check if we need to convert this using DOS-style short mode. If the path 25335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25336 # take no chances and rewrite it. 25337 # Note: m4 eats our [], so we need to use [ and ] instead. 25338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25339 if test "x$has_forbidden_chars" != x; then 25340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25341 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25342 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25343 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25344 # Going to short mode and back again did indeed matter. Since short mode is 25345 # case insensitive, let's make it lowercase to improve readability. 25346 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25347 # Now convert it back to Unix-style (cygpath) 25348 input_path=`$CYGPATH -u "$shortmode_path"` 25349 new_path="$input_path" 25350 fi 25351 fi 25352 25353 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25354 if test "x$test_cygdrive_prefix" = x; then 25355 # As a simple fix, exclude /usr/bin since it's not a real path. 25356 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25357 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25358 # a path prefixed by /cygdrive for fixpath to work. 25359 new_path="$CYGWIN_ROOT_PATH$input_path" 25360 fi 25361 fi 25362 25363 25364 if test "x$path" != "x$new_path"; then 25365 BOOT_JDK="$new_path" 25366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25367 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25368 fi 25369 25370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25371 25372 path="$BOOT_JDK" 25373 has_colon=`$ECHO $path | $GREP ^.:` 25374 new_path="$path" 25375 if test "x$has_colon" = x; then 25376 # Not in mixed or Windows style, start by that. 25377 new_path=`cmd //c echo $path` 25378 fi 25379 25380 25381 input_path="$new_path" 25382 # Check if we need to convert this using DOS-style short mode. If the path 25383 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25384 # take no chances and rewrite it. 25385 # Note: m4 eats our [], so we need to use [ and ] instead. 25386 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25387 if test "x$has_forbidden_chars" != x; then 25388 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25389 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25390 fi 25391 25392 25393 windows_path="$new_path" 25394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25395 unix_path=`$CYGPATH -u "$windows_path"` 25396 new_path="$unix_path" 25397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25399 new_path="$unix_path" 25400 fi 25401 25402 if test "x$path" != "x$new_path"; then 25403 BOOT_JDK="$new_path" 25404 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25405 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25406 fi 25407 25408 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25409 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25410 25411 else 25412 # We're on a unix platform. Hooray! :) 25413 path="$BOOT_JDK" 25414 has_space=`$ECHO "$path" | $GREP " "` 25415 if test "x$has_space" != x; then 25416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25417 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25418 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25419 fi 25420 25421 # Use eval to expand a potential ~ 25422 eval path="$path" 25423 if test ! -f "$path" && test ! -d "$path"; then 25424 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25425 fi 25426 25427 if test -d "$path"; then 25428 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25429 else 25430 dir="`$DIRNAME "$path"`" 25431 base="`$BASENAME "$path"`" 25432 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25433 fi 25434 fi 25435 fi 25436 25437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25438 $as_echo_n "checking for Boot JDK... " >&6; } 25439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25440 $as_echo "$BOOT_JDK" >&6; } 25441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25442 $as_echo_n "checking Boot JDK version... " >&6; } 25443 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25445 $as_echo "$BOOT_JDK_VERSION" >&6; } 25446 fi # end check jdk version 25447 fi # end check javac 25448 fi # end check java 25449 fi # end check boot jdk found 25450 fi 25451 25452 25453 # Test: Is $JAVA_HOME set? 25454 25455 if test "x$BOOT_JDK_FOUND" = xno; then 25456 # Now execute the test 25457 25458 if test "x$JAVA_HOME" != x; then 25459 JAVA_HOME_PROCESSED="$JAVA_HOME" 25460 25461 # Only process if variable expands to non-empty 25462 25463 if test "x$JAVA_HOME_PROCESSED" != x; then 25464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25465 25466 # Input might be given as Windows format, start by converting to 25467 # unix format. 25468 path="$JAVA_HOME_PROCESSED" 25469 new_path=`$CYGPATH -u "$path"` 25470 25471 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25472 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25473 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25474 # "foo.exe" is OK but "foo" is an error. 25475 # 25476 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25477 # It is also a way to make sure we got the proper file name for the real test later on. 25478 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25479 if test "x$test_shortpath" = x; then 25480 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 25481 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 25482 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 25483 fi 25484 25485 # Call helper function which possibly converts this using DOS-style short mode. 25486 # If so, the updated path is stored in $new_path. 25487 25488 input_path="$new_path" 25489 # Check if we need to convert this using DOS-style short mode. If the path 25490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25491 # take no chances and rewrite it. 25492 # Note: m4 eats our [], so we need to use [ and ] instead. 25493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25494 if test "x$has_forbidden_chars" != x; then 25495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25496 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25497 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25498 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25499 # Going to short mode and back again did indeed matter. Since short mode is 25500 # case insensitive, let's make it lowercase to improve readability. 25501 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25502 # Now convert it back to Unix-style (cygpath) 25503 input_path=`$CYGPATH -u "$shortmode_path"` 25504 new_path="$input_path" 25505 fi 25506 fi 25507 25508 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25509 if test "x$test_cygdrive_prefix" = x; then 25510 # As a simple fix, exclude /usr/bin since it's not a real path. 25511 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25512 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25513 # a path prefixed by /cygdrive for fixpath to work. 25514 new_path="$CYGWIN_ROOT_PATH$input_path" 25515 fi 25516 fi 25517 25518 25519 if test "x$path" != "x$new_path"; then 25520 JAVA_HOME_PROCESSED="$new_path" 25521 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 25522 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 25523 fi 25524 25525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25526 25527 path="$JAVA_HOME_PROCESSED" 25528 has_colon=`$ECHO $path | $GREP ^.:` 25529 new_path="$path" 25530 if test "x$has_colon" = x; then 25531 # Not in mixed or Windows style, start by that. 25532 new_path=`cmd //c echo $path` 25533 fi 25534 25535 25536 input_path="$new_path" 25537 # Check if we need to convert this using DOS-style short mode. If the path 25538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25539 # take no chances and rewrite it. 25540 # Note: m4 eats our [], so we need to use [ and ] instead. 25541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25542 if test "x$has_forbidden_chars" != x; then 25543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25544 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25545 fi 25546 25547 25548 windows_path="$new_path" 25549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25550 unix_path=`$CYGPATH -u "$windows_path"` 25551 new_path="$unix_path" 25552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25553 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25554 new_path="$unix_path" 25555 fi 25556 25557 if test "x$path" != "x$new_path"; then 25558 JAVA_HOME_PROCESSED="$new_path" 25559 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 25560 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 25561 fi 25562 25563 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25564 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25565 25566 else 25567 # We're on a unix platform. Hooray! :) 25568 path="$JAVA_HOME_PROCESSED" 25569 has_space=`$ECHO "$path" | $GREP " "` 25570 if test "x$has_space" != x; then 25571 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 25572 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 25573 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25574 fi 25575 25576 # Use eval to expand a potential ~ 25577 eval path="$path" 25578 if test ! -f "$path" && test ! -d "$path"; then 25579 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 25580 fi 25581 25582 if test -d "$path"; then 25583 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 25584 else 25585 dir="`$DIRNAME "$path"`" 25586 base="`$BASENAME "$path"`" 25587 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 25588 fi 25589 fi 25590 fi 25591 25592 if test ! -d "$JAVA_HOME_PROCESSED"; then 25593 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 25594 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 25595 else 25596 # Aha, the user has set a JAVA_HOME 25597 # let us use that as the Boot JDK. 25598 BOOT_JDK="$JAVA_HOME_PROCESSED" 25599 BOOT_JDK_FOUND=maybe 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 25601 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 25602 fi 25603 fi 25604 25605 25606 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25607 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25608 # Do we have a bin/java? 25609 if test ! -x "$BOOT_JDK/bin/java"; then 25610 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25611 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25612 BOOT_JDK_FOUND=no 25613 else 25614 # Do we have a bin/javac? 25615 if test ! -x "$BOOT_JDK/bin/javac"; then 25616 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25617 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25618 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25619 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25620 BOOT_JDK_FOUND=no 25621 else 25622 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25623 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25624 25625 # Extra M4 quote needed to protect [] in grep expression. 25626 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25627 if test "x$FOUND_CORRECT_VERSION" = x; then 25628 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25630 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25631 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25632 BOOT_JDK_FOUND=no 25633 else 25634 # We're done! :-) 25635 BOOT_JDK_FOUND=yes 25636 25637 # Only process if variable expands to non-empty 25638 25639 if test "x$BOOT_JDK" != x; then 25640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25641 25642 # Input might be given as Windows format, start by converting to 25643 # unix format. 25644 path="$BOOT_JDK" 25645 new_path=`$CYGPATH -u "$path"` 25646 25647 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25648 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25649 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25650 # "foo.exe" is OK but "foo" is an error. 25651 # 25652 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25653 # It is also a way to make sure we got the proper file name for the real test later on. 25654 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25655 if test "x$test_shortpath" = x; then 25656 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25657 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25658 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25659 fi 25660 25661 # Call helper function which possibly converts this using DOS-style short mode. 25662 # If so, the updated path is stored in $new_path. 25663 25664 input_path="$new_path" 25665 # Check if we need to convert this using DOS-style short mode. If the path 25666 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25667 # take no chances and rewrite it. 25668 # Note: m4 eats our [], so we need to use [ and ] instead. 25669 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25670 if test "x$has_forbidden_chars" != x; then 25671 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25672 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25673 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25674 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25675 # Going to short mode and back again did indeed matter. Since short mode is 25676 # case insensitive, let's make it lowercase to improve readability. 25677 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25678 # Now convert it back to Unix-style (cygpath) 25679 input_path=`$CYGPATH -u "$shortmode_path"` 25680 new_path="$input_path" 25681 fi 25682 fi 25683 25684 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25685 if test "x$test_cygdrive_prefix" = x; then 25686 # As a simple fix, exclude /usr/bin since it's not a real path. 25687 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25688 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25689 # a path prefixed by /cygdrive for fixpath to work. 25690 new_path="$CYGWIN_ROOT_PATH$input_path" 25691 fi 25692 fi 25693 25694 25695 if test "x$path" != "x$new_path"; then 25696 BOOT_JDK="$new_path" 25697 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25698 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25699 fi 25700 25701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25702 25703 path="$BOOT_JDK" 25704 has_colon=`$ECHO $path | $GREP ^.:` 25705 new_path="$path" 25706 if test "x$has_colon" = x; then 25707 # Not in mixed or Windows style, start by that. 25708 new_path=`cmd //c echo $path` 25709 fi 25710 25711 25712 input_path="$new_path" 25713 # Check if we need to convert this using DOS-style short mode. If the path 25714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25715 # take no chances and rewrite it. 25716 # Note: m4 eats our [], so we need to use [ and ] instead. 25717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25718 if test "x$has_forbidden_chars" != x; then 25719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25720 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25721 fi 25722 25723 25724 windows_path="$new_path" 25725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25726 unix_path=`$CYGPATH -u "$windows_path"` 25727 new_path="$unix_path" 25728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25729 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25730 new_path="$unix_path" 25731 fi 25732 25733 if test "x$path" != "x$new_path"; then 25734 BOOT_JDK="$new_path" 25735 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25736 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25737 fi 25738 25739 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25740 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25741 25742 else 25743 # We're on a unix platform. Hooray! :) 25744 path="$BOOT_JDK" 25745 has_space=`$ECHO "$path" | $GREP " "` 25746 if test "x$has_space" != x; then 25747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25748 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25749 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25750 fi 25751 25752 # Use eval to expand a potential ~ 25753 eval path="$path" 25754 if test ! -f "$path" && test ! -d "$path"; then 25755 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25756 fi 25757 25758 if test -d "$path"; then 25759 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25760 else 25761 dir="`$DIRNAME "$path"`" 25762 base="`$BASENAME "$path"`" 25763 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25764 fi 25765 fi 25766 fi 25767 25768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25769 $as_echo_n "checking for Boot JDK... " >&6; } 25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25771 $as_echo "$BOOT_JDK" >&6; } 25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25773 $as_echo_n "checking Boot JDK version... " >&6; } 25774 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25776 $as_echo "$BOOT_JDK_VERSION" >&6; } 25777 fi # end check jdk version 25778 fi # end check javac 25779 fi # end check java 25780 fi # end check boot jdk found 25781 fi 25782 25783 25784 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 25785 25786 if test "x$BOOT_JDK_FOUND" = xno; then 25787 # Now execute the test 25788 25789 # Extract the first word of "javac", so it can be a program name with args. 25790 set dummy javac; ac_word=$2 25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25792 $as_echo_n "checking for $ac_word... " >&6; } 25793 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 25794 $as_echo_n "(cached) " >&6 25795 else 25796 case $JAVAC_CHECK in 25797 [\\/]* | ?:[\\/]*) 25798 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 25799 ;; 25800 *) 25801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25802 for as_dir in $PATH 25803 do 25804 IFS=$as_save_IFS 25805 test -z "$as_dir" && as_dir=. 25806 for ac_exec_ext in '' $ac_executable_extensions; do 25807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25808 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 25809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25810 break 2 25811 fi 25812 done 25813 done 25814 IFS=$as_save_IFS 25815 25816 ;; 25817 esac 25818 fi 25819 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 25820 if test -n "$JAVAC_CHECK"; then 25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 25822 $as_echo "$JAVAC_CHECK" >&6; } 25823 else 25824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25825 $as_echo "no" >&6; } 25826 fi 25827 25828 25829 # Extract the first word of "java", so it can be a program name with args. 25830 set dummy java; ac_word=$2 25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25832 $as_echo_n "checking for $ac_word... " >&6; } 25833 if ${ac_cv_path_JAVA_CHECK+:} false; then : 25834 $as_echo_n "(cached) " >&6 25835 else 25836 case $JAVA_CHECK in 25837 [\\/]* | ?:[\\/]*) 25838 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 25839 ;; 25840 *) 25841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25842 for as_dir in $PATH 25843 do 25844 IFS=$as_save_IFS 25845 test -z "$as_dir" && as_dir=. 25846 for ac_exec_ext in '' $ac_executable_extensions; do 25847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25848 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 25849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25850 break 2 25851 fi 25852 done 25853 done 25854 IFS=$as_save_IFS 25855 25856 ;; 25857 esac 25858 fi 25859 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 25860 if test -n "$JAVA_CHECK"; then 25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 25862 $as_echo "$JAVA_CHECK" >&6; } 25863 else 25864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25865 $as_echo "no" >&6; } 25866 fi 25867 25868 25869 BINARY="$JAVAC_CHECK" 25870 if test "x$JAVAC_CHECK" = x; then 25871 BINARY="$JAVA_CHECK" 25872 fi 25873 if test "x$BINARY" != x; then 25874 # So there is a java(c) binary, it might be part of a JDK. 25875 # Lets find the JDK/JRE directory by following symbolic links. 25876 # Linux/GNU systems often have links from /usr/bin/java to 25877 # /etc/alternatives/java to the real JDK binary. 25878 25879 if test "x$OPENJDK_BUILD_OS" != xwindows; then 25880 # Follow a chain of symbolic links. Use readlink 25881 # where it exists, else fall back to horribly 25882 # complicated shell code. 25883 if test "x$READLINK_TESTED" != yes; then 25884 # On MacOSX there is a readlink tool with a different 25885 # purpose than the GNU readlink tool. Check the found readlink. 25886 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 25887 if test "x$ISGNU" = x; then 25888 # A readlink that we do not know how to use. 25889 # Are there other non-GNU readlinks out there? 25890 READLINK_TESTED=yes 25891 READLINK= 25892 fi 25893 fi 25894 25895 if test "x$READLINK" != x; then 25896 BINARY=`$READLINK -f $BINARY` 25897 else 25898 # Save the current directory for restoring afterwards 25899 STARTDIR=$PWD 25900 COUNTER=0 25901 sym_link_dir=`$DIRNAME $BINARY` 25902 sym_link_file=`$BASENAME $BINARY` 25903 cd $sym_link_dir 25904 # Use -P flag to resolve symlinks in directories. 25905 cd `$THEPWDCMD -P` 25906 sym_link_dir=`$THEPWDCMD -P` 25907 # Resolve file symlinks 25908 while test $COUNTER -lt 20; do 25909 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 25910 if test "x$ISLINK" == x; then 25911 # This is not a symbolic link! We are done! 25912 break 25913 fi 25914 # Again resolve directory symlinks since the target of the just found 25915 # link could be in a different directory 25916 cd `$DIRNAME $ISLINK` 25917 sym_link_dir=`$THEPWDCMD -P` 25918 sym_link_file=`$BASENAME $ISLINK` 25919 let COUNTER=COUNTER+1 25920 done 25921 cd $STARTDIR 25922 BINARY=$sym_link_dir/$sym_link_file 25923 fi 25924 fi 25925 25926 BOOT_JDK=`dirname "$BINARY"` 25927 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 25928 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 25929 # Looks like we found ourselves an JDK 25930 BOOT_JDK_FOUND=maybe 25931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 25932 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 25933 fi 25934 fi 25935 25936 25937 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25938 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25939 # Do we have a bin/java? 25940 if test ! -x "$BOOT_JDK/bin/java"; then 25941 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25942 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25943 BOOT_JDK_FOUND=no 25944 else 25945 # Do we have a bin/javac? 25946 if test ! -x "$BOOT_JDK/bin/javac"; then 25947 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25948 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25949 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25950 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25951 BOOT_JDK_FOUND=no 25952 else 25953 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25954 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25955 25956 # Extra M4 quote needed to protect [] in grep expression. 25957 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 25958 if test "x$FOUND_CORRECT_VERSION" = x; then 25959 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25960 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25961 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25962 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25963 BOOT_JDK_FOUND=no 25964 else 25965 # We're done! :-) 25966 BOOT_JDK_FOUND=yes 25967 25968 # Only process if variable expands to non-empty 25969 25970 if test "x$BOOT_JDK" != x; then 25971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25972 25973 # Input might be given as Windows format, start by converting to 25974 # unix format. 25975 path="$BOOT_JDK" 25976 new_path=`$CYGPATH -u "$path"` 25977 25978 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25979 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25980 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25981 # "foo.exe" is OK but "foo" is an error. 25982 # 25983 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25984 # It is also a way to make sure we got the proper file name for the real test later on. 25985 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25986 if test "x$test_shortpath" = x; then 25987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25988 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25989 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25990 fi 25991 25992 # Call helper function which possibly converts this using DOS-style short mode. 25993 # If so, the updated path is stored in $new_path. 25994 25995 input_path="$new_path" 25996 # Check if we need to convert this using DOS-style short mode. If the path 25997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25998 # take no chances and rewrite it. 25999 # Note: m4 eats our [], so we need to use [ and ] instead. 26000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26001 if test "x$has_forbidden_chars" != x; then 26002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26003 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26004 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26005 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26006 # Going to short mode and back again did indeed matter. Since short mode is 26007 # case insensitive, let's make it lowercase to improve readability. 26008 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26009 # Now convert it back to Unix-style (cygpath) 26010 input_path=`$CYGPATH -u "$shortmode_path"` 26011 new_path="$input_path" 26012 fi 26013 fi 26014 26015 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26016 if test "x$test_cygdrive_prefix" = x; then 26017 # As a simple fix, exclude /usr/bin since it's not a real path. 26018 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26019 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26020 # a path prefixed by /cygdrive for fixpath to work. 26021 new_path="$CYGWIN_ROOT_PATH$input_path" 26022 fi 26023 fi 26024 26025 26026 if test "x$path" != "x$new_path"; then 26027 BOOT_JDK="$new_path" 26028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26029 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26030 fi 26031 26032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26033 26034 path="$BOOT_JDK" 26035 has_colon=`$ECHO $path | $GREP ^.:` 26036 new_path="$path" 26037 if test "x$has_colon" = x; then 26038 # Not in mixed or Windows style, start by that. 26039 new_path=`cmd //c echo $path` 26040 fi 26041 26042 26043 input_path="$new_path" 26044 # Check if we need to convert this using DOS-style short mode. If the path 26045 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26046 # take no chances and rewrite it. 26047 # Note: m4 eats our [], so we need to use [ and ] instead. 26048 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26049 if test "x$has_forbidden_chars" != x; then 26050 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26051 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26052 fi 26053 26054 26055 windows_path="$new_path" 26056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26057 unix_path=`$CYGPATH -u "$windows_path"` 26058 new_path="$unix_path" 26059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26061 new_path="$unix_path" 26062 fi 26063 26064 if test "x$path" != "x$new_path"; then 26065 BOOT_JDK="$new_path" 26066 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26067 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26068 fi 26069 26070 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26071 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26072 26073 else 26074 # We're on a unix platform. Hooray! :) 26075 path="$BOOT_JDK" 26076 has_space=`$ECHO "$path" | $GREP " "` 26077 if test "x$has_space" != x; then 26078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26079 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26080 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26081 fi 26082 26083 # Use eval to expand a potential ~ 26084 eval path="$path" 26085 if test ! -f "$path" && test ! -d "$path"; then 26086 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26087 fi 26088 26089 if test -d "$path"; then 26090 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26091 else 26092 dir="`$DIRNAME "$path"`" 26093 base="`$BASENAME "$path"`" 26094 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26095 fi 26096 fi 26097 fi 26098 26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26100 $as_echo_n "checking for Boot JDK... " >&6; } 26101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26102 $as_echo "$BOOT_JDK" >&6; } 26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26104 $as_echo_n "checking Boot JDK version... " >&6; } 26105 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26107 $as_echo "$BOOT_JDK_VERSION" >&6; } 26108 fi # end check jdk version 26109 fi # end check javac 26110 fi # end check java 26111 fi # end check boot jdk found 26112 fi 26113 26114 26115 # Test: Is there a JDK installed in default, well-known locations? 26116 26117 if test "x$BOOT_JDK_FOUND" = xno; then 26118 # Now execute the test 26119 26120 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26121 26122 if test "x$BOOT_JDK_FOUND" = xno; then 26123 # Now execute the test 26124 26125 if test "x$ProgramW6432" != x; then 26126 VIRTUAL_DIR="$ProgramW6432/Java" 26127 26128 windows_path="$VIRTUAL_DIR" 26129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26130 unix_path=`$CYGPATH -u "$windows_path"` 26131 VIRTUAL_DIR="$unix_path" 26132 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26133 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26134 VIRTUAL_DIR="$unix_path" 26135 fi 26136 26137 26138 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26139 BOOT_JDK_SUFFIX="" 26140 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26141 if test "x$ALL_JDKS_FOUND" != x; then 26142 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26143 26144 if test "x$BOOT_JDK_FOUND" = xno; then 26145 # Now execute the test 26146 26147 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26148 if test -d "$BOOT_JDK"; then 26149 BOOT_JDK_FOUND=maybe 26150 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26151 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26152 fi 26153 26154 26155 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26156 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26157 # Do we have a bin/java? 26158 if test ! -x "$BOOT_JDK/bin/java"; then 26159 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26160 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26161 BOOT_JDK_FOUND=no 26162 else 26163 # Do we have a bin/javac? 26164 if test ! -x "$BOOT_JDK/bin/javac"; then 26165 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26166 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26167 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26168 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26169 BOOT_JDK_FOUND=no 26170 else 26171 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26172 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26173 26174 # Extra M4 quote needed to protect [] in grep expression. 26175 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26176 if test "x$FOUND_CORRECT_VERSION" = x; then 26177 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26178 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26179 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26180 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26181 BOOT_JDK_FOUND=no 26182 else 26183 # We're done! :-) 26184 BOOT_JDK_FOUND=yes 26185 26186 # Only process if variable expands to non-empty 26187 26188 if test "x$BOOT_JDK" != x; then 26189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26190 26191 # Input might be given as Windows format, start by converting to 26192 # unix format. 26193 path="$BOOT_JDK" 26194 new_path=`$CYGPATH -u "$path"` 26195 26196 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26197 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26198 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26199 # "foo.exe" is OK but "foo" is an error. 26200 # 26201 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26202 # It is also a way to make sure we got the proper file name for the real test later on. 26203 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26204 if test "x$test_shortpath" = x; then 26205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26206 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26207 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26208 fi 26209 26210 # Call helper function which possibly converts this using DOS-style short mode. 26211 # If so, the updated path is stored in $new_path. 26212 26213 input_path="$new_path" 26214 # Check if we need to convert this using DOS-style short mode. If the path 26215 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26216 # take no chances and rewrite it. 26217 # Note: m4 eats our [], so we need to use [ and ] instead. 26218 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26219 if test "x$has_forbidden_chars" != x; then 26220 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26221 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26222 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26223 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26224 # Going to short mode and back again did indeed matter. Since short mode is 26225 # case insensitive, let's make it lowercase to improve readability. 26226 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26227 # Now convert it back to Unix-style (cygpath) 26228 input_path=`$CYGPATH -u "$shortmode_path"` 26229 new_path="$input_path" 26230 fi 26231 fi 26232 26233 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26234 if test "x$test_cygdrive_prefix" = x; then 26235 # As a simple fix, exclude /usr/bin since it's not a real path. 26236 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26237 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26238 # a path prefixed by /cygdrive for fixpath to work. 26239 new_path="$CYGWIN_ROOT_PATH$input_path" 26240 fi 26241 fi 26242 26243 26244 if test "x$path" != "x$new_path"; then 26245 BOOT_JDK="$new_path" 26246 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26247 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26248 fi 26249 26250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26251 26252 path="$BOOT_JDK" 26253 has_colon=`$ECHO $path | $GREP ^.:` 26254 new_path="$path" 26255 if test "x$has_colon" = x; then 26256 # Not in mixed or Windows style, start by that. 26257 new_path=`cmd //c echo $path` 26258 fi 26259 26260 26261 input_path="$new_path" 26262 # Check if we need to convert this using DOS-style short mode. If the path 26263 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26264 # take no chances and rewrite it. 26265 # Note: m4 eats our [], so we need to use [ and ] instead. 26266 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26267 if test "x$has_forbidden_chars" != x; then 26268 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26269 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26270 fi 26271 26272 26273 windows_path="$new_path" 26274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26275 unix_path=`$CYGPATH -u "$windows_path"` 26276 new_path="$unix_path" 26277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26278 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26279 new_path="$unix_path" 26280 fi 26281 26282 if test "x$path" != "x$new_path"; then 26283 BOOT_JDK="$new_path" 26284 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26285 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26286 fi 26287 26288 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26289 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26290 26291 else 26292 # We're on a unix platform. Hooray! :) 26293 path="$BOOT_JDK" 26294 has_space=`$ECHO "$path" | $GREP " "` 26295 if test "x$has_space" != x; then 26296 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26297 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26298 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26299 fi 26300 26301 # Use eval to expand a potential ~ 26302 eval path="$path" 26303 if test ! -f "$path" && test ! -d "$path"; then 26304 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26305 fi 26306 26307 if test -d "$path"; then 26308 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26309 else 26310 dir="`$DIRNAME "$path"`" 26311 base="`$BASENAME "$path"`" 26312 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26313 fi 26314 fi 26315 fi 26316 26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26318 $as_echo_n "checking for Boot JDK... " >&6; } 26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26320 $as_echo "$BOOT_JDK" >&6; } 26321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26322 $as_echo_n "checking Boot JDK version... " >&6; } 26323 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26325 $as_echo "$BOOT_JDK_VERSION" >&6; } 26326 fi # end check jdk version 26327 fi # end check javac 26328 fi # end check java 26329 fi # end check boot jdk found 26330 fi 26331 26332 done 26333 fi 26334 26335 fi 26336 26337 26338 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26339 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26340 # Do we have a bin/java? 26341 if test ! -x "$BOOT_JDK/bin/java"; then 26342 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26343 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26344 BOOT_JDK_FOUND=no 26345 else 26346 # Do we have a bin/javac? 26347 if test ! -x "$BOOT_JDK/bin/javac"; then 26348 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26349 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26350 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26351 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26352 BOOT_JDK_FOUND=no 26353 else 26354 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26355 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26356 26357 # Extra M4 quote needed to protect [] in grep expression. 26358 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26359 if test "x$FOUND_CORRECT_VERSION" = x; then 26360 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26361 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26362 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26363 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26364 BOOT_JDK_FOUND=no 26365 else 26366 # We're done! :-) 26367 BOOT_JDK_FOUND=yes 26368 26369 # Only process if variable expands to non-empty 26370 26371 if test "x$BOOT_JDK" != x; then 26372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26373 26374 # Input might be given as Windows format, start by converting to 26375 # unix format. 26376 path="$BOOT_JDK" 26377 new_path=`$CYGPATH -u "$path"` 26378 26379 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26380 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26381 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26382 # "foo.exe" is OK but "foo" is an error. 26383 # 26384 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26385 # It is also a way to make sure we got the proper file name for the real test later on. 26386 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26387 if test "x$test_shortpath" = x; then 26388 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26389 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26390 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26391 fi 26392 26393 # Call helper function which possibly converts this using DOS-style short mode. 26394 # If so, the updated path is stored in $new_path. 26395 26396 input_path="$new_path" 26397 # Check if we need to convert this using DOS-style short mode. If the path 26398 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26399 # take no chances and rewrite it. 26400 # Note: m4 eats our [], so we need to use [ and ] instead. 26401 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26402 if test "x$has_forbidden_chars" != x; then 26403 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26404 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26405 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26406 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26407 # Going to short mode and back again did indeed matter. Since short mode is 26408 # case insensitive, let's make it lowercase to improve readability. 26409 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26410 # Now convert it back to Unix-style (cygpath) 26411 input_path=`$CYGPATH -u "$shortmode_path"` 26412 new_path="$input_path" 26413 fi 26414 fi 26415 26416 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26417 if test "x$test_cygdrive_prefix" = x; then 26418 # As a simple fix, exclude /usr/bin since it's not a real path. 26419 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26420 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26421 # a path prefixed by /cygdrive for fixpath to work. 26422 new_path="$CYGWIN_ROOT_PATH$input_path" 26423 fi 26424 fi 26425 26426 26427 if test "x$path" != "x$new_path"; then 26428 BOOT_JDK="$new_path" 26429 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26430 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26431 fi 26432 26433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26434 26435 path="$BOOT_JDK" 26436 has_colon=`$ECHO $path | $GREP ^.:` 26437 new_path="$path" 26438 if test "x$has_colon" = x; then 26439 # Not in mixed or Windows style, start by that. 26440 new_path=`cmd //c echo $path` 26441 fi 26442 26443 26444 input_path="$new_path" 26445 # Check if we need to convert this using DOS-style short mode. If the path 26446 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26447 # take no chances and rewrite it. 26448 # Note: m4 eats our [], so we need to use [ and ] instead. 26449 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26450 if test "x$has_forbidden_chars" != x; then 26451 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26452 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26453 fi 26454 26455 26456 windows_path="$new_path" 26457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26458 unix_path=`$CYGPATH -u "$windows_path"` 26459 new_path="$unix_path" 26460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26461 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26462 new_path="$unix_path" 26463 fi 26464 26465 if test "x$path" != "x$new_path"; then 26466 BOOT_JDK="$new_path" 26467 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26468 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26469 fi 26470 26471 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26472 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26473 26474 else 26475 # We're on a unix platform. Hooray! :) 26476 path="$BOOT_JDK" 26477 has_space=`$ECHO "$path" | $GREP " "` 26478 if test "x$has_space" != x; then 26479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26480 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26481 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26482 fi 26483 26484 # Use eval to expand a potential ~ 26485 eval path="$path" 26486 if test ! -f "$path" && test ! -d "$path"; then 26487 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26488 fi 26489 26490 if test -d "$path"; then 26491 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26492 else 26493 dir="`$DIRNAME "$path"`" 26494 base="`$BASENAME "$path"`" 26495 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26496 fi 26497 fi 26498 fi 26499 26500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26501 $as_echo_n "checking for Boot JDK... " >&6; } 26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26503 $as_echo "$BOOT_JDK" >&6; } 26504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26505 $as_echo_n "checking Boot JDK version... " >&6; } 26506 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26508 $as_echo "$BOOT_JDK_VERSION" >&6; } 26509 fi # end check jdk version 26510 fi # end check javac 26511 fi # end check java 26512 fi # end check boot jdk found 26513 fi 26514 26515 26516 if test "x$BOOT_JDK_FOUND" = xno; then 26517 # Now execute the test 26518 26519 if test "x$PROGRAMW6432" != x; then 26520 VIRTUAL_DIR="$PROGRAMW6432/Java" 26521 26522 windows_path="$VIRTUAL_DIR" 26523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26524 unix_path=`$CYGPATH -u "$windows_path"` 26525 VIRTUAL_DIR="$unix_path" 26526 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26527 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26528 VIRTUAL_DIR="$unix_path" 26529 fi 26530 26531 26532 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26533 BOOT_JDK_SUFFIX="" 26534 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26535 if test "x$ALL_JDKS_FOUND" != x; then 26536 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26537 26538 if test "x$BOOT_JDK_FOUND" = xno; then 26539 # Now execute the test 26540 26541 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26542 if test -d "$BOOT_JDK"; then 26543 BOOT_JDK_FOUND=maybe 26544 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26545 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26546 fi 26547 26548 26549 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26550 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26551 # Do we have a bin/java? 26552 if test ! -x "$BOOT_JDK/bin/java"; then 26553 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26554 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26555 BOOT_JDK_FOUND=no 26556 else 26557 # Do we have a bin/javac? 26558 if test ! -x "$BOOT_JDK/bin/javac"; then 26559 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26560 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26561 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26562 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26563 BOOT_JDK_FOUND=no 26564 else 26565 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26566 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26567 26568 # Extra M4 quote needed to protect [] in grep expression. 26569 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26570 if test "x$FOUND_CORRECT_VERSION" = x; then 26571 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26572 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26573 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26574 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26575 BOOT_JDK_FOUND=no 26576 else 26577 # We're done! :-) 26578 BOOT_JDK_FOUND=yes 26579 26580 # Only process if variable expands to non-empty 26581 26582 if test "x$BOOT_JDK" != x; then 26583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26584 26585 # Input might be given as Windows format, start by converting to 26586 # unix format. 26587 path="$BOOT_JDK" 26588 new_path=`$CYGPATH -u "$path"` 26589 26590 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26591 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26592 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26593 # "foo.exe" is OK but "foo" is an error. 26594 # 26595 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26596 # It is also a way to make sure we got the proper file name for the real test later on. 26597 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26598 if test "x$test_shortpath" = x; then 26599 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26600 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26601 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26602 fi 26603 26604 # Call helper function which possibly converts this using DOS-style short mode. 26605 # If so, the updated path is stored in $new_path. 26606 26607 input_path="$new_path" 26608 # Check if we need to convert this using DOS-style short mode. If the path 26609 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26610 # take no chances and rewrite it. 26611 # Note: m4 eats our [], so we need to use [ and ] instead. 26612 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26613 if test "x$has_forbidden_chars" != x; then 26614 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26615 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26616 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26617 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26618 # Going to short mode and back again did indeed matter. Since short mode is 26619 # case insensitive, let's make it lowercase to improve readability. 26620 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26621 # Now convert it back to Unix-style (cygpath) 26622 input_path=`$CYGPATH -u "$shortmode_path"` 26623 new_path="$input_path" 26624 fi 26625 fi 26626 26627 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26628 if test "x$test_cygdrive_prefix" = x; then 26629 # As a simple fix, exclude /usr/bin since it's not a real path. 26630 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26631 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26632 # a path prefixed by /cygdrive for fixpath to work. 26633 new_path="$CYGWIN_ROOT_PATH$input_path" 26634 fi 26635 fi 26636 26637 26638 if test "x$path" != "x$new_path"; then 26639 BOOT_JDK="$new_path" 26640 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26641 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26642 fi 26643 26644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26645 26646 path="$BOOT_JDK" 26647 has_colon=`$ECHO $path | $GREP ^.:` 26648 new_path="$path" 26649 if test "x$has_colon" = x; then 26650 # Not in mixed or Windows style, start by that. 26651 new_path=`cmd //c echo $path` 26652 fi 26653 26654 26655 input_path="$new_path" 26656 # Check if we need to convert this using DOS-style short mode. If the path 26657 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26658 # take no chances and rewrite it. 26659 # Note: m4 eats our [], so we need to use [ and ] instead. 26660 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26661 if test "x$has_forbidden_chars" != x; then 26662 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26663 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26664 fi 26665 26666 26667 windows_path="$new_path" 26668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26669 unix_path=`$CYGPATH -u "$windows_path"` 26670 new_path="$unix_path" 26671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26672 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26673 new_path="$unix_path" 26674 fi 26675 26676 if test "x$path" != "x$new_path"; then 26677 BOOT_JDK="$new_path" 26678 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26679 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26680 fi 26681 26682 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26683 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26684 26685 else 26686 # We're on a unix platform. Hooray! :) 26687 path="$BOOT_JDK" 26688 has_space=`$ECHO "$path" | $GREP " "` 26689 if test "x$has_space" != x; then 26690 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26691 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26692 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26693 fi 26694 26695 # Use eval to expand a potential ~ 26696 eval path="$path" 26697 if test ! -f "$path" && test ! -d "$path"; then 26698 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26699 fi 26700 26701 if test -d "$path"; then 26702 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26703 else 26704 dir="`$DIRNAME "$path"`" 26705 base="`$BASENAME "$path"`" 26706 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26707 fi 26708 fi 26709 fi 26710 26711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26712 $as_echo_n "checking for Boot JDK... " >&6; } 26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26714 $as_echo "$BOOT_JDK" >&6; } 26715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26716 $as_echo_n "checking Boot JDK version... " >&6; } 26717 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26719 $as_echo "$BOOT_JDK_VERSION" >&6; } 26720 fi # end check jdk version 26721 fi # end check javac 26722 fi # end check java 26723 fi # end check boot jdk found 26724 fi 26725 26726 done 26727 fi 26728 26729 fi 26730 26731 26732 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26733 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26734 # Do we have a bin/java? 26735 if test ! -x "$BOOT_JDK/bin/java"; then 26736 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26737 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26738 BOOT_JDK_FOUND=no 26739 else 26740 # Do we have a bin/javac? 26741 if test ! -x "$BOOT_JDK/bin/javac"; then 26742 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26743 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26744 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26745 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26746 BOOT_JDK_FOUND=no 26747 else 26748 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26749 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26750 26751 # Extra M4 quote needed to protect [] in grep expression. 26752 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26753 if test "x$FOUND_CORRECT_VERSION" = x; then 26754 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26755 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26756 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26757 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26758 BOOT_JDK_FOUND=no 26759 else 26760 # We're done! :-) 26761 BOOT_JDK_FOUND=yes 26762 26763 # Only process if variable expands to non-empty 26764 26765 if test "x$BOOT_JDK" != x; then 26766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26767 26768 # Input might be given as Windows format, start by converting to 26769 # unix format. 26770 path="$BOOT_JDK" 26771 new_path=`$CYGPATH -u "$path"` 26772 26773 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26774 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26775 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26776 # "foo.exe" is OK but "foo" is an error. 26777 # 26778 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26779 # It is also a way to make sure we got the proper file name for the real test later on. 26780 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26781 if test "x$test_shortpath" = x; then 26782 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26783 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26784 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26785 fi 26786 26787 # Call helper function which possibly converts this using DOS-style short mode. 26788 # If so, the updated path is stored in $new_path. 26789 26790 input_path="$new_path" 26791 # Check if we need to convert this using DOS-style short mode. If the path 26792 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26793 # take no chances and rewrite it. 26794 # Note: m4 eats our [], so we need to use [ and ] instead. 26795 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26796 if test "x$has_forbidden_chars" != x; then 26797 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26798 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26799 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26800 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26801 # Going to short mode and back again did indeed matter. Since short mode is 26802 # case insensitive, let's make it lowercase to improve readability. 26803 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26804 # Now convert it back to Unix-style (cygpath) 26805 input_path=`$CYGPATH -u "$shortmode_path"` 26806 new_path="$input_path" 26807 fi 26808 fi 26809 26810 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26811 if test "x$test_cygdrive_prefix" = x; then 26812 # As a simple fix, exclude /usr/bin since it's not a real path. 26813 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26814 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26815 # a path prefixed by /cygdrive for fixpath to work. 26816 new_path="$CYGWIN_ROOT_PATH$input_path" 26817 fi 26818 fi 26819 26820 26821 if test "x$path" != "x$new_path"; then 26822 BOOT_JDK="$new_path" 26823 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26824 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26825 fi 26826 26827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26828 26829 path="$BOOT_JDK" 26830 has_colon=`$ECHO $path | $GREP ^.:` 26831 new_path="$path" 26832 if test "x$has_colon" = x; then 26833 # Not in mixed or Windows style, start by that. 26834 new_path=`cmd //c echo $path` 26835 fi 26836 26837 26838 input_path="$new_path" 26839 # Check if we need to convert this using DOS-style short mode. If the path 26840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26841 # take no chances and rewrite it. 26842 # Note: m4 eats our [], so we need to use [ and ] instead. 26843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26844 if test "x$has_forbidden_chars" != x; then 26845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26846 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26847 fi 26848 26849 26850 windows_path="$new_path" 26851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26852 unix_path=`$CYGPATH -u "$windows_path"` 26853 new_path="$unix_path" 26854 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26855 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26856 new_path="$unix_path" 26857 fi 26858 26859 if test "x$path" != "x$new_path"; then 26860 BOOT_JDK="$new_path" 26861 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26862 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26863 fi 26864 26865 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26866 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26867 26868 else 26869 # We're on a unix platform. Hooray! :) 26870 path="$BOOT_JDK" 26871 has_space=`$ECHO "$path" | $GREP " "` 26872 if test "x$has_space" != x; then 26873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26874 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26875 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26876 fi 26877 26878 # Use eval to expand a potential ~ 26879 eval path="$path" 26880 if test ! -f "$path" && test ! -d "$path"; then 26881 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26882 fi 26883 26884 if test -d "$path"; then 26885 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26886 else 26887 dir="`$DIRNAME "$path"`" 26888 base="`$BASENAME "$path"`" 26889 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26890 fi 26891 fi 26892 fi 26893 26894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26895 $as_echo_n "checking for Boot JDK... " >&6; } 26896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26897 $as_echo "$BOOT_JDK" >&6; } 26898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26899 $as_echo_n "checking Boot JDK version... " >&6; } 26900 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26902 $as_echo "$BOOT_JDK_VERSION" >&6; } 26903 fi # end check jdk version 26904 fi # end check javac 26905 fi # end check java 26906 fi # end check boot jdk found 26907 fi 26908 26909 26910 if test "x$BOOT_JDK_FOUND" = xno; then 26911 # Now execute the test 26912 26913 if test "x$PROGRAMFILES" != x; then 26914 VIRTUAL_DIR="$PROGRAMFILES/Java" 26915 26916 windows_path="$VIRTUAL_DIR" 26917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26918 unix_path=`$CYGPATH -u "$windows_path"` 26919 VIRTUAL_DIR="$unix_path" 26920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26922 VIRTUAL_DIR="$unix_path" 26923 fi 26924 26925 26926 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 26927 BOOT_JDK_SUFFIX="" 26928 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 26929 if test "x$ALL_JDKS_FOUND" != x; then 26930 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 26931 26932 if test "x$BOOT_JDK_FOUND" = xno; then 26933 # Now execute the test 26934 26935 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 26936 if test -d "$BOOT_JDK"; then 26937 BOOT_JDK_FOUND=maybe 26938 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 26939 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 26940 fi 26941 26942 26943 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26944 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26945 # Do we have a bin/java? 26946 if test ! -x "$BOOT_JDK/bin/java"; then 26947 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26948 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26949 BOOT_JDK_FOUND=no 26950 else 26951 # Do we have a bin/javac? 26952 if test ! -x "$BOOT_JDK/bin/javac"; then 26953 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26954 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26955 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26956 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26957 BOOT_JDK_FOUND=no 26958 else 26959 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26960 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26961 26962 # Extra M4 quote needed to protect [] in grep expression. 26963 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 26964 if test "x$FOUND_CORRECT_VERSION" = x; then 26965 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26966 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26967 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26968 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26969 BOOT_JDK_FOUND=no 26970 else 26971 # We're done! :-) 26972 BOOT_JDK_FOUND=yes 26973 26974 # Only process if variable expands to non-empty 26975 26976 if test "x$BOOT_JDK" != x; then 26977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26978 26979 # Input might be given as Windows format, start by converting to 26980 # unix format. 26981 path="$BOOT_JDK" 26982 new_path=`$CYGPATH -u "$path"` 26983 26984 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26985 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26986 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26987 # "foo.exe" is OK but "foo" is an error. 26988 # 26989 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26990 # It is also a way to make sure we got the proper file name for the real test later on. 26991 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26992 if test "x$test_shortpath" = x; then 26993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26994 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26995 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26996 fi 26997 26998 # Call helper function which possibly converts this using DOS-style short mode. 26999 # If so, the updated path is stored in $new_path. 27000 27001 input_path="$new_path" 27002 # Check if we need to convert this using DOS-style short mode. If the path 27003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27004 # take no chances and rewrite it. 27005 # Note: m4 eats our [], so we need to use [ and ] instead. 27006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27007 if test "x$has_forbidden_chars" != x; then 27008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27009 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27010 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27011 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27012 # Going to short mode and back again did indeed matter. Since short mode is 27013 # case insensitive, let's make it lowercase to improve readability. 27014 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27015 # Now convert it back to Unix-style (cygpath) 27016 input_path=`$CYGPATH -u "$shortmode_path"` 27017 new_path="$input_path" 27018 fi 27019 fi 27020 27021 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27022 if test "x$test_cygdrive_prefix" = x; then 27023 # As a simple fix, exclude /usr/bin since it's not a real path. 27024 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27025 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27026 # a path prefixed by /cygdrive for fixpath to work. 27027 new_path="$CYGWIN_ROOT_PATH$input_path" 27028 fi 27029 fi 27030 27031 27032 if test "x$path" != "x$new_path"; then 27033 BOOT_JDK="$new_path" 27034 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27035 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27036 fi 27037 27038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27039 27040 path="$BOOT_JDK" 27041 has_colon=`$ECHO $path | $GREP ^.:` 27042 new_path="$path" 27043 if test "x$has_colon" = x; then 27044 # Not in mixed or Windows style, start by that. 27045 new_path=`cmd //c echo $path` 27046 fi 27047 27048 27049 input_path="$new_path" 27050 # Check if we need to convert this using DOS-style short mode. If the path 27051 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27052 # take no chances and rewrite it. 27053 # Note: m4 eats our [], so we need to use [ and ] instead. 27054 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27055 if test "x$has_forbidden_chars" != x; then 27056 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27057 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27058 fi 27059 27060 27061 windows_path="$new_path" 27062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27063 unix_path=`$CYGPATH -u "$windows_path"` 27064 new_path="$unix_path" 27065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27066 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27067 new_path="$unix_path" 27068 fi 27069 27070 if test "x$path" != "x$new_path"; then 27071 BOOT_JDK="$new_path" 27072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27073 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27074 fi 27075 27076 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27077 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27078 27079 else 27080 # We're on a unix platform. Hooray! :) 27081 path="$BOOT_JDK" 27082 has_space=`$ECHO "$path" | $GREP " "` 27083 if test "x$has_space" != x; then 27084 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27085 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27086 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27087 fi 27088 27089 # Use eval to expand a potential ~ 27090 eval path="$path" 27091 if test ! -f "$path" && test ! -d "$path"; then 27092 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27093 fi 27094 27095 if test -d "$path"; then 27096 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27097 else 27098 dir="`$DIRNAME "$path"`" 27099 base="`$BASENAME "$path"`" 27100 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27101 fi 27102 fi 27103 fi 27104 27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27106 $as_echo_n "checking for Boot JDK... " >&6; } 27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27108 $as_echo "$BOOT_JDK" >&6; } 27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27110 $as_echo_n "checking Boot JDK version... " >&6; } 27111 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27113 $as_echo "$BOOT_JDK_VERSION" >&6; } 27114 fi # end check jdk version 27115 fi # end check javac 27116 fi # end check java 27117 fi # end check boot jdk found 27118 fi 27119 27120 done 27121 fi 27122 27123 fi 27124 27125 27126 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27127 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27128 # Do we have a bin/java? 27129 if test ! -x "$BOOT_JDK/bin/java"; then 27130 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27131 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27132 BOOT_JDK_FOUND=no 27133 else 27134 # Do we have a bin/javac? 27135 if test ! -x "$BOOT_JDK/bin/javac"; then 27136 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27137 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27138 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27139 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27140 BOOT_JDK_FOUND=no 27141 else 27142 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27143 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27144 27145 # Extra M4 quote needed to protect [] in grep expression. 27146 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27147 if test "x$FOUND_CORRECT_VERSION" = x; then 27148 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27149 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27150 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27151 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27152 BOOT_JDK_FOUND=no 27153 else 27154 # We're done! :-) 27155 BOOT_JDK_FOUND=yes 27156 27157 # Only process if variable expands to non-empty 27158 27159 if test "x$BOOT_JDK" != x; then 27160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27161 27162 # Input might be given as Windows format, start by converting to 27163 # unix format. 27164 path="$BOOT_JDK" 27165 new_path=`$CYGPATH -u "$path"` 27166 27167 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27168 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27169 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27170 # "foo.exe" is OK but "foo" is an error. 27171 # 27172 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27173 # It is also a way to make sure we got the proper file name for the real test later on. 27174 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27175 if test "x$test_shortpath" = x; then 27176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27177 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27178 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27179 fi 27180 27181 # Call helper function which possibly converts this using DOS-style short mode. 27182 # If so, the updated path is stored in $new_path. 27183 27184 input_path="$new_path" 27185 # Check if we need to convert this using DOS-style short mode. If the path 27186 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27187 # take no chances and rewrite it. 27188 # Note: m4 eats our [], so we need to use [ and ] instead. 27189 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27190 if test "x$has_forbidden_chars" != x; then 27191 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27192 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27193 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27194 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27195 # Going to short mode and back again did indeed matter. Since short mode is 27196 # case insensitive, let's make it lowercase to improve readability. 27197 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27198 # Now convert it back to Unix-style (cygpath) 27199 input_path=`$CYGPATH -u "$shortmode_path"` 27200 new_path="$input_path" 27201 fi 27202 fi 27203 27204 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27205 if test "x$test_cygdrive_prefix" = x; then 27206 # As a simple fix, exclude /usr/bin since it's not a real path. 27207 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27208 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27209 # a path prefixed by /cygdrive for fixpath to work. 27210 new_path="$CYGWIN_ROOT_PATH$input_path" 27211 fi 27212 fi 27213 27214 27215 if test "x$path" != "x$new_path"; then 27216 BOOT_JDK="$new_path" 27217 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27218 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27219 fi 27220 27221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27222 27223 path="$BOOT_JDK" 27224 has_colon=`$ECHO $path | $GREP ^.:` 27225 new_path="$path" 27226 if test "x$has_colon" = x; then 27227 # Not in mixed or Windows style, start by that. 27228 new_path=`cmd //c echo $path` 27229 fi 27230 27231 27232 input_path="$new_path" 27233 # Check if we need to convert this using DOS-style short mode. If the path 27234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27235 # take no chances and rewrite it. 27236 # Note: m4 eats our [], so we need to use [ and ] instead. 27237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27238 if test "x$has_forbidden_chars" != x; then 27239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27240 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27241 fi 27242 27243 27244 windows_path="$new_path" 27245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27246 unix_path=`$CYGPATH -u "$windows_path"` 27247 new_path="$unix_path" 27248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27249 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27250 new_path="$unix_path" 27251 fi 27252 27253 if test "x$path" != "x$new_path"; then 27254 BOOT_JDK="$new_path" 27255 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27256 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27257 fi 27258 27259 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27260 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27261 27262 else 27263 # We're on a unix platform. Hooray! :) 27264 path="$BOOT_JDK" 27265 has_space=`$ECHO "$path" | $GREP " "` 27266 if test "x$has_space" != x; then 27267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27268 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27269 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27270 fi 27271 27272 # Use eval to expand a potential ~ 27273 eval path="$path" 27274 if test ! -f "$path" && test ! -d "$path"; then 27275 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27276 fi 27277 27278 if test -d "$path"; then 27279 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27280 else 27281 dir="`$DIRNAME "$path"`" 27282 base="`$BASENAME "$path"`" 27283 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27284 fi 27285 fi 27286 fi 27287 27288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27289 $as_echo_n "checking for Boot JDK... " >&6; } 27290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27291 $as_echo "$BOOT_JDK" >&6; } 27292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27293 $as_echo_n "checking Boot JDK version... " >&6; } 27294 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27296 $as_echo "$BOOT_JDK_VERSION" >&6; } 27297 fi # end check jdk version 27298 fi # end check javac 27299 fi # end check java 27300 fi # end check boot jdk found 27301 fi 27302 27303 27304 if test "x$BOOT_JDK_FOUND" = xno; then 27305 # Now execute the test 27306 27307 if test "x$ProgramFiles" != x; then 27308 VIRTUAL_DIR="$ProgramFiles/Java" 27309 27310 windows_path="$VIRTUAL_DIR" 27311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27312 unix_path=`$CYGPATH -u "$windows_path"` 27313 VIRTUAL_DIR="$unix_path" 27314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27316 VIRTUAL_DIR="$unix_path" 27317 fi 27318 27319 27320 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27321 BOOT_JDK_SUFFIX="" 27322 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27323 if test "x$ALL_JDKS_FOUND" != x; then 27324 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27325 27326 if test "x$BOOT_JDK_FOUND" = xno; then 27327 # Now execute the test 27328 27329 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27330 if test -d "$BOOT_JDK"; then 27331 BOOT_JDK_FOUND=maybe 27332 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27333 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27334 fi 27335 27336 27337 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27338 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27339 # Do we have a bin/java? 27340 if test ! -x "$BOOT_JDK/bin/java"; then 27341 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27342 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27343 BOOT_JDK_FOUND=no 27344 else 27345 # Do we have a bin/javac? 27346 if test ! -x "$BOOT_JDK/bin/javac"; then 27347 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27348 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27349 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27350 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27351 BOOT_JDK_FOUND=no 27352 else 27353 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27354 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27355 27356 # Extra M4 quote needed to protect [] in grep expression. 27357 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27358 if test "x$FOUND_CORRECT_VERSION" = x; then 27359 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27360 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27361 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27362 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27363 BOOT_JDK_FOUND=no 27364 else 27365 # We're done! :-) 27366 BOOT_JDK_FOUND=yes 27367 27368 # Only process if variable expands to non-empty 27369 27370 if test "x$BOOT_JDK" != x; then 27371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27372 27373 # Input might be given as Windows format, start by converting to 27374 # unix format. 27375 path="$BOOT_JDK" 27376 new_path=`$CYGPATH -u "$path"` 27377 27378 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27379 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27380 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27381 # "foo.exe" is OK but "foo" is an error. 27382 # 27383 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27384 # It is also a way to make sure we got the proper file name for the real test later on. 27385 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27386 if test "x$test_shortpath" = x; then 27387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27388 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27389 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27390 fi 27391 27392 # Call helper function which possibly converts this using DOS-style short mode. 27393 # If so, the updated path is stored in $new_path. 27394 27395 input_path="$new_path" 27396 # Check if we need to convert this using DOS-style short mode. If the path 27397 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27398 # take no chances and rewrite it. 27399 # Note: m4 eats our [], so we need to use [ and ] instead. 27400 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27401 if test "x$has_forbidden_chars" != x; then 27402 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27403 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27404 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27405 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27406 # Going to short mode and back again did indeed matter. Since short mode is 27407 # case insensitive, let's make it lowercase to improve readability. 27408 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27409 # Now convert it back to Unix-style (cygpath) 27410 input_path=`$CYGPATH -u "$shortmode_path"` 27411 new_path="$input_path" 27412 fi 27413 fi 27414 27415 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27416 if test "x$test_cygdrive_prefix" = x; then 27417 # As a simple fix, exclude /usr/bin since it's not a real path. 27418 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27419 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27420 # a path prefixed by /cygdrive for fixpath to work. 27421 new_path="$CYGWIN_ROOT_PATH$input_path" 27422 fi 27423 fi 27424 27425 27426 if test "x$path" != "x$new_path"; then 27427 BOOT_JDK="$new_path" 27428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27429 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27430 fi 27431 27432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27433 27434 path="$BOOT_JDK" 27435 has_colon=`$ECHO $path | $GREP ^.:` 27436 new_path="$path" 27437 if test "x$has_colon" = x; then 27438 # Not in mixed or Windows style, start by that. 27439 new_path=`cmd //c echo $path` 27440 fi 27441 27442 27443 input_path="$new_path" 27444 # Check if we need to convert this using DOS-style short mode. If the path 27445 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27446 # take no chances and rewrite it. 27447 # Note: m4 eats our [], so we need to use [ and ] instead. 27448 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27449 if test "x$has_forbidden_chars" != x; then 27450 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27451 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27452 fi 27453 27454 27455 windows_path="$new_path" 27456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27457 unix_path=`$CYGPATH -u "$windows_path"` 27458 new_path="$unix_path" 27459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27460 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27461 new_path="$unix_path" 27462 fi 27463 27464 if test "x$path" != "x$new_path"; then 27465 BOOT_JDK="$new_path" 27466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27467 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27468 fi 27469 27470 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27471 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27472 27473 else 27474 # We're on a unix platform. Hooray! :) 27475 path="$BOOT_JDK" 27476 has_space=`$ECHO "$path" | $GREP " "` 27477 if test "x$has_space" != x; then 27478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27479 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27480 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27481 fi 27482 27483 # Use eval to expand a potential ~ 27484 eval path="$path" 27485 if test ! -f "$path" && test ! -d "$path"; then 27486 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27487 fi 27488 27489 if test -d "$path"; then 27490 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27491 else 27492 dir="`$DIRNAME "$path"`" 27493 base="`$BASENAME "$path"`" 27494 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27495 fi 27496 fi 27497 fi 27498 27499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27500 $as_echo_n "checking for Boot JDK... " >&6; } 27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27502 $as_echo "$BOOT_JDK" >&6; } 27503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27504 $as_echo_n "checking Boot JDK version... " >&6; } 27505 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27507 $as_echo "$BOOT_JDK_VERSION" >&6; } 27508 fi # end check jdk version 27509 fi # end check javac 27510 fi # end check java 27511 fi # end check boot jdk found 27512 fi 27513 27514 done 27515 fi 27516 27517 fi 27518 27519 27520 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27521 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27522 # Do we have a bin/java? 27523 if test ! -x "$BOOT_JDK/bin/java"; then 27524 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27525 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27526 BOOT_JDK_FOUND=no 27527 else 27528 # Do we have a bin/javac? 27529 if test ! -x "$BOOT_JDK/bin/javac"; then 27530 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27531 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27532 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27533 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27534 BOOT_JDK_FOUND=no 27535 else 27536 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27537 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27538 27539 # Extra M4 quote needed to protect [] in grep expression. 27540 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27541 if test "x$FOUND_CORRECT_VERSION" = x; then 27542 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27543 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27544 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27545 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27546 BOOT_JDK_FOUND=no 27547 else 27548 # We're done! :-) 27549 BOOT_JDK_FOUND=yes 27550 27551 # Only process if variable expands to non-empty 27552 27553 if test "x$BOOT_JDK" != x; then 27554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27555 27556 # Input might be given as Windows format, start by converting to 27557 # unix format. 27558 path="$BOOT_JDK" 27559 new_path=`$CYGPATH -u "$path"` 27560 27561 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27562 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27563 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27564 # "foo.exe" is OK but "foo" is an error. 27565 # 27566 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27567 # It is also a way to make sure we got the proper file name for the real test later on. 27568 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27569 if test "x$test_shortpath" = x; then 27570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27571 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27572 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27573 fi 27574 27575 # Call helper function which possibly converts this using DOS-style short mode. 27576 # If so, the updated path is stored in $new_path. 27577 27578 input_path="$new_path" 27579 # Check if we need to convert this using DOS-style short mode. If the path 27580 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27581 # take no chances and rewrite it. 27582 # Note: m4 eats our [], so we need to use [ and ] instead. 27583 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27584 if test "x$has_forbidden_chars" != x; then 27585 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27586 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27587 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27588 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27589 # Going to short mode and back again did indeed matter. Since short mode is 27590 # case insensitive, let's make it lowercase to improve readability. 27591 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27592 # Now convert it back to Unix-style (cygpath) 27593 input_path=`$CYGPATH -u "$shortmode_path"` 27594 new_path="$input_path" 27595 fi 27596 fi 27597 27598 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27599 if test "x$test_cygdrive_prefix" = x; then 27600 # As a simple fix, exclude /usr/bin since it's not a real path. 27601 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27602 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27603 # a path prefixed by /cygdrive for fixpath to work. 27604 new_path="$CYGWIN_ROOT_PATH$input_path" 27605 fi 27606 fi 27607 27608 27609 if test "x$path" != "x$new_path"; then 27610 BOOT_JDK="$new_path" 27611 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27612 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27613 fi 27614 27615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27616 27617 path="$BOOT_JDK" 27618 has_colon=`$ECHO $path | $GREP ^.:` 27619 new_path="$path" 27620 if test "x$has_colon" = x; then 27621 # Not in mixed or Windows style, start by that. 27622 new_path=`cmd //c echo $path` 27623 fi 27624 27625 27626 input_path="$new_path" 27627 # Check if we need to convert this using DOS-style short mode. If the path 27628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27629 # take no chances and rewrite it. 27630 # Note: m4 eats our [], so we need to use [ and ] instead. 27631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27632 if test "x$has_forbidden_chars" != x; then 27633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27634 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27635 fi 27636 27637 27638 windows_path="$new_path" 27639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27640 unix_path=`$CYGPATH -u "$windows_path"` 27641 new_path="$unix_path" 27642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27643 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27644 new_path="$unix_path" 27645 fi 27646 27647 if test "x$path" != "x$new_path"; then 27648 BOOT_JDK="$new_path" 27649 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27650 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27651 fi 27652 27653 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27654 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27655 27656 else 27657 # We're on a unix platform. Hooray! :) 27658 path="$BOOT_JDK" 27659 has_space=`$ECHO "$path" | $GREP " "` 27660 if test "x$has_space" != x; then 27661 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27662 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27663 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27664 fi 27665 27666 # Use eval to expand a potential ~ 27667 eval path="$path" 27668 if test ! -f "$path" && test ! -d "$path"; then 27669 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27670 fi 27671 27672 if test -d "$path"; then 27673 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27674 else 27675 dir="`$DIRNAME "$path"`" 27676 base="`$BASENAME "$path"`" 27677 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27678 fi 27679 fi 27680 fi 27681 27682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27683 $as_echo_n "checking for Boot JDK... " >&6; } 27684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27685 $as_echo "$BOOT_JDK" >&6; } 27686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27687 $as_echo_n "checking Boot JDK version... " >&6; } 27688 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27690 $as_echo "$BOOT_JDK_VERSION" >&6; } 27691 fi # end check jdk version 27692 fi # end check javac 27693 fi # end check java 27694 fi # end check boot jdk found 27695 fi 27696 27697 27698 if test "x$BOOT_JDK_FOUND" = xno; then 27699 # Now execute the test 27700 27701 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 27702 BOOT_JDK_SUFFIX="" 27703 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27704 if test "x$ALL_JDKS_FOUND" != x; then 27705 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27706 27707 if test "x$BOOT_JDK_FOUND" = xno; then 27708 # Now execute the test 27709 27710 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27711 if test -d "$BOOT_JDK"; then 27712 BOOT_JDK_FOUND=maybe 27713 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27714 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27715 fi 27716 27717 27718 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27719 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27720 # Do we have a bin/java? 27721 if test ! -x "$BOOT_JDK/bin/java"; then 27722 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27723 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27724 BOOT_JDK_FOUND=no 27725 else 27726 # Do we have a bin/javac? 27727 if test ! -x "$BOOT_JDK/bin/javac"; then 27728 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27729 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27730 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27731 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27732 BOOT_JDK_FOUND=no 27733 else 27734 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27735 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27736 27737 # Extra M4 quote needed to protect [] in grep expression. 27738 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27739 if test "x$FOUND_CORRECT_VERSION" = x; then 27740 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27741 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27742 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27743 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27744 BOOT_JDK_FOUND=no 27745 else 27746 # We're done! :-) 27747 BOOT_JDK_FOUND=yes 27748 27749 # Only process if variable expands to non-empty 27750 27751 if test "x$BOOT_JDK" != x; then 27752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27753 27754 # Input might be given as Windows format, start by converting to 27755 # unix format. 27756 path="$BOOT_JDK" 27757 new_path=`$CYGPATH -u "$path"` 27758 27759 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27760 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27761 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27762 # "foo.exe" is OK but "foo" is an error. 27763 # 27764 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27765 # It is also a way to make sure we got the proper file name for the real test later on. 27766 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27767 if test "x$test_shortpath" = x; then 27768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27770 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27771 fi 27772 27773 # Call helper function which possibly converts this using DOS-style short mode. 27774 # If so, the updated path is stored in $new_path. 27775 27776 input_path="$new_path" 27777 # Check if we need to convert this using DOS-style short mode. If the path 27778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27779 # take no chances and rewrite it. 27780 # Note: m4 eats our [], so we need to use [ and ] instead. 27781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27782 if test "x$has_forbidden_chars" != x; then 27783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27784 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27785 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27786 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27787 # Going to short mode and back again did indeed matter. Since short mode is 27788 # case insensitive, let's make it lowercase to improve readability. 27789 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27790 # Now convert it back to Unix-style (cygpath) 27791 input_path=`$CYGPATH -u "$shortmode_path"` 27792 new_path="$input_path" 27793 fi 27794 fi 27795 27796 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27797 if test "x$test_cygdrive_prefix" = x; then 27798 # As a simple fix, exclude /usr/bin since it's not a real path. 27799 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27800 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27801 # a path prefixed by /cygdrive for fixpath to work. 27802 new_path="$CYGWIN_ROOT_PATH$input_path" 27803 fi 27804 fi 27805 27806 27807 if test "x$path" != "x$new_path"; then 27808 BOOT_JDK="$new_path" 27809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27810 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27811 fi 27812 27813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27814 27815 path="$BOOT_JDK" 27816 has_colon=`$ECHO $path | $GREP ^.:` 27817 new_path="$path" 27818 if test "x$has_colon" = x; then 27819 # Not in mixed or Windows style, start by that. 27820 new_path=`cmd //c echo $path` 27821 fi 27822 27823 27824 input_path="$new_path" 27825 # Check if we need to convert this using DOS-style short mode. If the path 27826 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27827 # take no chances and rewrite it. 27828 # Note: m4 eats our [], so we need to use [ and ] instead. 27829 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27830 if test "x$has_forbidden_chars" != x; then 27831 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27832 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27833 fi 27834 27835 27836 windows_path="$new_path" 27837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27838 unix_path=`$CYGPATH -u "$windows_path"` 27839 new_path="$unix_path" 27840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27841 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27842 new_path="$unix_path" 27843 fi 27844 27845 if test "x$path" != "x$new_path"; then 27846 BOOT_JDK="$new_path" 27847 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27848 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27849 fi 27850 27851 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27852 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27853 27854 else 27855 # We're on a unix platform. Hooray! :) 27856 path="$BOOT_JDK" 27857 has_space=`$ECHO "$path" | $GREP " "` 27858 if test "x$has_space" != x; then 27859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27860 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27861 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27862 fi 27863 27864 # Use eval to expand a potential ~ 27865 eval path="$path" 27866 if test ! -f "$path" && test ! -d "$path"; then 27867 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27868 fi 27869 27870 if test -d "$path"; then 27871 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27872 else 27873 dir="`$DIRNAME "$path"`" 27874 base="`$BASENAME "$path"`" 27875 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27876 fi 27877 fi 27878 fi 27879 27880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27881 $as_echo_n "checking for Boot JDK... " >&6; } 27882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27883 $as_echo "$BOOT_JDK" >&6; } 27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27885 $as_echo_n "checking Boot JDK version... " >&6; } 27886 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27888 $as_echo "$BOOT_JDK_VERSION" >&6; } 27889 fi # end check jdk version 27890 fi # end check javac 27891 fi # end check java 27892 fi # end check boot jdk found 27893 fi 27894 27895 done 27896 fi 27897 27898 27899 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27900 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27901 # Do we have a bin/java? 27902 if test ! -x "$BOOT_JDK/bin/java"; then 27903 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27904 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27905 BOOT_JDK_FOUND=no 27906 else 27907 # Do we have a bin/javac? 27908 if test ! -x "$BOOT_JDK/bin/javac"; then 27909 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27910 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27911 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27912 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27913 BOOT_JDK_FOUND=no 27914 else 27915 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27916 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 27917 27918 # Extra M4 quote needed to protect [] in grep expression. 27919 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 27920 if test "x$FOUND_CORRECT_VERSION" = x; then 27921 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27922 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27923 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 27924 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 27925 BOOT_JDK_FOUND=no 27926 else 27927 # We're done! :-) 27928 BOOT_JDK_FOUND=yes 27929 27930 # Only process if variable expands to non-empty 27931 27932 if test "x$BOOT_JDK" != x; then 27933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27934 27935 # Input might be given as Windows format, start by converting to 27936 # unix format. 27937 path="$BOOT_JDK" 27938 new_path=`$CYGPATH -u "$path"` 27939 27940 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27941 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27942 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27943 # "foo.exe" is OK but "foo" is an error. 27944 # 27945 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27946 # It is also a way to make sure we got the proper file name for the real test later on. 27947 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27948 if test "x$test_shortpath" = x; then 27949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27950 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27951 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27952 fi 27953 27954 # Call helper function which possibly converts this using DOS-style short mode. 27955 # If so, the updated path is stored in $new_path. 27956 27957 input_path="$new_path" 27958 # Check if we need to convert this using DOS-style short mode. If the path 27959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27960 # take no chances and rewrite it. 27961 # Note: m4 eats our [], so we need to use [ and ] instead. 27962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27963 if test "x$has_forbidden_chars" != x; then 27964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27965 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27966 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27967 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27968 # Going to short mode and back again did indeed matter. Since short mode is 27969 # case insensitive, let's make it lowercase to improve readability. 27970 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27971 # Now convert it back to Unix-style (cygpath) 27972 input_path=`$CYGPATH -u "$shortmode_path"` 27973 new_path="$input_path" 27974 fi 27975 fi 27976 27977 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27978 if test "x$test_cygdrive_prefix" = x; then 27979 # As a simple fix, exclude /usr/bin since it's not a real path. 27980 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27981 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27982 # a path prefixed by /cygdrive for fixpath to work. 27983 new_path="$CYGWIN_ROOT_PATH$input_path" 27984 fi 27985 fi 27986 27987 27988 if test "x$path" != "x$new_path"; then 27989 BOOT_JDK="$new_path" 27990 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27991 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27992 fi 27993 27994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27995 27996 path="$BOOT_JDK" 27997 has_colon=`$ECHO $path | $GREP ^.:` 27998 new_path="$path" 27999 if test "x$has_colon" = x; then 28000 # Not in mixed or Windows style, start by that. 28001 new_path=`cmd //c echo $path` 28002 fi 28003 28004 28005 input_path="$new_path" 28006 # Check if we need to convert this using DOS-style short mode. If the path 28007 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28008 # take no chances and rewrite it. 28009 # Note: m4 eats our [], so we need to use [ and ] instead. 28010 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28011 if test "x$has_forbidden_chars" != x; then 28012 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28013 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28014 fi 28015 28016 28017 windows_path="$new_path" 28018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28019 unix_path=`$CYGPATH -u "$windows_path"` 28020 new_path="$unix_path" 28021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28022 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28023 new_path="$unix_path" 28024 fi 28025 28026 if test "x$path" != "x$new_path"; then 28027 BOOT_JDK="$new_path" 28028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28029 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28030 fi 28031 28032 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28033 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28034 28035 else 28036 # We're on a unix platform. Hooray! :) 28037 path="$BOOT_JDK" 28038 has_space=`$ECHO "$path" | $GREP " "` 28039 if test "x$has_space" != x; then 28040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28041 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28042 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28043 fi 28044 28045 # Use eval to expand a potential ~ 28046 eval path="$path" 28047 if test ! -f "$path" && test ! -d "$path"; then 28048 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28049 fi 28050 28051 if test -d "$path"; then 28052 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28053 else 28054 dir="`$DIRNAME "$path"`" 28055 base="`$BASENAME "$path"`" 28056 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28057 fi 28058 fi 28059 fi 28060 28061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28062 $as_echo_n "checking for Boot JDK... " >&6; } 28063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28064 $as_echo "$BOOT_JDK" >&6; } 28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28066 $as_echo_n "checking Boot JDK version... " >&6; } 28067 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28069 $as_echo "$BOOT_JDK_VERSION" >&6; } 28070 fi # end check jdk version 28071 fi # end check javac 28072 fi # end check java 28073 fi # end check boot jdk found 28074 fi 28075 28076 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 28077 28078 if test "x$BOOT_JDK_FOUND" = xno; then 28079 # Now execute the test 28080 28081 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 28082 BOOT_JDK_SUFFIX="/Contents/Home" 28083 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28084 if test "x$ALL_JDKS_FOUND" != x; then 28085 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28086 28087 if test "x$BOOT_JDK_FOUND" = xno; then 28088 # Now execute the test 28089 28090 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28091 if test -d "$BOOT_JDK"; then 28092 BOOT_JDK_FOUND=maybe 28093 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28094 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28095 fi 28096 28097 28098 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28099 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28100 # Do we have a bin/java? 28101 if test ! -x "$BOOT_JDK/bin/java"; then 28102 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28103 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28104 BOOT_JDK_FOUND=no 28105 else 28106 # Do we have a bin/javac? 28107 if test ! -x "$BOOT_JDK/bin/javac"; then 28108 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28109 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28110 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28111 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28112 BOOT_JDK_FOUND=no 28113 else 28114 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28115 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28116 28117 # Extra M4 quote needed to protect [] in grep expression. 28118 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28119 if test "x$FOUND_CORRECT_VERSION" = x; then 28120 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28121 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28122 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28123 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28124 BOOT_JDK_FOUND=no 28125 else 28126 # We're done! :-) 28127 BOOT_JDK_FOUND=yes 28128 28129 # Only process if variable expands to non-empty 28130 28131 if test "x$BOOT_JDK" != x; then 28132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28133 28134 # Input might be given as Windows format, start by converting to 28135 # unix format. 28136 path="$BOOT_JDK" 28137 new_path=`$CYGPATH -u "$path"` 28138 28139 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28140 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28141 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28142 # "foo.exe" is OK but "foo" is an error. 28143 # 28144 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28145 # It is also a way to make sure we got the proper file name for the real test later on. 28146 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28147 if test "x$test_shortpath" = x; then 28148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28149 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28150 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28151 fi 28152 28153 # Call helper function which possibly converts this using DOS-style short mode. 28154 # If so, the updated path is stored in $new_path. 28155 28156 input_path="$new_path" 28157 # Check if we need to convert this using DOS-style short mode. If the path 28158 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28159 # take no chances and rewrite it. 28160 # Note: m4 eats our [], so we need to use [ and ] instead. 28161 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28162 if test "x$has_forbidden_chars" != x; then 28163 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28164 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28165 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28166 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28167 # Going to short mode and back again did indeed matter. Since short mode is 28168 # case insensitive, let's make it lowercase to improve readability. 28169 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28170 # Now convert it back to Unix-style (cygpath) 28171 input_path=`$CYGPATH -u "$shortmode_path"` 28172 new_path="$input_path" 28173 fi 28174 fi 28175 28176 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28177 if test "x$test_cygdrive_prefix" = x; then 28178 # As a simple fix, exclude /usr/bin since it's not a real path. 28179 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28180 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28181 # a path prefixed by /cygdrive for fixpath to work. 28182 new_path="$CYGWIN_ROOT_PATH$input_path" 28183 fi 28184 fi 28185 28186 28187 if test "x$path" != "x$new_path"; then 28188 BOOT_JDK="$new_path" 28189 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28190 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28191 fi 28192 28193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28194 28195 path="$BOOT_JDK" 28196 has_colon=`$ECHO $path | $GREP ^.:` 28197 new_path="$path" 28198 if test "x$has_colon" = x; then 28199 # Not in mixed or Windows style, start by that. 28200 new_path=`cmd //c echo $path` 28201 fi 28202 28203 28204 input_path="$new_path" 28205 # Check if we need to convert this using DOS-style short mode. If the path 28206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28207 # take no chances and rewrite it. 28208 # Note: m4 eats our [], so we need to use [ and ] instead. 28209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28210 if test "x$has_forbidden_chars" != x; then 28211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28212 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28213 fi 28214 28215 28216 windows_path="$new_path" 28217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28218 unix_path=`$CYGPATH -u "$windows_path"` 28219 new_path="$unix_path" 28220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28221 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28222 new_path="$unix_path" 28223 fi 28224 28225 if test "x$path" != "x$new_path"; then 28226 BOOT_JDK="$new_path" 28227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28228 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28229 fi 28230 28231 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28232 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28233 28234 else 28235 # We're on a unix platform. Hooray! :) 28236 path="$BOOT_JDK" 28237 has_space=`$ECHO "$path" | $GREP " "` 28238 if test "x$has_space" != x; then 28239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28240 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28241 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28242 fi 28243 28244 # Use eval to expand a potential ~ 28245 eval path="$path" 28246 if test ! -f "$path" && test ! -d "$path"; then 28247 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28248 fi 28249 28250 if test -d "$path"; then 28251 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28252 else 28253 dir="`$DIRNAME "$path"`" 28254 base="`$BASENAME "$path"`" 28255 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28256 fi 28257 fi 28258 fi 28259 28260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28261 $as_echo_n "checking for Boot JDK... " >&6; } 28262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28263 $as_echo "$BOOT_JDK" >&6; } 28264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28265 $as_echo_n "checking Boot JDK version... " >&6; } 28266 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28268 $as_echo "$BOOT_JDK_VERSION" >&6; } 28269 fi # end check jdk version 28270 fi # end check javac 28271 fi # end check java 28272 fi # end check boot jdk found 28273 fi 28274 28275 done 28276 fi 28277 28278 28279 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28280 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28281 # Do we have a bin/java? 28282 if test ! -x "$BOOT_JDK/bin/java"; then 28283 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28284 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28285 BOOT_JDK_FOUND=no 28286 else 28287 # Do we have a bin/javac? 28288 if test ! -x "$BOOT_JDK/bin/javac"; then 28289 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28290 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28291 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28292 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28293 BOOT_JDK_FOUND=no 28294 else 28295 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28296 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28297 28298 # Extra M4 quote needed to protect [] in grep expression. 28299 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28300 if test "x$FOUND_CORRECT_VERSION" = x; then 28301 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28302 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28303 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28304 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28305 BOOT_JDK_FOUND=no 28306 else 28307 # We're done! :-) 28308 BOOT_JDK_FOUND=yes 28309 28310 # Only process if variable expands to non-empty 28311 28312 if test "x$BOOT_JDK" != x; then 28313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28314 28315 # Input might be given as Windows format, start by converting to 28316 # unix format. 28317 path="$BOOT_JDK" 28318 new_path=`$CYGPATH -u "$path"` 28319 28320 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28321 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28322 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28323 # "foo.exe" is OK but "foo" is an error. 28324 # 28325 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28326 # It is also a way to make sure we got the proper file name for the real test later on. 28327 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28328 if test "x$test_shortpath" = x; then 28329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28330 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28331 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28332 fi 28333 28334 # Call helper function which possibly converts this using DOS-style short mode. 28335 # If so, the updated path is stored in $new_path. 28336 28337 input_path="$new_path" 28338 # Check if we need to convert this using DOS-style short mode. If the path 28339 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28340 # take no chances and rewrite it. 28341 # Note: m4 eats our [], so we need to use [ and ] instead. 28342 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28343 if test "x$has_forbidden_chars" != x; then 28344 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28345 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28346 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28347 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28348 # Going to short mode and back again did indeed matter. Since short mode is 28349 # case insensitive, let's make it lowercase to improve readability. 28350 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28351 # Now convert it back to Unix-style (cygpath) 28352 input_path=`$CYGPATH -u "$shortmode_path"` 28353 new_path="$input_path" 28354 fi 28355 fi 28356 28357 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28358 if test "x$test_cygdrive_prefix" = x; then 28359 # As a simple fix, exclude /usr/bin since it's not a real path. 28360 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28361 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28362 # a path prefixed by /cygdrive for fixpath to work. 28363 new_path="$CYGWIN_ROOT_PATH$input_path" 28364 fi 28365 fi 28366 28367 28368 if test "x$path" != "x$new_path"; then 28369 BOOT_JDK="$new_path" 28370 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28371 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28372 fi 28373 28374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28375 28376 path="$BOOT_JDK" 28377 has_colon=`$ECHO $path | $GREP ^.:` 28378 new_path="$path" 28379 if test "x$has_colon" = x; then 28380 # Not in mixed or Windows style, start by that. 28381 new_path=`cmd //c echo $path` 28382 fi 28383 28384 28385 input_path="$new_path" 28386 # Check if we need to convert this using DOS-style short mode. If the path 28387 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28388 # take no chances and rewrite it. 28389 # Note: m4 eats our [], so we need to use [ and ] instead. 28390 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28391 if test "x$has_forbidden_chars" != x; then 28392 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28393 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28394 fi 28395 28396 28397 windows_path="$new_path" 28398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28399 unix_path=`$CYGPATH -u "$windows_path"` 28400 new_path="$unix_path" 28401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28402 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28403 new_path="$unix_path" 28404 fi 28405 28406 if test "x$path" != "x$new_path"; then 28407 BOOT_JDK="$new_path" 28408 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28409 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28410 fi 28411 28412 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28413 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28414 28415 else 28416 # We're on a unix platform. Hooray! :) 28417 path="$BOOT_JDK" 28418 has_space=`$ECHO "$path" | $GREP " "` 28419 if test "x$has_space" != x; then 28420 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28421 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28422 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28423 fi 28424 28425 # Use eval to expand a potential ~ 28426 eval path="$path" 28427 if test ! -f "$path" && test ! -d "$path"; then 28428 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28429 fi 28430 28431 if test -d "$path"; then 28432 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28433 else 28434 dir="`$DIRNAME "$path"`" 28435 base="`$BASENAME "$path"`" 28436 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28437 fi 28438 fi 28439 fi 28440 28441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28442 $as_echo_n "checking for Boot JDK... " >&6; } 28443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28444 $as_echo "$BOOT_JDK" >&6; } 28445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28446 $as_echo_n "checking Boot JDK version... " >&6; } 28447 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28449 $as_echo "$BOOT_JDK_VERSION" >&6; } 28450 fi # end check jdk version 28451 fi # end check javac 28452 fi # end check java 28453 fi # end check boot jdk found 28454 fi 28455 28456 28457 if test "x$BOOT_JDK_FOUND" = xno; then 28458 # Now execute the test 28459 28460 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 28461 BOOT_JDK_SUFFIX="/Contents/Home" 28462 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28463 if test "x$ALL_JDKS_FOUND" != x; then 28464 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28465 28466 if test "x$BOOT_JDK_FOUND" = xno; then 28467 # Now execute the test 28468 28469 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28470 if test -d "$BOOT_JDK"; then 28471 BOOT_JDK_FOUND=maybe 28472 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28473 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28474 fi 28475 28476 28477 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28478 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28479 # Do we have a bin/java? 28480 if test ! -x "$BOOT_JDK/bin/java"; then 28481 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28482 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28483 BOOT_JDK_FOUND=no 28484 else 28485 # Do we have a bin/javac? 28486 if test ! -x "$BOOT_JDK/bin/javac"; then 28487 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28488 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28489 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28490 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28491 BOOT_JDK_FOUND=no 28492 else 28493 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28494 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28495 28496 # Extra M4 quote needed to protect [] in grep expression. 28497 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28498 if test "x$FOUND_CORRECT_VERSION" = x; then 28499 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28500 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28501 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28502 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28503 BOOT_JDK_FOUND=no 28504 else 28505 # We're done! :-) 28506 BOOT_JDK_FOUND=yes 28507 28508 # Only process if variable expands to non-empty 28509 28510 if test "x$BOOT_JDK" != x; then 28511 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28512 28513 # Input might be given as Windows format, start by converting to 28514 # unix format. 28515 path="$BOOT_JDK" 28516 new_path=`$CYGPATH -u "$path"` 28517 28518 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28519 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28520 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28521 # "foo.exe" is OK but "foo" is an error. 28522 # 28523 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28524 # It is also a way to make sure we got the proper file name for the real test later on. 28525 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28526 if test "x$test_shortpath" = x; then 28527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28528 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28529 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28530 fi 28531 28532 # Call helper function which possibly converts this using DOS-style short mode. 28533 # If so, the updated path is stored in $new_path. 28534 28535 input_path="$new_path" 28536 # Check if we need to convert this using DOS-style short mode. If the path 28537 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28538 # take no chances and rewrite it. 28539 # Note: m4 eats our [], so we need to use [ and ] instead. 28540 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28541 if test "x$has_forbidden_chars" != x; then 28542 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28543 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28544 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28545 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28546 # Going to short mode and back again did indeed matter. Since short mode is 28547 # case insensitive, let's make it lowercase to improve readability. 28548 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28549 # Now convert it back to Unix-style (cygpath) 28550 input_path=`$CYGPATH -u "$shortmode_path"` 28551 new_path="$input_path" 28552 fi 28553 fi 28554 28555 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28556 if test "x$test_cygdrive_prefix" = x; then 28557 # As a simple fix, exclude /usr/bin since it's not a real path. 28558 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28559 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28560 # a path prefixed by /cygdrive for fixpath to work. 28561 new_path="$CYGWIN_ROOT_PATH$input_path" 28562 fi 28563 fi 28564 28565 28566 if test "x$path" != "x$new_path"; then 28567 BOOT_JDK="$new_path" 28568 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28569 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28570 fi 28571 28572 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28573 28574 path="$BOOT_JDK" 28575 has_colon=`$ECHO $path | $GREP ^.:` 28576 new_path="$path" 28577 if test "x$has_colon" = x; then 28578 # Not in mixed or Windows style, start by that. 28579 new_path=`cmd //c echo $path` 28580 fi 28581 28582 28583 input_path="$new_path" 28584 # Check if we need to convert this using DOS-style short mode. If the path 28585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28586 # take no chances and rewrite it. 28587 # Note: m4 eats our [], so we need to use [ and ] instead. 28588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28589 if test "x$has_forbidden_chars" != x; then 28590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28591 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28592 fi 28593 28594 28595 windows_path="$new_path" 28596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28597 unix_path=`$CYGPATH -u "$windows_path"` 28598 new_path="$unix_path" 28599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28601 new_path="$unix_path" 28602 fi 28603 28604 if test "x$path" != "x$new_path"; then 28605 BOOT_JDK="$new_path" 28606 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28607 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28608 fi 28609 28610 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28611 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28612 28613 else 28614 # We're on a unix platform. Hooray! :) 28615 path="$BOOT_JDK" 28616 has_space=`$ECHO "$path" | $GREP " "` 28617 if test "x$has_space" != x; then 28618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28619 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28620 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28621 fi 28622 28623 # Use eval to expand a potential ~ 28624 eval path="$path" 28625 if test ! -f "$path" && test ! -d "$path"; then 28626 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28627 fi 28628 28629 if test -d "$path"; then 28630 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28631 else 28632 dir="`$DIRNAME "$path"`" 28633 base="`$BASENAME "$path"`" 28634 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28635 fi 28636 fi 28637 fi 28638 28639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28640 $as_echo_n "checking for Boot JDK... " >&6; } 28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28642 $as_echo "$BOOT_JDK" >&6; } 28643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28644 $as_echo_n "checking Boot JDK version... " >&6; } 28645 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28647 $as_echo "$BOOT_JDK_VERSION" >&6; } 28648 fi # end check jdk version 28649 fi # end check javac 28650 fi # end check java 28651 fi # end check boot jdk found 28652 fi 28653 28654 done 28655 fi 28656 28657 28658 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28659 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28660 # Do we have a bin/java? 28661 if test ! -x "$BOOT_JDK/bin/java"; then 28662 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28663 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28664 BOOT_JDK_FOUND=no 28665 else 28666 # Do we have a bin/javac? 28667 if test ! -x "$BOOT_JDK/bin/javac"; then 28668 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28669 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28670 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28671 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28672 BOOT_JDK_FOUND=no 28673 else 28674 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28675 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28676 28677 # Extra M4 quote needed to protect [] in grep expression. 28678 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28679 if test "x$FOUND_CORRECT_VERSION" = x; then 28680 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28681 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28682 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28683 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28684 BOOT_JDK_FOUND=no 28685 else 28686 # We're done! :-) 28687 BOOT_JDK_FOUND=yes 28688 28689 # Only process if variable expands to non-empty 28690 28691 if test "x$BOOT_JDK" != x; then 28692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28693 28694 # Input might be given as Windows format, start by converting to 28695 # unix format. 28696 path="$BOOT_JDK" 28697 new_path=`$CYGPATH -u "$path"` 28698 28699 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28700 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28701 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28702 # "foo.exe" is OK but "foo" is an error. 28703 # 28704 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28705 # It is also a way to make sure we got the proper file name for the real test later on. 28706 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28707 if test "x$test_shortpath" = x; then 28708 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28709 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28710 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28711 fi 28712 28713 # Call helper function which possibly converts this using DOS-style short mode. 28714 # If so, the updated path is stored in $new_path. 28715 28716 input_path="$new_path" 28717 # Check if we need to convert this using DOS-style short mode. If the path 28718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28719 # take no chances and rewrite it. 28720 # Note: m4 eats our [], so we need to use [ and ] instead. 28721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28722 if test "x$has_forbidden_chars" != x; then 28723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28724 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28725 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28726 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28727 # Going to short mode and back again did indeed matter. Since short mode is 28728 # case insensitive, let's make it lowercase to improve readability. 28729 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28730 # Now convert it back to Unix-style (cygpath) 28731 input_path=`$CYGPATH -u "$shortmode_path"` 28732 new_path="$input_path" 28733 fi 28734 fi 28735 28736 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28737 if test "x$test_cygdrive_prefix" = x; then 28738 # As a simple fix, exclude /usr/bin since it's not a real path. 28739 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28740 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28741 # a path prefixed by /cygdrive for fixpath to work. 28742 new_path="$CYGWIN_ROOT_PATH$input_path" 28743 fi 28744 fi 28745 28746 28747 if test "x$path" != "x$new_path"; then 28748 BOOT_JDK="$new_path" 28749 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28750 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28751 fi 28752 28753 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28754 28755 path="$BOOT_JDK" 28756 has_colon=`$ECHO $path | $GREP ^.:` 28757 new_path="$path" 28758 if test "x$has_colon" = x; then 28759 # Not in mixed or Windows style, start by that. 28760 new_path=`cmd //c echo $path` 28761 fi 28762 28763 28764 input_path="$new_path" 28765 # Check if we need to convert this using DOS-style short mode. If the path 28766 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28767 # take no chances and rewrite it. 28768 # Note: m4 eats our [], so we need to use [ and ] instead. 28769 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28770 if test "x$has_forbidden_chars" != x; then 28771 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28772 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28773 fi 28774 28775 28776 windows_path="$new_path" 28777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28778 unix_path=`$CYGPATH -u "$windows_path"` 28779 new_path="$unix_path" 28780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28781 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28782 new_path="$unix_path" 28783 fi 28784 28785 if test "x$path" != "x$new_path"; then 28786 BOOT_JDK="$new_path" 28787 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28788 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28789 fi 28790 28791 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28792 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28793 28794 else 28795 # We're on a unix platform. Hooray! :) 28796 path="$BOOT_JDK" 28797 has_space=`$ECHO "$path" | $GREP " "` 28798 if test "x$has_space" != x; then 28799 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28800 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28801 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28802 fi 28803 28804 # Use eval to expand a potential ~ 28805 eval path="$path" 28806 if test ! -f "$path" && test ! -d "$path"; then 28807 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28808 fi 28809 28810 if test -d "$path"; then 28811 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28812 else 28813 dir="`$DIRNAME "$path"`" 28814 base="`$BASENAME "$path"`" 28815 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28816 fi 28817 fi 28818 fi 28819 28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28821 $as_echo_n "checking for Boot JDK... " >&6; } 28822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28823 $as_echo "$BOOT_JDK" >&6; } 28824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28825 $as_echo_n "checking Boot JDK version... " >&6; } 28826 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28828 $as_echo "$BOOT_JDK_VERSION" >&6; } 28829 fi # end check jdk version 28830 fi # end check javac 28831 fi # end check java 28832 fi # end check boot jdk found 28833 fi 28834 28835 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 28836 28837 if test "x$BOOT_JDK_FOUND" = xno; then 28838 # Now execute the test 28839 28840 BOOT_JDK_PREFIX="/usr/lib/jvm" 28841 BOOT_JDK_SUFFIX="" 28842 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28843 if test "x$ALL_JDKS_FOUND" != x; then 28844 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28845 28846 if test "x$BOOT_JDK_FOUND" = xno; then 28847 # Now execute the test 28848 28849 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28850 if test -d "$BOOT_JDK"; then 28851 BOOT_JDK_FOUND=maybe 28852 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28853 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28854 fi 28855 28856 28857 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28858 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28859 # Do we have a bin/java? 28860 if test ! -x "$BOOT_JDK/bin/java"; then 28861 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28862 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28863 BOOT_JDK_FOUND=no 28864 else 28865 # Do we have a bin/javac? 28866 if test ! -x "$BOOT_JDK/bin/javac"; then 28867 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28868 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28869 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28870 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28871 BOOT_JDK_FOUND=no 28872 else 28873 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28874 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 28875 28876 # Extra M4 quote needed to protect [] in grep expression. 28877 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 28878 if test "x$FOUND_CORRECT_VERSION" = x; then 28879 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28880 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28881 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 28882 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 28883 BOOT_JDK_FOUND=no 28884 else 28885 # We're done! :-) 28886 BOOT_JDK_FOUND=yes 28887 28888 # Only process if variable expands to non-empty 28889 28890 if test "x$BOOT_JDK" != x; then 28891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28892 28893 # Input might be given as Windows format, start by converting to 28894 # unix format. 28895 path="$BOOT_JDK" 28896 new_path=`$CYGPATH -u "$path"` 28897 28898 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28899 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28900 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28901 # "foo.exe" is OK but "foo" is an error. 28902 # 28903 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28904 # It is also a way to make sure we got the proper file name for the real test later on. 28905 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28906 if test "x$test_shortpath" = x; then 28907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28908 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28909 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28910 fi 28911 28912 # Call helper function which possibly converts this using DOS-style short mode. 28913 # If so, the updated path is stored in $new_path. 28914 28915 input_path="$new_path" 28916 # Check if we need to convert this using DOS-style short mode. If the path 28917 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28918 # take no chances and rewrite it. 28919 # Note: m4 eats our [], so we need to use [ and ] instead. 28920 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28921 if test "x$has_forbidden_chars" != x; then 28922 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28923 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28924 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28925 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28926 # Going to short mode and back again did indeed matter. Since short mode is 28927 # case insensitive, let's make it lowercase to improve readability. 28928 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28929 # Now convert it back to Unix-style (cygpath) 28930 input_path=`$CYGPATH -u "$shortmode_path"` 28931 new_path="$input_path" 28932 fi 28933 fi 28934 28935 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28936 if test "x$test_cygdrive_prefix" = x; then 28937 # As a simple fix, exclude /usr/bin since it's not a real path. 28938 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28939 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28940 # a path prefixed by /cygdrive for fixpath to work. 28941 new_path="$CYGWIN_ROOT_PATH$input_path" 28942 fi 28943 fi 28944 28945 28946 if test "x$path" != "x$new_path"; then 28947 BOOT_JDK="$new_path" 28948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28949 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28950 fi 28951 28952 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28953 28954 path="$BOOT_JDK" 28955 has_colon=`$ECHO $path | $GREP ^.:` 28956 new_path="$path" 28957 if test "x$has_colon" = x; then 28958 # Not in mixed or Windows style, start by that. 28959 new_path=`cmd //c echo $path` 28960 fi 28961 28962 28963 input_path="$new_path" 28964 # Check if we need to convert this using DOS-style short mode. If the path 28965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28966 # take no chances and rewrite it. 28967 # Note: m4 eats our [], so we need to use [ and ] instead. 28968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28969 if test "x$has_forbidden_chars" != x; then 28970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28971 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28972 fi 28973 28974 28975 windows_path="$new_path" 28976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28977 unix_path=`$CYGPATH -u "$windows_path"` 28978 new_path="$unix_path" 28979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28981 new_path="$unix_path" 28982 fi 28983 28984 if test "x$path" != "x$new_path"; then 28985 BOOT_JDK="$new_path" 28986 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28987 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28988 fi 28989 28990 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28991 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28992 28993 else 28994 # We're on a unix platform. Hooray! :) 28995 path="$BOOT_JDK" 28996 has_space=`$ECHO "$path" | $GREP " "` 28997 if test "x$has_space" != x; then 28998 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28999 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29000 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29001 fi 29002 29003 # Use eval to expand a potential ~ 29004 eval path="$path" 29005 if test ! -f "$path" && test ! -d "$path"; then 29006 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29007 fi 29008 29009 if test -d "$path"; then 29010 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29011 else 29012 dir="`$DIRNAME "$path"`" 29013 base="`$BASENAME "$path"`" 29014 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29015 fi 29016 fi 29017 fi 29018 29019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29020 $as_echo_n "checking for Boot JDK... " >&6; } 29021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29022 $as_echo "$BOOT_JDK" >&6; } 29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29024 $as_echo_n "checking Boot JDK version... " >&6; } 29025 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29027 $as_echo "$BOOT_JDK_VERSION" >&6; } 29028 fi # end check jdk version 29029 fi # end check javac 29030 fi # end check java 29031 fi # end check boot jdk found 29032 fi 29033 29034 done 29035 fi 29036 29037 29038 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29039 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29040 # Do we have a bin/java? 29041 if test ! -x "$BOOT_JDK/bin/java"; then 29042 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29043 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29044 BOOT_JDK_FOUND=no 29045 else 29046 # Do we have a bin/javac? 29047 if test ! -x "$BOOT_JDK/bin/javac"; then 29048 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29049 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29050 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29051 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29052 BOOT_JDK_FOUND=no 29053 else 29054 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29055 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 29056 29057 # Extra M4 quote needed to protect [] in grep expression. 29058 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29059 if test "x$FOUND_CORRECT_VERSION" = x; then 29060 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29061 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29062 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29063 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29064 BOOT_JDK_FOUND=no 29065 else 29066 # We're done! :-) 29067 BOOT_JDK_FOUND=yes 29068 29069 # Only process if variable expands to non-empty 29070 29071 if test "x$BOOT_JDK" != x; then 29072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29073 29074 # Input might be given as Windows format, start by converting to 29075 # unix format. 29076 path="$BOOT_JDK" 29077 new_path=`$CYGPATH -u "$path"` 29078 29079 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29080 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29081 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29082 # "foo.exe" is OK but "foo" is an error. 29083 # 29084 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29085 # It is also a way to make sure we got the proper file name for the real test later on. 29086 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29087 if test "x$test_shortpath" = x; then 29088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29089 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29090 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29091 fi 29092 29093 # Call helper function which possibly converts this using DOS-style short mode. 29094 # If so, the updated path is stored in $new_path. 29095 29096 input_path="$new_path" 29097 # Check if we need to convert this using DOS-style short mode. If the path 29098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29099 # take no chances and rewrite it. 29100 # Note: m4 eats our [], so we need to use [ and ] instead. 29101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29102 if test "x$has_forbidden_chars" != x; then 29103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29104 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29105 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29106 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29107 # Going to short mode and back again did indeed matter. Since short mode is 29108 # case insensitive, let's make it lowercase to improve readability. 29109 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29110 # Now convert it back to Unix-style (cygpath) 29111 input_path=`$CYGPATH -u "$shortmode_path"` 29112 new_path="$input_path" 29113 fi 29114 fi 29115 29116 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29117 if test "x$test_cygdrive_prefix" = x; then 29118 # As a simple fix, exclude /usr/bin since it's not a real path. 29119 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29120 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29121 # a path prefixed by /cygdrive for fixpath to work. 29122 new_path="$CYGWIN_ROOT_PATH$input_path" 29123 fi 29124 fi 29125 29126 29127 if test "x$path" != "x$new_path"; then 29128 BOOT_JDK="$new_path" 29129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29130 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29131 fi 29132 29133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29134 29135 path="$BOOT_JDK" 29136 has_colon=`$ECHO $path | $GREP ^.:` 29137 new_path="$path" 29138 if test "x$has_colon" = x; then 29139 # Not in mixed or Windows style, start by that. 29140 new_path=`cmd //c echo $path` 29141 fi 29142 29143 29144 input_path="$new_path" 29145 # Check if we need to convert this using DOS-style short mode. If the path 29146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29147 # take no chances and rewrite it. 29148 # Note: m4 eats our [], so we need to use [ and ] instead. 29149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29150 if test "x$has_forbidden_chars" != x; then 29151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29152 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29153 fi 29154 29155 29156 windows_path="$new_path" 29157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29158 unix_path=`$CYGPATH -u "$windows_path"` 29159 new_path="$unix_path" 29160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29162 new_path="$unix_path" 29163 fi 29164 29165 if test "x$path" != "x$new_path"; then 29166 BOOT_JDK="$new_path" 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29168 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29169 fi 29170 29171 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29172 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29173 29174 else 29175 # We're on a unix platform. Hooray! :) 29176 path="$BOOT_JDK" 29177 has_space=`$ECHO "$path" | $GREP " "` 29178 if test "x$has_space" != x; then 29179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29180 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29181 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29182 fi 29183 29184 # Use eval to expand a potential ~ 29185 eval path="$path" 29186 if test ! -f "$path" && test ! -d "$path"; then 29187 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29188 fi 29189 29190 if test -d "$path"; then 29191 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29192 else 29193 dir="`$DIRNAME "$path"`" 29194 base="`$BASENAME "$path"`" 29195 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29196 fi 29197 fi 29198 fi 29199 29200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29201 $as_echo_n "checking for Boot JDK... " >&6; } 29202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29203 $as_echo "$BOOT_JDK" >&6; } 29204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29205 $as_echo_n "checking Boot JDK version... " >&6; } 29206 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29208 $as_echo "$BOOT_JDK_VERSION" >&6; } 29209 fi # end check jdk version 29210 fi # end check javac 29211 fi # end check java 29212 fi # end check boot jdk found 29213 fi 29214 29215 fi 29216 29217 29218 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29219 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29220 # Do we have a bin/java? 29221 if test ! -x "$BOOT_JDK/bin/java"; then 29222 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29223 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29224 BOOT_JDK_FOUND=no 29225 else 29226 # Do we have a bin/javac? 29227 if test ! -x "$BOOT_JDK/bin/javac"; then 29228 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29229 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29230 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29231 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29232 BOOT_JDK_FOUND=no 29233 else 29234 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29235 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 29236 29237 # Extra M4 quote needed to protect [] in grep expression. 29238 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"|(1\.[89]\.)'` 29239 if test "x$FOUND_CORRECT_VERSION" = x; then 29240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29242 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 29243 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 29244 BOOT_JDK_FOUND=no 29245 else 29246 # We're done! :-) 29247 BOOT_JDK_FOUND=yes 29248 29249 # Only process if variable expands to non-empty 29250 29251 if test "x$BOOT_JDK" != x; then 29252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29253 29254 # Input might be given as Windows format, start by converting to 29255 # unix format. 29256 path="$BOOT_JDK" 29257 new_path=`$CYGPATH -u "$path"` 29258 29259 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29260 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29261 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29262 # "foo.exe" is OK but "foo" is an error. 29263 # 29264 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29265 # It is also a way to make sure we got the proper file name for the real test later on. 29266 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29267 if test "x$test_shortpath" = x; then 29268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29269 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29270 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29271 fi 29272 29273 # Call helper function which possibly converts this using DOS-style short mode. 29274 # If so, the updated path is stored in $new_path. 29275 29276 input_path="$new_path" 29277 # Check if we need to convert this using DOS-style short mode. If the path 29278 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29279 # take no chances and rewrite it. 29280 # Note: m4 eats our [], so we need to use [ and ] instead. 29281 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29282 if test "x$has_forbidden_chars" != x; then 29283 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29284 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29285 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29286 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29287 # Going to short mode and back again did indeed matter. Since short mode is 29288 # case insensitive, let's make it lowercase to improve readability. 29289 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29290 # Now convert it back to Unix-style (cygpath) 29291 input_path=`$CYGPATH -u "$shortmode_path"` 29292 new_path="$input_path" 29293 fi 29294 fi 29295 29296 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29297 if test "x$test_cygdrive_prefix" = x; then 29298 # As a simple fix, exclude /usr/bin since it's not a real path. 29299 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29300 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29301 # a path prefixed by /cygdrive for fixpath to work. 29302 new_path="$CYGWIN_ROOT_PATH$input_path" 29303 fi 29304 fi 29305 29306 29307 if test "x$path" != "x$new_path"; then 29308 BOOT_JDK="$new_path" 29309 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29310 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29311 fi 29312 29313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29314 29315 path="$BOOT_JDK" 29316 has_colon=`$ECHO $path | $GREP ^.:` 29317 new_path="$path" 29318 if test "x$has_colon" = x; then 29319 # Not in mixed or Windows style, start by that. 29320 new_path=`cmd //c echo $path` 29321 fi 29322 29323 29324 input_path="$new_path" 29325 # Check if we need to convert this using DOS-style short mode. If the path 29326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29327 # take no chances and rewrite it. 29328 # Note: m4 eats our [], so we need to use [ and ] instead. 29329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29330 if test "x$has_forbidden_chars" != x; then 29331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29332 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29333 fi 29334 29335 29336 windows_path="$new_path" 29337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29338 unix_path=`$CYGPATH -u "$windows_path"` 29339 new_path="$unix_path" 29340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29341 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29342 new_path="$unix_path" 29343 fi 29344 29345 if test "x$path" != "x$new_path"; then 29346 BOOT_JDK="$new_path" 29347 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29348 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29349 fi 29350 29351 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29352 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29353 29354 else 29355 # We're on a unix platform. Hooray! :) 29356 path="$BOOT_JDK" 29357 has_space=`$ECHO "$path" | $GREP " "` 29358 if test "x$has_space" != x; then 29359 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29360 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29361 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29362 fi 29363 29364 # Use eval to expand a potential ~ 29365 eval path="$path" 29366 if test ! -f "$path" && test ! -d "$path"; then 29367 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29368 fi 29369 29370 if test -d "$path"; then 29371 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29372 else 29373 dir="`$DIRNAME "$path"`" 29374 base="`$BASENAME "$path"`" 29375 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29376 fi 29377 fi 29378 fi 29379 29380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29381 $as_echo_n "checking for Boot JDK... " >&6; } 29382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29383 $as_echo "$BOOT_JDK" >&6; } 29384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29385 $as_echo_n "checking Boot JDK version... " >&6; } 29386 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29388 $as_echo "$BOOT_JDK_VERSION" >&6; } 29389 fi # end check jdk version 29390 fi # end check javac 29391 fi # end check java 29392 fi # end check boot jdk found 29393 fi 29394 29395 29396 # If we haven't found anything yet, we've truly lost. Give up. 29397 if test "x$BOOT_JDK_FOUND" = xno; then 29398 29399 # Print a helpful message on how to acquire the necessary build dependency. 29400 # openjdk is the help tag: freetype, cups, alsa etc 29401 MISSING_DEPENDENCY=openjdk 29402 29403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29404 cygwin_help $MISSING_DEPENDENCY 29405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29406 msys_help $MISSING_DEPENDENCY 29407 else 29408 PKGHANDLER_COMMAND= 29409 29410 case $PKGHANDLER in 29411 apt-get) 29412 apt_help $MISSING_DEPENDENCY ;; 29413 yum) 29414 yum_help $MISSING_DEPENDENCY ;; 29415 port) 29416 port_help $MISSING_DEPENDENCY ;; 29417 pkgutil) 29418 pkgutil_help $MISSING_DEPENDENCY ;; 29419 pkgadd) 29420 pkgadd_help $MISSING_DEPENDENCY ;; 29421 esac 29422 29423 if test "x$PKGHANDLER_COMMAND" != x; then 29424 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29425 fi 29426 fi 29427 29428 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 29429 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 29430 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 29431 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29432 as_fn_error $? "Cannot continue" "$LINENO" 5 29433 fi 29434 29435 29436 29437 # Setup tools from the Boot JDK. 29438 29439 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29440 29441 # Publish this variable in the help. 29442 29443 29444 if [ -z "${JAVA+x}" ]; then 29445 # The variable is not set by user, try to locate tool using the code snippet 29446 29447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 29448 $as_echo_n "checking for java in Boot JDK... " >&6; } 29449 JAVA=$BOOT_JDK/bin/java 29450 if test ! -x $JAVA; then 29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29452 $as_echo "not found" >&6; } 29453 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29454 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29455 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 29456 fi 29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29458 $as_echo "ok" >&6; } 29459 29460 29461 else 29462 # The variable is set, but is it from the command line or the environment? 29463 29464 # Try to remove the string !JAVA! from our list. 29465 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 29466 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29467 # If it failed, the variable was not from the command line. Ignore it, 29468 # but warn the user (except for BASH, which is always set by the calling BASH). 29469 if test "xJAVA" != xBASH; then 29470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 29471 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 29472 fi 29473 # Try to locate tool using the code snippet 29474 29475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 29476 $as_echo_n "checking for java in Boot JDK... " >&6; } 29477 JAVA=$BOOT_JDK/bin/java 29478 if test ! -x $JAVA; then 29479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29480 $as_echo "not found" >&6; } 29481 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29482 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29483 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 29484 fi 29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29486 $as_echo "ok" >&6; } 29487 29488 29489 else 29490 # If it succeeded, then it was overridden by the user. We will use it 29491 # for the tool. 29492 29493 # First remove it from the list of overridden variables, so we can test 29494 # for unknown variables in the end. 29495 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29496 29497 # Check if we try to supply an empty value 29498 if test "x$JAVA" = x; then 29499 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 29500 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 29502 $as_echo_n "checking for JAVA... " >&6; } 29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29504 $as_echo "disabled" >&6; } 29505 else 29506 # Check if the provided tool contains a complete path. 29507 tool_specified="$JAVA" 29508 tool_basename="${tool_specified##*/}" 29509 if test "x$tool_basename" = "x$tool_specified"; then 29510 # A command without a complete path is provided, search $PATH. 29511 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 29512 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 29513 # Extract the first word of "$tool_basename", so it can be a program name with args. 29514 set dummy $tool_basename; ac_word=$2 29515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29516 $as_echo_n "checking for $ac_word... " >&6; } 29517 if ${ac_cv_path_JAVA+:} false; then : 29518 $as_echo_n "(cached) " >&6 29519 else 29520 case $JAVA in 29521 [\\/]* | ?:[\\/]*) 29522 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 29523 ;; 29524 *) 29525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29526 for as_dir in $PATH 29527 do 29528 IFS=$as_save_IFS 29529 test -z "$as_dir" && as_dir=. 29530 for ac_exec_ext in '' $ac_executable_extensions; do 29531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29532 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 29533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29534 break 2 29535 fi 29536 done 29537 done 29538 IFS=$as_save_IFS 29539 29540 ;; 29541 esac 29542 fi 29543 JAVA=$ac_cv_path_JAVA 29544 if test -n "$JAVA"; then 29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 29546 $as_echo "$JAVA" >&6; } 29547 else 29548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29549 $as_echo "no" >&6; } 29550 fi 29551 29552 29553 if test "x$JAVA" = x; then 29554 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29555 fi 29556 else 29557 # Otherwise we believe it is a complete path. Use it as it is. 29558 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 29559 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 29560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 29561 $as_echo_n "checking for JAVA... " >&6; } 29562 if test ! -x "$tool_specified"; then 29563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29564 $as_echo "not found" >&6; } 29565 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 29566 fi 29567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29568 $as_echo "$tool_specified" >&6; } 29569 fi 29570 fi 29571 fi 29572 29573 fi 29574 29575 29576 29577 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29578 29579 # Publish this variable in the help. 29580 29581 29582 if [ -z "${JAVAC+x}" ]; then 29583 # The variable is not set by user, try to locate tool using the code snippet 29584 29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 29586 $as_echo_n "checking for javac in Boot JDK... " >&6; } 29587 JAVAC=$BOOT_JDK/bin/javac 29588 if test ! -x $JAVAC; then 29589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29590 $as_echo "not found" >&6; } 29591 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29592 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29593 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 29594 fi 29595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29596 $as_echo "ok" >&6; } 29597 29598 29599 else 29600 # The variable is set, but is it from the command line or the environment? 29601 29602 # Try to remove the string !JAVAC! from our list. 29603 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 29604 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29605 # If it failed, the variable was not from the command line. Ignore it, 29606 # but warn the user (except for BASH, which is always set by the calling BASH). 29607 if test "xJAVAC" != xBASH; then 29608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 29609 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 29610 fi 29611 # Try to locate tool using the code snippet 29612 29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 29614 $as_echo_n "checking for javac in Boot JDK... " >&6; } 29615 JAVAC=$BOOT_JDK/bin/javac 29616 if test ! -x $JAVAC; then 29617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29618 $as_echo "not found" >&6; } 29619 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29620 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29621 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 29622 fi 29623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29624 $as_echo "ok" >&6; } 29625 29626 29627 else 29628 # If it succeeded, then it was overridden by the user. We will use it 29629 # for the tool. 29630 29631 # First remove it from the list of overridden variables, so we can test 29632 # for unknown variables in the end. 29633 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29634 29635 # Check if we try to supply an empty value 29636 if test "x$JAVAC" = x; then 29637 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 29638 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 29639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 29640 $as_echo_n "checking for JAVAC... " >&6; } 29641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29642 $as_echo "disabled" >&6; } 29643 else 29644 # Check if the provided tool contains a complete path. 29645 tool_specified="$JAVAC" 29646 tool_basename="${tool_specified##*/}" 29647 if test "x$tool_basename" = "x$tool_specified"; then 29648 # A command without a complete path is provided, search $PATH. 29649 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 29650 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 29651 # Extract the first word of "$tool_basename", so it can be a program name with args. 29652 set dummy $tool_basename; ac_word=$2 29653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29654 $as_echo_n "checking for $ac_word... " >&6; } 29655 if ${ac_cv_path_JAVAC+:} false; then : 29656 $as_echo_n "(cached) " >&6 29657 else 29658 case $JAVAC in 29659 [\\/]* | ?:[\\/]*) 29660 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 29661 ;; 29662 *) 29663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29664 for as_dir in $PATH 29665 do 29666 IFS=$as_save_IFS 29667 test -z "$as_dir" && as_dir=. 29668 for ac_exec_ext in '' $ac_executable_extensions; do 29669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29670 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 29671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29672 break 2 29673 fi 29674 done 29675 done 29676 IFS=$as_save_IFS 29677 29678 ;; 29679 esac 29680 fi 29681 JAVAC=$ac_cv_path_JAVAC 29682 if test -n "$JAVAC"; then 29683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 29684 $as_echo "$JAVAC" >&6; } 29685 else 29686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29687 $as_echo "no" >&6; } 29688 fi 29689 29690 29691 if test "x$JAVAC" = x; then 29692 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29693 fi 29694 else 29695 # Otherwise we believe it is a complete path. Use it as it is. 29696 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 29697 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 29698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 29699 $as_echo_n "checking for JAVAC... " >&6; } 29700 if test ! -x "$tool_specified"; then 29701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29702 $as_echo "not found" >&6; } 29703 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 29704 fi 29705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29706 $as_echo "$tool_specified" >&6; } 29707 fi 29708 fi 29709 fi 29710 29711 fi 29712 29713 29714 29715 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29716 29717 # Publish this variable in the help. 29718 29719 29720 if [ -z "${JAVAH+x}" ]; then 29721 # The variable is not set by user, try to locate tool using the code snippet 29722 29723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 29724 $as_echo_n "checking for javah in Boot JDK... " >&6; } 29725 JAVAH=$BOOT_JDK/bin/javah 29726 if test ! -x $JAVAH; then 29727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29728 $as_echo "not found" >&6; } 29729 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29730 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29731 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 29732 fi 29733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29734 $as_echo "ok" >&6; } 29735 29736 29737 else 29738 # The variable is set, but is it from the command line or the environment? 29739 29740 # Try to remove the string !JAVAH! from our list. 29741 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 29742 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29743 # If it failed, the variable was not from the command line. Ignore it, 29744 # but warn the user (except for BASH, which is always set by the calling BASH). 29745 if test "xJAVAH" != xBASH; then 29746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 29747 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 29748 fi 29749 # Try to locate tool using the code snippet 29750 29751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 29752 $as_echo_n "checking for javah in Boot JDK... " >&6; } 29753 JAVAH=$BOOT_JDK/bin/javah 29754 if test ! -x $JAVAH; then 29755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29756 $as_echo "not found" >&6; } 29757 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29758 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29759 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 29760 fi 29761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29762 $as_echo "ok" >&6; } 29763 29764 29765 else 29766 # If it succeeded, then it was overridden by the user. We will use it 29767 # for the tool. 29768 29769 # First remove it from the list of overridden variables, so we can test 29770 # for unknown variables in the end. 29771 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29772 29773 # Check if we try to supply an empty value 29774 if test "x$JAVAH" = x; then 29775 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 29776 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 29777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 29778 $as_echo_n "checking for JAVAH... " >&6; } 29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29780 $as_echo "disabled" >&6; } 29781 else 29782 # Check if the provided tool contains a complete path. 29783 tool_specified="$JAVAH" 29784 tool_basename="${tool_specified##*/}" 29785 if test "x$tool_basename" = "x$tool_specified"; then 29786 # A command without a complete path is provided, search $PATH. 29787 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 29788 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 29789 # Extract the first word of "$tool_basename", so it can be a program name with args. 29790 set dummy $tool_basename; ac_word=$2 29791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29792 $as_echo_n "checking for $ac_word... " >&6; } 29793 if ${ac_cv_path_JAVAH+:} false; then : 29794 $as_echo_n "(cached) " >&6 29795 else 29796 case $JAVAH in 29797 [\\/]* | ?:[\\/]*) 29798 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 29799 ;; 29800 *) 29801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29802 for as_dir in $PATH 29803 do 29804 IFS=$as_save_IFS 29805 test -z "$as_dir" && as_dir=. 29806 for ac_exec_ext in '' $ac_executable_extensions; do 29807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29808 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 29809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29810 break 2 29811 fi 29812 done 29813 done 29814 IFS=$as_save_IFS 29815 29816 ;; 29817 esac 29818 fi 29819 JAVAH=$ac_cv_path_JAVAH 29820 if test -n "$JAVAH"; then 29821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 29822 $as_echo "$JAVAH" >&6; } 29823 else 29824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29825 $as_echo "no" >&6; } 29826 fi 29827 29828 29829 if test "x$JAVAH" = x; then 29830 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29831 fi 29832 else 29833 # Otherwise we believe it is a complete path. Use it as it is. 29834 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 29835 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 29836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 29837 $as_echo_n "checking for JAVAH... " >&6; } 29838 if test ! -x "$tool_specified"; then 29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29840 $as_echo "not found" >&6; } 29841 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 29842 fi 29843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29844 $as_echo "$tool_specified" >&6; } 29845 fi 29846 fi 29847 fi 29848 29849 fi 29850 29851 29852 29853 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29854 29855 # Publish this variable in the help. 29856 29857 29858 if [ -z "${JAR+x}" ]; then 29859 # The variable is not set by user, try to locate tool using the code snippet 29860 29861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 29862 $as_echo_n "checking for jar in Boot JDK... " >&6; } 29863 JAR=$BOOT_JDK/bin/jar 29864 if test ! -x $JAR; then 29865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29866 $as_echo "not found" >&6; } 29867 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29868 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29869 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 29870 fi 29871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29872 $as_echo "ok" >&6; } 29873 29874 29875 else 29876 # The variable is set, but is it from the command line or the environment? 29877 29878 # Try to remove the string !JAR! from our list. 29879 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 29880 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 29881 # If it failed, the variable was not from the command line. Ignore it, 29882 # but warn the user (except for BASH, which is always set by the calling BASH). 29883 if test "xJAR" != xBASH; then 29884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 29885 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 29886 fi 29887 # Try to locate tool using the code snippet 29888 29889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 29890 $as_echo_n "checking for jar in Boot JDK... " >&6; } 29891 JAR=$BOOT_JDK/bin/jar 29892 if test ! -x $JAR; then 29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29894 $as_echo "not found" >&6; } 29895 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 29896 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 29897 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 29898 fi 29899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 29900 $as_echo "ok" >&6; } 29901 29902 29903 else 29904 # If it succeeded, then it was overridden by the user. We will use it 29905 # for the tool. 29906 29907 # First remove it from the list of overridden variables, so we can test 29908 # for unknown variables in the end. 29909 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 29910 29911 # Check if we try to supply an empty value 29912 if test "x$JAR" = x; then 29913 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 29914 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 29915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 29916 $as_echo_n "checking for JAR... " >&6; } 29917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 29918 $as_echo "disabled" >&6; } 29919 else 29920 # Check if the provided tool contains a complete path. 29921 tool_specified="$JAR" 29922 tool_basename="${tool_specified##*/}" 29923 if test "x$tool_basename" = "x$tool_specified"; then 29924 # A command without a complete path is provided, search $PATH. 29925 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 29926 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 29927 # Extract the first word of "$tool_basename", so it can be a program name with args. 29928 set dummy $tool_basename; ac_word=$2 29929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29930 $as_echo_n "checking for $ac_word... " >&6; } 29931 if ${ac_cv_path_JAR+:} false; then : 29932 $as_echo_n "(cached) " >&6 29933 else 29934 case $JAR in 29935 [\\/]* | ?:[\\/]*) 29936 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 29937 ;; 29938 *) 29939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29940 for as_dir in $PATH 29941 do 29942 IFS=$as_save_IFS 29943 test -z "$as_dir" && as_dir=. 29944 for ac_exec_ext in '' $ac_executable_extensions; do 29945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29946 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 29947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29948 break 2 29949 fi 29950 done 29951 done 29952 IFS=$as_save_IFS 29953 29954 ;; 29955 esac 29956 fi 29957 JAR=$ac_cv_path_JAR 29958 if test -n "$JAR"; then 29959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 29960 $as_echo "$JAR" >&6; } 29961 else 29962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29963 $as_echo "no" >&6; } 29964 fi 29965 29966 29967 if test "x$JAR" = x; then 29968 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 29969 fi 29970 else 29971 # Otherwise we believe it is a complete path. Use it as it is. 29972 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 29973 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 29974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 29975 $as_echo_n "checking for JAR... " >&6; } 29976 if test ! -x "$tool_specified"; then 29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 29978 $as_echo "not found" >&6; } 29979 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 29980 fi 29981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 29982 $as_echo "$tool_specified" >&6; } 29983 fi 29984 fi 29985 fi 29986 29987 fi 29988 29989 29990 29991 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 29992 29993 # Publish this variable in the help. 29994 29995 29996 if [ -z "${JARSIGNER+x}" ]; then 29997 # The variable is not set by user, try to locate tool using the code snippet 29998 29999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30000 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30001 JARSIGNER=$BOOT_JDK/bin/jarsigner 30002 if test ! -x $JARSIGNER; then 30003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30004 $as_echo "not found" >&6; } 30005 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30006 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30007 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30008 fi 30009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30010 $as_echo "ok" >&6; } 30011 30012 30013 else 30014 # The variable is set, but is it from the command line or the environment? 30015 30016 # Try to remove the string !JARSIGNER! from our list. 30017 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 30018 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30019 # If it failed, the variable was not from the command line. Ignore it, 30020 # but warn the user (except for BASH, which is always set by the calling BASH). 30021 if test "xJARSIGNER" != xBASH; then 30022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 30023 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 30024 fi 30025 # Try to locate tool using the code snippet 30026 30027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 30028 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 30029 JARSIGNER=$BOOT_JDK/bin/jarsigner 30030 if test ! -x $JARSIGNER; then 30031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30032 $as_echo "not found" >&6; } 30033 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 30034 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 30035 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 30036 fi 30037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30038 $as_echo "ok" >&6; } 30039 30040 30041 else 30042 # If it succeeded, then it was overridden by the user. We will use it 30043 # for the tool. 30044 30045 # First remove it from the list of overridden variables, so we can test 30046 # for unknown variables in the end. 30047 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30048 30049 # Check if we try to supply an empty value 30050 if test "x$JARSIGNER" = x; then 30051 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 30052 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 30053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30054 $as_echo_n "checking for JARSIGNER... " >&6; } 30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30056 $as_echo "disabled" >&6; } 30057 else 30058 # Check if the provided tool contains a complete path. 30059 tool_specified="$JARSIGNER" 30060 tool_basename="${tool_specified##*/}" 30061 if test "x$tool_basename" = "x$tool_specified"; then 30062 # A command without a complete path is provided, search $PATH. 30063 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 30064 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 30065 # Extract the first word of "$tool_basename", so it can be a program name with args. 30066 set dummy $tool_basename; ac_word=$2 30067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30068 $as_echo_n "checking for $ac_word... " >&6; } 30069 if ${ac_cv_path_JARSIGNER+:} false; then : 30070 $as_echo_n "(cached) " >&6 30071 else 30072 case $JARSIGNER in 30073 [\\/]* | ?:[\\/]*) 30074 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 30075 ;; 30076 *) 30077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30078 for as_dir in $PATH 30079 do 30080 IFS=$as_save_IFS 30081 test -z "$as_dir" && as_dir=. 30082 for ac_exec_ext in '' $ac_executable_extensions; do 30083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30084 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 30085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30086 break 2 30087 fi 30088 done 30089 done 30090 IFS=$as_save_IFS 30091 30092 ;; 30093 esac 30094 fi 30095 JARSIGNER=$ac_cv_path_JARSIGNER 30096 if test -n "$JARSIGNER"; then 30097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 30098 $as_echo "$JARSIGNER" >&6; } 30099 else 30100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30101 $as_echo "no" >&6; } 30102 fi 30103 30104 30105 if test "x$JARSIGNER" = x; then 30106 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30107 fi 30108 else 30109 # Otherwise we believe it is a complete path. Use it as it is. 30110 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 30111 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 30112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 30113 $as_echo_n "checking for JARSIGNER... " >&6; } 30114 if test ! -x "$tool_specified"; then 30115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30116 $as_echo "not found" >&6; } 30117 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 30118 fi 30119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30120 $as_echo "$tool_specified" >&6; } 30121 fi 30122 fi 30123 fi 30124 30125 fi 30126 30127 30128 30129 # Finally, set some other options... 30130 30131 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 30132 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 30133 30134 30135 30136 $ECHO "Check if jvm arg is ok: -Xpatch:foo=bar" >&5 30137 $ECHO "Command: $JAVA -Xpatch:foo=bar -version" >&5 30138 OUTPUT=`$JAVA -Xpatch:foo=bar -version 2>&1` 30139 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 30140 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 30141 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 30142 dummy="$dummy -Xpatch:foo=bar" 30143 JVM_ARG_OK=true 30144 else 30145 $ECHO "Arg failed:" >&5 30146 $ECHO "$OUTPUT" >&5 30147 JVM_ARG_OK=false 30148 fi 30149 30150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK supports modules" >&5 30151 $as_echo_n "checking if Boot JDK supports modules... " >&6; } 30152 if test "x$JVM_ARG_OK" = "xtrue"; then 30153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30154 $as_echo "yes" >&6; } 30155 BOOT_JDK_MODULAR="true" 30156 else 30157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30158 $as_echo "no" >&6; } 30159 BOOT_JDK_MODULAR="false" 30160 fi 30161 30162 30163 30164 30165 # Check if the boot jdk is 32 or 64 bit 30166 if "$JAVA" -d64 -version > /dev/null 2>&1; then 30167 BOOT_JDK_BITS="64" 30168 else 30169 BOOT_JDK_BITS="32" 30170 fi 30171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 30172 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 30173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 30174 $as_echo "$BOOT_JDK_BITS" >&6; } 30175 30176 30177 30178 30179 # Check whether --with-build-jdk was given. 30180 if test "${with_build_jdk+set}" = set; then : 30181 withval=$with_build_jdk; 30182 fi 30183 30184 30185 CREATE_BUILDJDK_FOR_HOST=false 30186 BUILD_JDK_FOUND="no" 30187 if test "x$with_build_jdk" != "x"; then 30188 30189 if test "x$BUILD_JDK_FOUND" = xno; then 30190 # Execute the test 30191 30192 if test "x$with_build_jdk" != x; then 30193 BUILD_JDK=$with_build_jdk 30194 BUILD_JDK_FOUND=maybe 30195 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 30196 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 30197 fi 30198 30199 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30200 if test "x$BUILD_JDK_FOUND" = xmaybe; then 30201 # Do we have a bin/java? 30202 if test ! -x "$BUILD_JDK/bin/java"; then 30203 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 30204 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 30205 BUILD_JDK_FOUND=no 30206 elif test ! -x "$BUILD_JDK/bin/jlink"; then 30207 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 30208 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 30209 BUILD_JDK_FOUND=no 30210 elif test ! -x "$BUILD_JDK/bin/javac"; then 30211 # Do we have a bin/javac? 30212 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 30213 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 30214 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 30215 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 30216 BUILD_JDK_FOUND=no 30217 else 30218 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30219 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | head -n 1` 30220 30221 # Extra M4 quote needed to protect [] in grep expression. 30222 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"9([\.+-].*)?\"'` 30223 if test "x$FOUND_CORRECT_VERSION" = x; then 30224 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 30225 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 30226 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 9)" >&5 30227 $as_echo "$as_me: (Your Build JDK must be version 9)" >&6;} 30228 BUILD_JDK_FOUND=no 30229 else 30230 # We're done! 30231 BUILD_JDK_FOUND=yes 30232 30233 # Only process if variable expands to non-empty 30234 30235 if test "x$BUILD_JDK" != x; then 30236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30237 30238 # Input might be given as Windows format, start by converting to 30239 # unix format. 30240 path="$BUILD_JDK" 30241 new_path=`$CYGPATH -u "$path"` 30242 30243 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30244 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30245 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30246 # "foo.exe" is OK but "foo" is an error. 30247 # 30248 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30249 # It is also a way to make sure we got the proper file name for the real test later on. 30250 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30251 if test "x$test_shortpath" = x; then 30252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 30253 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 30254 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 30255 fi 30256 30257 # Call helper function which possibly converts this using DOS-style short mode. 30258 # If so, the updated path is stored in $new_path. 30259 30260 input_path="$new_path" 30261 # Check if we need to convert this using DOS-style short mode. If the path 30262 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30263 # take no chances and rewrite it. 30264 # Note: m4 eats our [], so we need to use [ and ] instead. 30265 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30266 if test "x$has_forbidden_chars" != x; then 30267 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30268 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30269 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30270 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30271 # Going to short mode and back again did indeed matter. Since short mode is 30272 # case insensitive, let's make it lowercase to improve readability. 30273 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30274 # Now convert it back to Unix-style (cygpath) 30275 input_path=`$CYGPATH -u "$shortmode_path"` 30276 new_path="$input_path" 30277 fi 30278 fi 30279 30280 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30281 if test "x$test_cygdrive_prefix" = x; then 30282 # As a simple fix, exclude /usr/bin since it's not a real path. 30283 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30284 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30285 # a path prefixed by /cygdrive for fixpath to work. 30286 new_path="$CYGWIN_ROOT_PATH$input_path" 30287 fi 30288 fi 30289 30290 30291 if test "x$path" != "x$new_path"; then 30292 BUILD_JDK="$new_path" 30293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 30294 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 30295 fi 30296 30297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30298 30299 path="$BUILD_JDK" 30300 has_colon=`$ECHO $path | $GREP ^.:` 30301 new_path="$path" 30302 if test "x$has_colon" = x; then 30303 # Not in mixed or Windows style, start by that. 30304 new_path=`cmd //c echo $path` 30305 fi 30306 30307 30308 input_path="$new_path" 30309 # Check if we need to convert this using DOS-style short mode. If the path 30310 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30311 # take no chances and rewrite it. 30312 # Note: m4 eats our [], so we need to use [ and ] instead. 30313 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30314 if test "x$has_forbidden_chars" != x; then 30315 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30316 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30317 fi 30318 30319 30320 windows_path="$new_path" 30321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30322 unix_path=`$CYGPATH -u "$windows_path"` 30323 new_path="$unix_path" 30324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30325 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30326 new_path="$unix_path" 30327 fi 30328 30329 if test "x$path" != "x$new_path"; then 30330 BUILD_JDK="$new_path" 30331 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 30332 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 30333 fi 30334 30335 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30336 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30337 30338 else 30339 # We're on a unix platform. Hooray! :) 30340 path="$BUILD_JDK" 30341 has_space=`$ECHO "$path" | $GREP " "` 30342 if test "x$has_space" != x; then 30343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 30344 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 30345 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30346 fi 30347 30348 # Use eval to expand a potential ~ 30349 eval path="$path" 30350 if test ! -f "$path" && test ! -d "$path"; then 30351 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30352 fi 30353 30354 if test -d "$path"; then 30355 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 30356 else 30357 dir="`$DIRNAME "$path"`" 30358 base="`$BASENAME "$path"`" 30359 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30360 fi 30361 fi 30362 fi 30363 30364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30365 $as_echo_n "checking for Build JDK... " >&6; } 30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 30367 $as_echo "$BUILD_JDK" >&6; } 30368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 30369 $as_echo_n "checking Build JDK version... " >&6; } 30370 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 30372 $as_echo "$BUILD_JDK_VERSION" >&6; } 30373 fi # end check jdk version 30374 fi # end check java 30375 fi # end check build jdk found 30376 fi 30377 30378 else 30379 if test "x$COMPILE_TYPE" = "xcross"; then 30380 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 30381 BUILD_JDK_FOUND=yes 30382 CREATE_BUILDJDK=true 30383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30384 $as_echo_n "checking for Build JDK... " >&6; } 30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 30386 $as_echo "yes, will build it for the host platform" >&6; } 30387 else 30388 BUILD_JDK="\$(JDK_OUTPUTDIR)" 30389 BUILD_JDK_FOUND=yes 30390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30391 $as_echo_n "checking for Build JDK... " >&6; } 30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 30393 $as_echo "yes, will use output dir" >&6; } 30394 fi 30395 fi 30396 30397 if test "x$BUILD_JDK_FOUND" != "xyes"; then 30398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 30399 $as_echo_n "checking for Build JDK... " >&6; } 30400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30401 $as_echo "no" >&6; } 30402 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 30403 fi 30404 30405 30406 30407 30408 30409 ############################################################################### 30410 # 30411 # Configure the sources to use. We can add or override individual directories. 30412 # 30413 ############################################################################### 30414 30415 30416 # Where are the sources. 30417 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 30418 CORBA_TOPDIR="$SRC_ROOT/corba" 30419 JAXP_TOPDIR="$SRC_ROOT/jaxp" 30420 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 30421 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 30422 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 30423 JDK_TOPDIR="$SRC_ROOT/jdk" 30424 30425 30426 30427 30428 30429 30430 30431 30432 30433 # This feature is no longer supported. 30434 30435 30436 30437 # Check whether --with-add-source-root was given. 30438 if test "${with_add_source_root+set}" = set; then : 30439 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 30440 $as_echo "$as_me: WARNING: Option --with-add-source-root is deprecated and will be ignored." >&2;} 30441 fi 30442 30443 30444 30445 30446 # Check whether --with-override-source-root was given. 30447 if test "${with_override_source_root+set}" = set; then : 30448 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 30449 $as_echo "$as_me: WARNING: Option --with-override-source-root is deprecated and will be ignored." >&2;} 30450 fi 30451 30452 30453 30454 30455 # Check whether --with-adds-and-overrides was given. 30456 if test "${with_adds_and_overrides+set}" = set; then : 30457 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 30458 $as_echo "$as_me: WARNING: Option --with-adds-and-overrides is deprecated and will be ignored." >&2;} 30459 fi 30460 30461 30462 30463 30464 # Check whether --with-override-langtools was given. 30465 if test "${with_override_langtools+set}" = set; then : 30466 withval=$with_override_langtools; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&5 30467 $as_echo "$as_me: WARNING: Option --with-override-langtools is deprecated and will be ignored." >&2;} 30468 fi 30469 30470 30471 30472 30473 # Check whether --with-override-corba was given. 30474 if test "${with_override_corba+set}" = set; then : 30475 withval=$with_override_corba; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-corba is deprecated and will be ignored." >&5 30476 $as_echo "$as_me: WARNING: Option --with-override-corba is deprecated and will be ignored." >&2;} 30477 fi 30478 30479 30480 30481 30482 # Check whether --with-override-jaxp was given. 30483 if test "${with_override_jaxp+set}" = set; then : 30484 withval=$with_override_jaxp; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&5 30485 $as_echo "$as_me: WARNING: Option --with-override-jaxp is deprecated and will be ignored." >&2;} 30486 fi 30487 30488 30489 30490 30491 # Check whether --with-override-jaxws was given. 30492 if test "${with_override_jaxws+set}" = set; then : 30493 withval=$with_override_jaxws; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&5 30494 $as_echo "$as_me: WARNING: Option --with-override-jaxws is deprecated and will be ignored." >&2;} 30495 fi 30496 30497 30498 30499 30500 # Check whether --with-override-hotspot was given. 30501 if test "${with_override_hotspot+set}" = set; then : 30502 withval=$with_override_hotspot; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&5 30503 $as_echo "$as_me: WARNING: Option --with-override-hotspot is deprecated and will be ignored." >&2;} 30504 fi 30505 30506 30507 30508 30509 # Check whether --with-override-nashorn was given. 30510 if test "${with_override_nashorn+set}" = set; then : 30511 withval=$with_override_nashorn; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&5 30512 $as_echo "$as_me: WARNING: Option --with-override-nashorn is deprecated and will be ignored." >&2;} 30513 fi 30514 30515 30516 30517 30518 # Check whether --with-override-jdk was given. 30519 if test "${with_override_jdk+set}" = set; then : 30520 withval=$with_override_jdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&5 30521 $as_echo "$as_me: WARNING: Option --with-override-jdk is deprecated and will be ignored." >&2;} 30522 fi 30523 30524 30525 30526 30527 BUILD_OUTPUT="$OUTPUT_ROOT" 30528 30529 30530 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 30531 BUILD_HOTSPOT=true 30532 30533 30534 30535 # Check whether --with-import-hotspot was given. 30536 if test "${with_import_hotspot+set}" = set; then : 30537 withval=$with_import_hotspot; 30538 fi 30539 30540 if test "x$with_import_hotspot" != x; then 30541 CURDIR="$PWD" 30542 cd "$with_import_hotspot" 30543 HOTSPOT_DIST="`pwd`" 30544 cd "$CURDIR" 30545 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 30546 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 30547 fi 30548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 30549 $as_echo_n "checking if hotspot should be imported... " >&6; } 30550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 30551 $as_echo "yes from $HOTSPOT_DIST" >&6; } 30552 BUILD_HOTSPOT=false 30553 fi 30554 30555 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 30556 30557 30558 30559 30560 # Check whether --with-import-modules was given. 30561 if test "${with_import_modules+set}" = set; then : 30562 withval=$with_import_modules; 30563 fi 30564 30565 30566 if test "x$with_import_modules" != x \ 30567 && test "x$with_import_modules" != "xno"; then 30568 if test -d "$with_import_modules"; then 30569 IMPORT_MODULES_TOPDIR="$with_import_modules" 30570 30571 # Only process if variable expands to non-empty 30572 30573 if test "x$IMPORT_MODULES_TOPDIR" != x; then 30574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30575 30576 # Input might be given as Windows format, start by converting to 30577 # unix format. 30578 path="$IMPORT_MODULES_TOPDIR" 30579 new_path=`$CYGPATH -u "$path"` 30580 30581 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30582 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30583 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30584 # "foo.exe" is OK but "foo" is an error. 30585 # 30586 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30587 # It is also a way to make sure we got the proper file name for the real test later on. 30588 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30589 if test "x$test_shortpath" = x; then 30590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 30591 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 30592 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 30593 fi 30594 30595 # Call helper function which possibly converts this using DOS-style short mode. 30596 # If so, the updated path is stored in $new_path. 30597 30598 input_path="$new_path" 30599 # Check if we need to convert this using DOS-style short mode. If the path 30600 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30601 # take no chances and rewrite it. 30602 # Note: m4 eats our [], so we need to use [ and ] instead. 30603 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30604 if test "x$has_forbidden_chars" != x; then 30605 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30606 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30607 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30608 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30609 # Going to short mode and back again did indeed matter. Since short mode is 30610 # case insensitive, let's make it lowercase to improve readability. 30611 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30612 # Now convert it back to Unix-style (cygpath) 30613 input_path=`$CYGPATH -u "$shortmode_path"` 30614 new_path="$input_path" 30615 fi 30616 fi 30617 30618 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30619 if test "x$test_cygdrive_prefix" = x; then 30620 # As a simple fix, exclude /usr/bin since it's not a real path. 30621 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30622 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30623 # a path prefixed by /cygdrive for fixpath to work. 30624 new_path="$CYGWIN_ROOT_PATH$input_path" 30625 fi 30626 fi 30627 30628 30629 if test "x$path" != "x$new_path"; then 30630 IMPORT_MODULES_TOPDIR="$new_path" 30631 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 30632 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 30633 fi 30634 30635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30636 30637 path="$IMPORT_MODULES_TOPDIR" 30638 has_colon=`$ECHO $path | $GREP ^.:` 30639 new_path="$path" 30640 if test "x$has_colon" = x; then 30641 # Not in mixed or Windows style, start by that. 30642 new_path=`cmd //c echo $path` 30643 fi 30644 30645 30646 input_path="$new_path" 30647 # Check if we need to convert this using DOS-style short mode. If the path 30648 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30649 # take no chances and rewrite it. 30650 # Note: m4 eats our [], so we need to use [ and ] instead. 30651 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30652 if test "x$has_forbidden_chars" != x; then 30653 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30654 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30655 fi 30656 30657 30658 windows_path="$new_path" 30659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30660 unix_path=`$CYGPATH -u "$windows_path"` 30661 new_path="$unix_path" 30662 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30663 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30664 new_path="$unix_path" 30665 fi 30666 30667 if test "x$path" != "x$new_path"; then 30668 IMPORT_MODULES_TOPDIR="$new_path" 30669 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 30670 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 30671 fi 30672 30673 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30674 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30675 30676 else 30677 # We're on a unix platform. Hooray! :) 30678 path="$IMPORT_MODULES_TOPDIR" 30679 has_space=`$ECHO "$path" | $GREP " "` 30680 if test "x$has_space" != x; then 30681 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 30682 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 30683 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30684 fi 30685 30686 # Use eval to expand a potential ~ 30687 eval path="$path" 30688 if test ! -f "$path" && test ! -d "$path"; then 30689 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 30690 fi 30691 30692 if test -d "$path"; then 30693 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 30694 else 30695 dir="`$DIRNAME "$path"`" 30696 base="`$BASENAME "$path"`" 30697 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 30698 fi 30699 fi 30700 fi 30701 30702 elif test -e "$with_import_modules"; then 30703 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 30704 $RM -rf "$IMPORT_MODULES_TOPDIR" 30705 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 30706 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 30707 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 30708 fi 30709 else 30710 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 30711 fi 30712 fi 30713 30714 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 30715 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 30716 fi 30717 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 30718 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 30719 fi 30720 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 30721 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 30722 fi 30723 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 30724 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 30725 fi 30726 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 30727 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 30728 fi 30729 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 30730 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 30731 fi 30732 30733 30734 30735 30736 30737 30738 30739 30740 30741 ############################################################################### 30742 # 30743 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 30744 # native code. 30745 # 30746 ############################################################################### 30747 30748 # See if we are doing a complete static build or not 30749 30750 # Check whether --enable-static-build was given. 30751 if test "${enable_static_build+set}" = set; then : 30752 enableval=$enable_static_build; 30753 fi 30754 30755 STATIC_BUILD=false 30756 if test "x$enable_static_build" = "xyes"; then 30757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 30758 $as_echo_n "checking if static build is enabled... " >&6; } 30759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30760 $as_echo "yes" >&6; } 30761 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 30762 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 30763 fi 30764 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 30765 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $STATIC_BUILD_CFLAGS" 30766 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $STATIC_BUILD_CFLAGS" 30767 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 30768 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 30769 STATIC_BUILD=true 30770 elif test "x$enable_static_build" = "xno"; then 30771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 30772 $as_echo_n "checking if static build is enabled... " >&6; } 30773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30774 $as_echo "no" >&6; } 30775 elif test "x$enable_static_build" != "x"; then 30776 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 30777 fi 30778 30779 30780 30781 30782 # First determine the toolchain type (compiler family) 30783 30784 30785 # Check whether --with-toolchain-type was given. 30786 if test "${with_toolchain_type+set}" = set; then : 30787 withval=$with_toolchain_type; 30788 fi 30789 30790 30791 # Use indirect variable referencing 30792 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 30793 VALID_TOOLCHAINS=${!toolchain_var_name} 30794 30795 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 30796 if test -n "$XCODEBUILD"; then 30797 # On Mac OS X, default toolchain to clang after Xcode 5 30798 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 30799 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 30800 if test $? -ne 0; then 30801 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 30802 fi 30803 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 30804 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 30805 $CUT -f 1 -d .` 30806 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 30807 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 30808 if test $XCODE_MAJOR_VERSION -ge 5; then 30809 DEFAULT_TOOLCHAIN="clang" 30810 else 30811 DEFAULT_TOOLCHAIN="gcc" 30812 fi 30813 else 30814 # If Xcode is not installed, but the command line tools are 30815 # then we can't run xcodebuild. On these systems we should 30816 # default to clang 30817 DEFAULT_TOOLCHAIN="clang" 30818 fi 30819 else 30820 # First toolchain type in the list is the default 30821 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 30822 fi 30823 30824 if test "x$with_toolchain_type" = xlist; then 30825 # List all toolchains 30826 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 30827 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 30828 for toolchain in $VALID_TOOLCHAINS; do 30829 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 30830 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 30831 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 30832 done 30833 30834 exit 0 30835 elif test "x$with_toolchain_type" != x; then 30836 # User override; check that it is valid 30837 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 30838 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 30839 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 30840 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 30841 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 30842 as_fn_error $? "Cannot continue." "$LINENO" 5 30843 fi 30844 TOOLCHAIN_TYPE=$with_toolchain_type 30845 else 30846 # No flag given, use default 30847 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 30848 fi 30849 30850 30851 TOOLCHAIN_CC_BINARY_clang="clang" 30852 TOOLCHAIN_CC_BINARY_gcc="gcc" 30853 TOOLCHAIN_CC_BINARY_microsoft="cl" 30854 TOOLCHAIN_CC_BINARY_solstudio="cc" 30855 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 30856 30857 TOOLCHAIN_CXX_BINARY_clang="clang++" 30858 TOOLCHAIN_CXX_BINARY_gcc="g++" 30859 TOOLCHAIN_CXX_BINARY_microsoft="cl" 30860 TOOLCHAIN_CXX_BINARY_solstudio="CC" 30861 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 30862 30863 # Use indirect variable referencing 30864 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 30865 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 30866 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 30867 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 30868 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 30869 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 30870 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 30871 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 30872 30873 30874 # Define filename patterns 30875 if test "x$OPENJDK_TARGET_OS" = xwindows; then 30876 LIBRARY_PREFIX= 30877 SHARED_LIBRARY_SUFFIX='.dll' 30878 STATIC_LIBRARY_SUFFIX='.lib' 30879 SHARED_LIBRARY='$1.dll' 30880 STATIC_LIBRARY='$1.lib' 30881 OBJ_SUFFIX='.obj' 30882 EXE_SUFFIX='.exe' 30883 else 30884 LIBRARY_PREFIX=lib 30885 SHARED_LIBRARY_SUFFIX='.so' 30886 STATIC_LIBRARY_SUFFIX='.a' 30887 SHARED_LIBRARY='lib$1.so' 30888 STATIC_LIBRARY='lib$1.a' 30889 OBJ_SUFFIX='.o' 30890 EXE_SUFFIX='' 30891 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 30892 # For full static builds, we're overloading the SHARED_LIBRARY 30893 # variables in order to limit the amount of changes required. 30894 # It would be better to remove SHARED and just use LIBRARY and 30895 # LIBRARY_SUFFIX for libraries that can be built either 30896 # shared or static and use STATIC_* for libraries that are 30897 # always built statically. 30898 if test "x$STATIC_BUILD" = xtrue; then 30899 SHARED_LIBRARY='lib$1.a' 30900 SHARED_LIBRARY_SUFFIX='.a' 30901 else 30902 SHARED_LIBRARY='lib$1.dylib' 30903 SHARED_LIBRARY_SUFFIX='.dylib' 30904 fi 30905 fi 30906 fi 30907 30908 30909 30910 30911 30912 30913 30914 30915 30916 30917 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 30918 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 30919 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 30920 else 30921 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 30922 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 30923 fi 30924 30925 30926 # User supplied flags should be used when configure detects compilers 30927 30928 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 30929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 30930 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 30931 fi 30932 30933 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 30934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 30935 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 30936 fi 30937 30938 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 30939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 30940 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 30941 fi 30942 30943 30944 # Check whether --with-extra-cflags was given. 30945 if test "${with_extra_cflags+set}" = set; then : 30946 withval=$with_extra_cflags; 30947 fi 30948 30949 30950 30951 # Check whether --with-extra-cxxflags was given. 30952 if test "${with_extra_cxxflags+set}" = set; then : 30953 withval=$with_extra_cxxflags; 30954 fi 30955 30956 30957 30958 # Check whether --with-extra-ldflags was given. 30959 if test "${with_extra_ldflags+set}" = set; then : 30960 withval=$with_extra_ldflags; 30961 fi 30962 30963 30964 EXTRA_CFLAGS="$with_extra_cflags" 30965 EXTRA_CXXFLAGS="$with_extra_cxxflags" 30966 EXTRA_LDFLAGS="$with_extra_ldflags" 30967 30968 # Hotspot needs these set in their legacy form 30969 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $EXTRA_CFLAGS" 30970 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $EXTRA_CXXFLAGS" 30971 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $EXTRA_LDFLAGS" 30972 30973 30974 30975 30976 30977 30978 30979 30980 30981 # The global CFLAGS and LDLAGS variables are used by configure tests and 30982 # should include the extra parameters 30983 CFLAGS="$EXTRA_CFLAGS" 30984 CXXFLAGS="$EXTRA_CXXFLAGS" 30985 LDFLAGS="$EXTRA_LDFLAGS" 30986 CPPFLAGS="" 30987 30988 # The sysroot cflags are needed for configure to be able to run the compilers 30989 30990 if test "x$SYSROOT" != "x"; then 30991 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30992 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 30993 # Solaris Studio does not have a concept of sysroot. Instead we must 30994 # make sure the default include and lib dirs are appended to each 30995 # compile and link command line. Must also add -I-xbuiltin to enable 30996 # inlining of system functions and intrinsics. 30997 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 30998 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 30999 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 31000 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 31001 fi 31002 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 31003 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 31004 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 31005 elif test "x$TOOLCHAIN_TYPE" = xclang; then 31006 SYSROOT_CFLAGS="-isysroot $SYSROOT" 31007 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 31008 fi 31009 # Propagate the sysroot args to hotspot 31010 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 31011 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 31012 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 31013 # The global CFLAGS and LDFLAGS variables need these for configure to function 31014 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 31015 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 31016 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 31017 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 31018 fi 31019 31020 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31021 # We also need -iframework<path>/System/Library/Frameworks 31022 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31023 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 31024 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 31025 # set this here so it doesn't have to be peppered throughout the forest 31026 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31027 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 31028 fi 31029 31030 31031 31032 31033 31034 # Then detect the actual binaries needed 31035 31036 # FIXME: Is this needed? 31037 ac_ext=cpp 31038 ac_cpp='$CXXCPP $CPPFLAGS' 31039 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31040 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31041 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31042 31043 31044 # Store the CFLAGS etc passed to the configure script. 31045 ORG_CFLAGS="$CFLAGS" 31046 ORG_CXXFLAGS="$CXXFLAGS" 31047 31048 # autoconf magic only relies on PATH, so update it if tools dir is specified 31049 OLD_PATH="$PATH" 31050 31051 # On Windows, we need to detect the visual studio installation first. 31052 # This will change the PATH, but we need to keep that new PATH even 31053 # after toolchain detection is done, since the compiler (on x86) uses 31054 # it for DLL resolution in runtime. 31055 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 31056 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 31057 31058 # Store path to cygwin link.exe to help excluding it when searching for 31059 # VS linker. This must be done before changing the PATH when looking for VS. 31060 # Extract the first word of "link", so it can be a program name with args. 31061 set dummy link; ac_word=$2 31062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31063 $as_echo_n "checking for $ac_word... " >&6; } 31064 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 31065 $as_echo_n "(cached) " >&6 31066 else 31067 case $CYGWIN_LINK in 31068 [\\/]* | ?:[\\/]*) 31069 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 31070 ;; 31071 *) 31072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31073 for as_dir in $PATH 31074 do 31075 IFS=$as_save_IFS 31076 test -z "$as_dir" && as_dir=. 31077 for ac_exec_ext in '' $ac_executable_extensions; do 31078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31079 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 31080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31081 break 2 31082 fi 31083 done 31084 done 31085 IFS=$as_save_IFS 31086 31087 ;; 31088 esac 31089 fi 31090 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 31091 if test -n "$CYGWIN_LINK"; then 31092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 31093 $as_echo "$CYGWIN_LINK" >&6; } 31094 else 31095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31096 $as_echo "no" >&6; } 31097 fi 31098 31099 31100 if test "x$CYGWIN_LINK" != x; then 31101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 31102 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 31103 "$CYGWIN_LINK" --version > /dev/null 31104 if test $? -eq 0 ; then 31105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31106 $as_echo "yes" >&6; } 31107 else 31108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31109 $as_echo "no" >&6; } 31110 # This might be the VS linker. Don't exclude it later on. 31111 CYGWIN_LINK="" 31112 fi 31113 fi 31114 31115 # First-hand choice is to locate and run the vsvars bat file. 31116 31117 31118 # Check whether --with-toolchain-version was given. 31119 if test "${with_toolchain_version+set}" = set; then : 31120 withval=$with_toolchain_version; 31121 fi 31122 31123 31124 if test "x$with_toolchain_version" = xlist; then 31125 # List all toolchains 31126 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 31127 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 31128 for version in $VALID_VS_VERSIONS; do 31129 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 31130 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 31131 done 31132 31133 exit 0 31134 elif test "x$DEVKIT_VS_VERSION" != x; then 31135 VS_VERSION=$DEVKIT_VS_VERSION 31136 TOOLCHAIN_VERSION=$VS_VERSION 31137 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 31138 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 31139 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 31140 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 31141 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31142 VS_PATH="$TOOLCHAIN_PATH:$PATH" 31143 31144 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 31145 # can still be exported as INCLUDE for compiler invocations without 31146 # SYSROOT_CFLAGS 31147 OLDIFS="$IFS" 31148 IFS=";" 31149 for i in $DEVKIT_VS_INCLUDE; do 31150 ipath=$i 31151 31152 unix_path="$ipath" 31153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31154 windows_path=`$CYGPATH -m "$unix_path"` 31155 ipath="$windows_path" 31156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31157 windows_path=`cmd //c echo $unix_path` 31158 ipath="$windows_path" 31159 fi 31160 31161 VS_INCLUDE="$VS_INCLUDE;$ipath" 31162 done 31163 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 31164 # as LIB for compiler invocations without SYSROOT_LDFLAGS 31165 for i in $DEVKIT_VS_LIB; do 31166 libpath=$i 31167 31168 unix_path="$libpath" 31169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31170 windows_path=`$CYGPATH -m "$unix_path"` 31171 libpath="$windows_path" 31172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31173 windows_path=`cmd //c echo $unix_path` 31174 libpath="$windows_path" 31175 fi 31176 31177 VS_LIB="$VS_LIB;$libpath" 31178 done 31179 IFS="$OLDIFS" 31180 31181 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 31182 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 31183 31184 elif test "x$with_toolchain_version" != x; then 31185 # User override; check that it is valid 31186 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 31187 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 31188 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 31189 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 31190 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 31191 as_fn_error $? "Cannot continue." "$LINENO" 5 31192 fi 31193 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 31194 else 31195 # No flag given, use default 31196 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 31197 fi 31198 31199 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 31200 31201 VS_VERSION="$VS_VERSION" 31202 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 31203 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 31204 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 31205 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 31206 31207 # When using --with-tools-dir, assume it points to the correct and default 31208 # version of Visual Studio or that --with-toolchain-version was also set. 31209 if test "x$with_tools_dir" != x; then 31210 31211 if test "x$VS_ENV_CMD" = x; then 31212 VS_VERSION="${VS_VERSION}" 31213 VS_BASE="$with_tools_dir/../.." 31214 METHOD="--with-tools-dir" 31215 31216 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31217 VCVARSFILE="vc/bin/vcvars32.bat" 31218 else 31219 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31220 fi 31221 31222 31223 windows_path="$VS_BASE" 31224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31225 unix_path=`$CYGPATH -u "$windows_path"` 31226 VS_BASE="$unix_path" 31227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31229 VS_BASE="$unix_path" 31230 fi 31231 31232 if test -d "$VS_BASE"; then 31233 if test -f "$VS_BASE/$VCVARSFILE"; then 31234 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31235 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31236 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31237 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31238 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31239 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31240 else 31241 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31242 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31243 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31244 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31245 fi 31246 fi 31247 fi 31248 31249 31250 if test "x$VS_ENV_CMD" = x; then 31251 VS_VERSION="${VS_VERSION}" 31252 VS_BASE="$with_tools_dir/../../.." 31253 METHOD="--with-tools-dir" 31254 31255 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31256 VCVARSFILE="vc/bin/vcvars32.bat" 31257 else 31258 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31259 fi 31260 31261 31262 windows_path="$VS_BASE" 31263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31264 unix_path=`$CYGPATH -u "$windows_path"` 31265 VS_BASE="$unix_path" 31266 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31267 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31268 VS_BASE="$unix_path" 31269 fi 31270 31271 if test -d "$VS_BASE"; then 31272 if test -f "$VS_BASE/$VCVARSFILE"; then 31273 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31274 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31275 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31276 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31277 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31278 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31279 else 31280 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31281 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31282 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31283 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31284 fi 31285 fi 31286 fi 31287 31288 if test "x$VS_ENV_CMD" = x; then 31289 # Having specified an argument which is incorrect will produce an instant failure; 31290 # we should not go on looking 31291 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 31292 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 31293 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 31294 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 31295 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 31296 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 31297 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 31298 fi 31299 fi 31300 31301 VS_ENV_CMD="" 31302 VS_ENV_ARGS="" 31303 31304 if test "x$VS_COMNTOOLS" != x; then 31305 31306 if test "x$VS_ENV_CMD" = x; then 31307 VS_VERSION="${VS_VERSION}" 31308 VS_BASE="$VS_COMNTOOLS/../.." 31309 METHOD="$VS_COMNTOOLS_VAR variable" 31310 31311 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31312 VCVARSFILE="vc/bin/vcvars32.bat" 31313 else 31314 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31315 fi 31316 31317 31318 windows_path="$VS_BASE" 31319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31320 unix_path=`$CYGPATH -u "$windows_path"` 31321 VS_BASE="$unix_path" 31322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31323 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31324 VS_BASE="$unix_path" 31325 fi 31326 31327 if test -d "$VS_BASE"; then 31328 if test -f "$VS_BASE/$VCVARSFILE"; then 31329 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31330 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31331 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31332 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31333 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31334 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31335 else 31336 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31337 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31338 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31339 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31340 fi 31341 fi 31342 fi 31343 31344 fi 31345 if test "x$PROGRAMFILES" != x; then 31346 31347 if test "x$VS_ENV_CMD" = x; then 31348 VS_VERSION="${VS_VERSION}" 31349 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 31350 METHOD="well-known name" 31351 31352 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31353 VCVARSFILE="vc/bin/vcvars32.bat" 31354 else 31355 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31356 fi 31357 31358 31359 windows_path="$VS_BASE" 31360 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31361 unix_path=`$CYGPATH -u "$windows_path"` 31362 VS_BASE="$unix_path" 31363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31364 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31365 VS_BASE="$unix_path" 31366 fi 31367 31368 if test -d "$VS_BASE"; then 31369 if test -f "$VS_BASE/$VCVARSFILE"; then 31370 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31371 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31372 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31373 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31374 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31375 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31376 else 31377 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31378 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31379 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31380 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31381 fi 31382 fi 31383 fi 31384 31385 fi 31386 # Work around the insanely named ProgramFiles(x86) env variable 31387 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 31388 if test "x$PROGRAMFILES_X86" != x; then 31389 31390 if test "x$VS_ENV_CMD" = x; then 31391 VS_VERSION="${VS_VERSION}" 31392 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 31393 METHOD="well-known name" 31394 31395 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31396 VCVARSFILE="vc/bin/vcvars32.bat" 31397 else 31398 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31399 fi 31400 31401 31402 windows_path="$VS_BASE" 31403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31404 unix_path=`$CYGPATH -u "$windows_path"` 31405 VS_BASE="$unix_path" 31406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31408 VS_BASE="$unix_path" 31409 fi 31410 31411 if test -d "$VS_BASE"; then 31412 if test -f "$VS_BASE/$VCVARSFILE"; then 31413 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31414 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31415 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31416 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31417 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31418 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31419 else 31420 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31421 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31422 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31423 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31424 fi 31425 fi 31426 fi 31427 31428 fi 31429 31430 if test "x$VS_ENV_CMD" = x; then 31431 VS_VERSION="${VS_VERSION}" 31432 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 31433 METHOD="well-known name" 31434 31435 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31436 VCVARSFILE="vc/bin/vcvars32.bat" 31437 else 31438 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31439 fi 31440 31441 31442 windows_path="$VS_BASE" 31443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31444 unix_path=`$CYGPATH -u "$windows_path"` 31445 VS_BASE="$unix_path" 31446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31448 VS_BASE="$unix_path" 31449 fi 31450 31451 if test -d "$VS_BASE"; then 31452 if test -f "$VS_BASE/$VCVARSFILE"; then 31453 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31454 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31455 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31456 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31457 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31458 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31459 else 31460 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31461 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31462 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31463 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31464 fi 31465 fi 31466 fi 31467 31468 31469 if test "x$VS_ENV_CMD" = x; then 31470 VS_VERSION="${VS_VERSION}" 31471 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 31472 METHOD="well-known name" 31473 31474 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31475 VCVARSFILE="vc/bin/vcvars32.bat" 31476 else 31477 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 31478 fi 31479 31480 31481 windows_path="$VS_BASE" 31482 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31483 unix_path=`$CYGPATH -u "$windows_path"` 31484 VS_BASE="$unix_path" 31485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31486 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31487 VS_BASE="$unix_path" 31488 fi 31489 31490 if test -d "$VS_BASE"; then 31491 if test -f "$VS_BASE/$VCVARSFILE"; then 31492 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31493 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31494 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 31495 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31496 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 31497 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 31498 else 31499 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 31500 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 31501 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 31502 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 31503 fi 31504 fi 31505 fi 31506 31507 31508 if test "x$SDK_INSTALL_DIR" != x; then 31509 if test "x$ProgramW6432" != x; then 31510 31511 if test "x$VS_ENV_CMD" = x; then 31512 VS_VERSION="${VS_VERSION}" 31513 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 31514 METHOD="well-known name" 31515 31516 windows_path="$WIN_SDK_BASE" 31517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31518 unix_path=`$CYGPATH -u "$windows_path"` 31519 WIN_SDK_BASE="$unix_path" 31520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31521 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31522 WIN_SDK_BASE="$unix_path" 31523 fi 31524 31525 if test -d "$WIN_SDK_BASE"; then 31526 # There have been cases of partial or broken SDK installations. A missing 31527 # lib dir is not going to work. 31528 if test ! -d "$WIN_SDK_BASE/lib"; then 31529 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31530 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31531 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 31532 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 31533 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 31534 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31535 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31536 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 31537 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31538 VS_ENV_ARGS="/x86" 31539 else 31540 VS_ENV_ARGS="/x64" 31541 fi 31542 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31543 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 31544 # TODO: improve detection for other versions of SDK 31545 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 31546 else 31547 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31548 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31549 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 31550 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 31551 fi 31552 fi 31553 fi 31554 31555 fi 31556 if test "x$PROGRAMW6432" != x; then 31557 31558 if test "x$VS_ENV_CMD" = x; then 31559 VS_VERSION="${VS_VERSION}" 31560 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 31561 METHOD="well-known name" 31562 31563 windows_path="$WIN_SDK_BASE" 31564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31565 unix_path=`$CYGPATH -u "$windows_path"` 31566 WIN_SDK_BASE="$unix_path" 31567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31568 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31569 WIN_SDK_BASE="$unix_path" 31570 fi 31571 31572 if test -d "$WIN_SDK_BASE"; then 31573 # There have been cases of partial or broken SDK installations. A missing 31574 # lib dir is not going to work. 31575 if test ! -d "$WIN_SDK_BASE/lib"; then 31576 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31577 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31578 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 31579 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 31580 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 31581 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31582 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31583 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 31584 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31585 VS_ENV_ARGS="/x86" 31586 else 31587 VS_ENV_ARGS="/x64" 31588 fi 31589 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31590 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 31591 # TODO: improve detection for other versions of SDK 31592 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 31593 else 31594 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31595 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31596 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 31597 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 31598 fi 31599 fi 31600 fi 31601 31602 fi 31603 if test "x$PROGRAMFILES" != x; then 31604 31605 if test "x$VS_ENV_CMD" = x; then 31606 VS_VERSION="${VS_VERSION}" 31607 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 31608 METHOD="well-known name" 31609 31610 windows_path="$WIN_SDK_BASE" 31611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31612 unix_path=`$CYGPATH -u "$windows_path"` 31613 WIN_SDK_BASE="$unix_path" 31614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31616 WIN_SDK_BASE="$unix_path" 31617 fi 31618 31619 if test -d "$WIN_SDK_BASE"; then 31620 # There have been cases of partial or broken SDK installations. A missing 31621 # lib dir is not going to work. 31622 if test ! -d "$WIN_SDK_BASE/lib"; then 31623 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31624 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31625 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 31626 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 31627 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 31628 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31629 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31630 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 31631 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31632 VS_ENV_ARGS="/x86" 31633 else 31634 VS_ENV_ARGS="/x64" 31635 fi 31636 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31637 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 31638 # TODO: improve detection for other versions of SDK 31639 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 31640 else 31641 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31642 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31643 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 31644 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 31645 fi 31646 fi 31647 fi 31648 31649 fi 31650 31651 if test "x$VS_ENV_CMD" = x; then 31652 VS_VERSION="${VS_VERSION}" 31653 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 31654 METHOD="well-known name" 31655 31656 windows_path="$WIN_SDK_BASE" 31657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31658 unix_path=`$CYGPATH -u "$windows_path"` 31659 WIN_SDK_BASE="$unix_path" 31660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31661 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31662 WIN_SDK_BASE="$unix_path" 31663 fi 31664 31665 if test -d "$WIN_SDK_BASE"; then 31666 # There have been cases of partial or broken SDK installations. A missing 31667 # lib dir is not going to work. 31668 if test ! -d "$WIN_SDK_BASE/lib"; then 31669 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31670 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31671 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 31672 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 31673 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 31674 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31675 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31676 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 31677 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31678 VS_ENV_ARGS="/x86" 31679 else 31680 VS_ENV_ARGS="/x64" 31681 fi 31682 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31683 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 31684 # TODO: improve detection for other versions of SDK 31685 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 31686 else 31687 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31688 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31689 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 31690 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 31691 fi 31692 fi 31693 fi 31694 31695 31696 if test "x$VS_ENV_CMD" = x; then 31697 VS_VERSION="${VS_VERSION}" 31698 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 31699 METHOD="well-known name" 31700 31701 windows_path="$WIN_SDK_BASE" 31702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31703 unix_path=`$CYGPATH -u "$windows_path"` 31704 WIN_SDK_BASE="$unix_path" 31705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31706 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31707 WIN_SDK_BASE="$unix_path" 31708 fi 31709 31710 if test -d "$WIN_SDK_BASE"; then 31711 # There have been cases of partial or broken SDK installations. A missing 31712 # lib dir is not going to work. 31713 if test ! -d "$WIN_SDK_BASE/lib"; then 31714 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31715 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31716 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 31717 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 31718 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 31719 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31720 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31721 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 31722 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 31723 VS_ENV_ARGS="/x86" 31724 else 31725 VS_ENV_ARGS="/x64" 31726 fi 31727 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 31728 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 31729 # TODO: improve detection for other versions of SDK 31730 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 31731 else 31732 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 31733 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 31734 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 31735 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 31736 fi 31737 fi 31738 fi 31739 31740 fi 31741 31742 if test "x$VS_ENV_CMD" != x; then 31743 TOOLCHAIN_VERSION=$VS_VERSION 31744 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 31745 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 31746 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 31747 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 31748 # The rest of the variables are already evaled while probing 31749 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 31750 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 31751 break 31752 fi 31753 done 31754 31755 31756 # If we have a devkit, skip all of the below. 31757 if test "x$DEVKIT_VS_VERSION" = x; then 31758 if test "x$VS_ENV_CMD" != x; then 31759 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 31760 31761 # Only process if variable expands to non-empty 31762 31763 if test "x$VS_ENV_CMD" != x; then 31764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31765 31766 # First separate the path from the arguments. This will split at the first 31767 # space. 31768 complete="$VS_ENV_CMD" 31769 path="${complete%% *}" 31770 tmp="$complete EOL" 31771 arguments="${tmp#* }" 31772 31773 # Input might be given as Windows format, start by converting to 31774 # unix format. 31775 new_path=`$CYGPATH -u "$path"` 31776 31777 # Now try to locate executable using which 31778 new_path=`$WHICH "$new_path" 2> /dev/null` 31779 # bat and cmd files are not always considered executable in cygwin causing which 31780 # to not find them 31781 if test "x$new_path" = x \ 31782 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31783 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31784 new_path=`$CYGPATH -u "$path"` 31785 fi 31786 if test "x$new_path" = x; then 31787 # Oops. Which didn't find the executable. 31788 # The splitting of arguments from the executable at a space might have been incorrect, 31789 # since paths with space are more likely in Windows. Give it another try with the whole 31790 # argument. 31791 path="$complete" 31792 arguments="EOL" 31793 new_path=`$CYGPATH -u "$path"` 31794 new_path=`$WHICH "$new_path" 2> /dev/null` 31795 # bat and cmd files are not always considered executable in cygwin causing which 31796 # to not find them 31797 if test "x$new_path" = x \ 31798 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31799 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31800 new_path=`$CYGPATH -u "$path"` 31801 fi 31802 if test "x$new_path" = x; then 31803 # It's still not found. Now this is an unrecoverable error. 31804 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 31805 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 31806 has_space=`$ECHO "$complete" | $GREP " "` 31807 if test "x$has_space" != x; then 31808 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31809 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31810 fi 31811 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 31812 fi 31813 fi 31814 31815 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31816 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31817 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31818 # "foo.exe" is OK but "foo" is an error. 31819 # 31820 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31821 # It is also a way to make sure we got the proper file name for the real test later on. 31822 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31823 if test "x$test_shortpath" = x; then 31824 # Short path failed, file does not exist as specified. 31825 # Try adding .exe or .cmd 31826 if test -f "${new_path}.exe"; then 31827 input_to_shortpath="${new_path}.exe" 31828 elif test -f "${new_path}.cmd"; then 31829 input_to_shortpath="${new_path}.cmd" 31830 else 31831 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 31832 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 31833 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31834 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31835 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 31836 fi 31837 else 31838 input_to_shortpath="$new_path" 31839 fi 31840 31841 # Call helper function which possibly converts this using DOS-style short mode. 31842 # If so, the updated path is stored in $new_path. 31843 new_path="$input_to_shortpath" 31844 31845 input_path="$input_to_shortpath" 31846 # Check if we need to convert this using DOS-style short mode. If the path 31847 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31848 # take no chances and rewrite it. 31849 # Note: m4 eats our [], so we need to use [ and ] instead. 31850 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31851 if test "x$has_forbidden_chars" != x; then 31852 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31853 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31854 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31855 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31856 # Going to short mode and back again did indeed matter. Since short mode is 31857 # case insensitive, let's make it lowercase to improve readability. 31858 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31859 # Now convert it back to Unix-style (cygpath) 31860 input_path=`$CYGPATH -u "$shortmode_path"` 31861 new_path="$input_path" 31862 fi 31863 fi 31864 31865 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31866 if test "x$test_cygdrive_prefix" = x; then 31867 # As a simple fix, exclude /usr/bin since it's not a real path. 31868 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31869 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31870 # a path prefixed by /cygdrive for fixpath to work. 31871 new_path="$CYGWIN_ROOT_PATH$input_path" 31872 fi 31873 fi 31874 31875 # remove trailing .exe if any 31876 new_path="${new_path/%.exe/}" 31877 31878 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31879 31880 # First separate the path from the arguments. This will split at the first 31881 # space. 31882 complete="$VS_ENV_CMD" 31883 path="${complete%% *}" 31884 tmp="$complete EOL" 31885 arguments="${tmp#* }" 31886 31887 # Input might be given as Windows format, start by converting to 31888 # unix format. 31889 new_path="$path" 31890 31891 windows_path="$new_path" 31892 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31893 unix_path=`$CYGPATH -u "$windows_path"` 31894 new_path="$unix_path" 31895 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31896 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31897 new_path="$unix_path" 31898 fi 31899 31900 31901 # Now try to locate executable using which 31902 new_path=`$WHICH "$new_path" 2> /dev/null` 31903 31904 if test "x$new_path" = x; then 31905 # Oops. Which didn't find the executable. 31906 # The splitting of arguments from the executable at a space might have been incorrect, 31907 # since paths with space are more likely in Windows. Give it another try with the whole 31908 # argument. 31909 path="$complete" 31910 arguments="EOL" 31911 new_path="$path" 31912 31913 windows_path="$new_path" 31914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31915 unix_path=`$CYGPATH -u "$windows_path"` 31916 new_path="$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 new_path="$unix_path" 31920 fi 31921 31922 31923 new_path=`$WHICH "$new_path" 2> /dev/null` 31924 # bat and cmd files are not always considered executable in MSYS causing which 31925 # to not find them 31926 if test "x$new_path" = x \ 31927 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31928 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31929 new_path="$path" 31930 31931 windows_path="$new_path" 31932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31933 unix_path=`$CYGPATH -u "$windows_path"` 31934 new_path="$unix_path" 31935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31937 new_path="$unix_path" 31938 fi 31939 31940 fi 31941 31942 if test "x$new_path" = x; then 31943 # It's still not found. Now this is an unrecoverable error. 31944 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 31945 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 31946 has_space=`$ECHO "$complete" | $GREP " "` 31947 if test "x$has_space" != x; then 31948 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31949 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31950 fi 31951 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 31952 fi 31953 fi 31954 31955 # Now new_path has a complete unix path to the binary 31956 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31957 # Keep paths in /bin as-is, but remove trailing .exe if any 31958 new_path="${new_path/%.exe/}" 31959 # Do not save /bin paths to all_fixpath_prefixes! 31960 else 31961 # Not in mixed or Windows style, start by that. 31962 new_path=`cmd //c echo $new_path` 31963 31964 input_path="$new_path" 31965 # Check if we need to convert this using DOS-style short mode. If the path 31966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31967 # take no chances and rewrite it. 31968 # Note: m4 eats our [], so we need to use [ and ] instead. 31969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31970 if test "x$has_forbidden_chars" != x; then 31971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31972 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31973 fi 31974 31975 # Output is in $new_path 31976 31977 windows_path="$new_path" 31978 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31979 unix_path=`$CYGPATH -u "$windows_path"` 31980 new_path="$unix_path" 31981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31982 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31983 new_path="$unix_path" 31984 fi 31985 31986 # remove trailing .exe if any 31987 new_path="${new_path/%.exe/}" 31988 31989 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31990 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31991 fi 31992 31993 else 31994 # We're on a unix platform. Hooray! :) 31995 # First separate the path from the arguments. This will split at the first 31996 # space. 31997 complete="$VS_ENV_CMD" 31998 path="${complete%% *}" 31999 tmp="$complete EOL" 32000 arguments="${tmp#* }" 32001 32002 # Cannot rely on the command "which" here since it doesn't always work. 32003 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32004 if test -z "$is_absolute_path"; then 32005 # Path to executable is not absolute. Find it. 32006 IFS_save="$IFS" 32007 IFS=: 32008 for p in $PATH; do 32009 if test -f "$p/$path" && test -x "$p/$path"; then 32010 new_path="$p/$path" 32011 break 32012 fi 32013 done 32014 IFS="$IFS_save" 32015 else 32016 # This is an absolute path, we can use it without further modifications. 32017 new_path="$path" 32018 fi 32019 32020 if test "x$new_path" = x; then 32021 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32022 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32023 has_space=`$ECHO "$complete" | $GREP " "` 32024 if test "x$has_space" != x; then 32025 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32026 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32027 fi 32028 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32029 fi 32030 fi 32031 32032 # Now join together the path and the arguments once again 32033 if test "x$arguments" != xEOL; then 32034 new_complete="$new_path ${arguments% *}" 32035 else 32036 new_complete="$new_path" 32037 fi 32038 32039 if test "x$complete" != "x$new_complete"; then 32040 VS_ENV_CMD="$new_complete" 32041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 32042 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 32043 fi 32044 fi 32045 32046 32047 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 32048 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 32049 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 32050 32051 # We need to create a couple of temporary files. 32052 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 32053 $MKDIR -p $VS_ENV_TMP_DIR 32054 32055 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 32056 # Instead create a shell script which will set the relevant variables when run. 32057 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 32058 32059 unix_path="$WINPATH_VS_ENV_CMD" 32060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32061 windows_path=`$CYGPATH -m "$unix_path"` 32062 WINPATH_VS_ENV_CMD="$windows_path" 32063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32064 windows_path=`cmd //c echo $unix_path` 32065 WINPATH_VS_ENV_CMD="$windows_path" 32066 fi 32067 32068 WINPATH_BASH="$BASH" 32069 32070 unix_path="$WINPATH_BASH" 32071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32072 windows_path=`$CYGPATH -m "$unix_path"` 32073 WINPATH_BASH="$windows_path" 32074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32075 windows_path=`cmd //c echo $unix_path` 32076 WINPATH_BASH="$windows_path" 32077 fi 32078 32079 32080 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 32081 # script (executable by bash) that will setup the important variables. 32082 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 32083 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 32084 # This will end up something like: 32085 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 32086 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 32087 # These will end up something like: 32088 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 32089 # The trailing space for everyone except PATH is no typo, but is needed due 32090 # to trailing \ in the Windows paths. These will be stripped later. 32091 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 32092 >> $EXTRACT_VC_ENV_BAT_FILE 32093 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 32094 >> $EXTRACT_VC_ENV_BAT_FILE 32095 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 32096 >> $EXTRACT_VC_ENV_BAT_FILE 32097 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 32098 >> $EXTRACT_VC_ENV_BAT_FILE 32099 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 32100 >> $EXTRACT_VC_ENV_BAT_FILE 32101 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 32102 >> $EXTRACT_VC_ENV_BAT_FILE 32103 32104 # Now execute the newly created bat file. 32105 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 32106 # Change directory so we don't need to mess with Windows paths in redirects. 32107 cd $VS_ENV_TMP_DIR 32108 cmd /c extract-vs-env.bat | $CAT 32109 cd $CURDIR 32110 32111 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 32112 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 32113 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 32114 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32115 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32116 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32117 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32118 as_fn_error $? "Cannot continue" "$LINENO" 5 32119 fi 32120 32121 # Now set all paths and other env variables. This will allow the rest of 32122 # the configure script to find and run the compiler in the proper way. 32123 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 32124 $as_echo "$as_me: Setting extracted environment variables" >&6;} 32125 . $VS_ENV_TMP_DIR/set-vs-env.sh 32126 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 32127 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 32128 else 32129 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 32130 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 32131 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 32132 fi 32133 fi 32134 32135 # At this point, we should have correct variables in the environment, or we can't continue. 32136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 32137 $as_echo_n "checking for Visual Studio variables... " >&6; } 32138 32139 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 32140 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 32141 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 32142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 32143 $as_echo "present but broken" >&6; } 32144 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 32145 else 32146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 32147 $as_echo "ok" >&6; } 32148 # Remove any trailing "\" ";" and " " from the variables. 32149 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 32150 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 32151 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 32152 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 32153 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 32154 # Remove any paths containing # (typically F#) as that messes up make. This 32155 # is needed if visual studio was installed with F# support. 32156 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 32157 32158 32159 32160 32161 32162 # Convert VS_INCLUDE into SYSROOT_CFLAGS 32163 OLDIFS="$IFS" 32164 IFS=";" 32165 for i in $VS_INCLUDE; do 32166 ipath=$i 32167 # Only process non-empty elements 32168 if test "x$ipath" != x; then 32169 IFS="$OLDIFS" 32170 # Check that directory exists before calling fixup_path 32171 testpath=$ipath 32172 32173 windows_path="$testpath" 32174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32175 unix_path=`$CYGPATH -u "$windows_path"` 32176 testpath="$unix_path" 32177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32178 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32179 testpath="$unix_path" 32180 fi 32181 32182 if test -d "$testpath"; then 32183 32184 # Only process if variable expands to non-empty 32185 32186 if test "x$ipath" != x; then 32187 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32188 32189 # Input might be given as Windows format, start by converting to 32190 # unix format. 32191 path="$ipath" 32192 new_path=`$CYGPATH -u "$path"` 32193 32194 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32195 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32196 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32197 # "foo.exe" is OK but "foo" is an error. 32198 # 32199 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32200 # It is also a way to make sure we got the proper file name for the real test later on. 32201 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32202 if test "x$test_shortpath" = x; then 32203 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32204 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32205 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 32206 fi 32207 32208 # Call helper function which possibly converts this using DOS-style short mode. 32209 # If so, the updated path is stored in $new_path. 32210 32211 input_path="$new_path" 32212 # Check if we need to convert this using DOS-style short mode. If the path 32213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32214 # take no chances and rewrite it. 32215 # Note: m4 eats our [], so we need to use [ and ] instead. 32216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32217 if test "x$has_forbidden_chars" != x; then 32218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32219 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32220 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32221 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32222 # Going to short mode and back again did indeed matter. Since short mode is 32223 # case insensitive, let's make it lowercase to improve readability. 32224 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32225 # Now convert it back to Unix-style (cygpath) 32226 input_path=`$CYGPATH -u "$shortmode_path"` 32227 new_path="$input_path" 32228 fi 32229 fi 32230 32231 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32232 if test "x$test_cygdrive_prefix" = x; then 32233 # As a simple fix, exclude /usr/bin since it's not a real path. 32234 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32235 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32236 # a path prefixed by /cygdrive for fixpath to work. 32237 new_path="$CYGWIN_ROOT_PATH$input_path" 32238 fi 32239 fi 32240 32241 32242 if test "x$path" != "x$new_path"; then 32243 ipath="$new_path" 32244 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32245 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32246 fi 32247 32248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32249 32250 path="$ipath" 32251 has_colon=`$ECHO $path | $GREP ^.:` 32252 new_path="$path" 32253 if test "x$has_colon" = x; then 32254 # Not in mixed or Windows style, start by that. 32255 new_path=`cmd //c echo $path` 32256 fi 32257 32258 32259 input_path="$new_path" 32260 # Check if we need to convert this using DOS-style short mode. If the path 32261 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32262 # take no chances and rewrite it. 32263 # Note: m4 eats our [], so we need to use [ and ] instead. 32264 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32265 if test "x$has_forbidden_chars" != x; then 32266 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32267 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32268 fi 32269 32270 32271 windows_path="$new_path" 32272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32273 unix_path=`$CYGPATH -u "$windows_path"` 32274 new_path="$unix_path" 32275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32276 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32277 new_path="$unix_path" 32278 fi 32279 32280 if test "x$path" != "x$new_path"; then 32281 ipath="$new_path" 32282 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 32283 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 32284 fi 32285 32286 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32287 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32288 32289 else 32290 # We're on a unix platform. Hooray! :) 32291 path="$ipath" 32292 has_space=`$ECHO "$path" | $GREP " "` 32293 if test "x$has_space" != x; then 32294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 32295 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 32296 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32297 fi 32298 32299 # Use eval to expand a potential ~ 32300 eval path="$path" 32301 if test ! -f "$path" && test ! -d "$path"; then 32302 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 32303 fi 32304 32305 if test -d "$path"; then 32306 ipath="`cd "$path"; $THEPWDCMD -L`" 32307 else 32308 dir="`$DIRNAME "$path"`" 32309 base="`$BASENAME "$path"`" 32310 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 32311 fi 32312 fi 32313 fi 32314 32315 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 32316 fi 32317 IFS=";" 32318 fi 32319 done 32320 # Convert VS_LIB into SYSROOT_LDFLAGS 32321 for i in $VS_LIB; do 32322 libpath=$i 32323 # Only process non-empty elements 32324 if test "x$libpath" != x; then 32325 IFS="$OLDIFS" 32326 # Check that directory exists before calling fixup_path 32327 testpath=$libpath 32328 32329 windows_path="$testpath" 32330 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32331 unix_path=`$CYGPATH -u "$windows_path"` 32332 testpath="$unix_path" 32333 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32334 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32335 testpath="$unix_path" 32336 fi 32337 32338 if test -d "$testpath"; then 32339 32340 # Only process if variable expands to non-empty 32341 32342 if test "x$libpath" != x; then 32343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32344 32345 # Input might be given as Windows format, start by converting to 32346 # unix format. 32347 path="$libpath" 32348 new_path=`$CYGPATH -u "$path"` 32349 32350 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32351 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32352 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32353 # "foo.exe" is OK but "foo" is an error. 32354 # 32355 # This test is therefore slightly more accurate than "test -f" to check for file precense. 32356 # It is also a way to make sure we got the proper file name for the real test later on. 32357 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32358 if test "x$test_shortpath" = x; then 32359 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32360 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32361 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 32362 fi 32363 32364 # Call helper function which possibly converts this using DOS-style short mode. 32365 # If so, the updated path is stored in $new_path. 32366 32367 input_path="$new_path" 32368 # Check if we need to convert this using DOS-style short mode. If the path 32369 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32370 # take no chances and rewrite it. 32371 # Note: m4 eats our [], so we need to use [ and ] instead. 32372 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32373 if test "x$has_forbidden_chars" != x; then 32374 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32375 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32376 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32377 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32378 # Going to short mode and back again did indeed matter. Since short mode is 32379 # case insensitive, let's make it lowercase to improve readability. 32380 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32381 # Now convert it back to Unix-style (cygpath) 32382 input_path=`$CYGPATH -u "$shortmode_path"` 32383 new_path="$input_path" 32384 fi 32385 fi 32386 32387 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32388 if test "x$test_cygdrive_prefix" = x; then 32389 # As a simple fix, exclude /usr/bin since it's not a real path. 32390 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 32391 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32392 # a path prefixed by /cygdrive for fixpath to work. 32393 new_path="$CYGWIN_ROOT_PATH$input_path" 32394 fi 32395 fi 32396 32397 32398 if test "x$path" != "x$new_path"; then 32399 libpath="$new_path" 32400 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32401 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32402 fi 32403 32404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32405 32406 path="$libpath" 32407 has_colon=`$ECHO $path | $GREP ^.:` 32408 new_path="$path" 32409 if test "x$has_colon" = x; then 32410 # Not in mixed or Windows style, start by that. 32411 new_path=`cmd //c echo $path` 32412 fi 32413 32414 32415 input_path="$new_path" 32416 # Check if we need to convert this using DOS-style short mode. If the path 32417 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32418 # take no chances and rewrite it. 32419 # Note: m4 eats our [], so we need to use [ and ] instead. 32420 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32421 if test "x$has_forbidden_chars" != x; then 32422 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32423 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32424 fi 32425 32426 32427 windows_path="$new_path" 32428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32429 unix_path=`$CYGPATH -u "$windows_path"` 32430 new_path="$unix_path" 32431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32432 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32433 new_path="$unix_path" 32434 fi 32435 32436 if test "x$path" != "x$new_path"; then 32437 libpath="$new_path" 32438 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 32439 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 32440 fi 32441 32442 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32443 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32444 32445 else 32446 # We're on a unix platform. Hooray! :) 32447 path="$libpath" 32448 has_space=`$ECHO "$path" | $GREP " "` 32449 if test "x$has_space" != x; then 32450 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 32451 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 32452 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 32453 fi 32454 32455 # Use eval to expand a potential ~ 32456 eval path="$path" 32457 if test ! -f "$path" && test ! -d "$path"; then 32458 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 32459 fi 32460 32461 if test -d "$path"; then 32462 libpath="`cd "$path"; $THEPWDCMD -L`" 32463 else 32464 dir="`$DIRNAME "$path"`" 32465 base="`$BASENAME "$path"`" 32466 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 32467 fi 32468 fi 32469 fi 32470 32471 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 32472 fi 32473 IFS=";" 32474 fi 32475 done 32476 IFS="$OLDIFS" 32477 fi 32478 else 32479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32480 $as_echo "not found" >&6; } 32481 32482 if test "x$VS_ENV_CMD" = x; then 32483 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 32484 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 32485 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 32486 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 32487 else 32488 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 32489 $as_echo "$as_me: Running the extraction script failed." >&6;} 32490 fi 32491 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 32492 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 32493 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 32494 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 32495 as_fn_error $? "Cannot continue" "$LINENO" 5 32496 fi 32497 32498 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 32499 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 32500 PATH="$VS_PATH" 32501 # The microsoft toolchain also requires INCLUDE and LIB to be set. 32502 export INCLUDE="$VS_INCLUDE" 32503 export LIB="$VS_LIB" 32504 else 32505 if test "x$XCODE_VERSION_OUTPUT" != x; then 32506 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 32507 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 32508 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 32509 else 32510 # Currently we do not define this for other toolchains. This might change as the need arise. 32511 TOOLCHAIN_VERSION= 32512 fi 32513 fi 32514 32515 32516 # For solaris we really need solaris tools, and not the GNU equivalent. 32517 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 32518 # so add that to path before starting to probe. 32519 # FIXME: This was originally only done for AS,NM,GNM,STRIP,OBJCOPY,OBJDUMP. 32520 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 32521 PATH="/usr/ccs/bin:$PATH" 32522 fi 32523 32524 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 32525 # override all other locations. 32526 if test "x$TOOLCHAIN_PATH" != x; then 32527 PATH=$TOOLCHAIN_PATH:$PATH 32528 fi 32529 32530 32531 # 32532 # Setup the compilers (CC and CXX) 32533 # 32534 32535 COMPILER_NAME=C 32536 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 32537 32538 if test "x$CC" != x; then 32539 # User has supplied compiler name already, always let that override. 32540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 32541 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 32542 if test "x`basename $CC`" = "x$CC"; then 32543 # A command without a complete path is provided, search $PATH. 32544 32545 for ac_prog in $CC 32546 do 32547 # Extract the first word of "$ac_prog", so it can be a program name with args. 32548 set dummy $ac_prog; ac_word=$2 32549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32550 $as_echo_n "checking for $ac_word... " >&6; } 32551 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 32552 $as_echo_n "(cached) " >&6 32553 else 32554 case $POTENTIAL_CC in 32555 [\\/]* | ?:[\\/]*) 32556 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 32557 ;; 32558 *) 32559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32560 for as_dir in $PATH 32561 do 32562 IFS=$as_save_IFS 32563 test -z "$as_dir" && as_dir=. 32564 for ac_exec_ext in '' $ac_executable_extensions; do 32565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32566 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 32567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32568 break 2 32569 fi 32570 done 32571 done 32572 IFS=$as_save_IFS 32573 32574 ;; 32575 esac 32576 fi 32577 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 32578 if test -n "$POTENTIAL_CC"; then 32579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 32580 $as_echo "$POTENTIAL_CC" >&6; } 32581 else 32582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32583 $as_echo "no" >&6; } 32584 fi 32585 32586 32587 test -n "$POTENTIAL_CC" && break 32588 done 32589 32590 if test "x$POTENTIAL_CC" != x; then 32591 CC=$POTENTIAL_CC 32592 else 32593 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 32594 fi 32595 else 32596 # Otherwise it might already be a complete path 32597 if test ! -x "$CC"; then 32598 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 32599 fi 32600 fi 32601 else 32602 # No user supplied value. Locate compiler ourselves. 32603 32604 # If we are cross compiling, assume cross compilation tools follows the 32605 # cross compilation standard where they are prefixed with the autoconf 32606 # standard name for the target. For example the binary 32607 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 32608 # If we are not cross compiling, then the default compiler name will be 32609 # used. 32610 32611 CC= 32612 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 32613 # before checking the rest of the PATH. 32614 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 32615 # step, this should not be necessary. 32616 if test -n "$TOOLCHAIN_PATH"; then 32617 PATH_save="$PATH" 32618 PATH="$TOOLCHAIN_PATH" 32619 for ac_prog in $SEARCH_LIST 32620 do 32621 # Extract the first word of "$ac_prog", so it can be a program name with args. 32622 set dummy $ac_prog; ac_word=$2 32623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32624 $as_echo_n "checking for $ac_word... " >&6; } 32625 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 32626 $as_echo_n "(cached) " >&6 32627 else 32628 case $TOOLCHAIN_PATH_CC in 32629 [\\/]* | ?:[\\/]*) 32630 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 32631 ;; 32632 *) 32633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32634 for as_dir in $PATH 32635 do 32636 IFS=$as_save_IFS 32637 test -z "$as_dir" && as_dir=. 32638 for ac_exec_ext in '' $ac_executable_extensions; do 32639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32640 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 32641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32642 break 2 32643 fi 32644 done 32645 done 32646 IFS=$as_save_IFS 32647 32648 ;; 32649 esac 32650 fi 32651 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 32652 if test -n "$TOOLCHAIN_PATH_CC"; then 32653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 32654 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 32655 else 32656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32657 $as_echo "no" >&6; } 32658 fi 32659 32660 32661 test -n "$TOOLCHAIN_PATH_CC" && break 32662 done 32663 32664 CC=$TOOLCHAIN_PATH_CC 32665 PATH="$PATH_save" 32666 fi 32667 32668 # AC_PATH_PROGS can't be run multiple times with the same variable, 32669 # so create a new name for this run. 32670 if test "x$CC" = x; then 32671 for ac_prog in $SEARCH_LIST 32672 do 32673 # Extract the first word of "$ac_prog", so it can be a program name with args. 32674 set dummy $ac_prog; ac_word=$2 32675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32676 $as_echo_n "checking for $ac_word... " >&6; } 32677 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 32678 $as_echo_n "(cached) " >&6 32679 else 32680 case $POTENTIAL_CC in 32681 [\\/]* | ?:[\\/]*) 32682 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 32683 ;; 32684 *) 32685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32686 for as_dir in $PATH 32687 do 32688 IFS=$as_save_IFS 32689 test -z "$as_dir" && as_dir=. 32690 for ac_exec_ext in '' $ac_executable_extensions; do 32691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32692 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 32693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32694 break 2 32695 fi 32696 done 32697 done 32698 IFS=$as_save_IFS 32699 32700 ;; 32701 esac 32702 fi 32703 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 32704 if test -n "$POTENTIAL_CC"; then 32705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 32706 $as_echo "$POTENTIAL_CC" >&6; } 32707 else 32708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32709 $as_echo "no" >&6; } 32710 fi 32711 32712 32713 test -n "$POTENTIAL_CC" && break 32714 done 32715 32716 CC=$POTENTIAL_CC 32717 fi 32718 32719 if test "x$CC" = x; then 32720 32721 # Print a helpful message on how to acquire the necessary build dependency. 32722 # devkit is the help tag: freetype, cups, alsa etc 32723 MISSING_DEPENDENCY=devkit 32724 32725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32726 cygwin_help $MISSING_DEPENDENCY 32727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32728 msys_help $MISSING_DEPENDENCY 32729 else 32730 PKGHANDLER_COMMAND= 32731 32732 case $PKGHANDLER in 32733 apt-get) 32734 apt_help $MISSING_DEPENDENCY ;; 32735 yum) 32736 yum_help $MISSING_DEPENDENCY ;; 32737 port) 32738 port_help $MISSING_DEPENDENCY ;; 32739 pkgutil) 32740 pkgutil_help $MISSING_DEPENDENCY ;; 32741 pkgadd) 32742 pkgadd_help $MISSING_DEPENDENCY ;; 32743 esac 32744 32745 if test "x$PKGHANDLER_COMMAND" != x; then 32746 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 32747 fi 32748 fi 32749 32750 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 32751 fi 32752 fi 32753 32754 # Now we have a compiler binary in CC. Make sure it's okay. 32755 32756 # Only process if variable expands to non-empty 32757 32758 if test "x$CC" != x; then 32759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32760 32761 # First separate the path from the arguments. This will split at the first 32762 # space. 32763 complete="$CC" 32764 path="${complete%% *}" 32765 tmp="$complete EOL" 32766 arguments="${tmp#* }" 32767 32768 # Input might be given as Windows format, start by converting to 32769 # unix format. 32770 new_path=`$CYGPATH -u "$path"` 32771 32772 # Now try to locate executable using which 32773 new_path=`$WHICH "$new_path" 2> /dev/null` 32774 # bat and cmd files are not always considered executable in cygwin causing which 32775 # to not find them 32776 if test "x$new_path" = x \ 32777 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32778 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32779 new_path=`$CYGPATH -u "$path"` 32780 fi 32781 if test "x$new_path" = x; then 32782 # Oops. Which didn't find the executable. 32783 # The splitting of arguments from the executable at a space might have been incorrect, 32784 # since paths with space are more likely in Windows. Give it another try with the whole 32785 # argument. 32786 path="$complete" 32787 arguments="EOL" 32788 new_path=`$CYGPATH -u "$path"` 32789 new_path=`$WHICH "$new_path" 2> /dev/null` 32790 # bat and cmd files are not always considered executable in cygwin causing which 32791 # to not find them 32792 if test "x$new_path" = x \ 32793 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32794 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32795 new_path=`$CYGPATH -u "$path"` 32796 fi 32797 if test "x$new_path" = x; then 32798 # It's still not found. Now this is an unrecoverable error. 32799 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 32800 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 32801 has_space=`$ECHO "$complete" | $GREP " "` 32802 if test "x$has_space" != x; then 32803 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32804 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32805 fi 32806 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 32807 fi 32808 fi 32809 32810 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32811 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32812 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32813 # "foo.exe" is OK but "foo" is an error. 32814 # 32815 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32816 # It is also a way to make sure we got the proper file name for the real test later on. 32817 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32818 if test "x$test_shortpath" = x; then 32819 # Short path failed, file does not exist as specified. 32820 # Try adding .exe or .cmd 32821 if test -f "${new_path}.exe"; then 32822 input_to_shortpath="${new_path}.exe" 32823 elif test -f "${new_path}.cmd"; then 32824 input_to_shortpath="${new_path}.cmd" 32825 else 32826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 32827 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 32828 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32829 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32830 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 32831 fi 32832 else 32833 input_to_shortpath="$new_path" 32834 fi 32835 32836 # Call helper function which possibly converts this using DOS-style short mode. 32837 # If so, the updated path is stored in $new_path. 32838 new_path="$input_to_shortpath" 32839 32840 input_path="$input_to_shortpath" 32841 # Check if we need to convert this using DOS-style short mode. If the path 32842 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32843 # take no chances and rewrite it. 32844 # Note: m4 eats our [], so we need to use [ and ] instead. 32845 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32846 if test "x$has_forbidden_chars" != x; then 32847 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32848 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32849 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32850 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32851 # Going to short mode and back again did indeed matter. Since short mode is 32852 # case insensitive, let's make it lowercase to improve readability. 32853 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32854 # Now convert it back to Unix-style (cygpath) 32855 input_path=`$CYGPATH -u "$shortmode_path"` 32856 new_path="$input_path" 32857 fi 32858 fi 32859 32860 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32861 if test "x$test_cygdrive_prefix" = x; then 32862 # As a simple fix, exclude /usr/bin since it's not a real path. 32863 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32864 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32865 # a path prefixed by /cygdrive for fixpath to work. 32866 new_path="$CYGWIN_ROOT_PATH$input_path" 32867 fi 32868 fi 32869 32870 # remove trailing .exe if any 32871 new_path="${new_path/%.exe/}" 32872 32873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32874 32875 # First separate the path from the arguments. This will split at the first 32876 # space. 32877 complete="$CC" 32878 path="${complete%% *}" 32879 tmp="$complete EOL" 32880 arguments="${tmp#* }" 32881 32882 # Input might be given as Windows format, start by converting to 32883 # unix format. 32884 new_path="$path" 32885 32886 windows_path="$new_path" 32887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32888 unix_path=`$CYGPATH -u "$windows_path"` 32889 new_path="$unix_path" 32890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32892 new_path="$unix_path" 32893 fi 32894 32895 32896 # Now try to locate executable using which 32897 new_path=`$WHICH "$new_path" 2> /dev/null` 32898 32899 if test "x$new_path" = x; then 32900 # Oops. Which didn't find the executable. 32901 # The splitting of arguments from the executable at a space might have been incorrect, 32902 # since paths with space are more likely in Windows. Give it another try with the whole 32903 # argument. 32904 path="$complete" 32905 arguments="EOL" 32906 new_path="$path" 32907 32908 windows_path="$new_path" 32909 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32910 unix_path=`$CYGPATH -u "$windows_path"` 32911 new_path="$unix_path" 32912 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32913 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32914 new_path="$unix_path" 32915 fi 32916 32917 32918 new_path=`$WHICH "$new_path" 2> /dev/null` 32919 # bat and cmd files are not always considered executable in MSYS causing which 32920 # to not find them 32921 if test "x$new_path" = x \ 32922 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32923 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32924 new_path="$path" 32925 32926 windows_path="$new_path" 32927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32928 unix_path=`$CYGPATH -u "$windows_path"` 32929 new_path="$unix_path" 32930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32932 new_path="$unix_path" 32933 fi 32934 32935 fi 32936 32937 if test "x$new_path" = x; then 32938 # It's still not found. Now this is an unrecoverable error. 32939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 32940 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 32941 has_space=`$ECHO "$complete" | $GREP " "` 32942 if test "x$has_space" != x; then 32943 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32944 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32945 fi 32946 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 32947 fi 32948 fi 32949 32950 # Now new_path has a complete unix path to the binary 32951 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32952 # Keep paths in /bin as-is, but remove trailing .exe if any 32953 new_path="${new_path/%.exe/}" 32954 # Do not save /bin paths to all_fixpath_prefixes! 32955 else 32956 # Not in mixed or Windows style, start by that. 32957 new_path=`cmd //c echo $new_path` 32958 32959 input_path="$new_path" 32960 # Check if we need to convert this using DOS-style short mode. If the path 32961 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32962 # take no chances and rewrite it. 32963 # Note: m4 eats our [], so we need to use [ and ] instead. 32964 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32965 if test "x$has_forbidden_chars" != x; then 32966 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32967 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32968 fi 32969 32970 # Output is in $new_path 32971 32972 windows_path="$new_path" 32973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32974 unix_path=`$CYGPATH -u "$windows_path"` 32975 new_path="$unix_path" 32976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32977 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32978 new_path="$unix_path" 32979 fi 32980 32981 # remove trailing .exe if any 32982 new_path="${new_path/%.exe/}" 32983 32984 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32985 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32986 fi 32987 32988 else 32989 # We're on a unix platform. Hooray! :) 32990 # First separate the path from the arguments. This will split at the first 32991 # space. 32992 complete="$CC" 32993 path="${complete%% *}" 32994 tmp="$complete EOL" 32995 arguments="${tmp#* }" 32996 32997 # Cannot rely on the command "which" here since it doesn't always work. 32998 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32999 if test -z "$is_absolute_path"; then 33000 # Path to executable is not absolute. Find it. 33001 IFS_save="$IFS" 33002 IFS=: 33003 for p in $PATH; do 33004 if test -f "$p/$path" && test -x "$p/$path"; then 33005 new_path="$p/$path" 33006 break 33007 fi 33008 done 33009 IFS="$IFS_save" 33010 else 33011 # This is an absolute path, we can use it without further modifications. 33012 new_path="$path" 33013 fi 33014 33015 if test "x$new_path" = x; then 33016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33017 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33018 has_space=`$ECHO "$complete" | $GREP " "` 33019 if test "x$has_space" != x; then 33020 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33021 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33022 fi 33023 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33024 fi 33025 fi 33026 33027 # Now join together the path and the arguments once again 33028 if test "x$arguments" != xEOL; then 33029 new_complete="$new_path ${arguments% *}" 33030 else 33031 new_complete="$new_path" 33032 fi 33033 33034 if test "x$complete" != "x$new_complete"; then 33035 CC="$new_complete" 33036 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 33037 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 33038 fi 33039 fi 33040 33041 TEST_COMPILER="$CC" 33042 33043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 33044 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 33045 SYMLINK_ORIGINAL="$TEST_COMPILER" 33046 33047 if test "x$OPENJDK_BUILD_OS" != xwindows; then 33048 # Follow a chain of symbolic links. Use readlink 33049 # where it exists, else fall back to horribly 33050 # complicated shell code. 33051 if test "x$READLINK_TESTED" != yes; then 33052 # On MacOSX there is a readlink tool with a different 33053 # purpose than the GNU readlink tool. Check the found readlink. 33054 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 33055 if test "x$ISGNU" = x; then 33056 # A readlink that we do not know how to use. 33057 # Are there other non-GNU readlinks out there? 33058 READLINK_TESTED=yes 33059 READLINK= 33060 fi 33061 fi 33062 33063 if test "x$READLINK" != x; then 33064 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 33065 else 33066 # Save the current directory for restoring afterwards 33067 STARTDIR=$PWD 33068 COUNTER=0 33069 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 33070 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 33071 cd $sym_link_dir 33072 # Use -P flag to resolve symlinks in directories. 33073 cd `$THEPWDCMD -P` 33074 sym_link_dir=`$THEPWDCMD -P` 33075 # Resolve file symlinks 33076 while test $COUNTER -lt 20; do 33077 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 33078 if test "x$ISLINK" == x; then 33079 # This is not a symbolic link! We are done! 33080 break 33081 fi 33082 # Again resolve directory symlinks since the target of the just found 33083 # link could be in a different directory 33084 cd `$DIRNAME $ISLINK` 33085 sym_link_dir=`$THEPWDCMD -P` 33086 sym_link_file=`$BASENAME $ISLINK` 33087 let COUNTER=COUNTER+1 33088 done 33089 cd $STARTDIR 33090 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 33091 fi 33092 fi 33093 33094 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 33095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 33096 $as_echo "no symlink" >&6; } 33097 else 33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 33099 $as_echo "$SYMLINK_ORIGINAL" >&6; } 33100 33101 # We can't handle ccache by gcc wrappers, since we need to know if we're 33102 # using ccache. Instead ccache usage must be controlled by a configure option. 33103 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 33104 if test "x$COMPILER_BASENAME" = "xccache"; then 33105 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 33106 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 33107 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 33108 fi 33109 fi 33110 33111 33112 COMPILER=$CC 33113 COMPILER_NAME=$COMPILER_NAME 33114 33115 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 33116 # cc -V output typically looks like 33117 # cc: Sun C 5.12 Linux_i386 2011/11/16 33118 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 33119 # Check that this is likely to be the Solaris Studio cc. 33120 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 33121 if test $? -ne 0; then 33122 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33123 { $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 33124 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33125 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33126 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33127 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33128 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33129 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33130 fi 33131 # Remove usage instructions (if present), and 33132 # collapse compiler output into a single line 33133 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33134 $SED -e 's/ *[Uu]sage:.*//'` 33135 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33136 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 33137 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 33138 # xlc -qversion output typically looks like 33139 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 33140 # Version: 11.01.0000.0015 33141 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 33142 # Check that this is likely to be the IBM XL C compiler. 33143 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 33144 if test $? -ne 0; then 33145 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33146 { $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 33147 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33148 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33149 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33150 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 33151 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 33152 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33153 fi 33154 # Collapse compiler output into a single line 33155 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33156 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33157 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 33158 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33159 # There is no specific version flag, but all output starts with a version string. 33160 # First line typically looks something like: 33161 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 33162 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 33163 # Check that this is likely to be Microsoft CL.EXE. 33164 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 33165 if test $? -ne 0; then 33166 { $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 33167 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33168 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33169 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33170 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33171 fi 33172 # Collapse compiler output into a single line 33173 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33174 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33175 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 33176 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 33177 # gcc --version output typically looks like 33178 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 33179 # Copyright (C) 2013 Free Software Foundation, Inc. 33180 # This is free software; see the source for copying conditions. There is NO 33181 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 33182 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33183 # Check that this is likely to be GCC. 33184 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 33185 if test $? -ne 0; then 33186 { $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 33187 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33188 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 33189 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 33190 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33191 fi 33192 # Remove Copyright and legalese from version string, and 33193 # collapse into a single line 33194 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33195 $SED -e 's/ *Copyright .*//'` 33196 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33197 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 33198 elif test "x$TOOLCHAIN_TYPE" = xclang; then 33199 # clang --version output typically looks like 33200 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 33201 # clang version 3.3 (tags/RELEASE_33/final) 33202 # or 33203 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 33204 # Target: x86_64-pc-linux-gnu 33205 # Thread model: posix 33206 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 33207 # Check that this is likely to be clang 33208 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 33209 if test $? -ne 0; then 33210 { $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 33211 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 33212 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 33213 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 33214 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 33215 fi 33216 # Collapse compiler output into a single line 33217 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 33218 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 33219 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 33220 else 33221 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 33222 fi 33223 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 33224 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 33225 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 33226 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 33227 33228 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 33229 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 33230 33231 33232 # Now that we have resolved CC ourself, let autoconf have its go at it 33233 ac_ext=c 33234 ac_cpp='$CPP $CPPFLAGS' 33235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33237 ac_compiler_gnu=$ac_cv_c_compiler_gnu 33238 if test -n "$ac_tool_prefix"; then 33239 for ac_prog in $CC 33240 do 33241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33242 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33244 $as_echo_n "checking for $ac_word... " >&6; } 33245 if ${ac_cv_prog_CC+:} false; then : 33246 $as_echo_n "(cached) " >&6 33247 else 33248 if test -n "$CC"; then 33249 ac_cv_prog_CC="$CC" # Let the user override the test. 33250 else 33251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33252 for as_dir in $PATH 33253 do 33254 IFS=$as_save_IFS 33255 test -z "$as_dir" && as_dir=. 33256 for ac_exec_ext in '' $ac_executable_extensions; do 33257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33258 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 33259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33260 break 2 33261 fi 33262 done 33263 done 33264 IFS=$as_save_IFS 33265 33266 fi 33267 fi 33268 CC=$ac_cv_prog_CC 33269 if test -n "$CC"; then 33270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 33271 $as_echo "$CC" >&6; } 33272 else 33273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33274 $as_echo "no" >&6; } 33275 fi 33276 33277 33278 test -n "$CC" && break 33279 done 33280 fi 33281 if test -z "$CC"; then 33282 ac_ct_CC=$CC 33283 for ac_prog in $CC 33284 do 33285 # Extract the first word of "$ac_prog", so it can be a program name with args. 33286 set dummy $ac_prog; ac_word=$2 33287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33288 $as_echo_n "checking for $ac_word... " >&6; } 33289 if ${ac_cv_prog_ac_ct_CC+:} false; then : 33290 $as_echo_n "(cached) " >&6 33291 else 33292 if test -n "$ac_ct_CC"; then 33293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 33294 else 33295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33296 for as_dir in $PATH 33297 do 33298 IFS=$as_save_IFS 33299 test -z "$as_dir" && as_dir=. 33300 for ac_exec_ext in '' $ac_executable_extensions; do 33301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33302 ac_cv_prog_ac_ct_CC="$ac_prog" 33303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33304 break 2 33305 fi 33306 done 33307 done 33308 IFS=$as_save_IFS 33309 33310 fi 33311 fi 33312 ac_ct_CC=$ac_cv_prog_ac_ct_CC 33313 if test -n "$ac_ct_CC"; then 33314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 33315 $as_echo "$ac_ct_CC" >&6; } 33316 else 33317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33318 $as_echo "no" >&6; } 33319 fi 33320 33321 33322 test -n "$ac_ct_CC" && break 33323 done 33324 33325 if test "x$ac_ct_CC" = x; then 33326 CC="" 33327 else 33328 case $cross_compiling:$ac_tool_warned in 33329 yes:) 33330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33332 ac_tool_warned=yes ;; 33333 esac 33334 CC=$ac_ct_CC 33335 fi 33336 fi 33337 33338 33339 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33341 as_fn_error $? "no acceptable C compiler found in \$PATH 33342 See \`config.log' for more details" "$LINENO" 5; } 33343 33344 # Provide some information about the compiler. 33345 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 33346 set X $ac_compile 33347 ac_compiler=$2 33348 for ac_option in --version -v -V -qversion; do 33349 { { ac_try="$ac_compiler $ac_option >&5" 33350 case "(($ac_try" in 33351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33352 *) ac_try_echo=$ac_try;; 33353 esac 33354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33355 $as_echo "$ac_try_echo"; } >&5 33356 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 33357 ac_status=$? 33358 if test -s conftest.err; then 33359 sed '10a\ 33360 ... rest of stderr output deleted ... 33361 10q' conftest.err >conftest.er1 33362 cat conftest.er1 >&5 33363 fi 33364 rm -f conftest.er1 conftest.err 33365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33366 test $ac_status = 0; } 33367 done 33368 33369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33370 /* end confdefs.h. */ 33371 33372 int 33373 main () 33374 { 33375 33376 ; 33377 return 0; 33378 } 33379 _ACEOF 33380 ac_clean_files_save=$ac_clean_files 33381 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 33382 # Try to create an executable without -o first, disregard a.out. 33383 # It will help us diagnose broken compilers, and finding out an intuition 33384 # of exeext. 33385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 33386 $as_echo_n "checking whether the C compiler works... " >&6; } 33387 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 33388 33389 # The possible output files: 33390 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 33391 33392 ac_rmfiles= 33393 for ac_file in $ac_files 33394 do 33395 case $ac_file in 33396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33397 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 33398 esac 33399 done 33400 rm -f $ac_rmfiles 33401 33402 if { { ac_try="$ac_link_default" 33403 case "(($ac_try" in 33404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33405 *) ac_try_echo=$ac_try;; 33406 esac 33407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33408 $as_echo "$ac_try_echo"; } >&5 33409 (eval "$ac_link_default") 2>&5 33410 ac_status=$? 33411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33412 test $ac_status = 0; }; then : 33413 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 33414 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 33415 # in a Makefile. We should not override ac_cv_exeext if it was cached, 33416 # so that the user can short-circuit this test for compilers unknown to 33417 # Autoconf. 33418 for ac_file in $ac_files '' 33419 do 33420 test -f "$ac_file" || continue 33421 case $ac_file in 33422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 33423 ;; 33424 [ab].out ) 33425 # We found the default executable, but exeext='' is most 33426 # certainly right. 33427 break;; 33428 *.* ) 33429 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 33430 then :; else 33431 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33432 fi 33433 # We set ac_cv_exeext here because the later test for it is not 33434 # safe: cross compilers may not add the suffix if given an `-o' 33435 # argument, so we may need to know it at that point already. 33436 # Even if this section looks crufty: it has the advantage of 33437 # actually working. 33438 break;; 33439 * ) 33440 break;; 33441 esac 33442 done 33443 test "$ac_cv_exeext" = no && ac_cv_exeext= 33444 33445 else 33446 ac_file='' 33447 fi 33448 if test -z "$ac_file"; then : 33449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33450 $as_echo "no" >&6; } 33451 $as_echo "$as_me: failed program was:" >&5 33452 sed 's/^/| /' conftest.$ac_ext >&5 33453 33454 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33455 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33456 as_fn_error 77 "C compiler cannot create executables 33457 See \`config.log' for more details" "$LINENO" 5; } 33458 else 33459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33460 $as_echo "yes" >&6; } 33461 fi 33462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 33463 $as_echo_n "checking for C compiler default output file name... " >&6; } 33464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 33465 $as_echo "$ac_file" >&6; } 33466 ac_exeext=$ac_cv_exeext 33467 33468 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 33469 ac_clean_files=$ac_clean_files_save 33470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 33471 $as_echo_n "checking for suffix of executables... " >&6; } 33472 if { { ac_try="$ac_link" 33473 case "(($ac_try" in 33474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33475 *) ac_try_echo=$ac_try;; 33476 esac 33477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33478 $as_echo "$ac_try_echo"; } >&5 33479 (eval "$ac_link") 2>&5 33480 ac_status=$? 33481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33482 test $ac_status = 0; }; then : 33483 # If both `conftest.exe' and `conftest' are `present' (well, observable) 33484 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 33485 # work properly (i.e., refer to `conftest.exe'), while it won't with 33486 # `rm'. 33487 for ac_file in conftest.exe conftest conftest.*; do 33488 test -f "$ac_file" || continue 33489 case $ac_file in 33490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 33491 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 33492 break;; 33493 * ) break;; 33494 esac 33495 done 33496 else 33497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33499 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 33500 See \`config.log' for more details" "$LINENO" 5; } 33501 fi 33502 rm -f conftest conftest$ac_cv_exeext 33503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 33504 $as_echo "$ac_cv_exeext" >&6; } 33505 33506 rm -f conftest.$ac_ext 33507 EXEEXT=$ac_cv_exeext 33508 ac_exeext=$EXEEXT 33509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33510 /* end confdefs.h. */ 33511 #include <stdio.h> 33512 int 33513 main () 33514 { 33515 FILE *f = fopen ("conftest.out", "w"); 33516 return ferror (f) || fclose (f) != 0; 33517 33518 ; 33519 return 0; 33520 } 33521 _ACEOF 33522 ac_clean_files="$ac_clean_files conftest.out" 33523 # Check that the compiler produces executables we can run. If not, either 33524 # the compiler is broken, or we cross compile. 33525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 33526 $as_echo_n "checking whether we are cross compiling... " >&6; } 33527 if test "$cross_compiling" != yes; then 33528 { { ac_try="$ac_link" 33529 case "(($ac_try" in 33530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33531 *) ac_try_echo=$ac_try;; 33532 esac 33533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33534 $as_echo "$ac_try_echo"; } >&5 33535 (eval "$ac_link") 2>&5 33536 ac_status=$? 33537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33538 test $ac_status = 0; } 33539 if { ac_try='./conftest$ac_cv_exeext' 33540 { { case "(($ac_try" in 33541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33542 *) ac_try_echo=$ac_try;; 33543 esac 33544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33545 $as_echo "$ac_try_echo"; } >&5 33546 (eval "$ac_try") 2>&5 33547 ac_status=$? 33548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33549 test $ac_status = 0; }; }; then 33550 cross_compiling=no 33551 else 33552 if test "$cross_compiling" = maybe; then 33553 cross_compiling=yes 33554 else 33555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33557 as_fn_error $? "cannot run C compiled programs. 33558 If you meant to cross compile, use \`--host'. 33559 See \`config.log' for more details" "$LINENO" 5; } 33560 fi 33561 fi 33562 fi 33563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 33564 $as_echo "$cross_compiling" >&6; } 33565 33566 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 33567 ac_clean_files=$ac_clean_files_save 33568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 33569 $as_echo_n "checking for suffix of object files... " >&6; } 33570 if ${ac_cv_objext+:} false; then : 33571 $as_echo_n "(cached) " >&6 33572 else 33573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33574 /* end confdefs.h. */ 33575 33576 int 33577 main () 33578 { 33579 33580 ; 33581 return 0; 33582 } 33583 _ACEOF 33584 rm -f conftest.o conftest.obj 33585 if { { ac_try="$ac_compile" 33586 case "(($ac_try" in 33587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 33588 *) ac_try_echo=$ac_try;; 33589 esac 33590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 33591 $as_echo "$ac_try_echo"; } >&5 33592 (eval "$ac_compile") 2>&5 33593 ac_status=$? 33594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 33595 test $ac_status = 0; }; then : 33596 for ac_file in conftest.o conftest.obj conftest.*; do 33597 test -f "$ac_file" || continue; 33598 case $ac_file in 33599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 33600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 33601 break;; 33602 esac 33603 done 33604 else 33605 $as_echo "$as_me: failed program was:" >&5 33606 sed 's/^/| /' conftest.$ac_ext >&5 33607 33608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 33609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 33610 as_fn_error $? "cannot compute suffix of object files: cannot compile 33611 See \`config.log' for more details" "$LINENO" 5; } 33612 fi 33613 rm -f conftest.$ac_cv_objext conftest.$ac_ext 33614 fi 33615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 33616 $as_echo "$ac_cv_objext" >&6; } 33617 OBJEXT=$ac_cv_objext 33618 ac_objext=$OBJEXT 33619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 33620 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 33621 if ${ac_cv_c_compiler_gnu+:} false; then : 33622 $as_echo_n "(cached) " >&6 33623 else 33624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33625 /* end confdefs.h. */ 33626 33627 int 33628 main () 33629 { 33630 #ifndef __GNUC__ 33631 choke me 33632 #endif 33633 33634 ; 33635 return 0; 33636 } 33637 _ACEOF 33638 if ac_fn_c_try_compile "$LINENO"; then : 33639 ac_compiler_gnu=yes 33640 else 33641 ac_compiler_gnu=no 33642 fi 33643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33644 ac_cv_c_compiler_gnu=$ac_compiler_gnu 33645 33646 fi 33647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 33648 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 33649 if test $ac_compiler_gnu = yes; then 33650 GCC=yes 33651 else 33652 GCC= 33653 fi 33654 ac_test_CFLAGS=${CFLAGS+set} 33655 ac_save_CFLAGS=$CFLAGS 33656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 33657 $as_echo_n "checking whether $CC accepts -g... " >&6; } 33658 if ${ac_cv_prog_cc_g+:} false; then : 33659 $as_echo_n "(cached) " >&6 33660 else 33661 ac_save_c_werror_flag=$ac_c_werror_flag 33662 ac_c_werror_flag=yes 33663 ac_cv_prog_cc_g=no 33664 CFLAGS="-g" 33665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33666 /* end confdefs.h. */ 33667 33668 int 33669 main () 33670 { 33671 33672 ; 33673 return 0; 33674 } 33675 _ACEOF 33676 if ac_fn_c_try_compile "$LINENO"; then : 33677 ac_cv_prog_cc_g=yes 33678 else 33679 CFLAGS="" 33680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33681 /* end confdefs.h. */ 33682 33683 int 33684 main () 33685 { 33686 33687 ; 33688 return 0; 33689 } 33690 _ACEOF 33691 if ac_fn_c_try_compile "$LINENO"; then : 33692 33693 else 33694 ac_c_werror_flag=$ac_save_c_werror_flag 33695 CFLAGS="-g" 33696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33697 /* end confdefs.h. */ 33698 33699 int 33700 main () 33701 { 33702 33703 ; 33704 return 0; 33705 } 33706 _ACEOF 33707 if ac_fn_c_try_compile "$LINENO"; then : 33708 ac_cv_prog_cc_g=yes 33709 fi 33710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33711 fi 33712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33713 fi 33714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33715 ac_c_werror_flag=$ac_save_c_werror_flag 33716 fi 33717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 33718 $as_echo "$ac_cv_prog_cc_g" >&6; } 33719 if test "$ac_test_CFLAGS" = set; then 33720 CFLAGS=$ac_save_CFLAGS 33721 elif test $ac_cv_prog_cc_g = yes; then 33722 if test "$GCC" = yes; then 33723 CFLAGS="-g -O2" 33724 else 33725 CFLAGS="-g" 33726 fi 33727 else 33728 if test "$GCC" = yes; then 33729 CFLAGS="-O2" 33730 else 33731 CFLAGS= 33732 fi 33733 fi 33734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 33735 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 33736 if ${ac_cv_prog_cc_c89+:} false; then : 33737 $as_echo_n "(cached) " >&6 33738 else 33739 ac_cv_prog_cc_c89=no 33740 ac_save_CC=$CC 33741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33742 /* end confdefs.h. */ 33743 #include <stdarg.h> 33744 #include <stdio.h> 33745 struct stat; 33746 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 33747 struct buf { int x; }; 33748 FILE * (*rcsopen) (struct buf *, struct stat *, int); 33749 static char *e (p, i) 33750 char **p; 33751 int i; 33752 { 33753 return p[i]; 33754 } 33755 static char *f (char * (*g) (char **, int), char **p, ...) 33756 { 33757 char *s; 33758 va_list v; 33759 va_start (v,p); 33760 s = g (p, va_arg (v,int)); 33761 va_end (v); 33762 return s; 33763 } 33764 33765 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 33766 function prototypes and stuff, but not '\xHH' hex character constants. 33767 These don't provoke an error unfortunately, instead are silently treated 33768 as 'x'. The following induces an error, until -std is added to get 33769 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 33770 array size at least. It's necessary to write '\x00'==0 to get something 33771 that's true only with -std. */ 33772 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 33773 33774 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 33775 inside strings and character constants. */ 33776 #define FOO(x) 'x' 33777 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 33778 33779 int test (int i, double x); 33780 struct s1 {int (*f) (int a);}; 33781 struct s2 {int (*f) (double a);}; 33782 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 33783 int argc; 33784 char **argv; 33785 int 33786 main () 33787 { 33788 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 33789 ; 33790 return 0; 33791 } 33792 _ACEOF 33793 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 33794 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 33795 do 33796 CC="$ac_save_CC $ac_arg" 33797 if ac_fn_c_try_compile "$LINENO"; then : 33798 ac_cv_prog_cc_c89=$ac_arg 33799 fi 33800 rm -f core conftest.err conftest.$ac_objext 33801 test "x$ac_cv_prog_cc_c89" != "xno" && break 33802 done 33803 rm -f conftest.$ac_ext 33804 CC=$ac_save_CC 33805 33806 fi 33807 # AC_CACHE_VAL 33808 case "x$ac_cv_prog_cc_c89" in 33809 x) 33810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 33811 $as_echo "none needed" >&6; } ;; 33812 xno) 33813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 33814 $as_echo "unsupported" >&6; } ;; 33815 *) 33816 CC="$CC $ac_cv_prog_cc_c89" 33817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 33818 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 33819 esac 33820 if test "x$ac_cv_prog_cc_c89" != xno; then : 33821 33822 fi 33823 33824 ac_ext=cpp 33825 ac_cpp='$CXXCPP $CPPFLAGS' 33826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33829 33830 33831 33832 COMPILER_NAME=C++ 33833 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 33834 33835 if test "x$CXX" != x; then 33836 # User has supplied compiler name already, always let that override. 33837 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 33838 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 33839 if test "x`basename $CXX`" = "x$CXX"; then 33840 # A command without a complete path is provided, search $PATH. 33841 33842 for ac_prog in $CXX 33843 do 33844 # Extract the first word of "$ac_prog", so it can be a program name with args. 33845 set dummy $ac_prog; ac_word=$2 33846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33847 $as_echo_n "checking for $ac_word... " >&6; } 33848 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 33849 $as_echo_n "(cached) " >&6 33850 else 33851 case $POTENTIAL_CXX in 33852 [\\/]* | ?:[\\/]*) 33853 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 33854 ;; 33855 *) 33856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33857 for as_dir in $PATH 33858 do 33859 IFS=$as_save_IFS 33860 test -z "$as_dir" && as_dir=. 33861 for ac_exec_ext in '' $ac_executable_extensions; do 33862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33863 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 33864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33865 break 2 33866 fi 33867 done 33868 done 33869 IFS=$as_save_IFS 33870 33871 ;; 33872 esac 33873 fi 33874 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 33875 if test -n "$POTENTIAL_CXX"; then 33876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 33877 $as_echo "$POTENTIAL_CXX" >&6; } 33878 else 33879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33880 $as_echo "no" >&6; } 33881 fi 33882 33883 33884 test -n "$POTENTIAL_CXX" && break 33885 done 33886 33887 if test "x$POTENTIAL_CXX" != x; then 33888 CXX=$POTENTIAL_CXX 33889 else 33890 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 33891 fi 33892 else 33893 # Otherwise it might already be a complete path 33894 if test ! -x "$CXX"; then 33895 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 33896 fi 33897 fi 33898 else 33899 # No user supplied value. Locate compiler ourselves. 33900 33901 # If we are cross compiling, assume cross compilation tools follows the 33902 # cross compilation standard where they are prefixed with the autoconf 33903 # standard name for the target. For example the binary 33904 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33905 # If we are not cross compiling, then the default compiler name will be 33906 # used. 33907 33908 CXX= 33909 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33910 # before checking the rest of the PATH. 33911 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33912 # step, this should not be necessary. 33913 if test -n "$TOOLCHAIN_PATH"; then 33914 PATH_save="$PATH" 33915 PATH="$TOOLCHAIN_PATH" 33916 for ac_prog in $SEARCH_LIST 33917 do 33918 # Extract the first word of "$ac_prog", so it can be a program name with args. 33919 set dummy $ac_prog; ac_word=$2 33920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33921 $as_echo_n "checking for $ac_word... " >&6; } 33922 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 33923 $as_echo_n "(cached) " >&6 33924 else 33925 case $TOOLCHAIN_PATH_CXX in 33926 [\\/]* | ?:[\\/]*) 33927 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 33928 ;; 33929 *) 33930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33931 for as_dir in $PATH 33932 do 33933 IFS=$as_save_IFS 33934 test -z "$as_dir" && as_dir=. 33935 for ac_exec_ext in '' $ac_executable_extensions; do 33936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33937 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 33938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33939 break 2 33940 fi 33941 done 33942 done 33943 IFS=$as_save_IFS 33944 33945 ;; 33946 esac 33947 fi 33948 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 33949 if test -n "$TOOLCHAIN_PATH_CXX"; then 33950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 33951 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 33952 else 33953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33954 $as_echo "no" >&6; } 33955 fi 33956 33957 33958 test -n "$TOOLCHAIN_PATH_CXX" && break 33959 done 33960 33961 CXX=$TOOLCHAIN_PATH_CXX 33962 PATH="$PATH_save" 33963 fi 33964 33965 # AC_PATH_PROGS can't be run multiple times with the same variable, 33966 # so create a new name for this run. 33967 if test "x$CXX" = x; then 33968 for ac_prog in $SEARCH_LIST 33969 do 33970 # Extract the first word of "$ac_prog", so it can be a program name with args. 33971 set dummy $ac_prog; ac_word=$2 33972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33973 $as_echo_n "checking for $ac_word... " >&6; } 33974 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 33975 $as_echo_n "(cached) " >&6 33976 else 33977 case $POTENTIAL_CXX in 33978 [\\/]* | ?:[\\/]*) 33979 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 33980 ;; 33981 *) 33982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33983 for as_dir in $PATH 33984 do 33985 IFS=$as_save_IFS 33986 test -z "$as_dir" && as_dir=. 33987 for ac_exec_ext in '' $ac_executable_extensions; do 33988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33989 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 33990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33991 break 2 33992 fi 33993 done 33994 done 33995 IFS=$as_save_IFS 33996 33997 ;; 33998 esac 33999 fi 34000 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 34001 if test -n "$POTENTIAL_CXX"; then 34002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 34003 $as_echo "$POTENTIAL_CXX" >&6; } 34004 else 34005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34006 $as_echo "no" >&6; } 34007 fi 34008 34009 34010 test -n "$POTENTIAL_CXX" && break 34011 done 34012 34013 CXX=$POTENTIAL_CXX 34014 fi 34015 34016 if test "x$CXX" = x; then 34017 34018 # Print a helpful message on how to acquire the necessary build dependency. 34019 # devkit is the help tag: freetype, cups, alsa etc 34020 MISSING_DEPENDENCY=devkit 34021 34022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34023 cygwin_help $MISSING_DEPENDENCY 34024 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34025 msys_help $MISSING_DEPENDENCY 34026 else 34027 PKGHANDLER_COMMAND= 34028 34029 case $PKGHANDLER in 34030 apt-get) 34031 apt_help $MISSING_DEPENDENCY ;; 34032 yum) 34033 yum_help $MISSING_DEPENDENCY ;; 34034 port) 34035 port_help $MISSING_DEPENDENCY ;; 34036 pkgutil) 34037 pkgutil_help $MISSING_DEPENDENCY ;; 34038 pkgadd) 34039 pkgadd_help $MISSING_DEPENDENCY ;; 34040 esac 34041 34042 if test "x$PKGHANDLER_COMMAND" != x; then 34043 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34044 fi 34045 fi 34046 34047 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34048 fi 34049 fi 34050 34051 # Now we have a compiler binary in CXX. Make sure it's okay. 34052 34053 # Only process if variable expands to non-empty 34054 34055 if test "x$CXX" != x; then 34056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34057 34058 # First separate the path from the arguments. This will split at the first 34059 # space. 34060 complete="$CXX" 34061 path="${complete%% *}" 34062 tmp="$complete EOL" 34063 arguments="${tmp#* }" 34064 34065 # Input might be given as Windows format, start by converting to 34066 # unix format. 34067 new_path=`$CYGPATH -u "$path"` 34068 34069 # Now try to locate executable using which 34070 new_path=`$WHICH "$new_path" 2> /dev/null` 34071 # bat and cmd files are not always considered executable in cygwin causing which 34072 # to not find them 34073 if test "x$new_path" = x \ 34074 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34075 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34076 new_path=`$CYGPATH -u "$path"` 34077 fi 34078 if test "x$new_path" = x; then 34079 # Oops. Which didn't find the executable. 34080 # The splitting of arguments from the executable at a space might have been incorrect, 34081 # since paths with space are more likely in Windows. Give it another try with the whole 34082 # argument. 34083 path="$complete" 34084 arguments="EOL" 34085 new_path=`$CYGPATH -u "$path"` 34086 new_path=`$WHICH "$new_path" 2> /dev/null` 34087 # bat and cmd files are not always considered executable in cygwin causing which 34088 # to not find them 34089 if test "x$new_path" = x \ 34090 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34091 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34092 new_path=`$CYGPATH -u "$path"` 34093 fi 34094 if test "x$new_path" = x; then 34095 # It's still not found. Now this is an unrecoverable error. 34096 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34097 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34098 has_space=`$ECHO "$complete" | $GREP " "` 34099 if test "x$has_space" != x; then 34100 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34101 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34102 fi 34103 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34104 fi 34105 fi 34106 34107 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34108 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34109 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34110 # "foo.exe" is OK but "foo" is an error. 34111 # 34112 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34113 # It is also a way to make sure we got the proper file name for the real test later on. 34114 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34115 if test "x$test_shortpath" = x; then 34116 # Short path failed, file does not exist as specified. 34117 # Try adding .exe or .cmd 34118 if test -f "${new_path}.exe"; then 34119 input_to_shortpath="${new_path}.exe" 34120 elif test -f "${new_path}.cmd"; then 34121 input_to_shortpath="${new_path}.cmd" 34122 else 34123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 34124 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 34125 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34126 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34127 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34128 fi 34129 else 34130 input_to_shortpath="$new_path" 34131 fi 34132 34133 # Call helper function which possibly converts this using DOS-style short mode. 34134 # If so, the updated path is stored in $new_path. 34135 new_path="$input_to_shortpath" 34136 34137 input_path="$input_to_shortpath" 34138 # Check if we need to convert this using DOS-style short mode. If the path 34139 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34140 # take no chances and rewrite it. 34141 # Note: m4 eats our [], so we need to use [ and ] instead. 34142 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34143 if test "x$has_forbidden_chars" != x; then 34144 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34145 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34146 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34147 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34148 # Going to short mode and back again did indeed matter. Since short mode is 34149 # case insensitive, let's make it lowercase to improve readability. 34150 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34151 # Now convert it back to Unix-style (cygpath) 34152 input_path=`$CYGPATH -u "$shortmode_path"` 34153 new_path="$input_path" 34154 fi 34155 fi 34156 34157 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34158 if test "x$test_cygdrive_prefix" = x; then 34159 # As a simple fix, exclude /usr/bin since it's not a real path. 34160 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34161 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34162 # a path prefixed by /cygdrive for fixpath to work. 34163 new_path="$CYGWIN_ROOT_PATH$input_path" 34164 fi 34165 fi 34166 34167 # remove trailing .exe if any 34168 new_path="${new_path/%.exe/}" 34169 34170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34171 34172 # First separate the path from the arguments. This will split at the first 34173 # space. 34174 complete="$CXX" 34175 path="${complete%% *}" 34176 tmp="$complete EOL" 34177 arguments="${tmp#* }" 34178 34179 # Input might be given as Windows format, start by converting to 34180 # unix format. 34181 new_path="$path" 34182 34183 windows_path="$new_path" 34184 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34185 unix_path=`$CYGPATH -u "$windows_path"` 34186 new_path="$unix_path" 34187 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34188 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34189 new_path="$unix_path" 34190 fi 34191 34192 34193 # Now try to locate executable using which 34194 new_path=`$WHICH "$new_path" 2> /dev/null` 34195 34196 if test "x$new_path" = x; then 34197 # Oops. Which didn't find the executable. 34198 # The splitting of arguments from the executable at a space might have been incorrect, 34199 # since paths with space are more likely in Windows. Give it another try with the whole 34200 # argument. 34201 path="$complete" 34202 arguments="EOL" 34203 new_path="$path" 34204 34205 windows_path="$new_path" 34206 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34207 unix_path=`$CYGPATH -u "$windows_path"` 34208 new_path="$unix_path" 34209 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34210 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34211 new_path="$unix_path" 34212 fi 34213 34214 34215 new_path=`$WHICH "$new_path" 2> /dev/null` 34216 # bat and cmd files are not always considered executable in MSYS causing which 34217 # to not find them 34218 if test "x$new_path" = x \ 34219 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34220 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34221 new_path="$path" 34222 34223 windows_path="$new_path" 34224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34225 unix_path=`$CYGPATH -u "$windows_path"` 34226 new_path="$unix_path" 34227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34229 new_path="$unix_path" 34230 fi 34231 34232 fi 34233 34234 if test "x$new_path" = x; then 34235 # It's still not found. Now this is an unrecoverable error. 34236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34237 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34238 has_space=`$ECHO "$complete" | $GREP " "` 34239 if test "x$has_space" != x; then 34240 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34241 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34242 fi 34243 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34244 fi 34245 fi 34246 34247 # Now new_path has a complete unix path to the binary 34248 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34249 # Keep paths in /bin as-is, but remove trailing .exe if any 34250 new_path="${new_path/%.exe/}" 34251 # Do not save /bin paths to all_fixpath_prefixes! 34252 else 34253 # Not in mixed or Windows style, start by that. 34254 new_path=`cmd //c echo $new_path` 34255 34256 input_path="$new_path" 34257 # Check if we need to convert this using DOS-style short mode. If the path 34258 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34259 # take no chances and rewrite it. 34260 # Note: m4 eats our [], so we need to use [ and ] instead. 34261 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34262 if test "x$has_forbidden_chars" != x; then 34263 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34264 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34265 fi 34266 34267 # Output is in $new_path 34268 34269 windows_path="$new_path" 34270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34271 unix_path=`$CYGPATH -u "$windows_path"` 34272 new_path="$unix_path" 34273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34275 new_path="$unix_path" 34276 fi 34277 34278 # remove trailing .exe if any 34279 new_path="${new_path/%.exe/}" 34280 34281 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34282 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34283 fi 34284 34285 else 34286 # We're on a unix platform. Hooray! :) 34287 # First separate the path from the arguments. This will split at the first 34288 # space. 34289 complete="$CXX" 34290 path="${complete%% *}" 34291 tmp="$complete EOL" 34292 arguments="${tmp#* }" 34293 34294 # Cannot rely on the command "which" here since it doesn't always work. 34295 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34296 if test -z "$is_absolute_path"; then 34297 # Path to executable is not absolute. Find it. 34298 IFS_save="$IFS" 34299 IFS=: 34300 for p in $PATH; do 34301 if test -f "$p/$path" && test -x "$p/$path"; then 34302 new_path="$p/$path" 34303 break 34304 fi 34305 done 34306 IFS="$IFS_save" 34307 else 34308 # This is an absolute path, we can use it without further modifications. 34309 new_path="$path" 34310 fi 34311 34312 if test "x$new_path" = x; then 34313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 34314 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 34315 has_space=`$ECHO "$complete" | $GREP " "` 34316 if test "x$has_space" != x; then 34317 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34318 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34319 fi 34320 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 34321 fi 34322 fi 34323 34324 # Now join together the path and the arguments once again 34325 if test "x$arguments" != xEOL; then 34326 new_complete="$new_path ${arguments% *}" 34327 else 34328 new_complete="$new_path" 34329 fi 34330 34331 if test "x$complete" != "x$new_complete"; then 34332 CXX="$new_complete" 34333 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 34334 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 34335 fi 34336 fi 34337 34338 TEST_COMPILER="$CXX" 34339 34340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 34341 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 34342 SYMLINK_ORIGINAL="$TEST_COMPILER" 34343 34344 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34345 # Follow a chain of symbolic links. Use readlink 34346 # where it exists, else fall back to horribly 34347 # complicated shell code. 34348 if test "x$READLINK_TESTED" != yes; then 34349 # On MacOSX there is a readlink tool with a different 34350 # purpose than the GNU readlink tool. Check the found readlink. 34351 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34352 if test "x$ISGNU" = x; then 34353 # A readlink that we do not know how to use. 34354 # Are there other non-GNU readlinks out there? 34355 READLINK_TESTED=yes 34356 READLINK= 34357 fi 34358 fi 34359 34360 if test "x$READLINK" != x; then 34361 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34362 else 34363 # Save the current directory for restoring afterwards 34364 STARTDIR=$PWD 34365 COUNTER=0 34366 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34367 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34368 cd $sym_link_dir 34369 # Use -P flag to resolve symlinks in directories. 34370 cd `$THEPWDCMD -P` 34371 sym_link_dir=`$THEPWDCMD -P` 34372 # Resolve file symlinks 34373 while test $COUNTER -lt 20; do 34374 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34375 if test "x$ISLINK" == x; then 34376 # This is not a symbolic link! We are done! 34377 break 34378 fi 34379 # Again resolve directory symlinks since the target of the just found 34380 # link could be in a different directory 34381 cd `$DIRNAME $ISLINK` 34382 sym_link_dir=`$THEPWDCMD -P` 34383 sym_link_file=`$BASENAME $ISLINK` 34384 let COUNTER=COUNTER+1 34385 done 34386 cd $STARTDIR 34387 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34388 fi 34389 fi 34390 34391 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34393 $as_echo "no symlink" >&6; } 34394 else 34395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34396 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34397 34398 # We can't handle ccache by gcc wrappers, since we need to know if we're 34399 # using ccache. Instead ccache usage must be controlled by a configure option. 34400 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34401 if test "x$COMPILER_BASENAME" = "xccache"; then 34402 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34403 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34404 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34405 fi 34406 fi 34407 34408 34409 COMPILER=$CXX 34410 COMPILER_NAME=$COMPILER_NAME 34411 34412 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34413 # cc -V output typically looks like 34414 # cc: Sun C 5.12 Linux_i386 2011/11/16 34415 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34416 # Check that this is likely to be the Solaris Studio cc. 34417 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 34418 if test $? -ne 0; then 34419 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34420 { $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 34421 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34422 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34423 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34424 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34425 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34426 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34427 fi 34428 # Remove usage instructions (if present), and 34429 # collapse compiler output into a single line 34430 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34431 $SED -e 's/ *[Uu]sage:.*//'` 34432 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34433 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34434 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34435 # xlc -qversion output typically looks like 34436 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34437 # Version: 11.01.0000.0015 34438 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34439 # Check that this is likely to be the IBM XL C compiler. 34440 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34441 if test $? -ne 0; then 34442 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34443 { $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 34444 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34445 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34446 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34447 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34448 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34449 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34450 fi 34451 # Collapse compiler output into a single line 34452 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34453 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34454 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34455 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34456 # There is no specific version flag, but all output starts with a version string. 34457 # First line typically looks something like: 34458 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34459 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34460 # Check that this is likely to be Microsoft CL.EXE. 34461 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34462 if test $? -ne 0; then 34463 { $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 34464 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34465 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34466 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34467 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34468 fi 34469 # Collapse compiler output into a single line 34470 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34471 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34472 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34473 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34474 # gcc --version output typically looks like 34475 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34476 # Copyright (C) 2013 Free Software Foundation, Inc. 34477 # This is free software; see the source for copying conditions. There is NO 34478 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34479 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34480 # Check that this is likely to be GCC. 34481 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34482 if test $? -ne 0; then 34483 { $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 34484 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34485 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34486 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34487 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34488 fi 34489 # Remove Copyright and legalese from version string, and 34490 # collapse into a single line 34491 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34492 $SED -e 's/ *Copyright .*//'` 34493 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34494 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34495 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34496 # clang --version output typically looks like 34497 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34498 # clang version 3.3 (tags/RELEASE_33/final) 34499 # or 34500 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34501 # Target: x86_64-pc-linux-gnu 34502 # Thread model: posix 34503 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34504 # Check that this is likely to be clang 34505 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34506 if test $? -ne 0; then 34507 { $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 34508 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34509 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34510 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34511 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34512 fi 34513 # Collapse compiler output into a single line 34514 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34515 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34516 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34517 else 34518 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34519 fi 34520 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34521 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34522 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34523 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 34524 34525 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34526 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34527 34528 34529 # Now that we have resolved CXX ourself, let autoconf have its go at it 34530 ac_ext=cpp 34531 ac_cpp='$CXXCPP $CPPFLAGS' 34532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34535 if test -z "$CXX"; then 34536 if test -n "$CCC"; then 34537 CXX=$CCC 34538 else 34539 if test -n "$ac_tool_prefix"; then 34540 for ac_prog in $CXX 34541 do 34542 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34543 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34545 $as_echo_n "checking for $ac_word... " >&6; } 34546 if ${ac_cv_prog_CXX+:} false; then : 34547 $as_echo_n "(cached) " >&6 34548 else 34549 if test -n "$CXX"; then 34550 ac_cv_prog_CXX="$CXX" # Let the user override the test. 34551 else 34552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34553 for as_dir in $PATH 34554 do 34555 IFS=$as_save_IFS 34556 test -z "$as_dir" && as_dir=. 34557 for ac_exec_ext in '' $ac_executable_extensions; do 34558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34559 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 34560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34561 break 2 34562 fi 34563 done 34564 done 34565 IFS=$as_save_IFS 34566 34567 fi 34568 fi 34569 CXX=$ac_cv_prog_CXX 34570 if test -n "$CXX"; then 34571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 34572 $as_echo "$CXX" >&6; } 34573 else 34574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34575 $as_echo "no" >&6; } 34576 fi 34577 34578 34579 test -n "$CXX" && break 34580 done 34581 fi 34582 if test -z "$CXX"; then 34583 ac_ct_CXX=$CXX 34584 for ac_prog in $CXX 34585 do 34586 # Extract the first word of "$ac_prog", so it can be a program name with args. 34587 set dummy $ac_prog; ac_word=$2 34588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34589 $as_echo_n "checking for $ac_word... " >&6; } 34590 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 34591 $as_echo_n "(cached) " >&6 34592 else 34593 if test -n "$ac_ct_CXX"; then 34594 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 34595 else 34596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34597 for as_dir in $PATH 34598 do 34599 IFS=$as_save_IFS 34600 test -z "$as_dir" && as_dir=. 34601 for ac_exec_ext in '' $ac_executable_extensions; do 34602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34603 ac_cv_prog_ac_ct_CXX="$ac_prog" 34604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34605 break 2 34606 fi 34607 done 34608 done 34609 IFS=$as_save_IFS 34610 34611 fi 34612 fi 34613 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 34614 if test -n "$ac_ct_CXX"; then 34615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 34616 $as_echo "$ac_ct_CXX" >&6; } 34617 else 34618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34619 $as_echo "no" >&6; } 34620 fi 34621 34622 34623 test -n "$ac_ct_CXX" && break 34624 done 34625 34626 if test "x$ac_ct_CXX" = x; then 34627 CXX="g++" 34628 else 34629 case $cross_compiling:$ac_tool_warned in 34630 yes:) 34631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34633 ac_tool_warned=yes ;; 34634 esac 34635 CXX=$ac_ct_CXX 34636 fi 34637 fi 34638 34639 fi 34640 fi 34641 # Provide some information about the compiler. 34642 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 34643 set X $ac_compile 34644 ac_compiler=$2 34645 for ac_option in --version -v -V -qversion; do 34646 { { ac_try="$ac_compiler $ac_option >&5" 34647 case "(($ac_try" in 34648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34649 *) ac_try_echo=$ac_try;; 34650 esac 34651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34652 $as_echo "$ac_try_echo"; } >&5 34653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34654 ac_status=$? 34655 if test -s conftest.err; then 34656 sed '10a\ 34657 ... rest of stderr output deleted ... 34658 10q' conftest.err >conftest.er1 34659 cat conftest.er1 >&5 34660 fi 34661 rm -f conftest.er1 conftest.err 34662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34663 test $ac_status = 0; } 34664 done 34665 34666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 34667 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 34668 if ${ac_cv_cxx_compiler_gnu+:} false; then : 34669 $as_echo_n "(cached) " >&6 34670 else 34671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34672 /* end confdefs.h. */ 34673 34674 int 34675 main () 34676 { 34677 #ifndef __GNUC__ 34678 choke me 34679 #endif 34680 34681 ; 34682 return 0; 34683 } 34684 _ACEOF 34685 if ac_fn_cxx_try_compile "$LINENO"; then : 34686 ac_compiler_gnu=yes 34687 else 34688 ac_compiler_gnu=no 34689 fi 34690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34691 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 34692 34693 fi 34694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 34695 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 34696 if test $ac_compiler_gnu = yes; then 34697 GXX=yes 34698 else 34699 GXX= 34700 fi 34701 ac_test_CXXFLAGS=${CXXFLAGS+set} 34702 ac_save_CXXFLAGS=$CXXFLAGS 34703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 34704 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 34705 if ${ac_cv_prog_cxx_g+:} false; then : 34706 $as_echo_n "(cached) " >&6 34707 else 34708 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 34709 ac_cxx_werror_flag=yes 34710 ac_cv_prog_cxx_g=no 34711 CXXFLAGS="-g" 34712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34713 /* end confdefs.h. */ 34714 34715 int 34716 main () 34717 { 34718 34719 ; 34720 return 0; 34721 } 34722 _ACEOF 34723 if ac_fn_cxx_try_compile "$LINENO"; then : 34724 ac_cv_prog_cxx_g=yes 34725 else 34726 CXXFLAGS="" 34727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34728 /* end confdefs.h. */ 34729 34730 int 34731 main () 34732 { 34733 34734 ; 34735 return 0; 34736 } 34737 _ACEOF 34738 if ac_fn_cxx_try_compile "$LINENO"; then : 34739 34740 else 34741 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 34742 CXXFLAGS="-g" 34743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34744 /* end confdefs.h. */ 34745 34746 int 34747 main () 34748 { 34749 34750 ; 34751 return 0; 34752 } 34753 _ACEOF 34754 if ac_fn_cxx_try_compile "$LINENO"; then : 34755 ac_cv_prog_cxx_g=yes 34756 fi 34757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34758 fi 34759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34760 fi 34761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34762 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 34763 fi 34764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 34765 $as_echo "$ac_cv_prog_cxx_g" >&6; } 34766 if test "$ac_test_CXXFLAGS" = set; then 34767 CXXFLAGS=$ac_save_CXXFLAGS 34768 elif test $ac_cv_prog_cxx_g = yes; then 34769 if test "$GXX" = yes; then 34770 CXXFLAGS="-g -O2" 34771 else 34772 CXXFLAGS="-g" 34773 fi 34774 else 34775 if test "$GXX" = yes; then 34776 CXXFLAGS="-O2" 34777 else 34778 CXXFLAGS= 34779 fi 34780 fi 34781 ac_ext=cpp 34782 ac_cpp='$CXXCPP $CPPFLAGS' 34783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 34786 34787 34788 # This is the compiler version number on the form X.Y[.Z] 34789 34790 34791 34792 34793 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 34794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 34795 $as_echo "$as_me: WARNING: C and C++ compiler has different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 34796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 34797 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 34798 fi 34799 34800 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 34801 if [[ "$CC_VERSION_NUMBER" =~ (.*\.){3} ]] ; then 34802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 34803 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 34804 fi 34805 34806 if [[ "$CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 34807 { $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 34808 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 34809 fi 34810 34811 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION_NUMBER"` 34812 34813 34814 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 34815 34816 34817 34818 34819 34820 34821 34822 34823 34824 34825 34826 34827 34828 34829 34830 34831 34832 34833 34834 34835 34836 34837 34838 34839 34840 34841 34842 34843 34844 34845 34846 34847 34848 34849 34850 34851 34852 34853 34854 34855 34856 34857 # Execute function body 34858 34859 # Need to assign to a variable since m4 is blocked from modifying parts in []. 34860 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 34861 34862 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 34863 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 34864 fi 34865 34866 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 34867 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 34868 fi 34869 34870 # Version comparison method inspired by http://stackoverflow.com/a/24067243 34871 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 34872 34873 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 34874 : 34875 34876 else 34877 : 34878 34879 { $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 34880 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 34881 34882 34883 fi 34884 34885 34886 34887 34888 34889 34890 34891 34892 34893 34894 34895 34896 fi 34897 34898 # 34899 # Setup the preprocessor (CPP and CXXCPP) 34900 # 34901 ac_ext=c 34902 ac_cpp='$CPP $CPPFLAGS' 34903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34905 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 34907 $as_echo_n "checking how to run the C preprocessor... " >&6; } 34908 # On Suns, sometimes $CPP names a directory. 34909 if test -n "$CPP" && test -d "$CPP"; then 34910 CPP= 34911 fi 34912 if test -z "$CPP"; then 34913 if ${ac_cv_prog_CPP+:} false; then : 34914 $as_echo_n "(cached) " >&6 34915 else 34916 # Double quotes because CPP needs to be expanded 34917 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 34918 do 34919 ac_preproc_ok=false 34920 for ac_c_preproc_warn_flag in '' yes 34921 do 34922 # Use a header file that comes with gcc, so configuring glibc 34923 # with a fresh cross-compiler works. 34924 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34925 # <limits.h> exists even on freestanding compilers. 34926 # On the NeXT, cc -E runs the code through the compiler's parser, 34927 # not just through cpp. "Syntax error" is here to catch this case. 34928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34929 /* end confdefs.h. */ 34930 #ifdef __STDC__ 34931 # include <limits.h> 34932 #else 34933 # include <assert.h> 34934 #endif 34935 Syntax error 34936 _ACEOF 34937 if ac_fn_c_try_cpp "$LINENO"; then : 34938 34939 else 34940 # Broken: fails on valid input. 34941 continue 34942 fi 34943 rm -f conftest.err conftest.i conftest.$ac_ext 34944 34945 # OK, works on sane cases. Now check whether nonexistent headers 34946 # can be detected and how. 34947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34948 /* end confdefs.h. */ 34949 #include <ac_nonexistent.h> 34950 _ACEOF 34951 if ac_fn_c_try_cpp "$LINENO"; then : 34952 # Broken: success on invalid input. 34953 continue 34954 else 34955 # Passes both tests. 34956 ac_preproc_ok=: 34957 break 34958 fi 34959 rm -f conftest.err conftest.i conftest.$ac_ext 34960 34961 done 34962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 34963 rm -f conftest.i conftest.err conftest.$ac_ext 34964 if $ac_preproc_ok; then : 34965 break 34966 fi 34967 34968 done 34969 ac_cv_prog_CPP=$CPP 34970 34971 fi 34972 CPP=$ac_cv_prog_CPP 34973 else 34974 ac_cv_prog_CPP=$CPP 34975 fi 34976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 34977 $as_echo "$CPP" >&6; } 34978 ac_preproc_ok=false 34979 for ac_c_preproc_warn_flag in '' yes 34980 do 34981 # Use a header file that comes with gcc, so configuring glibc 34982 # with a fresh cross-compiler works. 34983 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 34984 # <limits.h> exists even on freestanding compilers. 34985 # On the NeXT, cc -E runs the code through the compiler's parser, 34986 # not just through cpp. "Syntax error" is here to catch this case. 34987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34988 /* end confdefs.h. */ 34989 #ifdef __STDC__ 34990 # include <limits.h> 34991 #else 34992 # include <assert.h> 34993 #endif 34994 Syntax error 34995 _ACEOF 34996 if ac_fn_c_try_cpp "$LINENO"; then : 34997 34998 else 34999 # Broken: fails on valid input. 35000 continue 35001 fi 35002 rm -f conftest.err conftest.i conftest.$ac_ext 35003 35004 # OK, works on sane cases. Now check whether nonexistent headers 35005 # can be detected and how. 35006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35007 /* end confdefs.h. */ 35008 #include <ac_nonexistent.h> 35009 _ACEOF 35010 if ac_fn_c_try_cpp "$LINENO"; then : 35011 # Broken: success on invalid input. 35012 continue 35013 else 35014 # Passes both tests. 35015 ac_preproc_ok=: 35016 break 35017 fi 35018 rm -f conftest.err conftest.i conftest.$ac_ext 35019 35020 done 35021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35022 rm -f conftest.i conftest.err conftest.$ac_ext 35023 if $ac_preproc_ok; then : 35024 35025 else 35026 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35028 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 35029 See \`config.log' for more details" "$LINENO" 5; } 35030 fi 35031 35032 ac_ext=cpp 35033 ac_cpp='$CXXCPP $CPPFLAGS' 35034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35037 35038 35039 # Only process if variable expands to non-empty 35040 35041 if test "x$CPP" != x; then 35042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35043 35044 # First separate the path from the arguments. This will split at the first 35045 # space. 35046 complete="$CPP" 35047 path="${complete%% *}" 35048 tmp="$complete EOL" 35049 arguments="${tmp#* }" 35050 35051 # Input might be given as Windows format, start by converting to 35052 # unix format. 35053 new_path=`$CYGPATH -u "$path"` 35054 35055 # Now try to locate executable using which 35056 new_path=`$WHICH "$new_path" 2> /dev/null` 35057 # bat and cmd files are not always considered executable in cygwin causing which 35058 # to not find them 35059 if test "x$new_path" = x \ 35060 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35061 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35062 new_path=`$CYGPATH -u "$path"` 35063 fi 35064 if test "x$new_path" = x; then 35065 # Oops. Which didn't find the executable. 35066 # The splitting of arguments from the executable at a space might have been incorrect, 35067 # since paths with space are more likely in Windows. Give it another try with the whole 35068 # argument. 35069 path="$complete" 35070 arguments="EOL" 35071 new_path=`$CYGPATH -u "$path"` 35072 new_path=`$WHICH "$new_path" 2> /dev/null` 35073 # bat and cmd files are not always considered executable in cygwin causing which 35074 # to not find them 35075 if test "x$new_path" = x \ 35076 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35077 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35078 new_path=`$CYGPATH -u "$path"` 35079 fi 35080 if test "x$new_path" = x; then 35081 # It's still not found. Now this is an unrecoverable error. 35082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35083 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35084 has_space=`$ECHO "$complete" | $GREP " "` 35085 if test "x$has_space" != x; then 35086 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35087 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35088 fi 35089 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35090 fi 35091 fi 35092 35093 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35094 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35095 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35096 # "foo.exe" is OK but "foo" is an error. 35097 # 35098 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35099 # It is also a way to make sure we got the proper file name for the real test later on. 35100 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35101 if test "x$test_shortpath" = x; then 35102 # Short path failed, file does not exist as specified. 35103 # Try adding .exe or .cmd 35104 if test -f "${new_path}.exe"; then 35105 input_to_shortpath="${new_path}.exe" 35106 elif test -f "${new_path}.cmd"; then 35107 input_to_shortpath="${new_path}.cmd" 35108 else 35109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 35110 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 35111 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35112 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35113 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35114 fi 35115 else 35116 input_to_shortpath="$new_path" 35117 fi 35118 35119 # Call helper function which possibly converts this using DOS-style short mode. 35120 # If so, the updated path is stored in $new_path. 35121 new_path="$input_to_shortpath" 35122 35123 input_path="$input_to_shortpath" 35124 # Check if we need to convert this using DOS-style short mode. If the path 35125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35126 # take no chances and rewrite it. 35127 # Note: m4 eats our [], so we need to use [ and ] instead. 35128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35129 if test "x$has_forbidden_chars" != x; then 35130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35131 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35132 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35133 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35134 # Going to short mode and back again did indeed matter. Since short mode is 35135 # case insensitive, let's make it lowercase to improve readability. 35136 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35137 # Now convert it back to Unix-style (cygpath) 35138 input_path=`$CYGPATH -u "$shortmode_path"` 35139 new_path="$input_path" 35140 fi 35141 fi 35142 35143 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35144 if test "x$test_cygdrive_prefix" = x; then 35145 # As a simple fix, exclude /usr/bin since it's not a real path. 35146 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35147 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35148 # a path prefixed by /cygdrive for fixpath to work. 35149 new_path="$CYGWIN_ROOT_PATH$input_path" 35150 fi 35151 fi 35152 35153 # remove trailing .exe if any 35154 new_path="${new_path/%.exe/}" 35155 35156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35157 35158 # First separate the path from the arguments. This will split at the first 35159 # space. 35160 complete="$CPP" 35161 path="${complete%% *}" 35162 tmp="$complete EOL" 35163 arguments="${tmp#* }" 35164 35165 # Input might be given as Windows format, start by converting to 35166 # unix format. 35167 new_path="$path" 35168 35169 windows_path="$new_path" 35170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35171 unix_path=`$CYGPATH -u "$windows_path"` 35172 new_path="$unix_path" 35173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35175 new_path="$unix_path" 35176 fi 35177 35178 35179 # Now try to locate executable using which 35180 new_path=`$WHICH "$new_path" 2> /dev/null` 35181 35182 if test "x$new_path" = x; then 35183 # Oops. Which didn't find the executable. 35184 # The splitting of arguments from the executable at a space might have been incorrect, 35185 # since paths with space are more likely in Windows. Give it another try with the whole 35186 # argument. 35187 path="$complete" 35188 arguments="EOL" 35189 new_path="$path" 35190 35191 windows_path="$new_path" 35192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35193 unix_path=`$CYGPATH -u "$windows_path"` 35194 new_path="$unix_path" 35195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35197 new_path="$unix_path" 35198 fi 35199 35200 35201 new_path=`$WHICH "$new_path" 2> /dev/null` 35202 # bat and cmd files are not always considered executable in MSYS causing which 35203 # to not find them 35204 if test "x$new_path" = x \ 35205 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35206 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35207 new_path="$path" 35208 35209 windows_path="$new_path" 35210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35211 unix_path=`$CYGPATH -u "$windows_path"` 35212 new_path="$unix_path" 35213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35215 new_path="$unix_path" 35216 fi 35217 35218 fi 35219 35220 if test "x$new_path" = x; then 35221 # It's still not found. Now this is an unrecoverable error. 35222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35223 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35224 has_space=`$ECHO "$complete" | $GREP " "` 35225 if test "x$has_space" != x; then 35226 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35227 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35228 fi 35229 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35230 fi 35231 fi 35232 35233 # Now new_path has a complete unix path to the binary 35234 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35235 # Keep paths in /bin as-is, but remove trailing .exe if any 35236 new_path="${new_path/%.exe/}" 35237 # Do not save /bin paths to all_fixpath_prefixes! 35238 else 35239 # Not in mixed or Windows style, start by that. 35240 new_path=`cmd //c echo $new_path` 35241 35242 input_path="$new_path" 35243 # Check if we need to convert this using DOS-style short mode. If the path 35244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35245 # take no chances and rewrite it. 35246 # Note: m4 eats our [], so we need to use [ and ] instead. 35247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35248 if test "x$has_forbidden_chars" != x; then 35249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35250 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35251 fi 35252 35253 # Output is in $new_path 35254 35255 windows_path="$new_path" 35256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35257 unix_path=`$CYGPATH -u "$windows_path"` 35258 new_path="$unix_path" 35259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35261 new_path="$unix_path" 35262 fi 35263 35264 # remove trailing .exe if any 35265 new_path="${new_path/%.exe/}" 35266 35267 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35268 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35269 fi 35270 35271 else 35272 # We're on a unix platform. Hooray! :) 35273 # First separate the path from the arguments. This will split at the first 35274 # space. 35275 complete="$CPP" 35276 path="${complete%% *}" 35277 tmp="$complete EOL" 35278 arguments="${tmp#* }" 35279 35280 # Cannot rely on the command "which" here since it doesn't always work. 35281 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35282 if test -z "$is_absolute_path"; then 35283 # Path to executable is not absolute. Find it. 35284 IFS_save="$IFS" 35285 IFS=: 35286 for p in $PATH; do 35287 if test -f "$p/$path" && test -x "$p/$path"; then 35288 new_path="$p/$path" 35289 break 35290 fi 35291 done 35292 IFS="$IFS_save" 35293 else 35294 # This is an absolute path, we can use it without further modifications. 35295 new_path="$path" 35296 fi 35297 35298 if test "x$new_path" = x; then 35299 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35300 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35301 has_space=`$ECHO "$complete" | $GREP " "` 35302 if test "x$has_space" != x; then 35303 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35304 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35305 fi 35306 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35307 fi 35308 fi 35309 35310 # Now join together the path and the arguments once again 35311 if test "x$arguments" != xEOL; then 35312 new_complete="$new_path ${arguments% *}" 35313 else 35314 new_complete="$new_path" 35315 fi 35316 35317 if test "x$complete" != "x$new_complete"; then 35318 CPP="$new_complete" 35319 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 35320 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 35321 fi 35322 fi 35323 35324 ac_ext=cpp 35325 ac_cpp='$CXXCPP $CPPFLAGS' 35326 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35327 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35328 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 35330 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 35331 if test -z "$CXXCPP"; then 35332 if ${ac_cv_prog_CXXCPP+:} false; then : 35333 $as_echo_n "(cached) " >&6 35334 else 35335 # Double quotes because CXXCPP needs to be expanded 35336 for CXXCPP in "$CXX -E" "/lib/cpp" 35337 do 35338 ac_preproc_ok=false 35339 for ac_cxx_preproc_warn_flag in '' yes 35340 do 35341 # Use a header file that comes with gcc, so configuring glibc 35342 # with a fresh cross-compiler works. 35343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35344 # <limits.h> exists even on freestanding compilers. 35345 # On the NeXT, cc -E runs the code through the compiler's parser, 35346 # not just through cpp. "Syntax error" is here to catch this case. 35347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35348 /* end confdefs.h. */ 35349 #ifdef __STDC__ 35350 # include <limits.h> 35351 #else 35352 # include <assert.h> 35353 #endif 35354 Syntax error 35355 _ACEOF 35356 if ac_fn_cxx_try_cpp "$LINENO"; then : 35357 35358 else 35359 # Broken: fails on valid input. 35360 continue 35361 fi 35362 rm -f conftest.err conftest.i conftest.$ac_ext 35363 35364 # OK, works on sane cases. Now check whether nonexistent headers 35365 # can be detected and how. 35366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35367 /* end confdefs.h. */ 35368 #include <ac_nonexistent.h> 35369 _ACEOF 35370 if ac_fn_cxx_try_cpp "$LINENO"; then : 35371 # Broken: success on invalid input. 35372 continue 35373 else 35374 # Passes both tests. 35375 ac_preproc_ok=: 35376 break 35377 fi 35378 rm -f conftest.err conftest.i conftest.$ac_ext 35379 35380 done 35381 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35382 rm -f conftest.i conftest.err conftest.$ac_ext 35383 if $ac_preproc_ok; then : 35384 break 35385 fi 35386 35387 done 35388 ac_cv_prog_CXXCPP=$CXXCPP 35389 35390 fi 35391 CXXCPP=$ac_cv_prog_CXXCPP 35392 else 35393 ac_cv_prog_CXXCPP=$CXXCPP 35394 fi 35395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 35396 $as_echo "$CXXCPP" >&6; } 35397 ac_preproc_ok=false 35398 for ac_cxx_preproc_warn_flag in '' yes 35399 do 35400 # Use a header file that comes with gcc, so configuring glibc 35401 # with a fresh cross-compiler works. 35402 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35403 # <limits.h> exists even on freestanding compilers. 35404 # On the NeXT, cc -E runs the code through the compiler's parser, 35405 # not just through cpp. "Syntax error" is here to catch this case. 35406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35407 /* end confdefs.h. */ 35408 #ifdef __STDC__ 35409 # include <limits.h> 35410 #else 35411 # include <assert.h> 35412 #endif 35413 Syntax error 35414 _ACEOF 35415 if ac_fn_cxx_try_cpp "$LINENO"; then : 35416 35417 else 35418 # Broken: fails on valid input. 35419 continue 35420 fi 35421 rm -f conftest.err conftest.i conftest.$ac_ext 35422 35423 # OK, works on sane cases. Now check whether nonexistent headers 35424 # can be detected and how. 35425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35426 /* end confdefs.h. */ 35427 #include <ac_nonexistent.h> 35428 _ACEOF 35429 if ac_fn_cxx_try_cpp "$LINENO"; then : 35430 # Broken: success on invalid input. 35431 continue 35432 else 35433 # Passes both tests. 35434 ac_preproc_ok=: 35435 break 35436 fi 35437 rm -f conftest.err conftest.i conftest.$ac_ext 35438 35439 done 35440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35441 rm -f conftest.i conftest.err conftest.$ac_ext 35442 if $ac_preproc_ok; then : 35443 35444 else 35445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35447 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 35448 See \`config.log' for more details" "$LINENO" 5; } 35449 fi 35450 35451 ac_ext=cpp 35452 ac_cpp='$CXXCPP $CPPFLAGS' 35453 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35454 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35455 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35456 35457 35458 # Only process if variable expands to non-empty 35459 35460 if test "x$CXXCPP" != x; then 35461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35462 35463 # First separate the path from the arguments. This will split at the first 35464 # space. 35465 complete="$CXXCPP" 35466 path="${complete%% *}" 35467 tmp="$complete EOL" 35468 arguments="${tmp#* }" 35469 35470 # Input might be given as Windows format, start by converting to 35471 # unix format. 35472 new_path=`$CYGPATH -u "$path"` 35473 35474 # Now try to locate executable using which 35475 new_path=`$WHICH "$new_path" 2> /dev/null` 35476 # bat and cmd files are not always considered executable in cygwin causing which 35477 # to not find them 35478 if test "x$new_path" = x \ 35479 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35480 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35481 new_path=`$CYGPATH -u "$path"` 35482 fi 35483 if test "x$new_path" = x; then 35484 # Oops. Which didn't find the executable. 35485 # The splitting of arguments from the executable at a space might have been incorrect, 35486 # since paths with space are more likely in Windows. Give it another try with the whole 35487 # argument. 35488 path="$complete" 35489 arguments="EOL" 35490 new_path=`$CYGPATH -u "$path"` 35491 new_path=`$WHICH "$new_path" 2> /dev/null` 35492 # bat and cmd files are not always considered executable in cygwin causing which 35493 # to not find them 35494 if test "x$new_path" = x \ 35495 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35496 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35497 new_path=`$CYGPATH -u "$path"` 35498 fi 35499 if test "x$new_path" = x; then 35500 # It's still not found. Now this is an unrecoverable error. 35501 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35502 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35503 has_space=`$ECHO "$complete" | $GREP " "` 35504 if test "x$has_space" != x; then 35505 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35506 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35507 fi 35508 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35509 fi 35510 fi 35511 35512 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35513 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35514 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35515 # "foo.exe" is OK but "foo" is an error. 35516 # 35517 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35518 # It is also a way to make sure we got the proper file name for the real test later on. 35519 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35520 if test "x$test_shortpath" = x; then 35521 # Short path failed, file does not exist as specified. 35522 # Try adding .exe or .cmd 35523 if test -f "${new_path}.exe"; then 35524 input_to_shortpath="${new_path}.exe" 35525 elif test -f "${new_path}.cmd"; then 35526 input_to_shortpath="${new_path}.cmd" 35527 else 35528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 35529 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 35530 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35531 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35532 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35533 fi 35534 else 35535 input_to_shortpath="$new_path" 35536 fi 35537 35538 # Call helper function which possibly converts this using DOS-style short mode. 35539 # If so, the updated path is stored in $new_path. 35540 new_path="$input_to_shortpath" 35541 35542 input_path="$input_to_shortpath" 35543 # Check if we need to convert this using DOS-style short mode. If the path 35544 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35545 # take no chances and rewrite it. 35546 # Note: m4 eats our [], so we need to use [ and ] instead. 35547 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35548 if test "x$has_forbidden_chars" != x; then 35549 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35550 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35551 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35552 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35553 # Going to short mode and back again did indeed matter. Since short mode is 35554 # case insensitive, let's make it lowercase to improve readability. 35555 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35556 # Now convert it back to Unix-style (cygpath) 35557 input_path=`$CYGPATH -u "$shortmode_path"` 35558 new_path="$input_path" 35559 fi 35560 fi 35561 35562 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35563 if test "x$test_cygdrive_prefix" = x; then 35564 # As a simple fix, exclude /usr/bin since it's not a real path. 35565 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35566 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35567 # a path prefixed by /cygdrive for fixpath to work. 35568 new_path="$CYGWIN_ROOT_PATH$input_path" 35569 fi 35570 fi 35571 35572 # remove trailing .exe if any 35573 new_path="${new_path/%.exe/}" 35574 35575 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35576 35577 # First separate the path from the arguments. This will split at the first 35578 # space. 35579 complete="$CXXCPP" 35580 path="${complete%% *}" 35581 tmp="$complete EOL" 35582 arguments="${tmp#* }" 35583 35584 # Input might be given as Windows format, start by converting to 35585 # unix format. 35586 new_path="$path" 35587 35588 windows_path="$new_path" 35589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35590 unix_path=`$CYGPATH -u "$windows_path"` 35591 new_path="$unix_path" 35592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35594 new_path="$unix_path" 35595 fi 35596 35597 35598 # Now try to locate executable using which 35599 new_path=`$WHICH "$new_path" 2> /dev/null` 35600 35601 if test "x$new_path" = x; then 35602 # Oops. Which didn't find the executable. 35603 # The splitting of arguments from the executable at a space might have been incorrect, 35604 # since paths with space are more likely in Windows. Give it another try with the whole 35605 # argument. 35606 path="$complete" 35607 arguments="EOL" 35608 new_path="$path" 35609 35610 windows_path="$new_path" 35611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35612 unix_path=`$CYGPATH -u "$windows_path"` 35613 new_path="$unix_path" 35614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35616 new_path="$unix_path" 35617 fi 35618 35619 35620 new_path=`$WHICH "$new_path" 2> /dev/null` 35621 # bat and cmd files are not always considered executable in MSYS causing which 35622 # to not find them 35623 if test "x$new_path" = x \ 35624 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35625 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35626 new_path="$path" 35627 35628 windows_path="$new_path" 35629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35630 unix_path=`$CYGPATH -u "$windows_path"` 35631 new_path="$unix_path" 35632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35634 new_path="$unix_path" 35635 fi 35636 35637 fi 35638 35639 if test "x$new_path" = x; then 35640 # It's still not found. Now this is an unrecoverable error. 35641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35642 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35643 has_space=`$ECHO "$complete" | $GREP " "` 35644 if test "x$has_space" != x; then 35645 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35646 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35647 fi 35648 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35649 fi 35650 fi 35651 35652 # Now new_path has a complete unix path to the binary 35653 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35654 # Keep paths in /bin as-is, but remove trailing .exe if any 35655 new_path="${new_path/%.exe/}" 35656 # Do not save /bin paths to all_fixpath_prefixes! 35657 else 35658 # Not in mixed or Windows style, start by that. 35659 new_path=`cmd //c echo $new_path` 35660 35661 input_path="$new_path" 35662 # Check if we need to convert this using DOS-style short mode. If the path 35663 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35664 # take no chances and rewrite it. 35665 # Note: m4 eats our [], so we need to use [ and ] instead. 35666 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35667 if test "x$has_forbidden_chars" != x; then 35668 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35669 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35670 fi 35671 35672 # Output is in $new_path 35673 35674 windows_path="$new_path" 35675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35676 unix_path=`$CYGPATH -u "$windows_path"` 35677 new_path="$unix_path" 35678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35680 new_path="$unix_path" 35681 fi 35682 35683 # remove trailing .exe if any 35684 new_path="${new_path/%.exe/}" 35685 35686 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35687 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35688 fi 35689 35690 else 35691 # We're on a unix platform. Hooray! :) 35692 # First separate the path from the arguments. This will split at the first 35693 # space. 35694 complete="$CXXCPP" 35695 path="${complete%% *}" 35696 tmp="$complete EOL" 35697 arguments="${tmp#* }" 35698 35699 # Cannot rely on the command "which" here since it doesn't always work. 35700 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35701 if test -z "$is_absolute_path"; then 35702 # Path to executable is not absolute. Find it. 35703 IFS_save="$IFS" 35704 IFS=: 35705 for p in $PATH; do 35706 if test -f "$p/$path" && test -x "$p/$path"; then 35707 new_path="$p/$path" 35708 break 35709 fi 35710 done 35711 IFS="$IFS_save" 35712 else 35713 # This is an absolute path, we can use it without further modifications. 35714 new_path="$path" 35715 fi 35716 35717 if test "x$new_path" = x; then 35718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35719 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35720 has_space=`$ECHO "$complete" | $GREP " "` 35721 if test "x$has_space" != x; then 35722 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35723 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35724 fi 35725 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35726 fi 35727 fi 35728 35729 # Now join together the path and the arguments once again 35730 if test "x$arguments" != xEOL; then 35731 new_complete="$new_path ${arguments% *}" 35732 else 35733 new_complete="$new_path" 35734 fi 35735 35736 if test "x$complete" != "x$new_complete"; then 35737 CXXCPP="$new_complete" 35738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 35739 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 35740 fi 35741 fi 35742 35743 35744 # 35745 # Setup the linker (LD) 35746 # 35747 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35748 # In the Microsoft toolchain we have a separate LD command "link". 35749 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 35750 # a cygwin program for something completely different. 35751 # Extract the first word of "link", so it can be a program name with args. 35752 set dummy link; ac_word=$2 35753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35754 $as_echo_n "checking for $ac_word... " >&6; } 35755 if ${ac_cv_prog_LD+:} false; then : 35756 $as_echo_n "(cached) " >&6 35757 else 35758 if test -n "$LD"; then 35759 ac_cv_prog_LD="$LD" # Let the user override the test. 35760 else 35761 ac_prog_rejected=no 35762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35763 for as_dir in $PATH 35764 do 35765 IFS=$as_save_IFS 35766 test -z "$as_dir" && as_dir=. 35767 for ac_exec_ext in '' $ac_executable_extensions; do 35768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35769 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 35770 ac_prog_rejected=yes 35771 continue 35772 fi 35773 ac_cv_prog_LD="link" 35774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35775 break 2 35776 fi 35777 done 35778 done 35779 IFS=$as_save_IFS 35780 35781 if test $ac_prog_rejected = yes; then 35782 # We found a bogon in the path, so make sure we never use it. 35783 set dummy $ac_cv_prog_LD 35784 shift 35785 if test $# != 0; then 35786 # We chose a different compiler from the bogus one. 35787 # However, it has the same basename, so the bogon will be chosen 35788 # first if we set LD to just the basename; use the full file name. 35789 shift 35790 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 35791 fi 35792 fi 35793 fi 35794 fi 35795 LD=$ac_cv_prog_LD 35796 if test -n "$LD"; then 35797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 35798 $as_echo "$LD" >&6; } 35799 else 35800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35801 $as_echo "no" >&6; } 35802 fi 35803 35804 35805 35806 # Only process if variable expands to non-empty 35807 35808 if test "x$LD" != x; then 35809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35810 35811 # First separate the path from the arguments. This will split at the first 35812 # space. 35813 complete="$LD" 35814 path="${complete%% *}" 35815 tmp="$complete EOL" 35816 arguments="${tmp#* }" 35817 35818 # Input might be given as Windows format, start by converting to 35819 # unix format. 35820 new_path=`$CYGPATH -u "$path"` 35821 35822 # Now try to locate executable using which 35823 new_path=`$WHICH "$new_path" 2> /dev/null` 35824 # bat and cmd files are not always considered executable in cygwin causing which 35825 # to not find them 35826 if test "x$new_path" = x \ 35827 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35828 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35829 new_path=`$CYGPATH -u "$path"` 35830 fi 35831 if test "x$new_path" = x; then 35832 # Oops. Which didn't find the executable. 35833 # The splitting of arguments from the executable at a space might have been incorrect, 35834 # since paths with space are more likely in Windows. Give it another try with the whole 35835 # argument. 35836 path="$complete" 35837 arguments="EOL" 35838 new_path=`$CYGPATH -u "$path"` 35839 new_path=`$WHICH "$new_path" 2> /dev/null` 35840 # bat and cmd files are not always considered executable in cygwin causing which 35841 # to not find them 35842 if test "x$new_path" = x \ 35843 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35844 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35845 new_path=`$CYGPATH -u "$path"` 35846 fi 35847 if test "x$new_path" = x; then 35848 # It's still not found. Now this is an unrecoverable error. 35849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 35850 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 35851 has_space=`$ECHO "$complete" | $GREP " "` 35852 if test "x$has_space" != x; then 35853 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35854 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35855 fi 35856 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 35857 fi 35858 fi 35859 35860 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35861 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35862 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35863 # "foo.exe" is OK but "foo" is an error. 35864 # 35865 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35866 # It is also a way to make sure we got the proper file name for the real test later on. 35867 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35868 if test "x$test_shortpath" = x; then 35869 # Short path failed, file does not exist as specified. 35870 # Try adding .exe or .cmd 35871 if test -f "${new_path}.exe"; then 35872 input_to_shortpath="${new_path}.exe" 35873 elif test -f "${new_path}.cmd"; then 35874 input_to_shortpath="${new_path}.cmd" 35875 else 35876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 35877 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 35878 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35879 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35880 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 35881 fi 35882 else 35883 input_to_shortpath="$new_path" 35884 fi 35885 35886 # Call helper function which possibly converts this using DOS-style short mode. 35887 # If so, the updated path is stored in $new_path. 35888 new_path="$input_to_shortpath" 35889 35890 input_path="$input_to_shortpath" 35891 # Check if we need to convert this using DOS-style short mode. If the path 35892 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35893 # take no chances and rewrite it. 35894 # Note: m4 eats our [], so we need to use [ and ] instead. 35895 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35896 if test "x$has_forbidden_chars" != x; then 35897 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35898 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35899 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35900 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35901 # Going to short mode and back again did indeed matter. Since short mode is 35902 # case insensitive, let's make it lowercase to improve readability. 35903 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35904 # Now convert it back to Unix-style (cygpath) 35905 input_path=`$CYGPATH -u "$shortmode_path"` 35906 new_path="$input_path" 35907 fi 35908 fi 35909 35910 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35911 if test "x$test_cygdrive_prefix" = x; then 35912 # As a simple fix, exclude /usr/bin since it's not a real path. 35913 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35914 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35915 # a path prefixed by /cygdrive for fixpath to work. 35916 new_path="$CYGWIN_ROOT_PATH$input_path" 35917 fi 35918 fi 35919 35920 # remove trailing .exe if any 35921 new_path="${new_path/%.exe/}" 35922 35923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35924 35925 # First separate the path from the arguments. This will split at the first 35926 # space. 35927 complete="$LD" 35928 path="${complete%% *}" 35929 tmp="$complete EOL" 35930 arguments="${tmp#* }" 35931 35932 # Input might be given as Windows format, start by converting to 35933 # unix format. 35934 new_path="$path" 35935 35936 windows_path="$new_path" 35937 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35938 unix_path=`$CYGPATH -u "$windows_path"` 35939 new_path="$unix_path" 35940 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35941 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35942 new_path="$unix_path" 35943 fi 35944 35945 35946 # Now try to locate executable using which 35947 new_path=`$WHICH "$new_path" 2> /dev/null` 35948 35949 if test "x$new_path" = x; then 35950 # Oops. Which didn't find the executable. 35951 # The splitting of arguments from the executable at a space might have been incorrect, 35952 # since paths with space are more likely in Windows. Give it another try with the whole 35953 # argument. 35954 path="$complete" 35955 arguments="EOL" 35956 new_path="$path" 35957 35958 windows_path="$new_path" 35959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35960 unix_path=`$CYGPATH -u "$windows_path"` 35961 new_path="$unix_path" 35962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35964 new_path="$unix_path" 35965 fi 35966 35967 35968 new_path=`$WHICH "$new_path" 2> /dev/null` 35969 # bat and cmd files are not always considered executable in MSYS causing which 35970 # to not find them 35971 if test "x$new_path" = x \ 35972 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35973 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35974 new_path="$path" 35975 35976 windows_path="$new_path" 35977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35978 unix_path=`$CYGPATH -u "$windows_path"` 35979 new_path="$unix_path" 35980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35982 new_path="$unix_path" 35983 fi 35984 35985 fi 35986 35987 if test "x$new_path" = x; then 35988 # It's still not found. Now this is an unrecoverable error. 35989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 35990 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 35991 has_space=`$ECHO "$complete" | $GREP " "` 35992 if test "x$has_space" != x; then 35993 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35994 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35995 fi 35996 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 35997 fi 35998 fi 35999 36000 # Now new_path has a complete unix path to the binary 36001 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36002 # Keep paths in /bin as-is, but remove trailing .exe if any 36003 new_path="${new_path/%.exe/}" 36004 # Do not save /bin paths to all_fixpath_prefixes! 36005 else 36006 # Not in mixed or Windows style, start by that. 36007 new_path=`cmd //c echo $new_path` 36008 36009 input_path="$new_path" 36010 # Check if we need to convert this using DOS-style short mode. If the path 36011 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36012 # take no chances and rewrite it. 36013 # Note: m4 eats our [], so we need to use [ and ] instead. 36014 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36015 if test "x$has_forbidden_chars" != x; then 36016 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36017 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36018 fi 36019 36020 # Output is in $new_path 36021 36022 windows_path="$new_path" 36023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36024 unix_path=`$CYGPATH -u "$windows_path"` 36025 new_path="$unix_path" 36026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36027 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36028 new_path="$unix_path" 36029 fi 36030 36031 # remove trailing .exe if any 36032 new_path="${new_path/%.exe/}" 36033 36034 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36035 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36036 fi 36037 36038 else 36039 # We're on a unix platform. Hooray! :) 36040 # First separate the path from the arguments. This will split at the first 36041 # space. 36042 complete="$LD" 36043 path="${complete%% *}" 36044 tmp="$complete EOL" 36045 arguments="${tmp#* }" 36046 36047 # Cannot rely on the command "which" here since it doesn't always work. 36048 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36049 if test -z "$is_absolute_path"; then 36050 # Path to executable is not absolute. Find it. 36051 IFS_save="$IFS" 36052 IFS=: 36053 for p in $PATH; do 36054 if test -f "$p/$path" && test -x "$p/$path"; then 36055 new_path="$p/$path" 36056 break 36057 fi 36058 done 36059 IFS="$IFS_save" 36060 else 36061 # This is an absolute path, we can use it without further modifications. 36062 new_path="$path" 36063 fi 36064 36065 if test "x$new_path" = x; then 36066 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 36067 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 36068 has_space=`$ECHO "$complete" | $GREP " "` 36069 if test "x$has_space" != x; then 36070 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36071 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36072 fi 36073 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 36074 fi 36075 fi 36076 36077 # Now join together the path and the arguments once again 36078 if test "x$arguments" != xEOL; then 36079 new_complete="$new_path ${arguments% *}" 36080 else 36081 new_complete="$new_path" 36082 fi 36083 36084 if test "x$complete" != "x$new_complete"; then 36085 LD="$new_complete" 36086 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 36087 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 36088 fi 36089 fi 36090 36091 # Verify that we indeed succeeded with this trick. 36092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 36093 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 36094 "$LD" --version > /dev/null 36095 if test $? -eq 0 ; then 36096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36097 $as_echo "no" >&6; } 36098 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 36099 else 36100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 36101 $as_echo "yes" >&6; } 36102 fi 36103 LDCXX="$LD" 36104 else 36105 # All other toolchains use the compiler to link. 36106 LD="$CC" 36107 LDCXX="$CXX" 36108 fi 36109 36110 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 36111 36112 36113 # 36114 # Setup the assembler (AS) 36115 # 36116 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 36117 # FIXME: should this really be solaris, or solstudio? 36118 36119 36120 # Publish this variable in the help. 36121 36122 36123 if [ -z "${AS+x}" ]; then 36124 # The variable is not set by user, try to locate tool using the code snippet 36125 for ac_prog in as 36126 do 36127 # Extract the first word of "$ac_prog", so it can be a program name with args. 36128 set dummy $ac_prog; ac_word=$2 36129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36130 $as_echo_n "checking for $ac_word... " >&6; } 36131 if ${ac_cv_path_AS+:} false; then : 36132 $as_echo_n "(cached) " >&6 36133 else 36134 case $AS in 36135 [\\/]* | ?:[\\/]*) 36136 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36137 ;; 36138 *) 36139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36140 for as_dir in $PATH 36141 do 36142 IFS=$as_save_IFS 36143 test -z "$as_dir" && as_dir=. 36144 for ac_exec_ext in '' $ac_executable_extensions; do 36145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36146 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36148 break 2 36149 fi 36150 done 36151 done 36152 IFS=$as_save_IFS 36153 36154 ;; 36155 esac 36156 fi 36157 AS=$ac_cv_path_AS 36158 if test -n "$AS"; then 36159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36160 $as_echo "$AS" >&6; } 36161 else 36162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36163 $as_echo "no" >&6; } 36164 fi 36165 36166 36167 test -n "$AS" && break 36168 done 36169 36170 else 36171 # The variable is set, but is it from the command line or the environment? 36172 36173 # Try to remove the string !AS! from our list. 36174 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 36175 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36176 # If it failed, the variable was not from the command line. Ignore it, 36177 # but warn the user (except for BASH, which is always set by the calling BASH). 36178 if test "xAS" != xBASH; then 36179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 36180 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 36181 fi 36182 # Try to locate tool using the code snippet 36183 for ac_prog in as 36184 do 36185 # Extract the first word of "$ac_prog", so it can be a program name with args. 36186 set dummy $ac_prog; ac_word=$2 36187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36188 $as_echo_n "checking for $ac_word... " >&6; } 36189 if ${ac_cv_path_AS+:} false; then : 36190 $as_echo_n "(cached) " >&6 36191 else 36192 case $AS in 36193 [\\/]* | ?:[\\/]*) 36194 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36195 ;; 36196 *) 36197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36198 for as_dir in $PATH 36199 do 36200 IFS=$as_save_IFS 36201 test -z "$as_dir" && as_dir=. 36202 for ac_exec_ext in '' $ac_executable_extensions; do 36203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36204 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36206 break 2 36207 fi 36208 done 36209 done 36210 IFS=$as_save_IFS 36211 36212 ;; 36213 esac 36214 fi 36215 AS=$ac_cv_path_AS 36216 if test -n "$AS"; then 36217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36218 $as_echo "$AS" >&6; } 36219 else 36220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36221 $as_echo "no" >&6; } 36222 fi 36223 36224 36225 test -n "$AS" && break 36226 done 36227 36228 else 36229 # If it succeeded, then it was overridden by the user. We will use it 36230 # for the tool. 36231 36232 # First remove it from the list of overridden variables, so we can test 36233 # for unknown variables in the end. 36234 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36235 36236 # Check if we try to supply an empty value 36237 if test "x$AS" = x; then 36238 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 36239 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 36240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36241 $as_echo_n "checking for AS... " >&6; } 36242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36243 $as_echo "disabled" >&6; } 36244 else 36245 # Check if the provided tool contains a complete path. 36246 tool_specified="$AS" 36247 tool_basename="${tool_specified##*/}" 36248 if test "x$tool_basename" = "x$tool_specified"; then 36249 # A command without a complete path is provided, search $PATH. 36250 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 36251 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 36252 # Extract the first word of "$tool_basename", so it can be a program name with args. 36253 set dummy $tool_basename; ac_word=$2 36254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36255 $as_echo_n "checking for $ac_word... " >&6; } 36256 if ${ac_cv_path_AS+:} false; then : 36257 $as_echo_n "(cached) " >&6 36258 else 36259 case $AS in 36260 [\\/]* | ?:[\\/]*) 36261 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36262 ;; 36263 *) 36264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36265 for as_dir in $PATH 36266 do 36267 IFS=$as_save_IFS 36268 test -z "$as_dir" && as_dir=. 36269 for ac_exec_ext in '' $ac_executable_extensions; do 36270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36271 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36273 break 2 36274 fi 36275 done 36276 done 36277 IFS=$as_save_IFS 36278 36279 ;; 36280 esac 36281 fi 36282 AS=$ac_cv_path_AS 36283 if test -n "$AS"; then 36284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36285 $as_echo "$AS" >&6; } 36286 else 36287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36288 $as_echo "no" >&6; } 36289 fi 36290 36291 36292 if test "x$AS" = x; then 36293 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36294 fi 36295 else 36296 # Otherwise we believe it is a complete path. Use it as it is. 36297 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 36298 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 36299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36300 $as_echo_n "checking for AS... " >&6; } 36301 if test ! -x "$tool_specified"; then 36302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36303 $as_echo "not found" >&6; } 36304 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 36305 fi 36306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36307 $as_echo "$tool_specified" >&6; } 36308 fi 36309 fi 36310 fi 36311 36312 fi 36313 36314 36315 36316 # Only process if variable expands to non-empty 36317 36318 if test "x$AS" != x; then 36319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36320 36321 # First separate the path from the arguments. This will split at the first 36322 # space. 36323 complete="$AS" 36324 path="${complete%% *}" 36325 tmp="$complete EOL" 36326 arguments="${tmp#* }" 36327 36328 # Input might be given as Windows format, start by converting to 36329 # unix format. 36330 new_path=`$CYGPATH -u "$path"` 36331 36332 # Now try to locate executable using which 36333 new_path=`$WHICH "$new_path" 2> /dev/null` 36334 # bat and cmd files are not always considered executable in cygwin causing which 36335 # to not find them 36336 if test "x$new_path" = x \ 36337 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36338 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36339 new_path=`$CYGPATH -u "$path"` 36340 fi 36341 if test "x$new_path" = x; then 36342 # Oops. Which didn't find the executable. 36343 # The splitting of arguments from the executable at a space might have been incorrect, 36344 # since paths with space are more likely in Windows. Give it another try with the whole 36345 # argument. 36346 path="$complete" 36347 arguments="EOL" 36348 new_path=`$CYGPATH -u "$path"` 36349 new_path=`$WHICH "$new_path" 2> /dev/null` 36350 # bat and cmd files are not always considered executable in cygwin causing which 36351 # to not find them 36352 if test "x$new_path" = x \ 36353 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36354 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36355 new_path=`$CYGPATH -u "$path"` 36356 fi 36357 if test "x$new_path" = x; then 36358 # It's still not found. Now this is an unrecoverable error. 36359 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36360 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36361 has_space=`$ECHO "$complete" | $GREP " "` 36362 if test "x$has_space" != x; then 36363 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36364 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36365 fi 36366 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36367 fi 36368 fi 36369 36370 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36371 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36372 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36373 # "foo.exe" is OK but "foo" is an error. 36374 # 36375 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36376 # It is also a way to make sure we got the proper file name for the real test later on. 36377 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36378 if test "x$test_shortpath" = x; then 36379 # Short path failed, file does not exist as specified. 36380 # Try adding .exe or .cmd 36381 if test -f "${new_path}.exe"; then 36382 input_to_shortpath="${new_path}.exe" 36383 elif test -f "${new_path}.cmd"; then 36384 input_to_shortpath="${new_path}.cmd" 36385 else 36386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 36387 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 36388 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36389 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36390 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36391 fi 36392 else 36393 input_to_shortpath="$new_path" 36394 fi 36395 36396 # Call helper function which possibly converts this using DOS-style short mode. 36397 # If so, the updated path is stored in $new_path. 36398 new_path="$input_to_shortpath" 36399 36400 input_path="$input_to_shortpath" 36401 # Check if we need to convert this using DOS-style short mode. If the path 36402 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36403 # take no chances and rewrite it. 36404 # Note: m4 eats our [], so we need to use [ and ] instead. 36405 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36406 if test "x$has_forbidden_chars" != x; then 36407 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36408 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36409 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36410 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36411 # Going to short mode and back again did indeed matter. Since short mode is 36412 # case insensitive, let's make it lowercase to improve readability. 36413 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36414 # Now convert it back to Unix-style (cygpath) 36415 input_path=`$CYGPATH -u "$shortmode_path"` 36416 new_path="$input_path" 36417 fi 36418 fi 36419 36420 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36421 if test "x$test_cygdrive_prefix" = x; then 36422 # As a simple fix, exclude /usr/bin since it's not a real path. 36423 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36424 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36425 # a path prefixed by /cygdrive for fixpath to work. 36426 new_path="$CYGWIN_ROOT_PATH$input_path" 36427 fi 36428 fi 36429 36430 # remove trailing .exe if any 36431 new_path="${new_path/%.exe/}" 36432 36433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36434 36435 # First separate the path from the arguments. This will split at the first 36436 # space. 36437 complete="$AS" 36438 path="${complete%% *}" 36439 tmp="$complete EOL" 36440 arguments="${tmp#* }" 36441 36442 # Input might be given as Windows format, start by converting to 36443 # unix format. 36444 new_path="$path" 36445 36446 windows_path="$new_path" 36447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36448 unix_path=`$CYGPATH -u "$windows_path"` 36449 new_path="$unix_path" 36450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36451 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36452 new_path="$unix_path" 36453 fi 36454 36455 36456 # Now try to locate executable using which 36457 new_path=`$WHICH "$new_path" 2> /dev/null` 36458 36459 if test "x$new_path" = x; then 36460 # Oops. Which didn't find the executable. 36461 # The splitting of arguments from the executable at a space might have been incorrect, 36462 # since paths with space are more likely in Windows. Give it another try with the whole 36463 # argument. 36464 path="$complete" 36465 arguments="EOL" 36466 new_path="$path" 36467 36468 windows_path="$new_path" 36469 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36470 unix_path=`$CYGPATH -u "$windows_path"` 36471 new_path="$unix_path" 36472 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36473 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36474 new_path="$unix_path" 36475 fi 36476 36477 36478 new_path=`$WHICH "$new_path" 2> /dev/null` 36479 # bat and cmd files are not always considered executable in MSYS causing which 36480 # to not find them 36481 if test "x$new_path" = x \ 36482 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36483 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36484 new_path="$path" 36485 36486 windows_path="$new_path" 36487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36488 unix_path=`$CYGPATH -u "$windows_path"` 36489 new_path="$unix_path" 36490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36492 new_path="$unix_path" 36493 fi 36494 36495 fi 36496 36497 if test "x$new_path" = x; then 36498 # It's still not found. Now this is an unrecoverable error. 36499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36500 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36501 has_space=`$ECHO "$complete" | $GREP " "` 36502 if test "x$has_space" != x; then 36503 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36504 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36505 fi 36506 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36507 fi 36508 fi 36509 36510 # Now new_path has a complete unix path to the binary 36511 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36512 # Keep paths in /bin as-is, but remove trailing .exe if any 36513 new_path="${new_path/%.exe/}" 36514 # Do not save /bin paths to all_fixpath_prefixes! 36515 else 36516 # Not in mixed or Windows style, start by that. 36517 new_path=`cmd //c echo $new_path` 36518 36519 input_path="$new_path" 36520 # Check if we need to convert this using DOS-style short mode. If the path 36521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36522 # take no chances and rewrite it. 36523 # Note: m4 eats our [], so we need to use [ and ] instead. 36524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36525 if test "x$has_forbidden_chars" != x; then 36526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36527 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36528 fi 36529 36530 # Output is in $new_path 36531 36532 windows_path="$new_path" 36533 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36534 unix_path=`$CYGPATH -u "$windows_path"` 36535 new_path="$unix_path" 36536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36537 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36538 new_path="$unix_path" 36539 fi 36540 36541 # remove trailing .exe if any 36542 new_path="${new_path/%.exe/}" 36543 36544 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36545 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36546 fi 36547 36548 else 36549 # We're on a unix platform. Hooray! :) 36550 # First separate the path from the arguments. This will split at the first 36551 # space. 36552 complete="$AS" 36553 path="${complete%% *}" 36554 tmp="$complete EOL" 36555 arguments="${tmp#* }" 36556 36557 # Cannot rely on the command "which" here since it doesn't always work. 36558 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36559 if test -z "$is_absolute_path"; then 36560 # Path to executable is not absolute. Find it. 36561 IFS_save="$IFS" 36562 IFS=: 36563 for p in $PATH; do 36564 if test -f "$p/$path" && test -x "$p/$path"; then 36565 new_path="$p/$path" 36566 break 36567 fi 36568 done 36569 IFS="$IFS_save" 36570 else 36571 # This is an absolute path, we can use it without further modifications. 36572 new_path="$path" 36573 fi 36574 36575 if test "x$new_path" = x; then 36576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36577 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36578 has_space=`$ECHO "$complete" | $GREP " "` 36579 if test "x$has_space" != x; then 36580 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36581 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36582 fi 36583 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36584 fi 36585 fi 36586 36587 # Now join together the path and the arguments once again 36588 if test "x$arguments" != xEOL; then 36589 new_complete="$new_path ${arguments% *}" 36590 else 36591 new_complete="$new_path" 36592 fi 36593 36594 if test "x$complete" != "x$new_complete"; then 36595 AS="$new_complete" 36596 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 36597 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 36598 fi 36599 fi 36600 36601 else 36602 # FIXME: is this correct for microsoft? 36603 AS="$CC -c" 36604 fi 36605 36606 36607 # 36608 # Setup the archiver (AR) 36609 # 36610 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 36611 # The corresponding ar tool is lib.exe (used to create static libraries) 36612 # Extract the first word of "lib", so it can be a program name with args. 36613 set dummy lib; ac_word=$2 36614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36615 $as_echo_n "checking for $ac_word... " >&6; } 36616 if ${ac_cv_prog_AR+:} false; then : 36617 $as_echo_n "(cached) " >&6 36618 else 36619 if test -n "$AR"; then 36620 ac_cv_prog_AR="$AR" # Let the user override the test. 36621 else 36622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36623 for as_dir in $PATH 36624 do 36625 IFS=$as_save_IFS 36626 test -z "$as_dir" && as_dir=. 36627 for ac_exec_ext in '' $ac_executable_extensions; do 36628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36629 ac_cv_prog_AR="lib" 36630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36631 break 2 36632 fi 36633 done 36634 done 36635 IFS=$as_save_IFS 36636 36637 fi 36638 fi 36639 AR=$ac_cv_prog_AR 36640 if test -n "$AR"; then 36641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36642 $as_echo "$AR" >&6; } 36643 else 36644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36645 $as_echo "no" >&6; } 36646 fi 36647 36648 36649 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 36650 36651 36652 # Publish this variable in the help. 36653 36654 36655 if [ -z "${AR+x}" ]; then 36656 # The variable is not set by user, try to locate tool using the code snippet 36657 if test -n "$ac_tool_prefix"; then 36658 for ac_prog in ar gcc-ar 36659 do 36660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36661 set dummy $ac_tool_prefix$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_prog_AR+:} false; then : 36665 $as_echo_n "(cached) " >&6 36666 else 36667 if test -n "$AR"; then 36668 ac_cv_prog_AR="$AR" # Let the user override the test. 36669 else 36670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36671 for as_dir in $PATH 36672 do 36673 IFS=$as_save_IFS 36674 test -z "$as_dir" && as_dir=. 36675 for ac_exec_ext in '' $ac_executable_extensions; do 36676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36677 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 36678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36679 break 2 36680 fi 36681 done 36682 done 36683 IFS=$as_save_IFS 36684 36685 fi 36686 fi 36687 AR=$ac_cv_prog_AR 36688 if test -n "$AR"; then 36689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36690 $as_echo "$AR" >&6; } 36691 else 36692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36693 $as_echo "no" >&6; } 36694 fi 36695 36696 36697 test -n "$AR" && break 36698 done 36699 fi 36700 if test -z "$AR"; then 36701 ac_ct_AR=$AR 36702 for ac_prog in ar gcc-ar 36703 do 36704 # Extract the first word of "$ac_prog", so it can be a program name with args. 36705 set dummy $ac_prog; ac_word=$2 36706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36707 $as_echo_n "checking for $ac_word... " >&6; } 36708 if ${ac_cv_prog_ac_ct_AR+:} false; then : 36709 $as_echo_n "(cached) " >&6 36710 else 36711 if test -n "$ac_ct_AR"; then 36712 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 36713 else 36714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36715 for as_dir in $PATH 36716 do 36717 IFS=$as_save_IFS 36718 test -z "$as_dir" && as_dir=. 36719 for ac_exec_ext in '' $ac_executable_extensions; do 36720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36721 ac_cv_prog_ac_ct_AR="$ac_prog" 36722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36723 break 2 36724 fi 36725 done 36726 done 36727 IFS=$as_save_IFS 36728 36729 fi 36730 fi 36731 ac_ct_AR=$ac_cv_prog_ac_ct_AR 36732 if test -n "$ac_ct_AR"; then 36733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 36734 $as_echo "$ac_ct_AR" >&6; } 36735 else 36736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36737 $as_echo "no" >&6; } 36738 fi 36739 36740 36741 test -n "$ac_ct_AR" && break 36742 done 36743 36744 if test "x$ac_ct_AR" = x; then 36745 AR="" 36746 else 36747 case $cross_compiling:$ac_tool_warned in 36748 yes:) 36749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36751 ac_tool_warned=yes ;; 36752 esac 36753 AR=$ac_ct_AR 36754 fi 36755 fi 36756 36757 else 36758 # The variable is set, but is it from the command line or the environment? 36759 36760 # Try to remove the string !AR! from our list. 36761 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 36762 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36763 # If it failed, the variable was not from the command line. Ignore it, 36764 # but warn the user (except for BASH, which is always set by the calling BASH). 36765 if test "xAR" != xBASH; then 36766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 36767 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 36768 fi 36769 # Try to locate tool using the code snippet 36770 if test -n "$ac_tool_prefix"; then 36771 for ac_prog in ar gcc-ar 36772 do 36773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36776 $as_echo_n "checking for $ac_word... " >&6; } 36777 if ${ac_cv_prog_AR+:} false; then : 36778 $as_echo_n "(cached) " >&6 36779 else 36780 if test -n "$AR"; then 36781 ac_cv_prog_AR="$AR" # Let the user override the test. 36782 else 36783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36784 for as_dir in $PATH 36785 do 36786 IFS=$as_save_IFS 36787 test -z "$as_dir" && as_dir=. 36788 for ac_exec_ext in '' $ac_executable_extensions; do 36789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36790 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 36791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36792 break 2 36793 fi 36794 done 36795 done 36796 IFS=$as_save_IFS 36797 36798 fi 36799 fi 36800 AR=$ac_cv_prog_AR 36801 if test -n "$AR"; then 36802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36803 $as_echo "$AR" >&6; } 36804 else 36805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36806 $as_echo "no" >&6; } 36807 fi 36808 36809 36810 test -n "$AR" && break 36811 done 36812 fi 36813 if test -z "$AR"; then 36814 ac_ct_AR=$AR 36815 for ac_prog in ar gcc-ar 36816 do 36817 # Extract the first word of "$ac_prog", so it can be a program name with args. 36818 set dummy $ac_prog; ac_word=$2 36819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36820 $as_echo_n "checking for $ac_word... " >&6; } 36821 if ${ac_cv_prog_ac_ct_AR+:} false; then : 36822 $as_echo_n "(cached) " >&6 36823 else 36824 if test -n "$ac_ct_AR"; then 36825 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 36826 else 36827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36828 for as_dir in $PATH 36829 do 36830 IFS=$as_save_IFS 36831 test -z "$as_dir" && as_dir=. 36832 for ac_exec_ext in '' $ac_executable_extensions; do 36833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36834 ac_cv_prog_ac_ct_AR="$ac_prog" 36835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36836 break 2 36837 fi 36838 done 36839 done 36840 IFS=$as_save_IFS 36841 36842 fi 36843 fi 36844 ac_ct_AR=$ac_cv_prog_ac_ct_AR 36845 if test -n "$ac_ct_AR"; then 36846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 36847 $as_echo "$ac_ct_AR" >&6; } 36848 else 36849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36850 $as_echo "no" >&6; } 36851 fi 36852 36853 36854 test -n "$ac_ct_AR" && break 36855 done 36856 36857 if test "x$ac_ct_AR" = x; then 36858 AR="" 36859 else 36860 case $cross_compiling:$ac_tool_warned in 36861 yes:) 36862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36864 ac_tool_warned=yes ;; 36865 esac 36866 AR=$ac_ct_AR 36867 fi 36868 fi 36869 36870 else 36871 # If it succeeded, then it was overridden by the user. We will use it 36872 # for the tool. 36873 36874 # First remove it from the list of overridden variables, so we can test 36875 # for unknown variables in the end. 36876 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36877 36878 # Check if we try to supply an empty value 36879 if test "x$AR" = x; then 36880 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 36881 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 36882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 36883 $as_echo_n "checking for AR... " >&6; } 36884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36885 $as_echo "disabled" >&6; } 36886 else 36887 # Check if the provided tool contains a complete path. 36888 tool_specified="$AR" 36889 tool_basename="${tool_specified##*/}" 36890 if test "x$tool_basename" = "x$tool_specified"; then 36891 # A command without a complete path is provided, search $PATH. 36892 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 36893 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 36894 # Extract the first word of "$tool_basename", so it can be a program name with args. 36895 set dummy $tool_basename; ac_word=$2 36896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36897 $as_echo_n "checking for $ac_word... " >&6; } 36898 if ${ac_cv_path_AR+:} false; then : 36899 $as_echo_n "(cached) " >&6 36900 else 36901 case $AR in 36902 [\\/]* | ?:[\\/]*) 36903 ac_cv_path_AR="$AR" # Let the user override the test with a path. 36904 ;; 36905 *) 36906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36907 for as_dir in $PATH 36908 do 36909 IFS=$as_save_IFS 36910 test -z "$as_dir" && as_dir=. 36911 for ac_exec_ext in '' $ac_executable_extensions; do 36912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36913 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 36914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36915 break 2 36916 fi 36917 done 36918 done 36919 IFS=$as_save_IFS 36920 36921 ;; 36922 esac 36923 fi 36924 AR=$ac_cv_path_AR 36925 if test -n "$AR"; then 36926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36927 $as_echo "$AR" >&6; } 36928 else 36929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36930 $as_echo "no" >&6; } 36931 fi 36932 36933 36934 if test "x$AR" = x; then 36935 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36936 fi 36937 else 36938 # Otherwise we believe it is a complete path. Use it as it is. 36939 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 36940 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 36941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 36942 $as_echo_n "checking for AR... " >&6; } 36943 if test ! -x "$tool_specified"; then 36944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36945 $as_echo "not found" >&6; } 36946 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 36947 fi 36948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36949 $as_echo "$tool_specified" >&6; } 36950 fi 36951 fi 36952 fi 36953 36954 fi 36955 36956 36957 else 36958 36959 36960 # Publish this variable in the help. 36961 36962 36963 if [ -z "${AR+x}" ]; then 36964 # The variable is not set by user, try to locate tool using the code snippet 36965 if test -n "$ac_tool_prefix"; then 36966 for ac_prog in ar 36967 do 36968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36971 $as_echo_n "checking for $ac_word... " >&6; } 36972 if ${ac_cv_prog_AR+:} false; then : 36973 $as_echo_n "(cached) " >&6 36974 else 36975 if test -n "$AR"; then 36976 ac_cv_prog_AR="$AR" # Let the user override the test. 36977 else 36978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36979 for as_dir in $PATH 36980 do 36981 IFS=$as_save_IFS 36982 test -z "$as_dir" && as_dir=. 36983 for ac_exec_ext in '' $ac_executable_extensions; do 36984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36985 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 36986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36987 break 2 36988 fi 36989 done 36990 done 36991 IFS=$as_save_IFS 36992 36993 fi 36994 fi 36995 AR=$ac_cv_prog_AR 36996 if test -n "$AR"; then 36997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 36998 $as_echo "$AR" >&6; } 36999 else 37000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37001 $as_echo "no" >&6; } 37002 fi 37003 37004 37005 test -n "$AR" && break 37006 done 37007 fi 37008 if test -z "$AR"; then 37009 ac_ct_AR=$AR 37010 for ac_prog in ar 37011 do 37012 # Extract the first word of "$ac_prog", so it can be a program name with args. 37013 set dummy $ac_prog; ac_word=$2 37014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37015 $as_echo_n "checking for $ac_word... " >&6; } 37016 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37017 $as_echo_n "(cached) " >&6 37018 else 37019 if test -n "$ac_ct_AR"; then 37020 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37021 else 37022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37023 for as_dir in $PATH 37024 do 37025 IFS=$as_save_IFS 37026 test -z "$as_dir" && as_dir=. 37027 for ac_exec_ext in '' $ac_executable_extensions; do 37028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37029 ac_cv_prog_ac_ct_AR="$ac_prog" 37030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37031 break 2 37032 fi 37033 done 37034 done 37035 IFS=$as_save_IFS 37036 37037 fi 37038 fi 37039 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37040 if test -n "$ac_ct_AR"; then 37041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37042 $as_echo "$ac_ct_AR" >&6; } 37043 else 37044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37045 $as_echo "no" >&6; } 37046 fi 37047 37048 37049 test -n "$ac_ct_AR" && break 37050 done 37051 37052 if test "x$ac_ct_AR" = x; then 37053 AR="" 37054 else 37055 case $cross_compiling:$ac_tool_warned in 37056 yes:) 37057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37059 ac_tool_warned=yes ;; 37060 esac 37061 AR=$ac_ct_AR 37062 fi 37063 fi 37064 37065 else 37066 # The variable is set, but is it from the command line or the environment? 37067 37068 # Try to remove the string !AR! from our list. 37069 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 37070 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37071 # If it failed, the variable was not from the command line. Ignore it, 37072 # but warn the user (except for BASH, which is always set by the calling BASH). 37073 if test "xAR" != xBASH; then 37074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 37075 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 37076 fi 37077 # Try to locate tool using the code snippet 37078 if test -n "$ac_tool_prefix"; then 37079 for ac_prog in ar 37080 do 37081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37084 $as_echo_n "checking for $ac_word... " >&6; } 37085 if ${ac_cv_prog_AR+:} false; then : 37086 $as_echo_n "(cached) " >&6 37087 else 37088 if test -n "$AR"; then 37089 ac_cv_prog_AR="$AR" # Let the user override the test. 37090 else 37091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37092 for as_dir in $PATH 37093 do 37094 IFS=$as_save_IFS 37095 test -z "$as_dir" && as_dir=. 37096 for ac_exec_ext in '' $ac_executable_extensions; do 37097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37098 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37100 break 2 37101 fi 37102 done 37103 done 37104 IFS=$as_save_IFS 37105 37106 fi 37107 fi 37108 AR=$ac_cv_prog_AR 37109 if test -n "$AR"; then 37110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37111 $as_echo "$AR" >&6; } 37112 else 37113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37114 $as_echo "no" >&6; } 37115 fi 37116 37117 37118 test -n "$AR" && break 37119 done 37120 fi 37121 if test -z "$AR"; then 37122 ac_ct_AR=$AR 37123 for ac_prog in ar 37124 do 37125 # Extract the first word of "$ac_prog", so it can be a program name with args. 37126 set dummy $ac_prog; ac_word=$2 37127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37128 $as_echo_n "checking for $ac_word... " >&6; } 37129 if ${ac_cv_prog_ac_ct_AR+:} false; then : 37130 $as_echo_n "(cached) " >&6 37131 else 37132 if test -n "$ac_ct_AR"; then 37133 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 37134 else 37135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37136 for as_dir in $PATH 37137 do 37138 IFS=$as_save_IFS 37139 test -z "$as_dir" && as_dir=. 37140 for ac_exec_ext in '' $ac_executable_extensions; do 37141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37142 ac_cv_prog_ac_ct_AR="$ac_prog" 37143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37144 break 2 37145 fi 37146 done 37147 done 37148 IFS=$as_save_IFS 37149 37150 fi 37151 fi 37152 ac_ct_AR=$ac_cv_prog_ac_ct_AR 37153 if test -n "$ac_ct_AR"; then 37154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 37155 $as_echo "$ac_ct_AR" >&6; } 37156 else 37157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37158 $as_echo "no" >&6; } 37159 fi 37160 37161 37162 test -n "$ac_ct_AR" && break 37163 done 37164 37165 if test "x$ac_ct_AR" = x; then 37166 AR="" 37167 else 37168 case $cross_compiling:$ac_tool_warned in 37169 yes:) 37170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37172 ac_tool_warned=yes ;; 37173 esac 37174 AR=$ac_ct_AR 37175 fi 37176 fi 37177 37178 else 37179 # If it succeeded, then it was overridden by the user. We will use it 37180 # for the tool. 37181 37182 # First remove it from the list of overridden variables, so we can test 37183 # for unknown variables in the end. 37184 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37185 37186 # Check if we try to supply an empty value 37187 if test "x$AR" = x; then 37188 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 37189 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 37190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37191 $as_echo_n "checking for AR... " >&6; } 37192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37193 $as_echo "disabled" >&6; } 37194 else 37195 # Check if the provided tool contains a complete path. 37196 tool_specified="$AR" 37197 tool_basename="${tool_specified##*/}" 37198 if test "x$tool_basename" = "x$tool_specified"; then 37199 # A command without a complete path is provided, search $PATH. 37200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 37201 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 37202 # Extract the first word of "$tool_basename", so it can be a program name with args. 37203 set dummy $tool_basename; ac_word=$2 37204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37205 $as_echo_n "checking for $ac_word... " >&6; } 37206 if ${ac_cv_path_AR+:} false; then : 37207 $as_echo_n "(cached) " >&6 37208 else 37209 case $AR in 37210 [\\/]* | ?:[\\/]*) 37211 ac_cv_path_AR="$AR" # Let the user override the test with a path. 37212 ;; 37213 *) 37214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37215 for as_dir in $PATH 37216 do 37217 IFS=$as_save_IFS 37218 test -z "$as_dir" && as_dir=. 37219 for ac_exec_ext in '' $ac_executable_extensions; do 37220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37221 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 37222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37223 break 2 37224 fi 37225 done 37226 done 37227 IFS=$as_save_IFS 37228 37229 ;; 37230 esac 37231 fi 37232 AR=$ac_cv_path_AR 37233 if test -n "$AR"; then 37234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37235 $as_echo "$AR" >&6; } 37236 else 37237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37238 $as_echo "no" >&6; } 37239 fi 37240 37241 37242 if test "x$AR" = x; then 37243 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37244 fi 37245 else 37246 # Otherwise we believe it is a complete path. Use it as it is. 37247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 37248 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 37249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 37250 $as_echo_n "checking for AR... " >&6; } 37251 if test ! -x "$tool_specified"; then 37252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37253 $as_echo "not found" >&6; } 37254 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 37255 fi 37256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37257 $as_echo "$tool_specified" >&6; } 37258 fi 37259 fi 37260 fi 37261 37262 fi 37263 37264 37265 fi 37266 37267 # Only process if variable expands to non-empty 37268 37269 if test "x$AR" != x; then 37270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37271 37272 # First separate the path from the arguments. This will split at the first 37273 # space. 37274 complete="$AR" 37275 path="${complete%% *}" 37276 tmp="$complete EOL" 37277 arguments="${tmp#* }" 37278 37279 # Input might be given as Windows format, start by converting to 37280 # unix format. 37281 new_path=`$CYGPATH -u "$path"` 37282 37283 # Now try to locate executable using which 37284 new_path=`$WHICH "$new_path" 2> /dev/null` 37285 # bat and cmd files are not always considered executable in cygwin causing which 37286 # to not find them 37287 if test "x$new_path" = x \ 37288 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37289 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37290 new_path=`$CYGPATH -u "$path"` 37291 fi 37292 if test "x$new_path" = x; then 37293 # Oops. Which didn't find the executable. 37294 # The splitting of arguments from the executable at a space might have been incorrect, 37295 # since paths with space are more likely in Windows. Give it another try with the whole 37296 # argument. 37297 path="$complete" 37298 arguments="EOL" 37299 new_path=`$CYGPATH -u "$path"` 37300 new_path=`$WHICH "$new_path" 2> /dev/null` 37301 # bat and cmd files are not always considered executable in cygwin causing which 37302 # to not find them 37303 if test "x$new_path" = x \ 37304 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37305 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37306 new_path=`$CYGPATH -u "$path"` 37307 fi 37308 if test "x$new_path" = x; then 37309 # It's still not found. Now this is an unrecoverable error. 37310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37311 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37312 has_space=`$ECHO "$complete" | $GREP " "` 37313 if test "x$has_space" != x; then 37314 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37315 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37316 fi 37317 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37318 fi 37319 fi 37320 37321 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37322 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37323 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37324 # "foo.exe" is OK but "foo" is an error. 37325 # 37326 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37327 # It is also a way to make sure we got the proper file name for the real test later on. 37328 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37329 if test "x$test_shortpath" = x; then 37330 # Short path failed, file does not exist as specified. 37331 # Try adding .exe or .cmd 37332 if test -f "${new_path}.exe"; then 37333 input_to_shortpath="${new_path}.exe" 37334 elif test -f "${new_path}.cmd"; then 37335 input_to_shortpath="${new_path}.cmd" 37336 else 37337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 37338 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 37339 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37340 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37341 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37342 fi 37343 else 37344 input_to_shortpath="$new_path" 37345 fi 37346 37347 # Call helper function which possibly converts this using DOS-style short mode. 37348 # If so, the updated path is stored in $new_path. 37349 new_path="$input_to_shortpath" 37350 37351 input_path="$input_to_shortpath" 37352 # Check if we need to convert this using DOS-style short mode. If the path 37353 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37354 # take no chances and rewrite it. 37355 # Note: m4 eats our [], so we need to use [ and ] instead. 37356 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37357 if test "x$has_forbidden_chars" != x; then 37358 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37359 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37360 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37361 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37362 # Going to short mode and back again did indeed matter. Since short mode is 37363 # case insensitive, let's make it lowercase to improve readability. 37364 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37365 # Now convert it back to Unix-style (cygpath) 37366 input_path=`$CYGPATH -u "$shortmode_path"` 37367 new_path="$input_path" 37368 fi 37369 fi 37370 37371 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37372 if test "x$test_cygdrive_prefix" = x; then 37373 # As a simple fix, exclude /usr/bin since it's not a real path. 37374 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37375 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37376 # a path prefixed by /cygdrive for fixpath to work. 37377 new_path="$CYGWIN_ROOT_PATH$input_path" 37378 fi 37379 fi 37380 37381 # remove trailing .exe if any 37382 new_path="${new_path/%.exe/}" 37383 37384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37385 37386 # First separate the path from the arguments. This will split at the first 37387 # space. 37388 complete="$AR" 37389 path="${complete%% *}" 37390 tmp="$complete EOL" 37391 arguments="${tmp#* }" 37392 37393 # Input might be given as Windows format, start by converting to 37394 # unix format. 37395 new_path="$path" 37396 37397 windows_path="$new_path" 37398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37399 unix_path=`$CYGPATH -u "$windows_path"` 37400 new_path="$unix_path" 37401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37402 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37403 new_path="$unix_path" 37404 fi 37405 37406 37407 # Now try to locate executable using which 37408 new_path=`$WHICH "$new_path" 2> /dev/null` 37409 37410 if test "x$new_path" = x; then 37411 # Oops. Which didn't find the executable. 37412 # The splitting of arguments from the executable at a space might have been incorrect, 37413 # since paths with space are more likely in Windows. Give it another try with the whole 37414 # argument. 37415 path="$complete" 37416 arguments="EOL" 37417 new_path="$path" 37418 37419 windows_path="$new_path" 37420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37421 unix_path=`$CYGPATH -u "$windows_path"` 37422 new_path="$unix_path" 37423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37424 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37425 new_path="$unix_path" 37426 fi 37427 37428 37429 new_path=`$WHICH "$new_path" 2> /dev/null` 37430 # bat and cmd files are not always considered executable in MSYS causing which 37431 # to not find them 37432 if test "x$new_path" = x \ 37433 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37434 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37435 new_path="$path" 37436 37437 windows_path="$new_path" 37438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37439 unix_path=`$CYGPATH -u "$windows_path"` 37440 new_path="$unix_path" 37441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37442 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37443 new_path="$unix_path" 37444 fi 37445 37446 fi 37447 37448 if test "x$new_path" = x; then 37449 # It's still not found. Now this is an unrecoverable error. 37450 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37451 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37452 has_space=`$ECHO "$complete" | $GREP " "` 37453 if test "x$has_space" != x; then 37454 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37455 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37456 fi 37457 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37458 fi 37459 fi 37460 37461 # Now new_path has a complete unix path to the binary 37462 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37463 # Keep paths in /bin as-is, but remove trailing .exe if any 37464 new_path="${new_path/%.exe/}" 37465 # Do not save /bin paths to all_fixpath_prefixes! 37466 else 37467 # Not in mixed or Windows style, start by that. 37468 new_path=`cmd //c echo $new_path` 37469 37470 input_path="$new_path" 37471 # Check if we need to convert this using DOS-style short mode. If the path 37472 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37473 # take no chances and rewrite it. 37474 # Note: m4 eats our [], so we need to use [ and ] instead. 37475 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37476 if test "x$has_forbidden_chars" != x; then 37477 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37478 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37479 fi 37480 37481 # Output is in $new_path 37482 37483 windows_path="$new_path" 37484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37485 unix_path=`$CYGPATH -u "$windows_path"` 37486 new_path="$unix_path" 37487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37489 new_path="$unix_path" 37490 fi 37491 37492 # remove trailing .exe if any 37493 new_path="${new_path/%.exe/}" 37494 37495 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37496 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37497 fi 37498 37499 else 37500 # We're on a unix platform. Hooray! :) 37501 # First separate the path from the arguments. This will split at the first 37502 # space. 37503 complete="$AR" 37504 path="${complete%% *}" 37505 tmp="$complete EOL" 37506 arguments="${tmp#* }" 37507 37508 # Cannot rely on the command "which" here since it doesn't always work. 37509 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37510 if test -z "$is_absolute_path"; then 37511 # Path to executable is not absolute. Find it. 37512 IFS_save="$IFS" 37513 IFS=: 37514 for p in $PATH; do 37515 if test -f "$p/$path" && test -x "$p/$path"; then 37516 new_path="$p/$path" 37517 break 37518 fi 37519 done 37520 IFS="$IFS_save" 37521 else 37522 # This is an absolute path, we can use it without further modifications. 37523 new_path="$path" 37524 fi 37525 37526 if test "x$new_path" = x; then 37527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 37528 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 37529 has_space=`$ECHO "$complete" | $GREP " "` 37530 if test "x$has_space" != x; then 37531 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37532 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37533 fi 37534 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 37535 fi 37536 fi 37537 37538 # Now join together the path and the arguments once again 37539 if test "x$arguments" != xEOL; then 37540 new_complete="$new_path ${arguments% *}" 37541 else 37542 new_complete="$new_path" 37543 fi 37544 37545 if test "x$complete" != "x$new_complete"; then 37546 AR="$new_complete" 37547 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 37548 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 37549 fi 37550 fi 37551 37552 37553 37554 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 37555 37556 37557 # Publish this variable in the help. 37558 37559 37560 if [ -z "${LIPO+x}" ]; then 37561 # The variable is not set by user, try to locate tool using the code snippet 37562 for ac_prog in lipo 37563 do 37564 # Extract the first word of "$ac_prog", so it can be a program name with args. 37565 set dummy $ac_prog; ac_word=$2 37566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37567 $as_echo_n "checking for $ac_word... " >&6; } 37568 if ${ac_cv_path_LIPO+:} false; then : 37569 $as_echo_n "(cached) " >&6 37570 else 37571 case $LIPO in 37572 [\\/]* | ?:[\\/]*) 37573 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 37574 ;; 37575 *) 37576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37577 for as_dir in $PATH 37578 do 37579 IFS=$as_save_IFS 37580 test -z "$as_dir" && as_dir=. 37581 for ac_exec_ext in '' $ac_executable_extensions; do 37582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37583 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 37584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37585 break 2 37586 fi 37587 done 37588 done 37589 IFS=$as_save_IFS 37590 37591 ;; 37592 esac 37593 fi 37594 LIPO=$ac_cv_path_LIPO 37595 if test -n "$LIPO"; then 37596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 37597 $as_echo "$LIPO" >&6; } 37598 else 37599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37600 $as_echo "no" >&6; } 37601 fi 37602 37603 37604 test -n "$LIPO" && break 37605 done 37606 37607 else 37608 # The variable is set, but is it from the command line or the environment? 37609 37610 # Try to remove the string !LIPO! from our list. 37611 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 37612 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37613 # If it failed, the variable was not from the command line. Ignore it, 37614 # but warn the user (except for BASH, which is always set by the calling BASH). 37615 if test "xLIPO" != xBASH; then 37616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 37617 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 37618 fi 37619 # Try to locate tool using the code snippet 37620 for ac_prog in lipo 37621 do 37622 # Extract the first word of "$ac_prog", so it can be a program name with args. 37623 set dummy $ac_prog; ac_word=$2 37624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37625 $as_echo_n "checking for $ac_word... " >&6; } 37626 if ${ac_cv_path_LIPO+:} false; then : 37627 $as_echo_n "(cached) " >&6 37628 else 37629 case $LIPO in 37630 [\\/]* | ?:[\\/]*) 37631 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 37632 ;; 37633 *) 37634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37635 for as_dir in $PATH 37636 do 37637 IFS=$as_save_IFS 37638 test -z "$as_dir" && as_dir=. 37639 for ac_exec_ext in '' $ac_executable_extensions; do 37640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37641 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 37642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37643 break 2 37644 fi 37645 done 37646 done 37647 IFS=$as_save_IFS 37648 37649 ;; 37650 esac 37651 fi 37652 LIPO=$ac_cv_path_LIPO 37653 if test -n "$LIPO"; then 37654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 37655 $as_echo "$LIPO" >&6; } 37656 else 37657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37658 $as_echo "no" >&6; } 37659 fi 37660 37661 37662 test -n "$LIPO" && break 37663 done 37664 37665 else 37666 # If it succeeded, then it was overridden by the user. We will use it 37667 # for the tool. 37668 37669 # First remove it from the list of overridden variables, so we can test 37670 # for unknown variables in the end. 37671 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37672 37673 # Check if we try to supply an empty value 37674 if test "x$LIPO" = x; then 37675 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 37676 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 37677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 37678 $as_echo_n "checking for LIPO... " >&6; } 37679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37680 $as_echo "disabled" >&6; } 37681 else 37682 # Check if the provided tool contains a complete path. 37683 tool_specified="$LIPO" 37684 tool_basename="${tool_specified##*/}" 37685 if test "x$tool_basename" = "x$tool_specified"; then 37686 # A command without a complete path is provided, search $PATH. 37687 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 37688 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 37689 # Extract the first word of "$tool_basename", so it can be a program name with args. 37690 set dummy $tool_basename; ac_word=$2 37691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37692 $as_echo_n "checking for $ac_word... " >&6; } 37693 if ${ac_cv_path_LIPO+:} false; then : 37694 $as_echo_n "(cached) " >&6 37695 else 37696 case $LIPO in 37697 [\\/]* | ?:[\\/]*) 37698 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 37699 ;; 37700 *) 37701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37702 for as_dir in $PATH 37703 do 37704 IFS=$as_save_IFS 37705 test -z "$as_dir" && as_dir=. 37706 for ac_exec_ext in '' $ac_executable_extensions; do 37707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37708 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 37709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37710 break 2 37711 fi 37712 done 37713 done 37714 IFS=$as_save_IFS 37715 37716 ;; 37717 esac 37718 fi 37719 LIPO=$ac_cv_path_LIPO 37720 if test -n "$LIPO"; then 37721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 37722 $as_echo "$LIPO" >&6; } 37723 else 37724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37725 $as_echo "no" >&6; } 37726 fi 37727 37728 37729 if test "x$LIPO" = x; then 37730 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37731 fi 37732 else 37733 # Otherwise we believe it is a complete path. Use it as it is. 37734 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 37735 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 37736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 37737 $as_echo_n "checking for LIPO... " >&6; } 37738 if test ! -x "$tool_specified"; then 37739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37740 $as_echo "not found" >&6; } 37741 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 37742 fi 37743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37744 $as_echo "$tool_specified" >&6; } 37745 fi 37746 fi 37747 fi 37748 37749 fi 37750 37751 37752 37753 # Only process if variable expands to non-empty 37754 37755 if test "x$LIPO" != x; then 37756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37757 37758 # First separate the path from the arguments. This will split at the first 37759 # space. 37760 complete="$LIPO" 37761 path="${complete%% *}" 37762 tmp="$complete EOL" 37763 arguments="${tmp#* }" 37764 37765 # Input might be given as Windows format, start by converting to 37766 # unix format. 37767 new_path=`$CYGPATH -u "$path"` 37768 37769 # Now try to locate executable using which 37770 new_path=`$WHICH "$new_path" 2> /dev/null` 37771 # bat and cmd files are not always considered executable in cygwin causing which 37772 # to not find them 37773 if test "x$new_path" = x \ 37774 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37775 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37776 new_path=`$CYGPATH -u "$path"` 37777 fi 37778 if test "x$new_path" = x; then 37779 # Oops. Which didn't find the executable. 37780 # The splitting of arguments from the executable at a space might have been incorrect, 37781 # since paths with space are more likely in Windows. Give it another try with the whole 37782 # argument. 37783 path="$complete" 37784 arguments="EOL" 37785 new_path=`$CYGPATH -u "$path"` 37786 new_path=`$WHICH "$new_path" 2> /dev/null` 37787 # bat and cmd files are not always considered executable in cygwin causing which 37788 # to not find them 37789 if test "x$new_path" = x \ 37790 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37791 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37792 new_path=`$CYGPATH -u "$path"` 37793 fi 37794 if test "x$new_path" = x; then 37795 # It's still not found. Now this is an unrecoverable error. 37796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 37797 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 37798 has_space=`$ECHO "$complete" | $GREP " "` 37799 if test "x$has_space" != x; then 37800 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37801 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37802 fi 37803 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 37804 fi 37805 fi 37806 37807 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37808 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37809 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37810 # "foo.exe" is OK but "foo" is an error. 37811 # 37812 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37813 # It is also a way to make sure we got the proper file name for the real test later on. 37814 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37815 if test "x$test_shortpath" = x; then 37816 # Short path failed, file does not exist as specified. 37817 # Try adding .exe or .cmd 37818 if test -f "${new_path}.exe"; then 37819 input_to_shortpath="${new_path}.exe" 37820 elif test -f "${new_path}.cmd"; then 37821 input_to_shortpath="${new_path}.cmd" 37822 else 37823 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 37824 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 37825 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37826 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37827 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 37828 fi 37829 else 37830 input_to_shortpath="$new_path" 37831 fi 37832 37833 # Call helper function which possibly converts this using DOS-style short mode. 37834 # If so, the updated path is stored in $new_path. 37835 new_path="$input_to_shortpath" 37836 37837 input_path="$input_to_shortpath" 37838 # Check if we need to convert this using DOS-style short mode. If the path 37839 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37840 # take no chances and rewrite it. 37841 # Note: m4 eats our [], so we need to use [ and ] instead. 37842 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37843 if test "x$has_forbidden_chars" != x; then 37844 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37845 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37846 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37847 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37848 # Going to short mode and back again did indeed matter. Since short mode is 37849 # case insensitive, let's make it lowercase to improve readability. 37850 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37851 # Now convert it back to Unix-style (cygpath) 37852 input_path=`$CYGPATH -u "$shortmode_path"` 37853 new_path="$input_path" 37854 fi 37855 fi 37856 37857 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37858 if test "x$test_cygdrive_prefix" = x; then 37859 # As a simple fix, exclude /usr/bin since it's not a real path. 37860 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37861 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37862 # a path prefixed by /cygdrive for fixpath to work. 37863 new_path="$CYGWIN_ROOT_PATH$input_path" 37864 fi 37865 fi 37866 37867 # remove trailing .exe if any 37868 new_path="${new_path/%.exe/}" 37869 37870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37871 37872 # First separate the path from the arguments. This will split at the first 37873 # space. 37874 complete="$LIPO" 37875 path="${complete%% *}" 37876 tmp="$complete EOL" 37877 arguments="${tmp#* }" 37878 37879 # Input might be given as Windows format, start by converting to 37880 # unix format. 37881 new_path="$path" 37882 37883 windows_path="$new_path" 37884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37885 unix_path=`$CYGPATH -u "$windows_path"` 37886 new_path="$unix_path" 37887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37888 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37889 new_path="$unix_path" 37890 fi 37891 37892 37893 # Now try to locate executable using which 37894 new_path=`$WHICH "$new_path" 2> /dev/null` 37895 37896 if test "x$new_path" = x; then 37897 # Oops. Which didn't find the executable. 37898 # The splitting of arguments from the executable at a space might have been incorrect, 37899 # since paths with space are more likely in Windows. Give it another try with the whole 37900 # argument. 37901 path="$complete" 37902 arguments="EOL" 37903 new_path="$path" 37904 37905 windows_path="$new_path" 37906 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37907 unix_path=`$CYGPATH -u "$windows_path"` 37908 new_path="$unix_path" 37909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37910 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37911 new_path="$unix_path" 37912 fi 37913 37914 37915 new_path=`$WHICH "$new_path" 2> /dev/null` 37916 # bat and cmd files are not always considered executable in MSYS causing which 37917 # to not find them 37918 if test "x$new_path" = x \ 37919 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37920 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37921 new_path="$path" 37922 37923 windows_path="$new_path" 37924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37925 unix_path=`$CYGPATH -u "$windows_path"` 37926 new_path="$unix_path" 37927 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37928 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37929 new_path="$unix_path" 37930 fi 37931 37932 fi 37933 37934 if test "x$new_path" = x; then 37935 # It's still not found. Now this is an unrecoverable error. 37936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 37937 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 37938 has_space=`$ECHO "$complete" | $GREP " "` 37939 if test "x$has_space" != x; then 37940 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37941 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37942 fi 37943 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 37944 fi 37945 fi 37946 37947 # Now new_path has a complete unix path to the binary 37948 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37949 # Keep paths in /bin as-is, but remove trailing .exe if any 37950 new_path="${new_path/%.exe/}" 37951 # Do not save /bin paths to all_fixpath_prefixes! 37952 else 37953 # Not in mixed or Windows style, start by that. 37954 new_path=`cmd //c echo $new_path` 37955 37956 input_path="$new_path" 37957 # Check if we need to convert this using DOS-style short mode. If the path 37958 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37959 # take no chances and rewrite it. 37960 # Note: m4 eats our [], so we need to use [ and ] instead. 37961 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37962 if test "x$has_forbidden_chars" != x; then 37963 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37964 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37965 fi 37966 37967 # Output is in $new_path 37968 37969 windows_path="$new_path" 37970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37971 unix_path=`$CYGPATH -u "$windows_path"` 37972 new_path="$unix_path" 37973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37975 new_path="$unix_path" 37976 fi 37977 37978 # remove trailing .exe if any 37979 new_path="${new_path/%.exe/}" 37980 37981 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37982 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37983 fi 37984 37985 else 37986 # We're on a unix platform. Hooray! :) 37987 # First separate the path from the arguments. This will split at the first 37988 # space. 37989 complete="$LIPO" 37990 path="${complete%% *}" 37991 tmp="$complete EOL" 37992 arguments="${tmp#* }" 37993 37994 # Cannot rely on the command "which" here since it doesn't always work. 37995 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37996 if test -z "$is_absolute_path"; then 37997 # Path to executable is not absolute. Find it. 37998 IFS_save="$IFS" 37999 IFS=: 38000 for p in $PATH; do 38001 if test -f "$p/$path" && test -x "$p/$path"; then 38002 new_path="$p/$path" 38003 break 38004 fi 38005 done 38006 IFS="$IFS_save" 38007 else 38008 # This is an absolute path, we can use it without further modifications. 38009 new_path="$path" 38010 fi 38011 38012 if test "x$new_path" = x; then 38013 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 38014 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 38015 has_space=`$ECHO "$complete" | $GREP " "` 38016 if test "x$has_space" != x; then 38017 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38018 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38019 fi 38020 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 38021 fi 38022 fi 38023 38024 # Now join together the path and the arguments once again 38025 if test "x$arguments" != xEOL; then 38026 new_complete="$new_path ${arguments% *}" 38027 else 38028 new_complete="$new_path" 38029 fi 38030 38031 if test "x$complete" != "x$new_complete"; then 38032 LIPO="$new_complete" 38033 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 38034 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 38035 fi 38036 fi 38037 38038 fi 38039 38040 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38041 # Extract the first word of "mt", so it can be a program name with args. 38042 set dummy mt; ac_word=$2 38043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38044 $as_echo_n "checking for $ac_word... " >&6; } 38045 if ${ac_cv_prog_MT+:} false; then : 38046 $as_echo_n "(cached) " >&6 38047 else 38048 if test -n "$MT"; then 38049 ac_cv_prog_MT="$MT" # Let the user override the test. 38050 else 38051 ac_prog_rejected=no 38052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38053 for as_dir in $PATH 38054 do 38055 IFS=$as_save_IFS 38056 test -z "$as_dir" && as_dir=. 38057 for ac_exec_ext in '' $ac_executable_extensions; do 38058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38059 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 38060 ac_prog_rejected=yes 38061 continue 38062 fi 38063 ac_cv_prog_MT="mt" 38064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38065 break 2 38066 fi 38067 done 38068 done 38069 IFS=$as_save_IFS 38070 38071 if test $ac_prog_rejected = yes; then 38072 # We found a bogon in the path, so make sure we never use it. 38073 set dummy $ac_cv_prog_MT 38074 shift 38075 if test $# != 0; then 38076 # We chose a different compiler from the bogus one. 38077 # However, it has the same basename, so the bogon will be chosen 38078 # first if we set MT to just the basename; use the full file name. 38079 shift 38080 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 38081 fi 38082 fi 38083 fi 38084 fi 38085 MT=$ac_cv_prog_MT 38086 if test -n "$MT"; then 38087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 38088 $as_echo "$MT" >&6; } 38089 else 38090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38091 $as_echo "no" >&6; } 38092 fi 38093 38094 38095 38096 # Only process if variable expands to non-empty 38097 38098 if test "x$MT" != x; then 38099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38100 38101 # First separate the path from the arguments. This will split at the first 38102 # space. 38103 complete="$MT" 38104 path="${complete%% *}" 38105 tmp="$complete EOL" 38106 arguments="${tmp#* }" 38107 38108 # Input might be given as Windows format, start by converting to 38109 # unix format. 38110 new_path=`$CYGPATH -u "$path"` 38111 38112 # Now try to locate executable using which 38113 new_path=`$WHICH "$new_path" 2> /dev/null` 38114 # bat and cmd files are not always considered executable in cygwin causing which 38115 # to not find them 38116 if test "x$new_path" = x \ 38117 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38118 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38119 new_path=`$CYGPATH -u "$path"` 38120 fi 38121 if test "x$new_path" = x; then 38122 # Oops. Which didn't find the executable. 38123 # The splitting of arguments from the executable at a space might have been incorrect, 38124 # since paths with space are more likely in Windows. Give it another try with the whole 38125 # argument. 38126 path="$complete" 38127 arguments="EOL" 38128 new_path=`$CYGPATH -u "$path"` 38129 new_path=`$WHICH "$new_path" 2> /dev/null` 38130 # bat and cmd files are not always considered executable in cygwin causing which 38131 # to not find them 38132 if test "x$new_path" = x \ 38133 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38134 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38135 new_path=`$CYGPATH -u "$path"` 38136 fi 38137 if test "x$new_path" = x; then 38138 # It's still not found. Now this is an unrecoverable error. 38139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38140 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38141 has_space=`$ECHO "$complete" | $GREP " "` 38142 if test "x$has_space" != x; then 38143 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38144 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38145 fi 38146 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38147 fi 38148 fi 38149 38150 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38151 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38152 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38153 # "foo.exe" is OK but "foo" is an error. 38154 # 38155 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38156 # It is also a way to make sure we got the proper file name for the real test later on. 38157 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38158 if test "x$test_shortpath" = x; then 38159 # Short path failed, file does not exist as specified. 38160 # Try adding .exe or .cmd 38161 if test -f "${new_path}.exe"; then 38162 input_to_shortpath="${new_path}.exe" 38163 elif test -f "${new_path}.cmd"; then 38164 input_to_shortpath="${new_path}.cmd" 38165 else 38166 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 38167 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 38168 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38169 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38170 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38171 fi 38172 else 38173 input_to_shortpath="$new_path" 38174 fi 38175 38176 # Call helper function which possibly converts this using DOS-style short mode. 38177 # If so, the updated path is stored in $new_path. 38178 new_path="$input_to_shortpath" 38179 38180 input_path="$input_to_shortpath" 38181 # Check if we need to convert this using DOS-style short mode. If the path 38182 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38183 # take no chances and rewrite it. 38184 # Note: m4 eats our [], so we need to use [ and ] instead. 38185 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38186 if test "x$has_forbidden_chars" != x; then 38187 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38188 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38189 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38190 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38191 # Going to short mode and back again did indeed matter. Since short mode is 38192 # case insensitive, let's make it lowercase to improve readability. 38193 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38194 # Now convert it back to Unix-style (cygpath) 38195 input_path=`$CYGPATH -u "$shortmode_path"` 38196 new_path="$input_path" 38197 fi 38198 fi 38199 38200 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38201 if test "x$test_cygdrive_prefix" = x; then 38202 # As a simple fix, exclude /usr/bin since it's not a real path. 38203 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38204 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38205 # a path prefixed by /cygdrive for fixpath to work. 38206 new_path="$CYGWIN_ROOT_PATH$input_path" 38207 fi 38208 fi 38209 38210 # remove trailing .exe if any 38211 new_path="${new_path/%.exe/}" 38212 38213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38214 38215 # First separate the path from the arguments. This will split at the first 38216 # space. 38217 complete="$MT" 38218 path="${complete%% *}" 38219 tmp="$complete EOL" 38220 arguments="${tmp#* }" 38221 38222 # Input might be given as Windows format, start by converting to 38223 # unix format. 38224 new_path="$path" 38225 38226 windows_path="$new_path" 38227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38228 unix_path=`$CYGPATH -u "$windows_path"` 38229 new_path="$unix_path" 38230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38231 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38232 new_path="$unix_path" 38233 fi 38234 38235 38236 # Now try to locate executable using which 38237 new_path=`$WHICH "$new_path" 2> /dev/null` 38238 38239 if test "x$new_path" = x; then 38240 # Oops. Which didn't find the executable. 38241 # The splitting of arguments from the executable at a space might have been incorrect, 38242 # since paths with space are more likely in Windows. Give it another try with the whole 38243 # argument. 38244 path="$complete" 38245 arguments="EOL" 38246 new_path="$path" 38247 38248 windows_path="$new_path" 38249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38250 unix_path=`$CYGPATH -u "$windows_path"` 38251 new_path="$unix_path" 38252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38254 new_path="$unix_path" 38255 fi 38256 38257 38258 new_path=`$WHICH "$new_path" 2> /dev/null` 38259 # bat and cmd files are not always considered executable in MSYS causing which 38260 # to not find them 38261 if test "x$new_path" = x \ 38262 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38263 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38264 new_path="$path" 38265 38266 windows_path="$new_path" 38267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38268 unix_path=`$CYGPATH -u "$windows_path"` 38269 new_path="$unix_path" 38270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38272 new_path="$unix_path" 38273 fi 38274 38275 fi 38276 38277 if test "x$new_path" = x; then 38278 # It's still not found. Now this is an unrecoverable error. 38279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38280 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38281 has_space=`$ECHO "$complete" | $GREP " "` 38282 if test "x$has_space" != x; then 38283 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38284 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38285 fi 38286 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38287 fi 38288 fi 38289 38290 # Now new_path has a complete unix path to the binary 38291 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38292 # Keep paths in /bin as-is, but remove trailing .exe if any 38293 new_path="${new_path/%.exe/}" 38294 # Do not save /bin paths to all_fixpath_prefixes! 38295 else 38296 # Not in mixed or Windows style, start by that. 38297 new_path=`cmd //c echo $new_path` 38298 38299 input_path="$new_path" 38300 # Check if we need to convert this using DOS-style short mode. If the path 38301 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38302 # take no chances and rewrite it. 38303 # Note: m4 eats our [], so we need to use [ and ] instead. 38304 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38305 if test "x$has_forbidden_chars" != x; then 38306 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38307 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38308 fi 38309 38310 # Output is in $new_path 38311 38312 windows_path="$new_path" 38313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38314 unix_path=`$CYGPATH -u "$windows_path"` 38315 new_path="$unix_path" 38316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38318 new_path="$unix_path" 38319 fi 38320 38321 # remove trailing .exe if any 38322 new_path="${new_path/%.exe/}" 38323 38324 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38325 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38326 fi 38327 38328 else 38329 # We're on a unix platform. Hooray! :) 38330 # First separate the path from the arguments. This will split at the first 38331 # space. 38332 complete="$MT" 38333 path="${complete%% *}" 38334 tmp="$complete EOL" 38335 arguments="${tmp#* }" 38336 38337 # Cannot rely on the command "which" here since it doesn't always work. 38338 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38339 if test -z "$is_absolute_path"; then 38340 # Path to executable is not absolute. Find it. 38341 IFS_save="$IFS" 38342 IFS=: 38343 for p in $PATH; do 38344 if test -f "$p/$path" && test -x "$p/$path"; then 38345 new_path="$p/$path" 38346 break 38347 fi 38348 done 38349 IFS="$IFS_save" 38350 else 38351 # This is an absolute path, we can use it without further modifications. 38352 new_path="$path" 38353 fi 38354 38355 if test "x$new_path" = x; then 38356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 38357 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 38358 has_space=`$ECHO "$complete" | $GREP " "` 38359 if test "x$has_space" != x; then 38360 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38361 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38362 fi 38363 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 38364 fi 38365 fi 38366 38367 # Now join together the path and the arguments once again 38368 if test "x$arguments" != xEOL; then 38369 new_complete="$new_path ${arguments% *}" 38370 else 38371 new_complete="$new_path" 38372 fi 38373 38374 if test "x$complete" != "x$new_complete"; then 38375 MT="$new_complete" 38376 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 38377 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 38378 fi 38379 fi 38380 38381 # Setup the resource compiler (RC) 38382 # Extract the first word of "rc", so it can be a program name with args. 38383 set dummy rc; ac_word=$2 38384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38385 $as_echo_n "checking for $ac_word... " >&6; } 38386 if ${ac_cv_prog_RC+:} false; then : 38387 $as_echo_n "(cached) " >&6 38388 else 38389 if test -n "$RC"; then 38390 ac_cv_prog_RC="$RC" # Let the user override the test. 38391 else 38392 ac_prog_rejected=no 38393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38394 for as_dir in $PATH 38395 do 38396 IFS=$as_save_IFS 38397 test -z "$as_dir" && as_dir=. 38398 for ac_exec_ext in '' $ac_executable_extensions; do 38399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38400 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 38401 ac_prog_rejected=yes 38402 continue 38403 fi 38404 ac_cv_prog_RC="rc" 38405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38406 break 2 38407 fi 38408 done 38409 done 38410 IFS=$as_save_IFS 38411 38412 if test $ac_prog_rejected = yes; then 38413 # We found a bogon in the path, so make sure we never use it. 38414 set dummy $ac_cv_prog_RC 38415 shift 38416 if test $# != 0; then 38417 # We chose a different compiler from the bogus one. 38418 # However, it has the same basename, so the bogon will be chosen 38419 # first if we set RC to just the basename; use the full file name. 38420 shift 38421 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 38422 fi 38423 fi 38424 fi 38425 fi 38426 RC=$ac_cv_prog_RC 38427 if test -n "$RC"; then 38428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 38429 $as_echo "$RC" >&6; } 38430 else 38431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38432 $as_echo "no" >&6; } 38433 fi 38434 38435 38436 38437 # Only process if variable expands to non-empty 38438 38439 if test "x$RC" != x; then 38440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38441 38442 # First separate the path from the arguments. This will split at the first 38443 # space. 38444 complete="$RC" 38445 path="${complete%% *}" 38446 tmp="$complete EOL" 38447 arguments="${tmp#* }" 38448 38449 # Input might be given as Windows format, start by converting to 38450 # unix format. 38451 new_path=`$CYGPATH -u "$path"` 38452 38453 # Now try to locate executable using which 38454 new_path=`$WHICH "$new_path" 2> /dev/null` 38455 # bat and cmd files are not always considered executable in cygwin causing which 38456 # to not find them 38457 if test "x$new_path" = x \ 38458 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38459 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38460 new_path=`$CYGPATH -u "$path"` 38461 fi 38462 if test "x$new_path" = x; then 38463 # Oops. Which didn't find the executable. 38464 # The splitting of arguments from the executable at a space might have been incorrect, 38465 # since paths with space are more likely in Windows. Give it another try with the whole 38466 # argument. 38467 path="$complete" 38468 arguments="EOL" 38469 new_path=`$CYGPATH -u "$path"` 38470 new_path=`$WHICH "$new_path" 2> /dev/null` 38471 # bat and cmd files are not always considered executable in cygwin causing which 38472 # to not find them 38473 if test "x$new_path" = x \ 38474 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38475 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38476 new_path=`$CYGPATH -u "$path"` 38477 fi 38478 if test "x$new_path" = x; then 38479 # It's still not found. Now this is an unrecoverable error. 38480 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 38481 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 38482 has_space=`$ECHO "$complete" | $GREP " "` 38483 if test "x$has_space" != x; then 38484 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38485 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38486 fi 38487 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38488 fi 38489 fi 38490 38491 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38492 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38493 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38494 # "foo.exe" is OK but "foo" is an error. 38495 # 38496 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38497 # It is also a way to make sure we got the proper file name for the real test later on. 38498 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38499 if test "x$test_shortpath" = x; then 38500 # Short path failed, file does not exist as specified. 38501 # Try adding .exe or .cmd 38502 if test -f "${new_path}.exe"; then 38503 input_to_shortpath="${new_path}.exe" 38504 elif test -f "${new_path}.cmd"; then 38505 input_to_shortpath="${new_path}.cmd" 38506 else 38507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 38508 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 38509 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38510 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38511 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38512 fi 38513 else 38514 input_to_shortpath="$new_path" 38515 fi 38516 38517 # Call helper function which possibly converts this using DOS-style short mode. 38518 # If so, the updated path is stored in $new_path. 38519 new_path="$input_to_shortpath" 38520 38521 input_path="$input_to_shortpath" 38522 # Check if we need to convert this using DOS-style short mode. If the path 38523 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38524 # take no chances and rewrite it. 38525 # Note: m4 eats our [], so we need to use [ and ] instead. 38526 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38527 if test "x$has_forbidden_chars" != x; then 38528 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38529 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38530 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38531 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38532 # Going to short mode and back again did indeed matter. Since short mode is 38533 # case insensitive, let's make it lowercase to improve readability. 38534 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38535 # Now convert it back to Unix-style (cygpath) 38536 input_path=`$CYGPATH -u "$shortmode_path"` 38537 new_path="$input_path" 38538 fi 38539 fi 38540 38541 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38542 if test "x$test_cygdrive_prefix" = x; then 38543 # As a simple fix, exclude /usr/bin since it's not a real path. 38544 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38545 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38546 # a path prefixed by /cygdrive for fixpath to work. 38547 new_path="$CYGWIN_ROOT_PATH$input_path" 38548 fi 38549 fi 38550 38551 # remove trailing .exe if any 38552 new_path="${new_path/%.exe/}" 38553 38554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38555 38556 # First separate the path from the arguments. This will split at the first 38557 # space. 38558 complete="$RC" 38559 path="${complete%% *}" 38560 tmp="$complete EOL" 38561 arguments="${tmp#* }" 38562 38563 # Input might be given as Windows format, start by converting to 38564 # unix format. 38565 new_path="$path" 38566 38567 windows_path="$new_path" 38568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38569 unix_path=`$CYGPATH -u "$windows_path"` 38570 new_path="$unix_path" 38571 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38572 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38573 new_path="$unix_path" 38574 fi 38575 38576 38577 # Now try to locate executable using which 38578 new_path=`$WHICH "$new_path" 2> /dev/null` 38579 38580 if test "x$new_path" = x; then 38581 # Oops. Which didn't find the executable. 38582 # The splitting of arguments from the executable at a space might have been incorrect, 38583 # since paths with space are more likely in Windows. Give it another try with the whole 38584 # argument. 38585 path="$complete" 38586 arguments="EOL" 38587 new_path="$path" 38588 38589 windows_path="$new_path" 38590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38591 unix_path=`$CYGPATH -u "$windows_path"` 38592 new_path="$unix_path" 38593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38594 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38595 new_path="$unix_path" 38596 fi 38597 38598 38599 new_path=`$WHICH "$new_path" 2> /dev/null` 38600 # bat and cmd files are not always considered executable in MSYS causing which 38601 # to not find them 38602 if test "x$new_path" = x \ 38603 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38604 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38605 new_path="$path" 38606 38607 windows_path="$new_path" 38608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38609 unix_path=`$CYGPATH -u "$windows_path"` 38610 new_path="$unix_path" 38611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38613 new_path="$unix_path" 38614 fi 38615 38616 fi 38617 38618 if test "x$new_path" = x; then 38619 # It's still not found. Now this is an unrecoverable error. 38620 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 38621 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 38622 has_space=`$ECHO "$complete" | $GREP " "` 38623 if test "x$has_space" != x; then 38624 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38625 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38626 fi 38627 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38628 fi 38629 fi 38630 38631 # Now new_path has a complete unix path to the binary 38632 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38633 # Keep paths in /bin as-is, but remove trailing .exe if any 38634 new_path="${new_path/%.exe/}" 38635 # Do not save /bin paths to all_fixpath_prefixes! 38636 else 38637 # Not in mixed or Windows style, start by that. 38638 new_path=`cmd //c echo $new_path` 38639 38640 input_path="$new_path" 38641 # Check if we need to convert this using DOS-style short mode. If the path 38642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38643 # take no chances and rewrite it. 38644 # Note: m4 eats our [], so we need to use [ and ] instead. 38645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38646 if test "x$has_forbidden_chars" != x; then 38647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38648 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38649 fi 38650 38651 # Output is in $new_path 38652 38653 windows_path="$new_path" 38654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38655 unix_path=`$CYGPATH -u "$windows_path"` 38656 new_path="$unix_path" 38657 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38658 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38659 new_path="$unix_path" 38660 fi 38661 38662 # remove trailing .exe if any 38663 new_path="${new_path/%.exe/}" 38664 38665 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38666 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38667 fi 38668 38669 else 38670 # We're on a unix platform. Hooray! :) 38671 # First separate the path from the arguments. This will split at the first 38672 # space. 38673 complete="$RC" 38674 path="${complete%% *}" 38675 tmp="$complete EOL" 38676 arguments="${tmp#* }" 38677 38678 # Cannot rely on the command "which" here since it doesn't always work. 38679 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38680 if test -z "$is_absolute_path"; then 38681 # Path to executable is not absolute. Find it. 38682 IFS_save="$IFS" 38683 IFS=: 38684 for p in $PATH; do 38685 if test -f "$p/$path" && test -x "$p/$path"; then 38686 new_path="$p/$path" 38687 break 38688 fi 38689 done 38690 IFS="$IFS_save" 38691 else 38692 # This is an absolute path, we can use it without further modifications. 38693 new_path="$path" 38694 fi 38695 38696 if test "x$new_path" = x; then 38697 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 38698 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 38699 has_space=`$ECHO "$complete" | $GREP " "` 38700 if test "x$has_space" != x; then 38701 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38702 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38703 fi 38704 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 38705 fi 38706 fi 38707 38708 # Now join together the path and the arguments once again 38709 if test "x$arguments" != xEOL; then 38710 new_complete="$new_path ${arguments% *}" 38711 else 38712 new_complete="$new_path" 38713 fi 38714 38715 if test "x$complete" != "x$new_complete"; then 38716 RC="$new_complete" 38717 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 38718 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 38719 fi 38720 fi 38721 38722 # Extract the first word of "dumpbin", so it can be a program name with args. 38723 set dummy dumpbin; ac_word=$2 38724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38725 $as_echo_n "checking for $ac_word... " >&6; } 38726 if ${ac_cv_prog_DUMPBIN+:} false; then : 38727 $as_echo_n "(cached) " >&6 38728 else 38729 if test -n "$DUMPBIN"; then 38730 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 38731 else 38732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38733 for as_dir in $PATH 38734 do 38735 IFS=$as_save_IFS 38736 test -z "$as_dir" && as_dir=. 38737 for ac_exec_ext in '' $ac_executable_extensions; do 38738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38739 ac_cv_prog_DUMPBIN="dumpbin" 38740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38741 break 2 38742 fi 38743 done 38744 done 38745 IFS=$as_save_IFS 38746 38747 fi 38748 fi 38749 DUMPBIN=$ac_cv_prog_DUMPBIN 38750 if test -n "$DUMPBIN"; then 38751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 38752 $as_echo "$DUMPBIN" >&6; } 38753 else 38754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38755 $as_echo "no" >&6; } 38756 fi 38757 38758 38759 38760 # Only process if variable expands to non-empty 38761 38762 if test "x$DUMPBIN" != x; then 38763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38764 38765 # First separate the path from the arguments. This will split at the first 38766 # space. 38767 complete="$DUMPBIN" 38768 path="${complete%% *}" 38769 tmp="$complete EOL" 38770 arguments="${tmp#* }" 38771 38772 # Input might be given as Windows format, start by converting to 38773 # unix format. 38774 new_path=`$CYGPATH -u "$path"` 38775 38776 # Now try to locate executable using which 38777 new_path=`$WHICH "$new_path" 2> /dev/null` 38778 # bat and cmd files are not always considered executable in cygwin causing which 38779 # to not find them 38780 if test "x$new_path" = x \ 38781 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38782 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38783 new_path=`$CYGPATH -u "$path"` 38784 fi 38785 if test "x$new_path" = x; then 38786 # Oops. Which didn't find the executable. 38787 # The splitting of arguments from the executable at a space might have been incorrect, 38788 # since paths with space are more likely in Windows. Give it another try with the whole 38789 # argument. 38790 path="$complete" 38791 arguments="EOL" 38792 new_path=`$CYGPATH -u "$path"` 38793 new_path=`$WHICH "$new_path" 2> /dev/null` 38794 # bat and cmd files are not always considered executable in cygwin causing which 38795 # to not find them 38796 if test "x$new_path" = x \ 38797 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38798 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38799 new_path=`$CYGPATH -u "$path"` 38800 fi 38801 if test "x$new_path" = x; then 38802 # It's still not found. Now this is an unrecoverable error. 38803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 38804 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 38805 has_space=`$ECHO "$complete" | $GREP " "` 38806 if test "x$has_space" != x; then 38807 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38808 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38809 fi 38810 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 38811 fi 38812 fi 38813 38814 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38815 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38816 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38817 # "foo.exe" is OK but "foo" is an error. 38818 # 38819 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38820 # It is also a way to make sure we got the proper file name for the real test later on. 38821 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38822 if test "x$test_shortpath" = x; then 38823 # Short path failed, file does not exist as specified. 38824 # Try adding .exe or .cmd 38825 if test -f "${new_path}.exe"; then 38826 input_to_shortpath="${new_path}.exe" 38827 elif test -f "${new_path}.cmd"; then 38828 input_to_shortpath="${new_path}.cmd" 38829 else 38830 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 38831 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 38832 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38833 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38834 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 38835 fi 38836 else 38837 input_to_shortpath="$new_path" 38838 fi 38839 38840 # Call helper function which possibly converts this using DOS-style short mode. 38841 # If so, the updated path is stored in $new_path. 38842 new_path="$input_to_shortpath" 38843 38844 input_path="$input_to_shortpath" 38845 # Check if we need to convert this using DOS-style short mode. If the path 38846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38847 # take no chances and rewrite it. 38848 # Note: m4 eats our [], so we need to use [ and ] instead. 38849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38850 if test "x$has_forbidden_chars" != x; then 38851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38852 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38853 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38854 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38855 # Going to short mode and back again did indeed matter. Since short mode is 38856 # case insensitive, let's make it lowercase to improve readability. 38857 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38858 # Now convert it back to Unix-style (cygpath) 38859 input_path=`$CYGPATH -u "$shortmode_path"` 38860 new_path="$input_path" 38861 fi 38862 fi 38863 38864 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38865 if test "x$test_cygdrive_prefix" = x; then 38866 # As a simple fix, exclude /usr/bin since it's not a real path. 38867 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38868 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38869 # a path prefixed by /cygdrive for fixpath to work. 38870 new_path="$CYGWIN_ROOT_PATH$input_path" 38871 fi 38872 fi 38873 38874 # remove trailing .exe if any 38875 new_path="${new_path/%.exe/}" 38876 38877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38878 38879 # First separate the path from the arguments. This will split at the first 38880 # space. 38881 complete="$DUMPBIN" 38882 path="${complete%% *}" 38883 tmp="$complete EOL" 38884 arguments="${tmp#* }" 38885 38886 # Input might be given as Windows format, start by converting to 38887 # unix format. 38888 new_path="$path" 38889 38890 windows_path="$new_path" 38891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38892 unix_path=`$CYGPATH -u "$windows_path"` 38893 new_path="$unix_path" 38894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38896 new_path="$unix_path" 38897 fi 38898 38899 38900 # Now try to locate executable using which 38901 new_path=`$WHICH "$new_path" 2> /dev/null` 38902 38903 if test "x$new_path" = x; then 38904 # Oops. Which didn't find the executable. 38905 # The splitting of arguments from the executable at a space might have been incorrect, 38906 # since paths with space are more likely in Windows. Give it another try with the whole 38907 # argument. 38908 path="$complete" 38909 arguments="EOL" 38910 new_path="$path" 38911 38912 windows_path="$new_path" 38913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38914 unix_path=`$CYGPATH -u "$windows_path"` 38915 new_path="$unix_path" 38916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38917 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38918 new_path="$unix_path" 38919 fi 38920 38921 38922 new_path=`$WHICH "$new_path" 2> /dev/null` 38923 # bat and cmd files are not always considered executable in MSYS causing which 38924 # to not find them 38925 if test "x$new_path" = x \ 38926 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38927 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38928 new_path="$path" 38929 38930 windows_path="$new_path" 38931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38932 unix_path=`$CYGPATH -u "$windows_path"` 38933 new_path="$unix_path" 38934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38936 new_path="$unix_path" 38937 fi 38938 38939 fi 38940 38941 if test "x$new_path" = x; then 38942 # It's still not found. Now this is an unrecoverable error. 38943 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 38944 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 38945 has_space=`$ECHO "$complete" | $GREP " "` 38946 if test "x$has_space" != x; then 38947 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38948 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38949 fi 38950 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 38951 fi 38952 fi 38953 38954 # Now new_path has a complete unix path to the binary 38955 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38956 # Keep paths in /bin as-is, but remove trailing .exe if any 38957 new_path="${new_path/%.exe/}" 38958 # Do not save /bin paths to all_fixpath_prefixes! 38959 else 38960 # Not in mixed or Windows style, start by that. 38961 new_path=`cmd //c echo $new_path` 38962 38963 input_path="$new_path" 38964 # Check if we need to convert this using DOS-style short mode. If the path 38965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38966 # take no chances and rewrite it. 38967 # Note: m4 eats our [], so we need to use [ and ] instead. 38968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38969 if test "x$has_forbidden_chars" != x; then 38970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38971 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38972 fi 38973 38974 # Output is in $new_path 38975 38976 windows_path="$new_path" 38977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38978 unix_path=`$CYGPATH -u "$windows_path"` 38979 new_path="$unix_path" 38980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38982 new_path="$unix_path" 38983 fi 38984 38985 # remove trailing .exe if any 38986 new_path="${new_path/%.exe/}" 38987 38988 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38989 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38990 fi 38991 38992 else 38993 # We're on a unix platform. Hooray! :) 38994 # First separate the path from the arguments. This will split at the first 38995 # space. 38996 complete="$DUMPBIN" 38997 path="${complete%% *}" 38998 tmp="$complete EOL" 38999 arguments="${tmp#* }" 39000 39001 # Cannot rely on the command "which" here since it doesn't always work. 39002 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39003 if test -z "$is_absolute_path"; then 39004 # Path to executable is not absolute. Find it. 39005 IFS_save="$IFS" 39006 IFS=: 39007 for p in $PATH; do 39008 if test -f "$p/$path" && test -x "$p/$path"; then 39009 new_path="$p/$path" 39010 break 39011 fi 39012 done 39013 IFS="$IFS_save" 39014 else 39015 # This is an absolute path, we can use it without further modifications. 39016 new_path="$path" 39017 fi 39018 39019 if test "x$new_path" = x; then 39020 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 39021 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 39022 has_space=`$ECHO "$complete" | $GREP " "` 39023 if test "x$has_space" != x; then 39024 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39025 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39026 fi 39027 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 39028 fi 39029 fi 39030 39031 # Now join together the path and the arguments once again 39032 if test "x$arguments" != xEOL; then 39033 new_complete="$new_path ${arguments% *}" 39034 else 39035 new_complete="$new_path" 39036 fi 39037 39038 if test "x$complete" != "x$new_complete"; then 39039 DUMPBIN="$new_complete" 39040 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 39041 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 39042 fi 39043 fi 39044 39045 # We need to check for 'msbuild.exe' because at the place where we expect to 39046 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 39047 # won't find the 'msbuild.exe' executable in that case (and the 39048 # 'ac_executable_extensions' is unusable due to performance reasons). 39049 # Notice that we intentionally don't fix up the path to MSBUILD because we 39050 # will call it in a DOS shell during freetype detection on Windows (see 39051 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 39052 # Extract the first word of "msbuild.exe", so it can be a program name with args. 39053 set dummy msbuild.exe; ac_word=$2 39054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39055 $as_echo_n "checking for $ac_word... " >&6; } 39056 if ${ac_cv_prog_MSBUILD+:} false; then : 39057 $as_echo_n "(cached) " >&6 39058 else 39059 if test -n "$MSBUILD"; then 39060 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 39061 else 39062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39063 for as_dir in $PATH 39064 do 39065 IFS=$as_save_IFS 39066 test -z "$as_dir" && as_dir=. 39067 for ac_exec_ext in '' $ac_executable_extensions; do 39068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39069 ac_cv_prog_MSBUILD="msbuild.exe" 39070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39071 break 2 39072 fi 39073 done 39074 done 39075 IFS=$as_save_IFS 39076 39077 fi 39078 fi 39079 MSBUILD=$ac_cv_prog_MSBUILD 39080 if test -n "$MSBUILD"; then 39081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 39082 $as_echo "$MSBUILD" >&6; } 39083 else 39084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39085 $as_echo "no" >&6; } 39086 fi 39087 39088 39089 fi 39090 39091 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 39092 39093 39094 # Publish this variable in the help. 39095 39096 39097 if [ -z "${STRIP+x}" ]; then 39098 # The variable is not set by user, try to locate tool using the code snippet 39099 for ac_prog in strip 39100 do 39101 # Extract the first word of "$ac_prog", so it can be a program name with args. 39102 set dummy $ac_prog; ac_word=$2 39103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39104 $as_echo_n "checking for $ac_word... " >&6; } 39105 if ${ac_cv_path_STRIP+:} false; then : 39106 $as_echo_n "(cached) " >&6 39107 else 39108 case $STRIP in 39109 [\\/]* | ?:[\\/]*) 39110 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39111 ;; 39112 *) 39113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39114 for as_dir in $PATH 39115 do 39116 IFS=$as_save_IFS 39117 test -z "$as_dir" && as_dir=. 39118 for ac_exec_ext in '' $ac_executable_extensions; do 39119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39120 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39122 break 2 39123 fi 39124 done 39125 done 39126 IFS=$as_save_IFS 39127 39128 ;; 39129 esac 39130 fi 39131 STRIP=$ac_cv_path_STRIP 39132 if test -n "$STRIP"; then 39133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39134 $as_echo "$STRIP" >&6; } 39135 else 39136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39137 $as_echo "no" >&6; } 39138 fi 39139 39140 39141 test -n "$STRIP" && break 39142 done 39143 39144 else 39145 # The variable is set, but is it from the command line or the environment? 39146 39147 # Try to remove the string !STRIP! from our list. 39148 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 39149 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39150 # If it failed, the variable was not from the command line. Ignore it, 39151 # but warn the user (except for BASH, which is always set by the calling BASH). 39152 if test "xSTRIP" != xBASH; then 39153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 39154 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 39155 fi 39156 # Try to locate tool using the code snippet 39157 for ac_prog in strip 39158 do 39159 # Extract the first word of "$ac_prog", so it can be a program name with args. 39160 set dummy $ac_prog; ac_word=$2 39161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39162 $as_echo_n "checking for $ac_word... " >&6; } 39163 if ${ac_cv_path_STRIP+:} false; then : 39164 $as_echo_n "(cached) " >&6 39165 else 39166 case $STRIP in 39167 [\\/]* | ?:[\\/]*) 39168 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39169 ;; 39170 *) 39171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39172 for as_dir in $PATH 39173 do 39174 IFS=$as_save_IFS 39175 test -z "$as_dir" && as_dir=. 39176 for ac_exec_ext in '' $ac_executable_extensions; do 39177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39178 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39180 break 2 39181 fi 39182 done 39183 done 39184 IFS=$as_save_IFS 39185 39186 ;; 39187 esac 39188 fi 39189 STRIP=$ac_cv_path_STRIP 39190 if test -n "$STRIP"; then 39191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39192 $as_echo "$STRIP" >&6; } 39193 else 39194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39195 $as_echo "no" >&6; } 39196 fi 39197 39198 39199 test -n "$STRIP" && break 39200 done 39201 39202 else 39203 # If it succeeded, then it was overridden by the user. We will use it 39204 # for the tool. 39205 39206 # First remove it from the list of overridden variables, so we can test 39207 # for unknown variables in the end. 39208 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39209 39210 # Check if we try to supply an empty value 39211 if test "x$STRIP" = x; then 39212 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 39213 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 39214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39215 $as_echo_n "checking for STRIP... " >&6; } 39216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39217 $as_echo "disabled" >&6; } 39218 else 39219 # Check if the provided tool contains a complete path. 39220 tool_specified="$STRIP" 39221 tool_basename="${tool_specified##*/}" 39222 if test "x$tool_basename" = "x$tool_specified"; then 39223 # A command without a complete path is provided, search $PATH. 39224 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 39225 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 39226 # Extract the first word of "$tool_basename", so it can be a program name with args. 39227 set dummy $tool_basename; ac_word=$2 39228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39229 $as_echo_n "checking for $ac_word... " >&6; } 39230 if ${ac_cv_path_STRIP+:} false; then : 39231 $as_echo_n "(cached) " >&6 39232 else 39233 case $STRIP in 39234 [\\/]* | ?:[\\/]*) 39235 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39236 ;; 39237 *) 39238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39239 for as_dir in $PATH 39240 do 39241 IFS=$as_save_IFS 39242 test -z "$as_dir" && as_dir=. 39243 for ac_exec_ext in '' $ac_executable_extensions; do 39244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39245 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39247 break 2 39248 fi 39249 done 39250 done 39251 IFS=$as_save_IFS 39252 39253 ;; 39254 esac 39255 fi 39256 STRIP=$ac_cv_path_STRIP 39257 if test -n "$STRIP"; then 39258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39259 $as_echo "$STRIP" >&6; } 39260 else 39261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39262 $as_echo "no" >&6; } 39263 fi 39264 39265 39266 if test "x$STRIP" = x; then 39267 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39268 fi 39269 else 39270 # Otherwise we believe it is a complete path. Use it as it is. 39271 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 39272 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 39273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39274 $as_echo_n "checking for STRIP... " >&6; } 39275 if test ! -x "$tool_specified"; then 39276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39277 $as_echo "not found" >&6; } 39278 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 39279 fi 39280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39281 $as_echo "$tool_specified" >&6; } 39282 fi 39283 fi 39284 fi 39285 39286 fi 39287 39288 39289 39290 # Only process if variable expands to non-empty 39291 39292 if test "x$STRIP" != x; then 39293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39294 39295 # First separate the path from the arguments. This will split at the first 39296 # space. 39297 complete="$STRIP" 39298 path="${complete%% *}" 39299 tmp="$complete EOL" 39300 arguments="${tmp#* }" 39301 39302 # Input might be given as Windows format, start by converting to 39303 # unix format. 39304 new_path=`$CYGPATH -u "$path"` 39305 39306 # Now try to locate executable using which 39307 new_path=`$WHICH "$new_path" 2> /dev/null` 39308 # bat and cmd files are not always considered executable in cygwin causing which 39309 # to not find them 39310 if test "x$new_path" = x \ 39311 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39312 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39313 new_path=`$CYGPATH -u "$path"` 39314 fi 39315 if test "x$new_path" = x; then 39316 # Oops. Which didn't find the executable. 39317 # The splitting of arguments from the executable at a space might have been incorrect, 39318 # since paths with space are more likely in Windows. Give it another try with the whole 39319 # argument. 39320 path="$complete" 39321 arguments="EOL" 39322 new_path=`$CYGPATH -u "$path"` 39323 new_path=`$WHICH "$new_path" 2> /dev/null` 39324 # bat and cmd files are not always considered executable in cygwin causing which 39325 # to not find them 39326 if test "x$new_path" = x \ 39327 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39328 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39329 new_path=`$CYGPATH -u "$path"` 39330 fi 39331 if test "x$new_path" = x; then 39332 # It's still not found. Now this is an unrecoverable error. 39333 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39334 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39335 has_space=`$ECHO "$complete" | $GREP " "` 39336 if test "x$has_space" != x; then 39337 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39338 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39339 fi 39340 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39341 fi 39342 fi 39343 39344 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39345 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39346 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39347 # "foo.exe" is OK but "foo" is an error. 39348 # 39349 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39350 # It is also a way to make sure we got the proper file name for the real test later on. 39351 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39352 if test "x$test_shortpath" = x; then 39353 # Short path failed, file does not exist as specified. 39354 # Try adding .exe or .cmd 39355 if test -f "${new_path}.exe"; then 39356 input_to_shortpath="${new_path}.exe" 39357 elif test -f "${new_path}.cmd"; then 39358 input_to_shortpath="${new_path}.cmd" 39359 else 39360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 39361 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 39362 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39363 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39364 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39365 fi 39366 else 39367 input_to_shortpath="$new_path" 39368 fi 39369 39370 # Call helper function which possibly converts this using DOS-style short mode. 39371 # If so, the updated path is stored in $new_path. 39372 new_path="$input_to_shortpath" 39373 39374 input_path="$input_to_shortpath" 39375 # Check if we need to convert this using DOS-style short mode. If the path 39376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39377 # take no chances and rewrite it. 39378 # Note: m4 eats our [], so we need to use [ and ] instead. 39379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39380 if test "x$has_forbidden_chars" != x; then 39381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39382 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39383 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39384 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39385 # Going to short mode and back again did indeed matter. Since short mode is 39386 # case insensitive, let's make it lowercase to improve readability. 39387 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39388 # Now convert it back to Unix-style (cygpath) 39389 input_path=`$CYGPATH -u "$shortmode_path"` 39390 new_path="$input_path" 39391 fi 39392 fi 39393 39394 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39395 if test "x$test_cygdrive_prefix" = x; then 39396 # As a simple fix, exclude /usr/bin since it's not a real path. 39397 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39398 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39399 # a path prefixed by /cygdrive for fixpath to work. 39400 new_path="$CYGWIN_ROOT_PATH$input_path" 39401 fi 39402 fi 39403 39404 # remove trailing .exe if any 39405 new_path="${new_path/%.exe/}" 39406 39407 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39408 39409 # First separate the path from the arguments. This will split at the first 39410 # space. 39411 complete="$STRIP" 39412 path="${complete%% *}" 39413 tmp="$complete EOL" 39414 arguments="${tmp#* }" 39415 39416 # Input might be given as Windows format, start by converting to 39417 # unix format. 39418 new_path="$path" 39419 39420 windows_path="$new_path" 39421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39422 unix_path=`$CYGPATH -u "$windows_path"` 39423 new_path="$unix_path" 39424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39425 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39426 new_path="$unix_path" 39427 fi 39428 39429 39430 # Now try to locate executable using which 39431 new_path=`$WHICH "$new_path" 2> /dev/null` 39432 39433 if test "x$new_path" = x; then 39434 # Oops. Which didn't find the executable. 39435 # The splitting of arguments from the executable at a space might have been incorrect, 39436 # since paths with space are more likely in Windows. Give it another try with the whole 39437 # argument. 39438 path="$complete" 39439 arguments="EOL" 39440 new_path="$path" 39441 39442 windows_path="$new_path" 39443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39444 unix_path=`$CYGPATH -u "$windows_path"` 39445 new_path="$unix_path" 39446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39448 new_path="$unix_path" 39449 fi 39450 39451 39452 new_path=`$WHICH "$new_path" 2> /dev/null` 39453 # bat and cmd files are not always considered executable in MSYS causing which 39454 # to not find them 39455 if test "x$new_path" = x \ 39456 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39457 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39458 new_path="$path" 39459 39460 windows_path="$new_path" 39461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39462 unix_path=`$CYGPATH -u "$windows_path"` 39463 new_path="$unix_path" 39464 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39465 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39466 new_path="$unix_path" 39467 fi 39468 39469 fi 39470 39471 if test "x$new_path" = x; then 39472 # It's still not found. Now this is an unrecoverable error. 39473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39474 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39475 has_space=`$ECHO "$complete" | $GREP " "` 39476 if test "x$has_space" != x; then 39477 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39478 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39479 fi 39480 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39481 fi 39482 fi 39483 39484 # Now new_path has a complete unix path to the binary 39485 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39486 # Keep paths in /bin as-is, but remove trailing .exe if any 39487 new_path="${new_path/%.exe/}" 39488 # Do not save /bin paths to all_fixpath_prefixes! 39489 else 39490 # Not in mixed or Windows style, start by that. 39491 new_path=`cmd //c echo $new_path` 39492 39493 input_path="$new_path" 39494 # Check if we need to convert this using DOS-style short mode. If the path 39495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39496 # take no chances and rewrite it. 39497 # Note: m4 eats our [], so we need to use [ and ] instead. 39498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39499 if test "x$has_forbidden_chars" != x; then 39500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39501 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39502 fi 39503 39504 # Output is in $new_path 39505 39506 windows_path="$new_path" 39507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39508 unix_path=`$CYGPATH -u "$windows_path"` 39509 new_path="$unix_path" 39510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39512 new_path="$unix_path" 39513 fi 39514 39515 # remove trailing .exe if any 39516 new_path="${new_path/%.exe/}" 39517 39518 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39519 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39520 fi 39521 39522 else 39523 # We're on a unix platform. Hooray! :) 39524 # First separate the path from the arguments. This will split at the first 39525 # space. 39526 complete="$STRIP" 39527 path="${complete%% *}" 39528 tmp="$complete EOL" 39529 arguments="${tmp#* }" 39530 39531 # Cannot rely on the command "which" here since it doesn't always work. 39532 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39533 if test -z "$is_absolute_path"; then 39534 # Path to executable is not absolute. Find it. 39535 IFS_save="$IFS" 39536 IFS=: 39537 for p in $PATH; do 39538 if test -f "$p/$path" && test -x "$p/$path"; then 39539 new_path="$p/$path" 39540 break 39541 fi 39542 done 39543 IFS="$IFS_save" 39544 else 39545 # This is an absolute path, we can use it without further modifications. 39546 new_path="$path" 39547 fi 39548 39549 if test "x$new_path" = x; then 39550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39551 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39552 has_space=`$ECHO "$complete" | $GREP " "` 39553 if test "x$has_space" != x; then 39554 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39555 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39556 fi 39557 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39558 fi 39559 fi 39560 39561 # Now join together the path and the arguments once again 39562 if test "x$arguments" != xEOL; then 39563 new_complete="$new_path ${arguments% *}" 39564 else 39565 new_complete="$new_path" 39566 fi 39567 39568 if test "x$complete" != "x$new_complete"; then 39569 STRIP="$new_complete" 39570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 39571 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 39572 fi 39573 fi 39574 39575 39576 39577 # Publish this variable in the help. 39578 39579 39580 if [ -z "${NM+x}" ]; then 39581 # The variable is not set by user, try to locate tool using the code snippet 39582 for ac_prog in nm 39583 do 39584 # Extract the first word of "$ac_prog", so it can be a program name with args. 39585 set dummy $ac_prog; ac_word=$2 39586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39587 $as_echo_n "checking for $ac_word... " >&6; } 39588 if ${ac_cv_path_NM+:} false; then : 39589 $as_echo_n "(cached) " >&6 39590 else 39591 case $NM in 39592 [\\/]* | ?:[\\/]*) 39593 ac_cv_path_NM="$NM" # Let the user override the test with a path. 39594 ;; 39595 *) 39596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39597 for as_dir in $PATH 39598 do 39599 IFS=$as_save_IFS 39600 test -z "$as_dir" && as_dir=. 39601 for ac_exec_ext in '' $ac_executable_extensions; do 39602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39603 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 39604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39605 break 2 39606 fi 39607 done 39608 done 39609 IFS=$as_save_IFS 39610 39611 ;; 39612 esac 39613 fi 39614 NM=$ac_cv_path_NM 39615 if test -n "$NM"; then 39616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 39617 $as_echo "$NM" >&6; } 39618 else 39619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39620 $as_echo "no" >&6; } 39621 fi 39622 39623 39624 test -n "$NM" && break 39625 done 39626 39627 else 39628 # The variable is set, but is it from the command line or the environment? 39629 39630 # Try to remove the string !NM! from our list. 39631 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 39632 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39633 # If it failed, the variable was not from the command line. Ignore it, 39634 # but warn the user (except for BASH, which is always set by the calling BASH). 39635 if test "xNM" != xBASH; then 39636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 39637 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 39638 fi 39639 # Try to locate tool using the code snippet 39640 for ac_prog in nm 39641 do 39642 # Extract the first word of "$ac_prog", so it can be a program name with args. 39643 set dummy $ac_prog; ac_word=$2 39644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39645 $as_echo_n "checking for $ac_word... " >&6; } 39646 if ${ac_cv_path_NM+:} false; then : 39647 $as_echo_n "(cached) " >&6 39648 else 39649 case $NM in 39650 [\\/]* | ?:[\\/]*) 39651 ac_cv_path_NM="$NM" # Let the user override the test with a path. 39652 ;; 39653 *) 39654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39655 for as_dir in $PATH 39656 do 39657 IFS=$as_save_IFS 39658 test -z "$as_dir" && as_dir=. 39659 for ac_exec_ext in '' $ac_executable_extensions; do 39660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39661 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 39662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39663 break 2 39664 fi 39665 done 39666 done 39667 IFS=$as_save_IFS 39668 39669 ;; 39670 esac 39671 fi 39672 NM=$ac_cv_path_NM 39673 if test -n "$NM"; then 39674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 39675 $as_echo "$NM" >&6; } 39676 else 39677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39678 $as_echo "no" >&6; } 39679 fi 39680 39681 39682 test -n "$NM" && break 39683 done 39684 39685 else 39686 # If it succeeded, then it was overridden by the user. We will use it 39687 # for the tool. 39688 39689 # First remove it from the list of overridden variables, so we can test 39690 # for unknown variables in the end. 39691 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39692 39693 # Check if we try to supply an empty value 39694 if test "x$NM" = x; then 39695 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 39696 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 39697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 39698 $as_echo_n "checking for NM... " >&6; } 39699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39700 $as_echo "disabled" >&6; } 39701 else 39702 # Check if the provided tool contains a complete path. 39703 tool_specified="$NM" 39704 tool_basename="${tool_specified##*/}" 39705 if test "x$tool_basename" = "x$tool_specified"; then 39706 # A command without a complete path is provided, search $PATH. 39707 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 39708 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 39709 # Extract the first word of "$tool_basename", so it can be a program name with args. 39710 set dummy $tool_basename; ac_word=$2 39711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39712 $as_echo_n "checking for $ac_word... " >&6; } 39713 if ${ac_cv_path_NM+:} false; then : 39714 $as_echo_n "(cached) " >&6 39715 else 39716 case $NM in 39717 [\\/]* | ?:[\\/]*) 39718 ac_cv_path_NM="$NM" # Let the user override the test with a path. 39719 ;; 39720 *) 39721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39722 for as_dir in $PATH 39723 do 39724 IFS=$as_save_IFS 39725 test -z "$as_dir" && as_dir=. 39726 for ac_exec_ext in '' $ac_executable_extensions; do 39727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39728 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 39729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39730 break 2 39731 fi 39732 done 39733 done 39734 IFS=$as_save_IFS 39735 39736 ;; 39737 esac 39738 fi 39739 NM=$ac_cv_path_NM 39740 if test -n "$NM"; then 39741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 39742 $as_echo "$NM" >&6; } 39743 else 39744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39745 $as_echo "no" >&6; } 39746 fi 39747 39748 39749 if test "x$NM" = x; then 39750 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39751 fi 39752 else 39753 # Otherwise we believe it is a complete path. Use it as it is. 39754 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 39755 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 39756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 39757 $as_echo_n "checking for NM... " >&6; } 39758 if test ! -x "$tool_specified"; then 39759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39760 $as_echo "not found" >&6; } 39761 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 39762 fi 39763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39764 $as_echo "$tool_specified" >&6; } 39765 fi 39766 fi 39767 fi 39768 39769 fi 39770 39771 39772 39773 # Only process if variable expands to non-empty 39774 39775 if test "x$NM" != x; then 39776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39777 39778 # First separate the path from the arguments. This will split at the first 39779 # space. 39780 complete="$NM" 39781 path="${complete%% *}" 39782 tmp="$complete EOL" 39783 arguments="${tmp#* }" 39784 39785 # Input might be given as Windows format, start by converting to 39786 # unix format. 39787 new_path=`$CYGPATH -u "$path"` 39788 39789 # Now try to locate executable using which 39790 new_path=`$WHICH "$new_path" 2> /dev/null` 39791 # bat and cmd files are not always considered executable in cygwin causing which 39792 # to not find them 39793 if test "x$new_path" = x \ 39794 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39795 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39796 new_path=`$CYGPATH -u "$path"` 39797 fi 39798 if test "x$new_path" = x; then 39799 # Oops. Which didn't find the executable. 39800 # The splitting of arguments from the executable at a space might have been incorrect, 39801 # since paths with space are more likely in Windows. Give it another try with the whole 39802 # argument. 39803 path="$complete" 39804 arguments="EOL" 39805 new_path=`$CYGPATH -u "$path"` 39806 new_path=`$WHICH "$new_path" 2> /dev/null` 39807 # bat and cmd files are not always considered executable in cygwin causing which 39808 # to not find them 39809 if test "x$new_path" = x \ 39810 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39811 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39812 new_path=`$CYGPATH -u "$path"` 39813 fi 39814 if test "x$new_path" = x; then 39815 # It's still not found. Now this is an unrecoverable error. 39816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 39817 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 39818 has_space=`$ECHO "$complete" | $GREP " "` 39819 if test "x$has_space" != x; then 39820 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39821 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39822 fi 39823 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 39824 fi 39825 fi 39826 39827 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39828 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39829 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39830 # "foo.exe" is OK but "foo" is an error. 39831 # 39832 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39833 # It is also a way to make sure we got the proper file name for the real test later on. 39834 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39835 if test "x$test_shortpath" = x; then 39836 # Short path failed, file does not exist as specified. 39837 # Try adding .exe or .cmd 39838 if test -f "${new_path}.exe"; then 39839 input_to_shortpath="${new_path}.exe" 39840 elif test -f "${new_path}.cmd"; then 39841 input_to_shortpath="${new_path}.cmd" 39842 else 39843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 39844 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 39845 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39846 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39847 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 39848 fi 39849 else 39850 input_to_shortpath="$new_path" 39851 fi 39852 39853 # Call helper function which possibly converts this using DOS-style short mode. 39854 # If so, the updated path is stored in $new_path. 39855 new_path="$input_to_shortpath" 39856 39857 input_path="$input_to_shortpath" 39858 # Check if we need to convert this using DOS-style short mode. If the path 39859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39860 # take no chances and rewrite it. 39861 # Note: m4 eats our [], so we need to use [ and ] instead. 39862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39863 if test "x$has_forbidden_chars" != x; then 39864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39865 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39866 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39867 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39868 # Going to short mode and back again did indeed matter. Since short mode is 39869 # case insensitive, let's make it lowercase to improve readability. 39870 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39871 # Now convert it back to Unix-style (cygpath) 39872 input_path=`$CYGPATH -u "$shortmode_path"` 39873 new_path="$input_path" 39874 fi 39875 fi 39876 39877 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39878 if test "x$test_cygdrive_prefix" = x; then 39879 # As a simple fix, exclude /usr/bin since it's not a real path. 39880 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39881 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39882 # a path prefixed by /cygdrive for fixpath to work. 39883 new_path="$CYGWIN_ROOT_PATH$input_path" 39884 fi 39885 fi 39886 39887 # remove trailing .exe if any 39888 new_path="${new_path/%.exe/}" 39889 39890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39891 39892 # First separate the path from the arguments. This will split at the first 39893 # space. 39894 complete="$NM" 39895 path="${complete%% *}" 39896 tmp="$complete EOL" 39897 arguments="${tmp#* }" 39898 39899 # Input might be given as Windows format, start by converting to 39900 # unix format. 39901 new_path="$path" 39902 39903 windows_path="$new_path" 39904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39905 unix_path=`$CYGPATH -u "$windows_path"` 39906 new_path="$unix_path" 39907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39908 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39909 new_path="$unix_path" 39910 fi 39911 39912 39913 # Now try to locate executable using which 39914 new_path=`$WHICH "$new_path" 2> /dev/null` 39915 39916 if test "x$new_path" = x; then 39917 # Oops. Which didn't find the executable. 39918 # The splitting of arguments from the executable at a space might have been incorrect, 39919 # since paths with space are more likely in Windows. Give it another try with the whole 39920 # argument. 39921 path="$complete" 39922 arguments="EOL" 39923 new_path="$path" 39924 39925 windows_path="$new_path" 39926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39927 unix_path=`$CYGPATH -u "$windows_path"` 39928 new_path="$unix_path" 39929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39931 new_path="$unix_path" 39932 fi 39933 39934 39935 new_path=`$WHICH "$new_path" 2> /dev/null` 39936 # bat and cmd files are not always considered executable in MSYS causing which 39937 # to not find them 39938 if test "x$new_path" = x \ 39939 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39940 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39941 new_path="$path" 39942 39943 windows_path="$new_path" 39944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39945 unix_path=`$CYGPATH -u "$windows_path"` 39946 new_path="$unix_path" 39947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39949 new_path="$unix_path" 39950 fi 39951 39952 fi 39953 39954 if test "x$new_path" = x; then 39955 # It's still not found. Now this is an unrecoverable error. 39956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 39957 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 39958 has_space=`$ECHO "$complete" | $GREP " "` 39959 if test "x$has_space" != x; then 39960 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39961 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39962 fi 39963 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 39964 fi 39965 fi 39966 39967 # Now new_path has a complete unix path to the binary 39968 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39969 # Keep paths in /bin as-is, but remove trailing .exe if any 39970 new_path="${new_path/%.exe/}" 39971 # Do not save /bin paths to all_fixpath_prefixes! 39972 else 39973 # Not in mixed or Windows style, start by that. 39974 new_path=`cmd //c echo $new_path` 39975 39976 input_path="$new_path" 39977 # Check if we need to convert this using DOS-style short mode. If the path 39978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39979 # take no chances and rewrite it. 39980 # Note: m4 eats our [], so we need to use [ and ] instead. 39981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39982 if test "x$has_forbidden_chars" != x; then 39983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39984 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39985 fi 39986 39987 # Output is in $new_path 39988 39989 windows_path="$new_path" 39990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39991 unix_path=`$CYGPATH -u "$windows_path"` 39992 new_path="$unix_path" 39993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39994 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39995 new_path="$unix_path" 39996 fi 39997 39998 # remove trailing .exe if any 39999 new_path="${new_path/%.exe/}" 40000 40001 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40002 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40003 fi 40004 40005 else 40006 # We're on a unix platform. Hooray! :) 40007 # First separate the path from the arguments. This will split at the first 40008 # space. 40009 complete="$NM" 40010 path="${complete%% *}" 40011 tmp="$complete EOL" 40012 arguments="${tmp#* }" 40013 40014 # Cannot rely on the command "which" here since it doesn't always work. 40015 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40016 if test -z "$is_absolute_path"; then 40017 # Path to executable is not absolute. Find it. 40018 IFS_save="$IFS" 40019 IFS=: 40020 for p in $PATH; do 40021 if test -f "$p/$path" && test -x "$p/$path"; then 40022 new_path="$p/$path" 40023 break 40024 fi 40025 done 40026 IFS="$IFS_save" 40027 else 40028 # This is an absolute path, we can use it without further modifications. 40029 new_path="$path" 40030 fi 40031 40032 if test "x$new_path" = x; then 40033 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 40034 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 40035 has_space=`$ECHO "$complete" | $GREP " "` 40036 if test "x$has_space" != x; then 40037 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40038 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40039 fi 40040 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 40041 fi 40042 fi 40043 40044 # Now join together the path and the arguments once again 40045 if test "x$arguments" != xEOL; then 40046 new_complete="$new_path ${arguments% *}" 40047 else 40048 new_complete="$new_path" 40049 fi 40050 40051 if test "x$complete" != "x$new_complete"; then 40052 NM="$new_complete" 40053 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 40054 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 40055 fi 40056 fi 40057 40058 40059 40060 # Publish this variable in the help. 40061 40062 40063 if [ -z "${GNM+x}" ]; then 40064 # The variable is not set by user, try to locate tool using the code snippet 40065 for ac_prog in gnm 40066 do 40067 # Extract the first word of "$ac_prog", so it can be a program name with args. 40068 set dummy $ac_prog; ac_word=$2 40069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40070 $as_echo_n "checking for $ac_word... " >&6; } 40071 if ${ac_cv_path_GNM+:} false; then : 40072 $as_echo_n "(cached) " >&6 40073 else 40074 case $GNM in 40075 [\\/]* | ?:[\\/]*) 40076 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40077 ;; 40078 *) 40079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40080 for as_dir in $PATH 40081 do 40082 IFS=$as_save_IFS 40083 test -z "$as_dir" && as_dir=. 40084 for ac_exec_ext in '' $ac_executable_extensions; do 40085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40086 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40088 break 2 40089 fi 40090 done 40091 done 40092 IFS=$as_save_IFS 40093 40094 ;; 40095 esac 40096 fi 40097 GNM=$ac_cv_path_GNM 40098 if test -n "$GNM"; then 40099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40100 $as_echo "$GNM" >&6; } 40101 else 40102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40103 $as_echo "no" >&6; } 40104 fi 40105 40106 40107 test -n "$GNM" && break 40108 done 40109 40110 else 40111 # The variable is set, but is it from the command line or the environment? 40112 40113 # Try to remove the string !GNM! from our list. 40114 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 40115 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40116 # If it failed, the variable was not from the command line. Ignore it, 40117 # but warn the user (except for BASH, which is always set by the calling BASH). 40118 if test "xGNM" != xBASH; then 40119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 40120 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 40121 fi 40122 # Try to locate tool using the code snippet 40123 for ac_prog in gnm 40124 do 40125 # Extract the first word of "$ac_prog", so it can be a program name with args. 40126 set dummy $ac_prog; ac_word=$2 40127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40128 $as_echo_n "checking for $ac_word... " >&6; } 40129 if ${ac_cv_path_GNM+:} false; then : 40130 $as_echo_n "(cached) " >&6 40131 else 40132 case $GNM in 40133 [\\/]* | ?:[\\/]*) 40134 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40135 ;; 40136 *) 40137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40138 for as_dir in $PATH 40139 do 40140 IFS=$as_save_IFS 40141 test -z "$as_dir" && as_dir=. 40142 for ac_exec_ext in '' $ac_executable_extensions; do 40143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40144 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40146 break 2 40147 fi 40148 done 40149 done 40150 IFS=$as_save_IFS 40151 40152 ;; 40153 esac 40154 fi 40155 GNM=$ac_cv_path_GNM 40156 if test -n "$GNM"; then 40157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40158 $as_echo "$GNM" >&6; } 40159 else 40160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40161 $as_echo "no" >&6; } 40162 fi 40163 40164 40165 test -n "$GNM" && break 40166 done 40167 40168 else 40169 # If it succeeded, then it was overridden by the user. We will use it 40170 # for the tool. 40171 40172 # First remove it from the list of overridden variables, so we can test 40173 # for unknown variables in the end. 40174 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40175 40176 # Check if we try to supply an empty value 40177 if test "x$GNM" = x; then 40178 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 40179 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 40180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40181 $as_echo_n "checking for GNM... " >&6; } 40182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40183 $as_echo "disabled" >&6; } 40184 else 40185 # Check if the provided tool contains a complete path. 40186 tool_specified="$GNM" 40187 tool_basename="${tool_specified##*/}" 40188 if test "x$tool_basename" = "x$tool_specified"; then 40189 # A command without a complete path is provided, search $PATH. 40190 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 40191 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 40192 # Extract the first word of "$tool_basename", so it can be a program name with args. 40193 set dummy $tool_basename; ac_word=$2 40194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40195 $as_echo_n "checking for $ac_word... " >&6; } 40196 if ${ac_cv_path_GNM+:} false; then : 40197 $as_echo_n "(cached) " >&6 40198 else 40199 case $GNM in 40200 [\\/]* | ?:[\\/]*) 40201 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 40202 ;; 40203 *) 40204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40205 for as_dir in $PATH 40206 do 40207 IFS=$as_save_IFS 40208 test -z "$as_dir" && as_dir=. 40209 for ac_exec_ext in '' $ac_executable_extensions; do 40210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40211 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 40212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40213 break 2 40214 fi 40215 done 40216 done 40217 IFS=$as_save_IFS 40218 40219 ;; 40220 esac 40221 fi 40222 GNM=$ac_cv_path_GNM 40223 if test -n "$GNM"; then 40224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 40225 $as_echo "$GNM" >&6; } 40226 else 40227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40228 $as_echo "no" >&6; } 40229 fi 40230 40231 40232 if test "x$GNM" = x; then 40233 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40234 fi 40235 else 40236 # Otherwise we believe it is a complete path. Use it as it is. 40237 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 40238 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 40239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 40240 $as_echo_n "checking for GNM... " >&6; } 40241 if test ! -x "$tool_specified"; then 40242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40243 $as_echo "not found" >&6; } 40244 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 40245 fi 40246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40247 $as_echo "$tool_specified" >&6; } 40248 fi 40249 fi 40250 fi 40251 40252 fi 40253 40254 40255 40256 # Only process if variable expands to non-empty 40257 40258 if test "x$GNM" != x; then 40259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40260 40261 # First separate the path from the arguments. This will split at the first 40262 # space. 40263 complete="$GNM" 40264 path="${complete%% *}" 40265 tmp="$complete EOL" 40266 arguments="${tmp#* }" 40267 40268 # Input might be given as Windows format, start by converting to 40269 # unix format. 40270 new_path=`$CYGPATH -u "$path"` 40271 40272 # Now try to locate executable using which 40273 new_path=`$WHICH "$new_path" 2> /dev/null` 40274 # bat and cmd files are not always considered executable in cygwin causing which 40275 # to not find them 40276 if test "x$new_path" = x \ 40277 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40278 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40279 new_path=`$CYGPATH -u "$path"` 40280 fi 40281 if test "x$new_path" = x; then 40282 # Oops. Which didn't find the executable. 40283 # The splitting of arguments from the executable at a space might have been incorrect, 40284 # since paths with space are more likely in Windows. Give it another try with the whole 40285 # argument. 40286 path="$complete" 40287 arguments="EOL" 40288 new_path=`$CYGPATH -u "$path"` 40289 new_path=`$WHICH "$new_path" 2> /dev/null` 40290 # bat and cmd files are not always considered executable in cygwin causing which 40291 # to not find them 40292 if test "x$new_path" = x \ 40293 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40294 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40295 new_path=`$CYGPATH -u "$path"` 40296 fi 40297 if test "x$new_path" = x; then 40298 # It's still not found. Now this is an unrecoverable error. 40299 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40300 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40301 has_space=`$ECHO "$complete" | $GREP " "` 40302 if test "x$has_space" != x; then 40303 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40304 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40305 fi 40306 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40307 fi 40308 fi 40309 40310 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40311 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40312 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40313 # "foo.exe" is OK but "foo" is an error. 40314 # 40315 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40316 # It is also a way to make sure we got the proper file name for the real test later on. 40317 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40318 if test "x$test_shortpath" = x; then 40319 # Short path failed, file does not exist as specified. 40320 # Try adding .exe or .cmd 40321 if test -f "${new_path}.exe"; then 40322 input_to_shortpath="${new_path}.exe" 40323 elif test -f "${new_path}.cmd"; then 40324 input_to_shortpath="${new_path}.cmd" 40325 else 40326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 40327 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 40328 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40329 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40330 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40331 fi 40332 else 40333 input_to_shortpath="$new_path" 40334 fi 40335 40336 # Call helper function which possibly converts this using DOS-style short mode. 40337 # If so, the updated path is stored in $new_path. 40338 new_path="$input_to_shortpath" 40339 40340 input_path="$input_to_shortpath" 40341 # Check if we need to convert this using DOS-style short mode. If the path 40342 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40343 # take no chances and rewrite it. 40344 # Note: m4 eats our [], so we need to use [ and ] instead. 40345 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40346 if test "x$has_forbidden_chars" != x; then 40347 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40348 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40349 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40350 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40351 # Going to short mode and back again did indeed matter. Since short mode is 40352 # case insensitive, let's make it lowercase to improve readability. 40353 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40354 # Now convert it back to Unix-style (cygpath) 40355 input_path=`$CYGPATH -u "$shortmode_path"` 40356 new_path="$input_path" 40357 fi 40358 fi 40359 40360 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40361 if test "x$test_cygdrive_prefix" = x; then 40362 # As a simple fix, exclude /usr/bin since it's not a real path. 40363 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40364 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40365 # a path prefixed by /cygdrive for fixpath to work. 40366 new_path="$CYGWIN_ROOT_PATH$input_path" 40367 fi 40368 fi 40369 40370 # remove trailing .exe if any 40371 new_path="${new_path/%.exe/}" 40372 40373 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40374 40375 # First separate the path from the arguments. This will split at the first 40376 # space. 40377 complete="$GNM" 40378 path="${complete%% *}" 40379 tmp="$complete EOL" 40380 arguments="${tmp#* }" 40381 40382 # Input might be given as Windows format, start by converting to 40383 # unix format. 40384 new_path="$path" 40385 40386 windows_path="$new_path" 40387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40388 unix_path=`$CYGPATH -u "$windows_path"` 40389 new_path="$unix_path" 40390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40391 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40392 new_path="$unix_path" 40393 fi 40394 40395 40396 # Now try to locate executable using which 40397 new_path=`$WHICH "$new_path" 2> /dev/null` 40398 40399 if test "x$new_path" = x; then 40400 # Oops. Which didn't find the executable. 40401 # The splitting of arguments from the executable at a space might have been incorrect, 40402 # since paths with space are more likely in Windows. Give it another try with the whole 40403 # argument. 40404 path="$complete" 40405 arguments="EOL" 40406 new_path="$path" 40407 40408 windows_path="$new_path" 40409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40410 unix_path=`$CYGPATH -u "$windows_path"` 40411 new_path="$unix_path" 40412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40414 new_path="$unix_path" 40415 fi 40416 40417 40418 new_path=`$WHICH "$new_path" 2> /dev/null` 40419 # bat and cmd files are not always considered executable in MSYS causing which 40420 # to not find them 40421 if test "x$new_path" = x \ 40422 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40423 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40424 new_path="$path" 40425 40426 windows_path="$new_path" 40427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40428 unix_path=`$CYGPATH -u "$windows_path"` 40429 new_path="$unix_path" 40430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40431 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40432 new_path="$unix_path" 40433 fi 40434 40435 fi 40436 40437 if test "x$new_path" = x; then 40438 # It's still not found. Now this is an unrecoverable error. 40439 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40440 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40441 has_space=`$ECHO "$complete" | $GREP " "` 40442 if test "x$has_space" != x; then 40443 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40444 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40445 fi 40446 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40447 fi 40448 fi 40449 40450 # Now new_path has a complete unix path to the binary 40451 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40452 # Keep paths in /bin as-is, but remove trailing .exe if any 40453 new_path="${new_path/%.exe/}" 40454 # Do not save /bin paths to all_fixpath_prefixes! 40455 else 40456 # Not in mixed or Windows style, start by that. 40457 new_path=`cmd //c echo $new_path` 40458 40459 input_path="$new_path" 40460 # Check if we need to convert this using DOS-style short mode. If the path 40461 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40462 # take no chances and rewrite it. 40463 # Note: m4 eats our [], so we need to use [ and ] instead. 40464 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40465 if test "x$has_forbidden_chars" != x; then 40466 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40467 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40468 fi 40469 40470 # Output is in $new_path 40471 40472 windows_path="$new_path" 40473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40474 unix_path=`$CYGPATH -u "$windows_path"` 40475 new_path="$unix_path" 40476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40477 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40478 new_path="$unix_path" 40479 fi 40480 40481 # remove trailing .exe if any 40482 new_path="${new_path/%.exe/}" 40483 40484 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40485 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40486 fi 40487 40488 else 40489 # We're on a unix platform. Hooray! :) 40490 # First separate the path from the arguments. This will split at the first 40491 # space. 40492 complete="$GNM" 40493 path="${complete%% *}" 40494 tmp="$complete EOL" 40495 arguments="${tmp#* }" 40496 40497 # Cannot rely on the command "which" here since it doesn't always work. 40498 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40499 if test -z "$is_absolute_path"; then 40500 # Path to executable is not absolute. Find it. 40501 IFS_save="$IFS" 40502 IFS=: 40503 for p in $PATH; do 40504 if test -f "$p/$path" && test -x "$p/$path"; then 40505 new_path="$p/$path" 40506 break 40507 fi 40508 done 40509 IFS="$IFS_save" 40510 else 40511 # This is an absolute path, we can use it without further modifications. 40512 new_path="$path" 40513 fi 40514 40515 if test "x$new_path" = x; then 40516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 40517 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 40518 has_space=`$ECHO "$complete" | $GREP " "` 40519 if test "x$has_space" != x; then 40520 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40521 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40522 fi 40523 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 40524 fi 40525 fi 40526 40527 # Now join together the path and the arguments once again 40528 if test "x$arguments" != xEOL; then 40529 new_complete="$new_path ${arguments% *}" 40530 else 40531 new_complete="$new_path" 40532 fi 40533 40534 if test "x$complete" != "x$new_complete"; then 40535 GNM="$new_complete" 40536 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 40537 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 40538 fi 40539 fi 40540 40541 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 40542 # FIXME: we should unify this with the solaris case above. 40543 40544 40545 # Publish this variable in the help. 40546 40547 40548 if [ -z "${STRIP+x}" ]; then 40549 # The variable is not set by user, try to locate tool using the code snippet 40550 if test -n "$ac_tool_prefix"; then 40551 for ac_prog in strip 40552 do 40553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40556 $as_echo_n "checking for $ac_word... " >&6; } 40557 if ${ac_cv_prog_STRIP+:} false; then : 40558 $as_echo_n "(cached) " >&6 40559 else 40560 if test -n "$STRIP"; then 40561 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 40562 else 40563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40564 for as_dir in $PATH 40565 do 40566 IFS=$as_save_IFS 40567 test -z "$as_dir" && as_dir=. 40568 for ac_exec_ext in '' $ac_executable_extensions; do 40569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40570 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 40571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40572 break 2 40573 fi 40574 done 40575 done 40576 IFS=$as_save_IFS 40577 40578 fi 40579 fi 40580 STRIP=$ac_cv_prog_STRIP 40581 if test -n "$STRIP"; then 40582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40583 $as_echo "$STRIP" >&6; } 40584 else 40585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40586 $as_echo "no" >&6; } 40587 fi 40588 40589 40590 test -n "$STRIP" && break 40591 done 40592 fi 40593 if test -z "$STRIP"; then 40594 ac_ct_STRIP=$STRIP 40595 for ac_prog in strip 40596 do 40597 # Extract the first word of "$ac_prog", so it can be a program name with args. 40598 set dummy $ac_prog; ac_word=$2 40599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40600 $as_echo_n "checking for $ac_word... " >&6; } 40601 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 40602 $as_echo_n "(cached) " >&6 40603 else 40604 if test -n "$ac_ct_STRIP"; then 40605 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 40606 else 40607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40608 for as_dir in $PATH 40609 do 40610 IFS=$as_save_IFS 40611 test -z "$as_dir" && as_dir=. 40612 for ac_exec_ext in '' $ac_executable_extensions; do 40613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40614 ac_cv_prog_ac_ct_STRIP="$ac_prog" 40615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40616 break 2 40617 fi 40618 done 40619 done 40620 IFS=$as_save_IFS 40621 40622 fi 40623 fi 40624 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 40625 if test -n "$ac_ct_STRIP"; then 40626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 40627 $as_echo "$ac_ct_STRIP" >&6; } 40628 else 40629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40630 $as_echo "no" >&6; } 40631 fi 40632 40633 40634 test -n "$ac_ct_STRIP" && break 40635 done 40636 40637 if test "x$ac_ct_STRIP" = x; then 40638 STRIP="" 40639 else 40640 case $cross_compiling:$ac_tool_warned in 40641 yes:) 40642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40644 ac_tool_warned=yes ;; 40645 esac 40646 STRIP=$ac_ct_STRIP 40647 fi 40648 fi 40649 40650 else 40651 # The variable is set, but is it from the command line or the environment? 40652 40653 # Try to remove the string !STRIP! from our list. 40654 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 40655 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40656 # If it failed, the variable was not from the command line. Ignore it, 40657 # but warn the user (except for BASH, which is always set by the calling BASH). 40658 if test "xSTRIP" != xBASH; then 40659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 40660 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 40661 fi 40662 # Try to locate tool using the code snippet 40663 if test -n "$ac_tool_prefix"; then 40664 for ac_prog in strip 40665 do 40666 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40667 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40669 $as_echo_n "checking for $ac_word... " >&6; } 40670 if ${ac_cv_prog_STRIP+:} false; then : 40671 $as_echo_n "(cached) " >&6 40672 else 40673 if test -n "$STRIP"; then 40674 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 40675 else 40676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40677 for as_dir in $PATH 40678 do 40679 IFS=$as_save_IFS 40680 test -z "$as_dir" && as_dir=. 40681 for ac_exec_ext in '' $ac_executable_extensions; do 40682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40683 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 40684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40685 break 2 40686 fi 40687 done 40688 done 40689 IFS=$as_save_IFS 40690 40691 fi 40692 fi 40693 STRIP=$ac_cv_prog_STRIP 40694 if test -n "$STRIP"; then 40695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40696 $as_echo "$STRIP" >&6; } 40697 else 40698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40699 $as_echo "no" >&6; } 40700 fi 40701 40702 40703 test -n "$STRIP" && break 40704 done 40705 fi 40706 if test -z "$STRIP"; then 40707 ac_ct_STRIP=$STRIP 40708 for ac_prog in strip 40709 do 40710 # Extract the first word of "$ac_prog", so it can be a program name with args. 40711 set dummy $ac_prog; ac_word=$2 40712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40713 $as_echo_n "checking for $ac_word... " >&6; } 40714 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 40715 $as_echo_n "(cached) " >&6 40716 else 40717 if test -n "$ac_ct_STRIP"; then 40718 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 40719 else 40720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40721 for as_dir in $PATH 40722 do 40723 IFS=$as_save_IFS 40724 test -z "$as_dir" && as_dir=. 40725 for ac_exec_ext in '' $ac_executable_extensions; do 40726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40727 ac_cv_prog_ac_ct_STRIP="$ac_prog" 40728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40729 break 2 40730 fi 40731 done 40732 done 40733 IFS=$as_save_IFS 40734 40735 fi 40736 fi 40737 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 40738 if test -n "$ac_ct_STRIP"; then 40739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 40740 $as_echo "$ac_ct_STRIP" >&6; } 40741 else 40742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40743 $as_echo "no" >&6; } 40744 fi 40745 40746 40747 test -n "$ac_ct_STRIP" && break 40748 done 40749 40750 if test "x$ac_ct_STRIP" = x; then 40751 STRIP="" 40752 else 40753 case $cross_compiling:$ac_tool_warned in 40754 yes:) 40755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40757 ac_tool_warned=yes ;; 40758 esac 40759 STRIP=$ac_ct_STRIP 40760 fi 40761 fi 40762 40763 else 40764 # If it succeeded, then it was overridden by the user. We will use it 40765 # for the tool. 40766 40767 # First remove it from the list of overridden variables, so we can test 40768 # for unknown variables in the end. 40769 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40770 40771 # Check if we try to supply an empty value 40772 if test "x$STRIP" = x; then 40773 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 40774 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 40775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40776 $as_echo_n "checking for STRIP... " >&6; } 40777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40778 $as_echo "disabled" >&6; } 40779 else 40780 # Check if the provided tool contains a complete path. 40781 tool_specified="$STRIP" 40782 tool_basename="${tool_specified##*/}" 40783 if test "x$tool_basename" = "x$tool_specified"; then 40784 # A command without a complete path is provided, search $PATH. 40785 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 40786 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 40787 # Extract the first word of "$tool_basename", so it can be a program name with args. 40788 set dummy $tool_basename; ac_word=$2 40789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40790 $as_echo_n "checking for $ac_word... " >&6; } 40791 if ${ac_cv_path_STRIP+:} false; then : 40792 $as_echo_n "(cached) " >&6 40793 else 40794 case $STRIP in 40795 [\\/]* | ?:[\\/]*) 40796 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 40797 ;; 40798 *) 40799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40800 for as_dir in $PATH 40801 do 40802 IFS=$as_save_IFS 40803 test -z "$as_dir" && as_dir=. 40804 for ac_exec_ext in '' $ac_executable_extensions; do 40805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40806 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 40807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40808 break 2 40809 fi 40810 done 40811 done 40812 IFS=$as_save_IFS 40813 40814 ;; 40815 esac 40816 fi 40817 STRIP=$ac_cv_path_STRIP 40818 if test -n "$STRIP"; then 40819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 40820 $as_echo "$STRIP" >&6; } 40821 else 40822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40823 $as_echo "no" >&6; } 40824 fi 40825 40826 40827 if test "x$STRIP" = x; then 40828 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40829 fi 40830 else 40831 # Otherwise we believe it is a complete path. Use it as it is. 40832 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 40833 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 40834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 40835 $as_echo_n "checking for STRIP... " >&6; } 40836 if test ! -x "$tool_specified"; then 40837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40838 $as_echo "not found" >&6; } 40839 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 40840 fi 40841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40842 $as_echo "$tool_specified" >&6; } 40843 fi 40844 fi 40845 fi 40846 40847 fi 40848 40849 40850 40851 # Only process if variable expands to non-empty 40852 40853 if test "x$STRIP" != x; then 40854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40855 40856 # First separate the path from the arguments. This will split at the first 40857 # space. 40858 complete="$STRIP" 40859 path="${complete%% *}" 40860 tmp="$complete EOL" 40861 arguments="${tmp#* }" 40862 40863 # Input might be given as Windows format, start by converting to 40864 # unix format. 40865 new_path=`$CYGPATH -u "$path"` 40866 40867 # Now try to locate executable using which 40868 new_path=`$WHICH "$new_path" 2> /dev/null` 40869 # bat and cmd files are not always considered executable in cygwin causing which 40870 # to not find them 40871 if test "x$new_path" = x \ 40872 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40873 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40874 new_path=`$CYGPATH -u "$path"` 40875 fi 40876 if test "x$new_path" = x; then 40877 # Oops. Which didn't find the executable. 40878 # The splitting of arguments from the executable at a space might have been incorrect, 40879 # since paths with space are more likely in Windows. Give it another try with the whole 40880 # argument. 40881 path="$complete" 40882 arguments="EOL" 40883 new_path=`$CYGPATH -u "$path"` 40884 new_path=`$WHICH "$new_path" 2> /dev/null` 40885 # bat and cmd files are not always considered executable in cygwin causing which 40886 # to not find them 40887 if test "x$new_path" = x \ 40888 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40889 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40890 new_path=`$CYGPATH -u "$path"` 40891 fi 40892 if test "x$new_path" = x; then 40893 # It's still not found. Now this is an unrecoverable error. 40894 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 40895 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 40896 has_space=`$ECHO "$complete" | $GREP " "` 40897 if test "x$has_space" != x; then 40898 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40899 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40900 fi 40901 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40902 fi 40903 fi 40904 40905 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40906 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40907 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40908 # "foo.exe" is OK but "foo" is an error. 40909 # 40910 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40911 # It is also a way to make sure we got the proper file name for the real test later on. 40912 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40913 if test "x$test_shortpath" = x; then 40914 # Short path failed, file does not exist as specified. 40915 # Try adding .exe or .cmd 40916 if test -f "${new_path}.exe"; then 40917 input_to_shortpath="${new_path}.exe" 40918 elif test -f "${new_path}.cmd"; then 40919 input_to_shortpath="${new_path}.cmd" 40920 else 40921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 40922 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 40923 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40924 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40925 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 40926 fi 40927 else 40928 input_to_shortpath="$new_path" 40929 fi 40930 40931 # Call helper function which possibly converts this using DOS-style short mode. 40932 # If so, the updated path is stored in $new_path. 40933 new_path="$input_to_shortpath" 40934 40935 input_path="$input_to_shortpath" 40936 # Check if we need to convert this using DOS-style short mode. If the path 40937 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40938 # take no chances and rewrite it. 40939 # Note: m4 eats our [], so we need to use [ and ] instead. 40940 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40941 if test "x$has_forbidden_chars" != x; then 40942 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40943 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40944 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40945 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40946 # Going to short mode and back again did indeed matter. Since short mode is 40947 # case insensitive, let's make it lowercase to improve readability. 40948 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40949 # Now convert it back to Unix-style (cygpath) 40950 input_path=`$CYGPATH -u "$shortmode_path"` 40951 new_path="$input_path" 40952 fi 40953 fi 40954 40955 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40956 if test "x$test_cygdrive_prefix" = x; then 40957 # As a simple fix, exclude /usr/bin since it's not a real path. 40958 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40959 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40960 # a path prefixed by /cygdrive for fixpath to work. 40961 new_path="$CYGWIN_ROOT_PATH$input_path" 40962 fi 40963 fi 40964 40965 # remove trailing .exe if any 40966 new_path="${new_path/%.exe/}" 40967 40968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40969 40970 # First separate the path from the arguments. This will split at the first 40971 # space. 40972 complete="$STRIP" 40973 path="${complete%% *}" 40974 tmp="$complete EOL" 40975 arguments="${tmp#* }" 40976 40977 # Input might be given as Windows format, start by converting to 40978 # unix format. 40979 new_path="$path" 40980 40981 windows_path="$new_path" 40982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40983 unix_path=`$CYGPATH -u "$windows_path"` 40984 new_path="$unix_path" 40985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40987 new_path="$unix_path" 40988 fi 40989 40990 40991 # Now try to locate executable using which 40992 new_path=`$WHICH "$new_path" 2> /dev/null` 40993 40994 if test "x$new_path" = x; then 40995 # Oops. Which didn't find the executable. 40996 # The splitting of arguments from the executable at a space might have been incorrect, 40997 # since paths with space are more likely in Windows. Give it another try with the whole 40998 # argument. 40999 path="$complete" 41000 arguments="EOL" 41001 new_path="$path" 41002 41003 windows_path="$new_path" 41004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41005 unix_path=`$CYGPATH -u "$windows_path"` 41006 new_path="$unix_path" 41007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41008 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41009 new_path="$unix_path" 41010 fi 41011 41012 41013 new_path=`$WHICH "$new_path" 2> /dev/null` 41014 # bat and cmd files are not always considered executable in MSYS causing which 41015 # to not find them 41016 if test "x$new_path" = x \ 41017 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41018 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41019 new_path="$path" 41020 41021 windows_path="$new_path" 41022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41023 unix_path=`$CYGPATH -u "$windows_path"` 41024 new_path="$unix_path" 41025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41027 new_path="$unix_path" 41028 fi 41029 41030 fi 41031 41032 if test "x$new_path" = x; then 41033 # It's still not found. Now this is an unrecoverable error. 41034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41035 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41036 has_space=`$ECHO "$complete" | $GREP " "` 41037 if test "x$has_space" != x; then 41038 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41039 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41040 fi 41041 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41042 fi 41043 fi 41044 41045 # Now new_path has a complete unix path to the binary 41046 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41047 # Keep paths in /bin as-is, but remove trailing .exe if any 41048 new_path="${new_path/%.exe/}" 41049 # Do not save /bin paths to all_fixpath_prefixes! 41050 else 41051 # Not in mixed or Windows style, start by that. 41052 new_path=`cmd //c echo $new_path` 41053 41054 input_path="$new_path" 41055 # Check if we need to convert this using DOS-style short mode. If the path 41056 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41057 # take no chances and rewrite it. 41058 # Note: m4 eats our [], so we need to use [ and ] instead. 41059 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41060 if test "x$has_forbidden_chars" != x; then 41061 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41062 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41063 fi 41064 41065 # Output is in $new_path 41066 41067 windows_path="$new_path" 41068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41069 unix_path=`$CYGPATH -u "$windows_path"` 41070 new_path="$unix_path" 41071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41073 new_path="$unix_path" 41074 fi 41075 41076 # remove trailing .exe if any 41077 new_path="${new_path/%.exe/}" 41078 41079 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41080 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41081 fi 41082 41083 else 41084 # We're on a unix platform. Hooray! :) 41085 # First separate the path from the arguments. This will split at the first 41086 # space. 41087 complete="$STRIP" 41088 path="${complete%% *}" 41089 tmp="$complete EOL" 41090 arguments="${tmp#* }" 41091 41092 # Cannot rely on the command "which" here since it doesn't always work. 41093 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41094 if test -z "$is_absolute_path"; then 41095 # Path to executable is not absolute. Find it. 41096 IFS_save="$IFS" 41097 IFS=: 41098 for p in $PATH; do 41099 if test -f "$p/$path" && test -x "$p/$path"; then 41100 new_path="$p/$path" 41101 break 41102 fi 41103 done 41104 IFS="$IFS_save" 41105 else 41106 # This is an absolute path, we can use it without further modifications. 41107 new_path="$path" 41108 fi 41109 41110 if test "x$new_path" = x; then 41111 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41112 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41113 has_space=`$ECHO "$complete" | $GREP " "` 41114 if test "x$has_space" != x; then 41115 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41116 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41117 fi 41118 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41119 fi 41120 fi 41121 41122 # Now join together the path and the arguments once again 41123 if test "x$arguments" != xEOL; then 41124 new_complete="$new_path ${arguments% *}" 41125 else 41126 new_complete="$new_path" 41127 fi 41128 41129 if test "x$complete" != "x$new_complete"; then 41130 STRIP="$new_complete" 41131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41132 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41133 fi 41134 fi 41135 41136 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41137 41138 41139 # Publish this variable in the help. 41140 41141 41142 if [ -z "${NM+x}" ]; then 41143 # The variable is not set by user, try to locate tool using the code snippet 41144 if test -n "$ac_tool_prefix"; then 41145 for ac_prog in nm gcc-nm 41146 do 41147 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41150 $as_echo_n "checking for $ac_word... " >&6; } 41151 if ${ac_cv_prog_NM+:} false; then : 41152 $as_echo_n "(cached) " >&6 41153 else 41154 if test -n "$NM"; then 41155 ac_cv_prog_NM="$NM" # Let the user override the test. 41156 else 41157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41158 for as_dir in $PATH 41159 do 41160 IFS=$as_save_IFS 41161 test -z "$as_dir" && as_dir=. 41162 for ac_exec_ext in '' $ac_executable_extensions; do 41163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41164 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41166 break 2 41167 fi 41168 done 41169 done 41170 IFS=$as_save_IFS 41171 41172 fi 41173 fi 41174 NM=$ac_cv_prog_NM 41175 if test -n "$NM"; then 41176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41177 $as_echo "$NM" >&6; } 41178 else 41179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41180 $as_echo "no" >&6; } 41181 fi 41182 41183 41184 test -n "$NM" && break 41185 done 41186 fi 41187 if test -z "$NM"; then 41188 ac_ct_NM=$NM 41189 for ac_prog in nm gcc-nm 41190 do 41191 # Extract the first word of "$ac_prog", so it can be a program name with args. 41192 set dummy $ac_prog; ac_word=$2 41193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41194 $as_echo_n "checking for $ac_word... " >&6; } 41195 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41196 $as_echo_n "(cached) " >&6 41197 else 41198 if test -n "$ac_ct_NM"; then 41199 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41200 else 41201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41202 for as_dir in $PATH 41203 do 41204 IFS=$as_save_IFS 41205 test -z "$as_dir" && as_dir=. 41206 for ac_exec_ext in '' $ac_executable_extensions; do 41207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41208 ac_cv_prog_ac_ct_NM="$ac_prog" 41209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41210 break 2 41211 fi 41212 done 41213 done 41214 IFS=$as_save_IFS 41215 41216 fi 41217 fi 41218 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41219 if test -n "$ac_ct_NM"; then 41220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41221 $as_echo "$ac_ct_NM" >&6; } 41222 else 41223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41224 $as_echo "no" >&6; } 41225 fi 41226 41227 41228 test -n "$ac_ct_NM" && break 41229 done 41230 41231 if test "x$ac_ct_NM" = x; then 41232 NM="" 41233 else 41234 case $cross_compiling:$ac_tool_warned in 41235 yes:) 41236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41238 ac_tool_warned=yes ;; 41239 esac 41240 NM=$ac_ct_NM 41241 fi 41242 fi 41243 41244 else 41245 # The variable is set, but is it from the command line or the environment? 41246 41247 # Try to remove the string !NM! from our list. 41248 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41249 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41250 # If it failed, the variable was not from the command line. Ignore it, 41251 # but warn the user (except for BASH, which is always set by the calling BASH). 41252 if test "xNM" != xBASH; then 41253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41254 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41255 fi 41256 # Try to locate tool using the code snippet 41257 if test -n "$ac_tool_prefix"; then 41258 for ac_prog in nm gcc-nm 41259 do 41260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41263 $as_echo_n "checking for $ac_word... " >&6; } 41264 if ${ac_cv_prog_NM+:} false; then : 41265 $as_echo_n "(cached) " >&6 41266 else 41267 if test -n "$NM"; then 41268 ac_cv_prog_NM="$NM" # Let the user override the test. 41269 else 41270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41271 for as_dir in $PATH 41272 do 41273 IFS=$as_save_IFS 41274 test -z "$as_dir" && as_dir=. 41275 for ac_exec_ext in '' $ac_executable_extensions; do 41276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41277 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41279 break 2 41280 fi 41281 done 41282 done 41283 IFS=$as_save_IFS 41284 41285 fi 41286 fi 41287 NM=$ac_cv_prog_NM 41288 if test -n "$NM"; then 41289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41290 $as_echo "$NM" >&6; } 41291 else 41292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41293 $as_echo "no" >&6; } 41294 fi 41295 41296 41297 test -n "$NM" && break 41298 done 41299 fi 41300 if test -z "$NM"; then 41301 ac_ct_NM=$NM 41302 for ac_prog in nm gcc-nm 41303 do 41304 # Extract the first word of "$ac_prog", so it can be a program name with args. 41305 set dummy $ac_prog; ac_word=$2 41306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41307 $as_echo_n "checking for $ac_word... " >&6; } 41308 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41309 $as_echo_n "(cached) " >&6 41310 else 41311 if test -n "$ac_ct_NM"; then 41312 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41313 else 41314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41315 for as_dir in $PATH 41316 do 41317 IFS=$as_save_IFS 41318 test -z "$as_dir" && as_dir=. 41319 for ac_exec_ext in '' $ac_executable_extensions; do 41320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41321 ac_cv_prog_ac_ct_NM="$ac_prog" 41322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41323 break 2 41324 fi 41325 done 41326 done 41327 IFS=$as_save_IFS 41328 41329 fi 41330 fi 41331 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41332 if test -n "$ac_ct_NM"; then 41333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41334 $as_echo "$ac_ct_NM" >&6; } 41335 else 41336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41337 $as_echo "no" >&6; } 41338 fi 41339 41340 41341 test -n "$ac_ct_NM" && break 41342 done 41343 41344 if test "x$ac_ct_NM" = x; then 41345 NM="" 41346 else 41347 case $cross_compiling:$ac_tool_warned in 41348 yes:) 41349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41351 ac_tool_warned=yes ;; 41352 esac 41353 NM=$ac_ct_NM 41354 fi 41355 fi 41356 41357 else 41358 # If it succeeded, then it was overridden by the user. We will use it 41359 # for the tool. 41360 41361 # First remove it from the list of overridden variables, so we can test 41362 # for unknown variables in the end. 41363 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41364 41365 # Check if we try to supply an empty value 41366 if test "x$NM" = x; then 41367 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41368 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41370 $as_echo_n "checking for NM... " >&6; } 41371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41372 $as_echo "disabled" >&6; } 41373 else 41374 # Check if the provided tool contains a complete path. 41375 tool_specified="$NM" 41376 tool_basename="${tool_specified##*/}" 41377 if test "x$tool_basename" = "x$tool_specified"; then 41378 # A command without a complete path is provided, search $PATH. 41379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41380 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41381 # Extract the first word of "$tool_basename", so it can be a program name with args. 41382 set dummy $tool_basename; ac_word=$2 41383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41384 $as_echo_n "checking for $ac_word... " >&6; } 41385 if ${ac_cv_path_NM+:} false; then : 41386 $as_echo_n "(cached) " >&6 41387 else 41388 case $NM in 41389 [\\/]* | ?:[\\/]*) 41390 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41391 ;; 41392 *) 41393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41394 for as_dir in $PATH 41395 do 41396 IFS=$as_save_IFS 41397 test -z "$as_dir" && as_dir=. 41398 for ac_exec_ext in '' $ac_executable_extensions; do 41399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41400 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41402 break 2 41403 fi 41404 done 41405 done 41406 IFS=$as_save_IFS 41407 41408 ;; 41409 esac 41410 fi 41411 NM=$ac_cv_path_NM 41412 if test -n "$NM"; then 41413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41414 $as_echo "$NM" >&6; } 41415 else 41416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41417 $as_echo "no" >&6; } 41418 fi 41419 41420 41421 if test "x$NM" = x; then 41422 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41423 fi 41424 else 41425 # Otherwise we believe it is a complete path. Use it as it is. 41426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41427 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41429 $as_echo_n "checking for NM... " >&6; } 41430 if test ! -x "$tool_specified"; then 41431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41432 $as_echo "not found" >&6; } 41433 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41434 fi 41435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41436 $as_echo "$tool_specified" >&6; } 41437 fi 41438 fi 41439 fi 41440 41441 fi 41442 41443 41444 else 41445 41446 41447 # Publish this variable in the help. 41448 41449 41450 if [ -z "${NM+x}" ]; then 41451 # The variable is not set by user, try to locate tool using the code snippet 41452 if test -n "$ac_tool_prefix"; then 41453 for ac_prog in nm 41454 do 41455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41458 $as_echo_n "checking for $ac_word... " >&6; } 41459 if ${ac_cv_prog_NM+:} false; then : 41460 $as_echo_n "(cached) " >&6 41461 else 41462 if test -n "$NM"; then 41463 ac_cv_prog_NM="$NM" # Let the user override the test. 41464 else 41465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41466 for as_dir in $PATH 41467 do 41468 IFS=$as_save_IFS 41469 test -z "$as_dir" && as_dir=. 41470 for ac_exec_ext in '' $ac_executable_extensions; do 41471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41472 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41474 break 2 41475 fi 41476 done 41477 done 41478 IFS=$as_save_IFS 41479 41480 fi 41481 fi 41482 NM=$ac_cv_prog_NM 41483 if test -n "$NM"; then 41484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41485 $as_echo "$NM" >&6; } 41486 else 41487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41488 $as_echo "no" >&6; } 41489 fi 41490 41491 41492 test -n "$NM" && break 41493 done 41494 fi 41495 if test -z "$NM"; then 41496 ac_ct_NM=$NM 41497 for ac_prog in nm 41498 do 41499 # Extract the first word of "$ac_prog", so it can be a program name with args. 41500 set dummy $ac_prog; ac_word=$2 41501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41502 $as_echo_n "checking for $ac_word... " >&6; } 41503 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41504 $as_echo_n "(cached) " >&6 41505 else 41506 if test -n "$ac_ct_NM"; then 41507 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41508 else 41509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41510 for as_dir in $PATH 41511 do 41512 IFS=$as_save_IFS 41513 test -z "$as_dir" && as_dir=. 41514 for ac_exec_ext in '' $ac_executable_extensions; do 41515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41516 ac_cv_prog_ac_ct_NM="$ac_prog" 41517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41518 break 2 41519 fi 41520 done 41521 done 41522 IFS=$as_save_IFS 41523 41524 fi 41525 fi 41526 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41527 if test -n "$ac_ct_NM"; then 41528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41529 $as_echo "$ac_ct_NM" >&6; } 41530 else 41531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41532 $as_echo "no" >&6; } 41533 fi 41534 41535 41536 test -n "$ac_ct_NM" && break 41537 done 41538 41539 if test "x$ac_ct_NM" = x; then 41540 NM="" 41541 else 41542 case $cross_compiling:$ac_tool_warned in 41543 yes:) 41544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41546 ac_tool_warned=yes ;; 41547 esac 41548 NM=$ac_ct_NM 41549 fi 41550 fi 41551 41552 else 41553 # The variable is set, but is it from the command line or the environment? 41554 41555 # Try to remove the string !NM! from our list. 41556 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41557 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41558 # If it failed, the variable was not from the command line. Ignore it, 41559 # but warn the user (except for BASH, which is always set by the calling BASH). 41560 if test "xNM" != xBASH; then 41561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41562 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41563 fi 41564 # Try to locate tool using the code snippet 41565 if test -n "$ac_tool_prefix"; then 41566 for ac_prog in nm 41567 do 41568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 41569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 41570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41571 $as_echo_n "checking for $ac_word... " >&6; } 41572 if ${ac_cv_prog_NM+:} false; then : 41573 $as_echo_n "(cached) " >&6 41574 else 41575 if test -n "$NM"; then 41576 ac_cv_prog_NM="$NM" # Let the user override the test. 41577 else 41578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41579 for as_dir in $PATH 41580 do 41581 IFS=$as_save_IFS 41582 test -z "$as_dir" && as_dir=. 41583 for ac_exec_ext in '' $ac_executable_extensions; do 41584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41585 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 41586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41587 break 2 41588 fi 41589 done 41590 done 41591 IFS=$as_save_IFS 41592 41593 fi 41594 fi 41595 NM=$ac_cv_prog_NM 41596 if test -n "$NM"; then 41597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41598 $as_echo "$NM" >&6; } 41599 else 41600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41601 $as_echo "no" >&6; } 41602 fi 41603 41604 41605 test -n "$NM" && break 41606 done 41607 fi 41608 if test -z "$NM"; then 41609 ac_ct_NM=$NM 41610 for ac_prog in nm 41611 do 41612 # Extract the first word of "$ac_prog", so it can be a program name with args. 41613 set dummy $ac_prog; ac_word=$2 41614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41615 $as_echo_n "checking for $ac_word... " >&6; } 41616 if ${ac_cv_prog_ac_ct_NM+:} false; then : 41617 $as_echo_n "(cached) " >&6 41618 else 41619 if test -n "$ac_ct_NM"; then 41620 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 41621 else 41622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41623 for as_dir in $PATH 41624 do 41625 IFS=$as_save_IFS 41626 test -z "$as_dir" && as_dir=. 41627 for ac_exec_ext in '' $ac_executable_extensions; do 41628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41629 ac_cv_prog_ac_ct_NM="$ac_prog" 41630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41631 break 2 41632 fi 41633 done 41634 done 41635 IFS=$as_save_IFS 41636 41637 fi 41638 fi 41639 ac_ct_NM=$ac_cv_prog_ac_ct_NM 41640 if test -n "$ac_ct_NM"; then 41641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 41642 $as_echo "$ac_ct_NM" >&6; } 41643 else 41644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41645 $as_echo "no" >&6; } 41646 fi 41647 41648 41649 test -n "$ac_ct_NM" && break 41650 done 41651 41652 if test "x$ac_ct_NM" = x; then 41653 NM="" 41654 else 41655 case $cross_compiling:$ac_tool_warned in 41656 yes:) 41657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 41658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 41659 ac_tool_warned=yes ;; 41660 esac 41661 NM=$ac_ct_NM 41662 fi 41663 fi 41664 41665 else 41666 # If it succeeded, then it was overridden by the user. We will use it 41667 # for the tool. 41668 41669 # First remove it from the list of overridden variables, so we can test 41670 # for unknown variables in the end. 41671 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41672 41673 # Check if we try to supply an empty value 41674 if test "x$NM" = x; then 41675 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41676 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41678 $as_echo_n "checking for NM... " >&6; } 41679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41680 $as_echo "disabled" >&6; } 41681 else 41682 # Check if the provided tool contains a complete path. 41683 tool_specified="$NM" 41684 tool_basename="${tool_specified##*/}" 41685 if test "x$tool_basename" = "x$tool_specified"; then 41686 # A command without a complete path is provided, search $PATH. 41687 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41688 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41689 # Extract the first word of "$tool_basename", so it can be a program name with args. 41690 set dummy $tool_basename; ac_word=$2 41691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41692 $as_echo_n "checking for $ac_word... " >&6; } 41693 if ${ac_cv_path_NM+:} false; then : 41694 $as_echo_n "(cached) " >&6 41695 else 41696 case $NM in 41697 [\\/]* | ?:[\\/]*) 41698 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41699 ;; 41700 *) 41701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41702 for as_dir in $PATH 41703 do 41704 IFS=$as_save_IFS 41705 test -z "$as_dir" && as_dir=. 41706 for ac_exec_ext in '' $ac_executable_extensions; do 41707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41708 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41710 break 2 41711 fi 41712 done 41713 done 41714 IFS=$as_save_IFS 41715 41716 ;; 41717 esac 41718 fi 41719 NM=$ac_cv_path_NM 41720 if test -n "$NM"; then 41721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41722 $as_echo "$NM" >&6; } 41723 else 41724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41725 $as_echo "no" >&6; } 41726 fi 41727 41728 41729 if test "x$NM" = x; then 41730 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41731 fi 41732 else 41733 # Otherwise we believe it is a complete path. Use it as it is. 41734 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 41735 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 41736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41737 $as_echo_n "checking for NM... " >&6; } 41738 if test ! -x "$tool_specified"; then 41739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41740 $as_echo "not found" >&6; } 41741 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 41742 fi 41743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41744 $as_echo "$tool_specified" >&6; } 41745 fi 41746 fi 41747 fi 41748 41749 fi 41750 41751 41752 fi 41753 41754 # Only process if variable expands to non-empty 41755 41756 if test "x$NM" != x; then 41757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41758 41759 # First separate the path from the arguments. This will split at the first 41760 # space. 41761 complete="$NM" 41762 path="${complete%% *}" 41763 tmp="$complete EOL" 41764 arguments="${tmp#* }" 41765 41766 # Input might be given as Windows format, start by converting to 41767 # unix format. 41768 new_path=`$CYGPATH -u "$path"` 41769 41770 # Now try to locate executable using which 41771 new_path=`$WHICH "$new_path" 2> /dev/null` 41772 # bat and cmd files are not always considered executable in cygwin causing which 41773 # to not find them 41774 if test "x$new_path" = x \ 41775 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41776 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41777 new_path=`$CYGPATH -u "$path"` 41778 fi 41779 if test "x$new_path" = x; then 41780 # Oops. Which didn't find the executable. 41781 # The splitting of arguments from the executable at a space might have been incorrect, 41782 # since paths with space are more likely in Windows. Give it another try with the whole 41783 # argument. 41784 path="$complete" 41785 arguments="EOL" 41786 new_path=`$CYGPATH -u "$path"` 41787 new_path=`$WHICH "$new_path" 2> /dev/null` 41788 # bat and cmd files are not always considered executable in cygwin causing which 41789 # to not find them 41790 if test "x$new_path" = x \ 41791 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41792 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41793 new_path=`$CYGPATH -u "$path"` 41794 fi 41795 if test "x$new_path" = x; then 41796 # It's still not found. Now this is an unrecoverable error. 41797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41798 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41799 has_space=`$ECHO "$complete" | $GREP " "` 41800 if test "x$has_space" != x; then 41801 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41802 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41803 fi 41804 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41805 fi 41806 fi 41807 41808 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41809 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41810 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41811 # "foo.exe" is OK but "foo" is an error. 41812 # 41813 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41814 # It is also a way to make sure we got the proper file name for the real test later on. 41815 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41816 if test "x$test_shortpath" = x; then 41817 # Short path failed, file does not exist as specified. 41818 # Try adding .exe or .cmd 41819 if test -f "${new_path}.exe"; then 41820 input_to_shortpath="${new_path}.exe" 41821 elif test -f "${new_path}.cmd"; then 41822 input_to_shortpath="${new_path}.cmd" 41823 else 41824 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 41825 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 41826 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41827 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41828 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41829 fi 41830 else 41831 input_to_shortpath="$new_path" 41832 fi 41833 41834 # Call helper function which possibly converts this using DOS-style short mode. 41835 # If so, the updated path is stored in $new_path. 41836 new_path="$input_to_shortpath" 41837 41838 input_path="$input_to_shortpath" 41839 # Check if we need to convert this using DOS-style short mode. If the path 41840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41841 # take no chances and rewrite it. 41842 # Note: m4 eats our [], so we need to use [ and ] instead. 41843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41844 if test "x$has_forbidden_chars" != x; then 41845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41846 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41847 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41848 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41849 # Going to short mode and back again did indeed matter. Since short mode is 41850 # case insensitive, let's make it lowercase to improve readability. 41851 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41852 # Now convert it back to Unix-style (cygpath) 41853 input_path=`$CYGPATH -u "$shortmode_path"` 41854 new_path="$input_path" 41855 fi 41856 fi 41857 41858 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41859 if test "x$test_cygdrive_prefix" = x; then 41860 # As a simple fix, exclude /usr/bin since it's not a real path. 41861 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41862 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41863 # a path prefixed by /cygdrive for fixpath to work. 41864 new_path="$CYGWIN_ROOT_PATH$input_path" 41865 fi 41866 fi 41867 41868 # remove trailing .exe if any 41869 new_path="${new_path/%.exe/}" 41870 41871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41872 41873 # First separate the path from the arguments. This will split at the first 41874 # space. 41875 complete="$NM" 41876 path="${complete%% *}" 41877 tmp="$complete EOL" 41878 arguments="${tmp#* }" 41879 41880 # Input might be given as Windows format, start by converting to 41881 # unix format. 41882 new_path="$path" 41883 41884 windows_path="$new_path" 41885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41886 unix_path=`$CYGPATH -u "$windows_path"` 41887 new_path="$unix_path" 41888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41890 new_path="$unix_path" 41891 fi 41892 41893 41894 # Now try to locate executable using which 41895 new_path=`$WHICH "$new_path" 2> /dev/null` 41896 41897 if test "x$new_path" = x; then 41898 # Oops. Which didn't find the executable. 41899 # The splitting of arguments from the executable at a space might have been incorrect, 41900 # since paths with space are more likely in Windows. Give it another try with the whole 41901 # argument. 41902 path="$complete" 41903 arguments="EOL" 41904 new_path="$path" 41905 41906 windows_path="$new_path" 41907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41908 unix_path=`$CYGPATH -u "$windows_path"` 41909 new_path="$unix_path" 41910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41912 new_path="$unix_path" 41913 fi 41914 41915 41916 new_path=`$WHICH "$new_path" 2> /dev/null` 41917 # bat and cmd files are not always considered executable in MSYS causing which 41918 # to not find them 41919 if test "x$new_path" = x \ 41920 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41921 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41922 new_path="$path" 41923 41924 windows_path="$new_path" 41925 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41926 unix_path=`$CYGPATH -u "$windows_path"` 41927 new_path="$unix_path" 41928 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41929 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41930 new_path="$unix_path" 41931 fi 41932 41933 fi 41934 41935 if test "x$new_path" = x; then 41936 # It's still not found. Now this is an unrecoverable error. 41937 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 41938 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 41939 has_space=`$ECHO "$complete" | $GREP " "` 41940 if test "x$has_space" != x; then 41941 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41942 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41943 fi 41944 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 41945 fi 41946 fi 41947 41948 # Now new_path has a complete unix path to the binary 41949 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41950 # Keep paths in /bin as-is, but remove trailing .exe if any 41951 new_path="${new_path/%.exe/}" 41952 # Do not save /bin paths to all_fixpath_prefixes! 41953 else 41954 # Not in mixed or Windows style, start by that. 41955 new_path=`cmd //c echo $new_path` 41956 41957 input_path="$new_path" 41958 # Check if we need to convert this using DOS-style short mode. If the path 41959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41960 # take no chances and rewrite it. 41961 # Note: m4 eats our [], so we need to use [ and ] instead. 41962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41963 if test "x$has_forbidden_chars" != x; then 41964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41965 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41966 fi 41967 41968 # Output is in $new_path 41969 41970 windows_path="$new_path" 41971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41972 unix_path=`$CYGPATH -u "$windows_path"` 41973 new_path="$unix_path" 41974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41975 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41976 new_path="$unix_path" 41977 fi 41978 41979 # remove trailing .exe if any 41980 new_path="${new_path/%.exe/}" 41981 41982 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41983 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41984 fi 41985 41986 else 41987 # We're on a unix platform. Hooray! :) 41988 # First separate the path from the arguments. This will split at the first 41989 # space. 41990 complete="$NM" 41991 path="${complete%% *}" 41992 tmp="$complete EOL" 41993 arguments="${tmp#* }" 41994 41995 # Cannot rely on the command "which" here since it doesn't always work. 41996 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41997 if test -z "$is_absolute_path"; then 41998 # Path to executable is not absolute. Find it. 41999 IFS_save="$IFS" 42000 IFS=: 42001 for p in $PATH; do 42002 if test -f "$p/$path" && test -x "$p/$path"; then 42003 new_path="$p/$path" 42004 break 42005 fi 42006 done 42007 IFS="$IFS_save" 42008 else 42009 # This is an absolute path, we can use it without further modifications. 42010 new_path="$path" 42011 fi 42012 42013 if test "x$new_path" = x; then 42014 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42015 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42016 has_space=`$ECHO "$complete" | $GREP " "` 42017 if test "x$has_space" != x; then 42018 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42019 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42020 fi 42021 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42022 fi 42023 fi 42024 42025 # Now join together the path and the arguments once again 42026 if test "x$arguments" != xEOL; then 42027 new_complete="$new_path ${arguments% *}" 42028 else 42029 new_complete="$new_path" 42030 fi 42031 42032 if test "x$complete" != "x$new_complete"; then 42033 NM="$new_complete" 42034 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42035 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42036 fi 42037 fi 42038 42039 GNM="$NM" 42040 42041 fi 42042 42043 # objcopy is used for moving debug symbols to separate files when 42044 # full debug symbols are enabled. 42045 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 42046 42047 42048 # Publish this variable in the help. 42049 42050 42051 if [ -z "${OBJCOPY+x}" ]; then 42052 # The variable is not set by user, try to locate tool using the code snippet 42053 if test -n "$ac_tool_prefix"; then 42054 for ac_prog in gobjcopy objcopy 42055 do 42056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42059 $as_echo_n "checking for $ac_word... " >&6; } 42060 if ${ac_cv_prog_OBJCOPY+:} false; then : 42061 $as_echo_n "(cached) " >&6 42062 else 42063 if test -n "$OBJCOPY"; then 42064 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42065 else 42066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42067 for as_dir in $PATH 42068 do 42069 IFS=$as_save_IFS 42070 test -z "$as_dir" && as_dir=. 42071 for ac_exec_ext in '' $ac_executable_extensions; do 42072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42073 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 42074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42075 break 2 42076 fi 42077 done 42078 done 42079 IFS=$as_save_IFS 42080 42081 fi 42082 fi 42083 OBJCOPY=$ac_cv_prog_OBJCOPY 42084 if test -n "$OBJCOPY"; then 42085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42086 $as_echo "$OBJCOPY" >&6; } 42087 else 42088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42089 $as_echo "no" >&6; } 42090 fi 42091 42092 42093 test -n "$OBJCOPY" && break 42094 done 42095 fi 42096 if test -z "$OBJCOPY"; then 42097 ac_ct_OBJCOPY=$OBJCOPY 42098 for ac_prog in gobjcopy objcopy 42099 do 42100 # Extract the first word of "$ac_prog", so it can be a program name with args. 42101 set dummy $ac_prog; ac_word=$2 42102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42103 $as_echo_n "checking for $ac_word... " >&6; } 42104 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42105 $as_echo_n "(cached) " >&6 42106 else 42107 if test -n "$ac_ct_OBJCOPY"; then 42108 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42109 else 42110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42111 for as_dir in $PATH 42112 do 42113 IFS=$as_save_IFS 42114 test -z "$as_dir" && as_dir=. 42115 for ac_exec_ext in '' $ac_executable_extensions; do 42116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42117 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42119 break 2 42120 fi 42121 done 42122 done 42123 IFS=$as_save_IFS 42124 42125 fi 42126 fi 42127 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42128 if test -n "$ac_ct_OBJCOPY"; then 42129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42130 $as_echo "$ac_ct_OBJCOPY" >&6; } 42131 else 42132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42133 $as_echo "no" >&6; } 42134 fi 42135 42136 42137 test -n "$ac_ct_OBJCOPY" && break 42138 done 42139 42140 if test "x$ac_ct_OBJCOPY" = x; then 42141 OBJCOPY="" 42142 else 42143 case $cross_compiling:$ac_tool_warned in 42144 yes:) 42145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42147 ac_tool_warned=yes ;; 42148 esac 42149 OBJCOPY=$ac_ct_OBJCOPY 42150 fi 42151 fi 42152 42153 else 42154 # The variable is set, but is it from the command line or the environment? 42155 42156 # Try to remove the string !OBJCOPY! from our list. 42157 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 42158 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42159 # If it failed, the variable was not from the command line. Ignore it, 42160 # but warn the user (except for BASH, which is always set by the calling BASH). 42161 if test "xOBJCOPY" != xBASH; then 42162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 42163 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 42164 fi 42165 # Try to locate tool using the code snippet 42166 if test -n "$ac_tool_prefix"; then 42167 for ac_prog in gobjcopy objcopy 42168 do 42169 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42170 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42172 $as_echo_n "checking for $ac_word... " >&6; } 42173 if ${ac_cv_prog_OBJCOPY+:} false; then : 42174 $as_echo_n "(cached) " >&6 42175 else 42176 if test -n "$OBJCOPY"; then 42177 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 42178 else 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_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 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 fi 42195 fi 42196 OBJCOPY=$ac_cv_prog_OBJCOPY 42197 if test -n "$OBJCOPY"; then 42198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42199 $as_echo "$OBJCOPY" >&6; } 42200 else 42201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42202 $as_echo "no" >&6; } 42203 fi 42204 42205 42206 test -n "$OBJCOPY" && break 42207 done 42208 fi 42209 if test -z "$OBJCOPY"; then 42210 ac_ct_OBJCOPY=$OBJCOPY 42211 for ac_prog in gobjcopy objcopy 42212 do 42213 # Extract the first word of "$ac_prog", so it can be a program name with args. 42214 set dummy $ac_prog; ac_word=$2 42215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42216 $as_echo_n "checking for $ac_word... " >&6; } 42217 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 42218 $as_echo_n "(cached) " >&6 42219 else 42220 if test -n "$ac_ct_OBJCOPY"; then 42221 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 42222 else 42223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42224 for as_dir in $PATH 42225 do 42226 IFS=$as_save_IFS 42227 test -z "$as_dir" && as_dir=. 42228 for ac_exec_ext in '' $ac_executable_extensions; do 42229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42230 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 42231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42232 break 2 42233 fi 42234 done 42235 done 42236 IFS=$as_save_IFS 42237 42238 fi 42239 fi 42240 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 42241 if test -n "$ac_ct_OBJCOPY"; then 42242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 42243 $as_echo "$ac_ct_OBJCOPY" >&6; } 42244 else 42245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42246 $as_echo "no" >&6; } 42247 fi 42248 42249 42250 test -n "$ac_ct_OBJCOPY" && break 42251 done 42252 42253 if test "x$ac_ct_OBJCOPY" = x; then 42254 OBJCOPY="" 42255 else 42256 case $cross_compiling:$ac_tool_warned in 42257 yes:) 42258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42260 ac_tool_warned=yes ;; 42261 esac 42262 OBJCOPY=$ac_ct_OBJCOPY 42263 fi 42264 fi 42265 42266 else 42267 # If it succeeded, then it was overridden by the user. We will use it 42268 # for the tool. 42269 42270 # First remove it from the list of overridden variables, so we can test 42271 # for unknown variables in the end. 42272 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42273 42274 # Check if we try to supply an empty value 42275 if test "x$OBJCOPY" = x; then 42276 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 42277 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 42278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42279 $as_echo_n "checking for OBJCOPY... " >&6; } 42280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42281 $as_echo "disabled" >&6; } 42282 else 42283 # Check if the provided tool contains a complete path. 42284 tool_specified="$OBJCOPY" 42285 tool_basename="${tool_specified##*/}" 42286 if test "x$tool_basename" = "x$tool_specified"; then 42287 # A command without a complete path is provided, search $PATH. 42288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 42289 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 42290 # Extract the first word of "$tool_basename", so it can be a program name with args. 42291 set dummy $tool_basename; ac_word=$2 42292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42293 $as_echo_n "checking for $ac_word... " >&6; } 42294 if ${ac_cv_path_OBJCOPY+:} false; then : 42295 $as_echo_n "(cached) " >&6 42296 else 42297 case $OBJCOPY in 42298 [\\/]* | ?:[\\/]*) 42299 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 42300 ;; 42301 *) 42302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42303 for as_dir in $PATH 42304 do 42305 IFS=$as_save_IFS 42306 test -z "$as_dir" && as_dir=. 42307 for ac_exec_ext in '' $ac_executable_extensions; do 42308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42309 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 42310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42311 break 2 42312 fi 42313 done 42314 done 42315 IFS=$as_save_IFS 42316 42317 ;; 42318 esac 42319 fi 42320 OBJCOPY=$ac_cv_path_OBJCOPY 42321 if test -n "$OBJCOPY"; then 42322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 42323 $as_echo "$OBJCOPY" >&6; } 42324 else 42325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42326 $as_echo "no" >&6; } 42327 fi 42328 42329 42330 if test "x$OBJCOPY" = x; then 42331 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42332 fi 42333 else 42334 # Otherwise we believe it is a complete path. Use it as it is. 42335 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 42336 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 42337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 42338 $as_echo_n "checking for OBJCOPY... " >&6; } 42339 if test ! -x "$tool_specified"; then 42340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42341 $as_echo "not found" >&6; } 42342 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 42343 fi 42344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42345 $as_echo "$tool_specified" >&6; } 42346 fi 42347 fi 42348 fi 42349 42350 fi 42351 42352 42353 # Only call fixup if objcopy was found. 42354 if test -n "$OBJCOPY"; then 42355 42356 # Only process if variable expands to non-empty 42357 42358 if test "x$OBJCOPY" != x; then 42359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42360 42361 # First separate the path from the arguments. This will split at the first 42362 # space. 42363 complete="$OBJCOPY" 42364 path="${complete%% *}" 42365 tmp="$complete EOL" 42366 arguments="${tmp#* }" 42367 42368 # Input might be given as Windows format, start by converting to 42369 # unix format. 42370 new_path=`$CYGPATH -u "$path"` 42371 42372 # Now try to locate executable using which 42373 new_path=`$WHICH "$new_path" 2> /dev/null` 42374 # bat and cmd files are not always considered executable in cygwin causing which 42375 # to not find them 42376 if test "x$new_path" = x \ 42377 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42378 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42379 new_path=`$CYGPATH -u "$path"` 42380 fi 42381 if test "x$new_path" = x; then 42382 # Oops. Which didn't find the executable. 42383 # The splitting of arguments from the executable at a space might have been incorrect, 42384 # since paths with space are more likely in Windows. Give it another try with the whole 42385 # argument. 42386 path="$complete" 42387 arguments="EOL" 42388 new_path=`$CYGPATH -u "$path"` 42389 new_path=`$WHICH "$new_path" 2> /dev/null` 42390 # bat and cmd files are not always considered executable in cygwin causing which 42391 # to not find them 42392 if test "x$new_path" = x \ 42393 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42394 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42395 new_path=`$CYGPATH -u "$path"` 42396 fi 42397 if test "x$new_path" = x; then 42398 # It's still not found. Now this is an unrecoverable error. 42399 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42400 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42401 has_space=`$ECHO "$complete" | $GREP " "` 42402 if test "x$has_space" != x; then 42403 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42404 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42405 fi 42406 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42407 fi 42408 fi 42409 42410 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42411 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42412 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42413 # "foo.exe" is OK but "foo" is an error. 42414 # 42415 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42416 # It is also a way to make sure we got the proper file name for the real test later on. 42417 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42418 if test "x$test_shortpath" = x; then 42419 # Short path failed, file does not exist as specified. 42420 # Try adding .exe or .cmd 42421 if test -f "${new_path}.exe"; then 42422 input_to_shortpath="${new_path}.exe" 42423 elif test -f "${new_path}.cmd"; then 42424 input_to_shortpath="${new_path}.cmd" 42425 else 42426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 42427 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 42428 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42429 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42430 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42431 fi 42432 else 42433 input_to_shortpath="$new_path" 42434 fi 42435 42436 # Call helper function which possibly converts this using DOS-style short mode. 42437 # If so, the updated path is stored in $new_path. 42438 new_path="$input_to_shortpath" 42439 42440 input_path="$input_to_shortpath" 42441 # Check if we need to convert this using DOS-style short mode. If the path 42442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42443 # take no chances and rewrite it. 42444 # Note: m4 eats our [], so we need to use [ and ] instead. 42445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42446 if test "x$has_forbidden_chars" != x; then 42447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42448 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42449 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42450 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42451 # Going to short mode and back again did indeed matter. Since short mode is 42452 # case insensitive, let's make it lowercase to improve readability. 42453 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42454 # Now convert it back to Unix-style (cygpath) 42455 input_path=`$CYGPATH -u "$shortmode_path"` 42456 new_path="$input_path" 42457 fi 42458 fi 42459 42460 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42461 if test "x$test_cygdrive_prefix" = x; then 42462 # As a simple fix, exclude /usr/bin since it's not a real path. 42463 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42464 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42465 # a path prefixed by /cygdrive for fixpath to work. 42466 new_path="$CYGWIN_ROOT_PATH$input_path" 42467 fi 42468 fi 42469 42470 # remove trailing .exe if any 42471 new_path="${new_path/%.exe/}" 42472 42473 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42474 42475 # First separate the path from the arguments. This will split at the first 42476 # space. 42477 complete="$OBJCOPY" 42478 path="${complete%% *}" 42479 tmp="$complete EOL" 42480 arguments="${tmp#* }" 42481 42482 # Input might be given as Windows format, start by converting to 42483 # unix format. 42484 new_path="$path" 42485 42486 windows_path="$new_path" 42487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42488 unix_path=`$CYGPATH -u "$windows_path"` 42489 new_path="$unix_path" 42490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42492 new_path="$unix_path" 42493 fi 42494 42495 42496 # Now try to locate executable using which 42497 new_path=`$WHICH "$new_path" 2> /dev/null` 42498 42499 if test "x$new_path" = x; then 42500 # Oops. Which didn't find the executable. 42501 # The splitting of arguments from the executable at a space might have been incorrect, 42502 # since paths with space are more likely in Windows. Give it another try with the whole 42503 # argument. 42504 path="$complete" 42505 arguments="EOL" 42506 new_path="$path" 42507 42508 windows_path="$new_path" 42509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42510 unix_path=`$CYGPATH -u "$windows_path"` 42511 new_path="$unix_path" 42512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42514 new_path="$unix_path" 42515 fi 42516 42517 42518 new_path=`$WHICH "$new_path" 2> /dev/null` 42519 # bat and cmd files are not always considered executable in MSYS causing which 42520 # to not find them 42521 if test "x$new_path" = x \ 42522 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42523 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42524 new_path="$path" 42525 42526 windows_path="$new_path" 42527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42528 unix_path=`$CYGPATH -u "$windows_path"` 42529 new_path="$unix_path" 42530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42531 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42532 new_path="$unix_path" 42533 fi 42534 42535 fi 42536 42537 if test "x$new_path" = x; then 42538 # It's still not found. Now this is an unrecoverable error. 42539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42540 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42541 has_space=`$ECHO "$complete" | $GREP " "` 42542 if test "x$has_space" != x; then 42543 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42544 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42545 fi 42546 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42547 fi 42548 fi 42549 42550 # Now new_path has a complete unix path to the binary 42551 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42552 # Keep paths in /bin as-is, but remove trailing .exe if any 42553 new_path="${new_path/%.exe/}" 42554 # Do not save /bin paths to all_fixpath_prefixes! 42555 else 42556 # Not in mixed or Windows style, start by that. 42557 new_path=`cmd //c echo $new_path` 42558 42559 input_path="$new_path" 42560 # Check if we need to convert this using DOS-style short mode. If the path 42561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42562 # take no chances and rewrite it. 42563 # Note: m4 eats our [], so we need to use [ and ] instead. 42564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42565 if test "x$has_forbidden_chars" != x; then 42566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42567 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42568 fi 42569 42570 # Output is in $new_path 42571 42572 windows_path="$new_path" 42573 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42574 unix_path=`$CYGPATH -u "$windows_path"` 42575 new_path="$unix_path" 42576 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42577 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42578 new_path="$unix_path" 42579 fi 42580 42581 # remove trailing .exe if any 42582 new_path="${new_path/%.exe/}" 42583 42584 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42585 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42586 fi 42587 42588 else 42589 # We're on a unix platform. Hooray! :) 42590 # First separate the path from the arguments. This will split at the first 42591 # space. 42592 complete="$OBJCOPY" 42593 path="${complete%% *}" 42594 tmp="$complete EOL" 42595 arguments="${tmp#* }" 42596 42597 # Cannot rely on the command "which" here since it doesn't always work. 42598 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42599 if test -z "$is_absolute_path"; then 42600 # Path to executable is not absolute. Find it. 42601 IFS_save="$IFS" 42602 IFS=: 42603 for p in $PATH; do 42604 if test -f "$p/$path" && test -x "$p/$path"; then 42605 new_path="$p/$path" 42606 break 42607 fi 42608 done 42609 IFS="$IFS_save" 42610 else 42611 # This is an absolute path, we can use it without further modifications. 42612 new_path="$path" 42613 fi 42614 42615 if test "x$new_path" = x; then 42616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 42617 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 42618 has_space=`$ECHO "$complete" | $GREP " "` 42619 if test "x$has_space" != x; then 42620 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42621 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42622 fi 42623 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 42624 fi 42625 fi 42626 42627 # Now join together the path and the arguments once again 42628 if test "x$arguments" != xEOL; then 42629 new_complete="$new_path ${arguments% *}" 42630 else 42631 new_complete="$new_path" 42632 fi 42633 42634 if test "x$complete" != "x$new_complete"; then 42635 OBJCOPY="$new_complete" 42636 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 42637 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 42638 fi 42639 fi 42640 42641 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 42642 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 42643 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 42644 # - version number is last blank separate word on first line 42645 # - version number formats that have been seen: 42646 # - <major>.<minor> 42647 # - <major>.<minor>.<micro> 42648 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 42649 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 42650 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 42651 -e 's/.* //' \ 42652 -e '/^[01]\./b bad' \ 42653 -e '/^2\./{' \ 42654 -e ' s/^2\.//' \ 42655 -e ' /^[0-9]$/b bad' \ 42656 -e ' /^[0-9]\./b bad' \ 42657 -e ' /^1[0-9]$/b bad' \ 42658 -e ' /^1[0-9]\./b bad' \ 42659 -e ' /^20\./b bad' \ 42660 -e ' /^21\.0$/b bad' \ 42661 -e ' /^21\.0\./b bad' \ 42662 -e '}' \ 42663 -e ':good' \ 42664 -e 's/.*/VALID_VERSION/p' \ 42665 -e 'q' \ 42666 -e ':bad' \ 42667 -e 's/.*/BAD_VERSION/p' \ 42668 -e 'q'` 42669 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 42670 OBJCOPY= 42671 { $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 42672 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 42673 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 42674 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 42675 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 42676 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 42677 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 42678 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 42679 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 42680 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 42681 fi 42682 fi 42683 fi 42684 fi 42685 42686 42687 42688 # Publish this variable in the help. 42689 42690 42691 if [ -z "${OBJDUMP+x}" ]; then 42692 # The variable is not set by user, try to locate tool using the code snippet 42693 if test -n "$ac_tool_prefix"; then 42694 for ac_prog in gobjdump objdump 42695 do 42696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42699 $as_echo_n "checking for $ac_word... " >&6; } 42700 if ${ac_cv_prog_OBJDUMP+:} false; then : 42701 $as_echo_n "(cached) " >&6 42702 else 42703 if test -n "$OBJDUMP"; then 42704 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 42705 else 42706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42707 for as_dir in $PATH 42708 do 42709 IFS=$as_save_IFS 42710 test -z "$as_dir" && as_dir=. 42711 for ac_exec_ext in '' $ac_executable_extensions; do 42712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42713 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 42714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42715 break 2 42716 fi 42717 done 42718 done 42719 IFS=$as_save_IFS 42720 42721 fi 42722 fi 42723 OBJDUMP=$ac_cv_prog_OBJDUMP 42724 if test -n "$OBJDUMP"; then 42725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 42726 $as_echo "$OBJDUMP" >&6; } 42727 else 42728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42729 $as_echo "no" >&6; } 42730 fi 42731 42732 42733 test -n "$OBJDUMP" && break 42734 done 42735 fi 42736 if test -z "$OBJDUMP"; then 42737 ac_ct_OBJDUMP=$OBJDUMP 42738 for ac_prog in gobjdump objdump 42739 do 42740 # Extract the first word of "$ac_prog", so it can be a program name with args. 42741 set dummy $ac_prog; ac_word=$2 42742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42743 $as_echo_n "checking for $ac_word... " >&6; } 42744 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 42745 $as_echo_n "(cached) " >&6 42746 else 42747 if test -n "$ac_ct_OBJDUMP"; then 42748 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 42749 else 42750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42751 for as_dir in $PATH 42752 do 42753 IFS=$as_save_IFS 42754 test -z "$as_dir" && as_dir=. 42755 for ac_exec_ext in '' $ac_executable_extensions; do 42756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42757 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 42758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42759 break 2 42760 fi 42761 done 42762 done 42763 IFS=$as_save_IFS 42764 42765 fi 42766 fi 42767 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 42768 if test -n "$ac_ct_OBJDUMP"; then 42769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 42770 $as_echo "$ac_ct_OBJDUMP" >&6; } 42771 else 42772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42773 $as_echo "no" >&6; } 42774 fi 42775 42776 42777 test -n "$ac_ct_OBJDUMP" && break 42778 done 42779 42780 if test "x$ac_ct_OBJDUMP" = x; then 42781 OBJDUMP="" 42782 else 42783 case $cross_compiling:$ac_tool_warned in 42784 yes:) 42785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42787 ac_tool_warned=yes ;; 42788 esac 42789 OBJDUMP=$ac_ct_OBJDUMP 42790 fi 42791 fi 42792 42793 else 42794 # The variable is set, but is it from the command line or the environment? 42795 42796 # Try to remove the string !OBJDUMP! from our list. 42797 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 42798 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42799 # If it failed, the variable was not from the command line. Ignore it, 42800 # but warn the user (except for BASH, which is always set by the calling BASH). 42801 if test "xOBJDUMP" != xBASH; then 42802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 42803 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 42804 fi 42805 # Try to locate tool using the code snippet 42806 if test -n "$ac_tool_prefix"; then 42807 for ac_prog in gobjdump objdump 42808 do 42809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42812 $as_echo_n "checking for $ac_word... " >&6; } 42813 if ${ac_cv_prog_OBJDUMP+:} false; then : 42814 $as_echo_n "(cached) " >&6 42815 else 42816 if test -n "$OBJDUMP"; then 42817 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 42818 else 42819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42820 for as_dir in $PATH 42821 do 42822 IFS=$as_save_IFS 42823 test -z "$as_dir" && as_dir=. 42824 for ac_exec_ext in '' $ac_executable_extensions; do 42825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42826 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 42827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42828 break 2 42829 fi 42830 done 42831 done 42832 IFS=$as_save_IFS 42833 42834 fi 42835 fi 42836 OBJDUMP=$ac_cv_prog_OBJDUMP 42837 if test -n "$OBJDUMP"; then 42838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 42839 $as_echo "$OBJDUMP" >&6; } 42840 else 42841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42842 $as_echo "no" >&6; } 42843 fi 42844 42845 42846 test -n "$OBJDUMP" && break 42847 done 42848 fi 42849 if test -z "$OBJDUMP"; then 42850 ac_ct_OBJDUMP=$OBJDUMP 42851 for ac_prog in gobjdump objdump 42852 do 42853 # Extract the first word of "$ac_prog", so it can be a program name with args. 42854 set dummy $ac_prog; ac_word=$2 42855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42856 $as_echo_n "checking for $ac_word... " >&6; } 42857 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 42858 $as_echo_n "(cached) " >&6 42859 else 42860 if test -n "$ac_ct_OBJDUMP"; then 42861 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 42862 else 42863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42864 for as_dir in $PATH 42865 do 42866 IFS=$as_save_IFS 42867 test -z "$as_dir" && as_dir=. 42868 for ac_exec_ext in '' $ac_executable_extensions; do 42869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42870 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 42871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42872 break 2 42873 fi 42874 done 42875 done 42876 IFS=$as_save_IFS 42877 42878 fi 42879 fi 42880 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 42881 if test -n "$ac_ct_OBJDUMP"; then 42882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 42883 $as_echo "$ac_ct_OBJDUMP" >&6; } 42884 else 42885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42886 $as_echo "no" >&6; } 42887 fi 42888 42889 42890 test -n "$ac_ct_OBJDUMP" && break 42891 done 42892 42893 if test "x$ac_ct_OBJDUMP" = x; then 42894 OBJDUMP="" 42895 else 42896 case $cross_compiling:$ac_tool_warned in 42897 yes:) 42898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42900 ac_tool_warned=yes ;; 42901 esac 42902 OBJDUMP=$ac_ct_OBJDUMP 42903 fi 42904 fi 42905 42906 else 42907 # If it succeeded, then it was overridden by the user. We will use it 42908 # for the tool. 42909 42910 # First remove it from the list of overridden variables, so we can test 42911 # for unknown variables in the end. 42912 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42913 42914 # Check if we try to supply an empty value 42915 if test "x$OBJDUMP" = x; then 42916 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 42917 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 42918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 42919 $as_echo_n "checking for OBJDUMP... " >&6; } 42920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42921 $as_echo "disabled" >&6; } 42922 else 42923 # Check if the provided tool contains a complete path. 42924 tool_specified="$OBJDUMP" 42925 tool_basename="${tool_specified##*/}" 42926 if test "x$tool_basename" = "x$tool_specified"; then 42927 # A command without a complete path is provided, search $PATH. 42928 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 42929 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 42930 # Extract the first word of "$tool_basename", so it can be a program name with args. 42931 set dummy $tool_basename; ac_word=$2 42932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42933 $as_echo_n "checking for $ac_word... " >&6; } 42934 if ${ac_cv_path_OBJDUMP+:} false; then : 42935 $as_echo_n "(cached) " >&6 42936 else 42937 case $OBJDUMP in 42938 [\\/]* | ?:[\\/]*) 42939 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 42940 ;; 42941 *) 42942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42943 for as_dir in $PATH 42944 do 42945 IFS=$as_save_IFS 42946 test -z "$as_dir" && as_dir=. 42947 for ac_exec_ext in '' $ac_executable_extensions; do 42948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42949 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 42950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42951 break 2 42952 fi 42953 done 42954 done 42955 IFS=$as_save_IFS 42956 42957 ;; 42958 esac 42959 fi 42960 OBJDUMP=$ac_cv_path_OBJDUMP 42961 if test -n "$OBJDUMP"; then 42962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 42963 $as_echo "$OBJDUMP" >&6; } 42964 else 42965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42966 $as_echo "no" >&6; } 42967 fi 42968 42969 42970 if test "x$OBJDUMP" = x; then 42971 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42972 fi 42973 else 42974 # Otherwise we believe it is a complete path. Use it as it is. 42975 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 42976 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 42977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 42978 $as_echo_n "checking for OBJDUMP... " >&6; } 42979 if test ! -x "$tool_specified"; then 42980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42981 $as_echo "not found" >&6; } 42982 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 42983 fi 42984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42985 $as_echo "$tool_specified" >&6; } 42986 fi 42987 fi 42988 fi 42989 42990 fi 42991 42992 42993 if test "x$OBJDUMP" != x; then 42994 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 42995 # bails if argument is missing. 42996 42997 # Only process if variable expands to non-empty 42998 42999 if test "x$OBJDUMP" != x; then 43000 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43001 43002 # First separate the path from the arguments. This will split at the first 43003 # space. 43004 complete="$OBJDUMP" 43005 path="${complete%% *}" 43006 tmp="$complete EOL" 43007 arguments="${tmp#* }" 43008 43009 # Input might be given as Windows format, start by converting to 43010 # unix format. 43011 new_path=`$CYGPATH -u "$path"` 43012 43013 # Now try to locate executable using which 43014 new_path=`$WHICH "$new_path" 2> /dev/null` 43015 # bat and cmd files are not always considered executable in cygwin causing which 43016 # to not find them 43017 if test "x$new_path" = x \ 43018 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43019 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43020 new_path=`$CYGPATH -u "$path"` 43021 fi 43022 if test "x$new_path" = x; then 43023 # Oops. Which didn't find the executable. 43024 # The splitting of arguments from the executable at a space might have been incorrect, 43025 # since paths with space are more likely in Windows. Give it another try with the whole 43026 # argument. 43027 path="$complete" 43028 arguments="EOL" 43029 new_path=`$CYGPATH -u "$path"` 43030 new_path=`$WHICH "$new_path" 2> /dev/null` 43031 # bat and cmd files are not always considered executable in cygwin causing which 43032 # to not find them 43033 if test "x$new_path" = x \ 43034 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43035 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43036 new_path=`$CYGPATH -u "$path"` 43037 fi 43038 if test "x$new_path" = x; then 43039 # It's still not found. Now this is an unrecoverable error. 43040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43041 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43042 has_space=`$ECHO "$complete" | $GREP " "` 43043 if test "x$has_space" != x; then 43044 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43045 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43046 fi 43047 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43048 fi 43049 fi 43050 43051 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43052 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43053 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43054 # "foo.exe" is OK but "foo" is an error. 43055 # 43056 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43057 # It is also a way to make sure we got the proper file name for the real test later on. 43058 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43059 if test "x$test_shortpath" = x; then 43060 # Short path failed, file does not exist as specified. 43061 # Try adding .exe or .cmd 43062 if test -f "${new_path}.exe"; then 43063 input_to_shortpath="${new_path}.exe" 43064 elif test -f "${new_path}.cmd"; then 43065 input_to_shortpath="${new_path}.cmd" 43066 else 43067 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 43068 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 43069 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43070 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43071 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43072 fi 43073 else 43074 input_to_shortpath="$new_path" 43075 fi 43076 43077 # Call helper function which possibly converts this using DOS-style short mode. 43078 # If so, the updated path is stored in $new_path. 43079 new_path="$input_to_shortpath" 43080 43081 input_path="$input_to_shortpath" 43082 # Check if we need to convert this using DOS-style short mode. If the path 43083 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43084 # take no chances and rewrite it. 43085 # Note: m4 eats our [], so we need to use [ and ] instead. 43086 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43087 if test "x$has_forbidden_chars" != x; then 43088 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43089 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43090 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43091 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43092 # Going to short mode and back again did indeed matter. Since short mode is 43093 # case insensitive, let's make it lowercase to improve readability. 43094 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43095 # Now convert it back to Unix-style (cygpath) 43096 input_path=`$CYGPATH -u "$shortmode_path"` 43097 new_path="$input_path" 43098 fi 43099 fi 43100 43101 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43102 if test "x$test_cygdrive_prefix" = x; then 43103 # As a simple fix, exclude /usr/bin since it's not a real path. 43104 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43105 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43106 # a path prefixed by /cygdrive for fixpath to work. 43107 new_path="$CYGWIN_ROOT_PATH$input_path" 43108 fi 43109 fi 43110 43111 # remove trailing .exe if any 43112 new_path="${new_path/%.exe/}" 43113 43114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43115 43116 # First separate the path from the arguments. This will split at the first 43117 # space. 43118 complete="$OBJDUMP" 43119 path="${complete%% *}" 43120 tmp="$complete EOL" 43121 arguments="${tmp#* }" 43122 43123 # Input might be given as Windows format, start by converting to 43124 # unix format. 43125 new_path="$path" 43126 43127 windows_path="$new_path" 43128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43129 unix_path=`$CYGPATH -u "$windows_path"` 43130 new_path="$unix_path" 43131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43133 new_path="$unix_path" 43134 fi 43135 43136 43137 # Now try to locate executable using which 43138 new_path=`$WHICH "$new_path" 2> /dev/null` 43139 43140 if test "x$new_path" = x; then 43141 # Oops. Which didn't find the executable. 43142 # The splitting of arguments from the executable at a space might have been incorrect, 43143 # since paths with space are more likely in Windows. Give it another try with the whole 43144 # argument. 43145 path="$complete" 43146 arguments="EOL" 43147 new_path="$path" 43148 43149 windows_path="$new_path" 43150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43151 unix_path=`$CYGPATH -u "$windows_path"` 43152 new_path="$unix_path" 43153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43154 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43155 new_path="$unix_path" 43156 fi 43157 43158 43159 new_path=`$WHICH "$new_path" 2> /dev/null` 43160 # bat and cmd files are not always considered executable in MSYS causing which 43161 # to not find them 43162 if test "x$new_path" = x \ 43163 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43164 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43165 new_path="$path" 43166 43167 windows_path="$new_path" 43168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43169 unix_path=`$CYGPATH -u "$windows_path"` 43170 new_path="$unix_path" 43171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43172 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43173 new_path="$unix_path" 43174 fi 43175 43176 fi 43177 43178 if test "x$new_path" = x; then 43179 # It's still not found. Now this is an unrecoverable error. 43180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43181 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43182 has_space=`$ECHO "$complete" | $GREP " "` 43183 if test "x$has_space" != x; then 43184 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43185 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43186 fi 43187 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43188 fi 43189 fi 43190 43191 # Now new_path has a complete unix path to the binary 43192 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43193 # Keep paths in /bin as-is, but remove trailing .exe if any 43194 new_path="${new_path/%.exe/}" 43195 # Do not save /bin paths to all_fixpath_prefixes! 43196 else 43197 # Not in mixed or Windows style, start by that. 43198 new_path=`cmd //c echo $new_path` 43199 43200 input_path="$new_path" 43201 # Check if we need to convert this using DOS-style short mode. If the path 43202 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43203 # take no chances and rewrite it. 43204 # Note: m4 eats our [], so we need to use [ and ] instead. 43205 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43206 if test "x$has_forbidden_chars" != x; then 43207 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43208 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43209 fi 43210 43211 # Output is in $new_path 43212 43213 windows_path="$new_path" 43214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43215 unix_path=`$CYGPATH -u "$windows_path"` 43216 new_path="$unix_path" 43217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43218 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43219 new_path="$unix_path" 43220 fi 43221 43222 # remove trailing .exe if any 43223 new_path="${new_path/%.exe/}" 43224 43225 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43226 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43227 fi 43228 43229 else 43230 # We're on a unix platform. Hooray! :) 43231 # First separate the path from the arguments. This will split at the first 43232 # space. 43233 complete="$OBJDUMP" 43234 path="${complete%% *}" 43235 tmp="$complete EOL" 43236 arguments="${tmp#* }" 43237 43238 # Cannot rely on the command "which" here since it doesn't always work. 43239 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43240 if test -z "$is_absolute_path"; then 43241 # Path to executable is not absolute. Find it. 43242 IFS_save="$IFS" 43243 IFS=: 43244 for p in $PATH; do 43245 if test -f "$p/$path" && test -x "$p/$path"; then 43246 new_path="$p/$path" 43247 break 43248 fi 43249 done 43250 IFS="$IFS_save" 43251 else 43252 # This is an absolute path, we can use it without further modifications. 43253 new_path="$path" 43254 fi 43255 43256 if test "x$new_path" = x; then 43257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 43258 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 43259 has_space=`$ECHO "$complete" | $GREP " "` 43260 if test "x$has_space" != x; then 43261 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43262 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43263 fi 43264 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 43265 fi 43266 fi 43267 43268 # Now join together the path and the arguments once again 43269 if test "x$arguments" != xEOL; then 43270 new_complete="$new_path ${arguments% *}" 43271 else 43272 new_complete="$new_path" 43273 fi 43274 43275 if test "x$complete" != "x$new_complete"; then 43276 OBJDUMP="$new_complete" 43277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 43278 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 43279 fi 43280 fi 43281 43282 fi 43283 43284 43285 # Restore old path. 43286 PATH="$OLD_PATH" 43287 43288 # Restore the flags to the user specified values. 43289 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 43290 CFLAGS="$ORG_CFLAGS" 43291 CXXFLAGS="$ORG_CXXFLAGS" 43292 43293 43294 # Finally do some processing after the detection phase 43295 43296 if test "x$COMPILE_TYPE" = "xcross"; then 43297 # Now we need to find a C/C++ compiler that can build executables for the 43298 # build platform. We can't use the AC_PROG_CC macro, since it can only be 43299 # used once. Also, we need to do this without adding a tools dir to the 43300 # path, otherwise we might pick up cross-compilers which don't use standard 43301 # naming. 43302 43303 OLDPATH="$PATH" 43304 43305 43306 # Check whether --with-build-devkit was given. 43307 if test "${with_build_devkit+set}" = set; then : 43308 withval=$with_build_devkit; 43309 fi 43310 43311 if test "x$with_build_devkit" = "xyes"; then 43312 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 43313 elif test -n "$with_build_devkit"; then 43314 if test ! -d "$with_build_devkit"; then 43315 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 43316 else 43317 43318 # Only process if variable expands to non-empty 43319 43320 if test "x$with_build_devkit" != x; then 43321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43322 43323 # Input might be given as Windows format, start by converting to 43324 # unix format. 43325 path="$with_build_devkit" 43326 new_path=`$CYGPATH -u "$path"` 43327 43328 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43329 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43330 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43331 # "foo.exe" is OK but "foo" is an error. 43332 # 43333 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43334 # It is also a way to make sure we got the proper file name for the real test later on. 43335 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43336 if test "x$test_shortpath" = x; then 43337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43338 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43339 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 43340 fi 43341 43342 # Call helper function which possibly converts this using DOS-style short mode. 43343 # If so, the updated path is stored in $new_path. 43344 43345 input_path="$new_path" 43346 # Check if we need to convert this using DOS-style short mode. If the path 43347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43348 # take no chances and rewrite it. 43349 # Note: m4 eats our [], so we need to use [ and ] instead. 43350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43351 if test "x$has_forbidden_chars" != x; then 43352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43353 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43354 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43355 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43356 # Going to short mode and back again did indeed matter. Since short mode is 43357 # case insensitive, let's make it lowercase to improve readability. 43358 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43359 # Now convert it back to Unix-style (cygpath) 43360 input_path=`$CYGPATH -u "$shortmode_path"` 43361 new_path="$input_path" 43362 fi 43363 fi 43364 43365 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43366 if test "x$test_cygdrive_prefix" = x; then 43367 # As a simple fix, exclude /usr/bin since it's not a real path. 43368 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43369 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43370 # a path prefixed by /cygdrive for fixpath to work. 43371 new_path="$CYGWIN_ROOT_PATH$input_path" 43372 fi 43373 fi 43374 43375 43376 if test "x$path" != "x$new_path"; then 43377 with_build_devkit="$new_path" 43378 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43379 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43380 fi 43381 43382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43383 43384 path="$with_build_devkit" 43385 has_colon=`$ECHO $path | $GREP ^.:` 43386 new_path="$path" 43387 if test "x$has_colon" = x; then 43388 # Not in mixed or Windows style, start by that. 43389 new_path=`cmd //c echo $path` 43390 fi 43391 43392 43393 input_path="$new_path" 43394 # Check if we need to convert this using DOS-style short mode. If the path 43395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43396 # take no chances and rewrite it. 43397 # Note: m4 eats our [], so we need to use [ and ] instead. 43398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43399 if test "x$has_forbidden_chars" != x; then 43400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43401 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43402 fi 43403 43404 43405 windows_path="$new_path" 43406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43407 unix_path=`$CYGPATH -u "$windows_path"` 43408 new_path="$unix_path" 43409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43411 new_path="$unix_path" 43412 fi 43413 43414 if test "x$path" != "x$new_path"; then 43415 with_build_devkit="$new_path" 43416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 43417 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 43418 fi 43419 43420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43422 43423 else 43424 # We're on a unix platform. Hooray! :) 43425 path="$with_build_devkit" 43426 has_space=`$ECHO "$path" | $GREP " "` 43427 if test "x$has_space" != x; then 43428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 43429 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 43430 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43431 fi 43432 43433 # Use eval to expand a potential ~ 43434 eval path="$path" 43435 if test ! -f "$path" && test ! -d "$path"; then 43436 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 43437 fi 43438 43439 if test -d "$path"; then 43440 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 43441 else 43442 dir="`$DIRNAME "$path"`" 43443 base="`$BASENAME "$path"`" 43444 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 43445 fi 43446 fi 43447 fi 43448 43449 BUILD_DEVKIT_ROOT="$with_build_devkit" 43450 # Check for a meta data info file in the root of the devkit 43451 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 43452 # Process devkit.info so that existing devkit variables are not 43453 # modified by this 43454 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 43455 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 43456 -e "s/\$host/\$build/g" \ 43457 $BUILD_DEVKIT_ROOT/devkit.info \ 43458 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43459 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 43460 # This potentially sets the following: 43461 # A descriptive name of the devkit 43462 43463 if test "x$BUILD_DEVKIT_NAME" = x; then 43464 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 43465 fi 43466 43467 # Corresponds to --with-extra-path 43468 43469 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 43470 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 43471 fi 43472 43473 # Corresponds to --with-toolchain-path 43474 43475 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 43476 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 43477 fi 43478 43479 # Corresponds to --with-sysroot 43480 43481 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 43482 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 43483 fi 43484 43485 # Skip the Window specific parts 43486 fi 43487 43488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 43489 $as_echo_n "checking for build platform devkit... " >&6; } 43490 if test "x$BUILD_DEVKIT_NAME" != x; then 43491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 43492 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 43493 else 43494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 43495 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 43496 fi 43497 43498 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 43499 43500 if test "x$BUILD_SYSROOT" != "x"; then 43501 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 43502 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43503 # Solaris Studio does not have a concept of sysroot. Instead we must 43504 # make sure the default include and lib dirs are appended to each 43505 # compile and link command line. Must also add -I-xbuiltin to enable 43506 # inlining of system functions and intrinsics. 43507 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 43508 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 43509 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 43510 -L$BUILD_SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 43511 fi 43512 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 43513 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 43514 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 43515 elif test "x$TOOLCHAIN_TYPE" = xclang; then 43516 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 43517 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 43518 fi 43519 # Propagate the sysroot args to hotspot 43520 BUILD_LEGACY_EXTRA_CFLAGS="$BUILD_LEGACY_EXTRA_CFLAGS $BUILD_SYSROOT_CFLAGS" 43521 BUILD_LEGACY_EXTRA_CXXFLAGS="$BUILD_LEGACY_EXTRA_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 43522 BUILD_LEGACY_EXTRA_LDFLAGS="$BUILD_LEGACY_EXTRA_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 43523 # The global CFLAGS and LDFLAGS variables need these for configure to function 43524 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 43525 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 43526 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 43527 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 43528 fi 43529 43530 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43531 # We also need -iframework<path>/System/Library/Frameworks 43532 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 43533 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 43534 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 43535 # set this here so it doesn't have to be peppered throughout the forest 43536 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 43537 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 43538 fi 43539 43540 43541 43542 43543 43544 # Fallback default of just /bin if DEVKIT_PATH is not defined 43545 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 43546 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 43547 fi 43548 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 43549 fi 43550 fi 43551 43552 # FIXME: we should list the discovered compilers as an exclude pattern! 43553 # If we do that, we can do this detection before POST_DETECTION, and still 43554 # find the build compilers in the tools dir, if needed. 43555 43556 43557 43558 # Publish this variable in the help. 43559 43560 43561 if [ -z "${BUILD_CC+x}" ]; then 43562 # The variable is not set by user, try to locate tool using the code snippet 43563 for ac_prog in cl cc gcc 43564 do 43565 # Extract the first word of "$ac_prog", so it can be a program name with args. 43566 set dummy $ac_prog; ac_word=$2 43567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43568 $as_echo_n "checking for $ac_word... " >&6; } 43569 if ${ac_cv_path_BUILD_CC+:} false; then : 43570 $as_echo_n "(cached) " >&6 43571 else 43572 case $BUILD_CC in 43573 [\\/]* | ?:[\\/]*) 43574 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 43575 ;; 43576 *) 43577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43578 for as_dir in $PATH 43579 do 43580 IFS=$as_save_IFS 43581 test -z "$as_dir" && as_dir=. 43582 for ac_exec_ext in '' $ac_executable_extensions; do 43583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43584 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 43585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43586 break 2 43587 fi 43588 done 43589 done 43590 IFS=$as_save_IFS 43591 43592 ;; 43593 esac 43594 fi 43595 BUILD_CC=$ac_cv_path_BUILD_CC 43596 if test -n "$BUILD_CC"; then 43597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 43598 $as_echo "$BUILD_CC" >&6; } 43599 else 43600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43601 $as_echo "no" >&6; } 43602 fi 43603 43604 43605 test -n "$BUILD_CC" && break 43606 done 43607 43608 else 43609 # The variable is set, but is it from the command line or the environment? 43610 43611 # Try to remove the string !BUILD_CC! from our list. 43612 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 43613 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43614 # If it failed, the variable was not from the command line. Ignore it, 43615 # but warn the user (except for BASH, which is always set by the calling BASH). 43616 if test "xBUILD_CC" != xBASH; then 43617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 43618 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 43619 fi 43620 # Try to locate tool using the code snippet 43621 for ac_prog in cl cc gcc 43622 do 43623 # Extract the first word of "$ac_prog", so it can be a program name with args. 43624 set dummy $ac_prog; ac_word=$2 43625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43626 $as_echo_n "checking for $ac_word... " >&6; } 43627 if ${ac_cv_path_BUILD_CC+:} false; then : 43628 $as_echo_n "(cached) " >&6 43629 else 43630 case $BUILD_CC in 43631 [\\/]* | ?:[\\/]*) 43632 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 43633 ;; 43634 *) 43635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43636 for as_dir in $PATH 43637 do 43638 IFS=$as_save_IFS 43639 test -z "$as_dir" && as_dir=. 43640 for ac_exec_ext in '' $ac_executable_extensions; do 43641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43642 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 43643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43644 break 2 43645 fi 43646 done 43647 done 43648 IFS=$as_save_IFS 43649 43650 ;; 43651 esac 43652 fi 43653 BUILD_CC=$ac_cv_path_BUILD_CC 43654 if test -n "$BUILD_CC"; then 43655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 43656 $as_echo "$BUILD_CC" >&6; } 43657 else 43658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43659 $as_echo "no" >&6; } 43660 fi 43661 43662 43663 test -n "$BUILD_CC" && break 43664 done 43665 43666 else 43667 # If it succeeded, then it was overridden by the user. We will use it 43668 # for the tool. 43669 43670 # First remove it from the list of overridden variables, so we can test 43671 # for unknown variables in the end. 43672 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43673 43674 # Check if we try to supply an empty value 43675 if test "x$BUILD_CC" = x; then 43676 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 43677 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 43678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 43679 $as_echo_n "checking for BUILD_CC... " >&6; } 43680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43681 $as_echo "disabled" >&6; } 43682 else 43683 # Check if the provided tool contains a complete path. 43684 tool_specified="$BUILD_CC" 43685 tool_basename="${tool_specified##*/}" 43686 if test "x$tool_basename" = "x$tool_specified"; then 43687 # A command without a complete path is provided, search $PATH. 43688 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 43689 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 43690 # Extract the first word of "$tool_basename", so it can be a program name with args. 43691 set dummy $tool_basename; ac_word=$2 43692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43693 $as_echo_n "checking for $ac_word... " >&6; } 43694 if ${ac_cv_path_BUILD_CC+:} false; then : 43695 $as_echo_n "(cached) " >&6 43696 else 43697 case $BUILD_CC in 43698 [\\/]* | ?:[\\/]*) 43699 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 43700 ;; 43701 *) 43702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43703 for as_dir in $PATH 43704 do 43705 IFS=$as_save_IFS 43706 test -z "$as_dir" && as_dir=. 43707 for ac_exec_ext in '' $ac_executable_extensions; do 43708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43709 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 43710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43711 break 2 43712 fi 43713 done 43714 done 43715 IFS=$as_save_IFS 43716 43717 ;; 43718 esac 43719 fi 43720 BUILD_CC=$ac_cv_path_BUILD_CC 43721 if test -n "$BUILD_CC"; then 43722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 43723 $as_echo "$BUILD_CC" >&6; } 43724 else 43725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43726 $as_echo "no" >&6; } 43727 fi 43728 43729 43730 if test "x$BUILD_CC" = x; then 43731 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43732 fi 43733 else 43734 # Otherwise we believe it is a complete path. Use it as it is. 43735 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 43736 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 43737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 43738 $as_echo_n "checking for BUILD_CC... " >&6; } 43739 if test ! -x "$tool_specified"; then 43740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43741 $as_echo "not found" >&6; } 43742 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 43743 fi 43744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43745 $as_echo "$tool_specified" >&6; } 43746 fi 43747 fi 43748 fi 43749 43750 fi 43751 43752 43753 43754 if test "x$BUILD_CC" = x; then 43755 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 43756 fi 43757 43758 43759 43760 # Only process if variable expands to non-empty 43761 43762 if test "x$BUILD_CC" != x; then 43763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43764 43765 # First separate the path from the arguments. This will split at the first 43766 # space. 43767 complete="$BUILD_CC" 43768 path="${complete%% *}" 43769 tmp="$complete EOL" 43770 arguments="${tmp#* }" 43771 43772 # Input might be given as Windows format, start by converting to 43773 # unix format. 43774 new_path=`$CYGPATH -u "$path"` 43775 43776 # Now try to locate executable using which 43777 new_path=`$WHICH "$new_path" 2> /dev/null` 43778 # bat and cmd files are not always considered executable in cygwin causing which 43779 # to not find them 43780 if test "x$new_path" = x \ 43781 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43782 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43783 new_path=`$CYGPATH -u "$path"` 43784 fi 43785 if test "x$new_path" = x; then 43786 # Oops. Which didn't find the executable. 43787 # The splitting of arguments from the executable at a space might have been incorrect, 43788 # since paths with space are more likely in Windows. Give it another try with the whole 43789 # argument. 43790 path="$complete" 43791 arguments="EOL" 43792 new_path=`$CYGPATH -u "$path"` 43793 new_path=`$WHICH "$new_path" 2> /dev/null` 43794 # bat and cmd files are not always considered executable in cygwin causing which 43795 # to not find them 43796 if test "x$new_path" = x \ 43797 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43798 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43799 new_path=`$CYGPATH -u "$path"` 43800 fi 43801 if test "x$new_path" = x; then 43802 # It's still not found. Now this is an unrecoverable error. 43803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 43804 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 43805 has_space=`$ECHO "$complete" | $GREP " "` 43806 if test "x$has_space" != x; then 43807 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43808 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43809 fi 43810 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 43811 fi 43812 fi 43813 43814 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43815 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43816 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43817 # "foo.exe" is OK but "foo" is an error. 43818 # 43819 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43820 # It is also a way to make sure we got the proper file name for the real test later on. 43821 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43822 if test "x$test_shortpath" = x; then 43823 # Short path failed, file does not exist as specified. 43824 # Try adding .exe or .cmd 43825 if test -f "${new_path}.exe"; then 43826 input_to_shortpath="${new_path}.exe" 43827 elif test -f "${new_path}.cmd"; then 43828 input_to_shortpath="${new_path}.cmd" 43829 else 43830 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 43831 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 43832 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43833 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43834 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 43835 fi 43836 else 43837 input_to_shortpath="$new_path" 43838 fi 43839 43840 # Call helper function which possibly converts this using DOS-style short mode. 43841 # If so, the updated path is stored in $new_path. 43842 new_path="$input_to_shortpath" 43843 43844 input_path="$input_to_shortpath" 43845 # Check if we need to convert this using DOS-style short mode. If the path 43846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43847 # take no chances and rewrite it. 43848 # Note: m4 eats our [], so we need to use [ and ] instead. 43849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43850 if test "x$has_forbidden_chars" != x; then 43851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43852 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43853 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43854 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43855 # Going to short mode and back again did indeed matter. Since short mode is 43856 # case insensitive, let's make it lowercase to improve readability. 43857 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43858 # Now convert it back to Unix-style (cygpath) 43859 input_path=`$CYGPATH -u "$shortmode_path"` 43860 new_path="$input_path" 43861 fi 43862 fi 43863 43864 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43865 if test "x$test_cygdrive_prefix" = x; then 43866 # As a simple fix, exclude /usr/bin since it's not a real path. 43867 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43868 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43869 # a path prefixed by /cygdrive for fixpath to work. 43870 new_path="$CYGWIN_ROOT_PATH$input_path" 43871 fi 43872 fi 43873 43874 # remove trailing .exe if any 43875 new_path="${new_path/%.exe/}" 43876 43877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43878 43879 # First separate the path from the arguments. This will split at the first 43880 # space. 43881 complete="$BUILD_CC" 43882 path="${complete%% *}" 43883 tmp="$complete EOL" 43884 arguments="${tmp#* }" 43885 43886 # Input might be given as Windows format, start by converting to 43887 # unix format. 43888 new_path="$path" 43889 43890 windows_path="$new_path" 43891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43892 unix_path=`$CYGPATH -u "$windows_path"` 43893 new_path="$unix_path" 43894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43896 new_path="$unix_path" 43897 fi 43898 43899 43900 # Now try to locate executable using which 43901 new_path=`$WHICH "$new_path" 2> /dev/null` 43902 43903 if test "x$new_path" = x; then 43904 # Oops. Which didn't find the executable. 43905 # The splitting of arguments from the executable at a space might have been incorrect, 43906 # since paths with space are more likely in Windows. Give it another try with the whole 43907 # argument. 43908 path="$complete" 43909 arguments="EOL" 43910 new_path="$path" 43911 43912 windows_path="$new_path" 43913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43914 unix_path=`$CYGPATH -u "$windows_path"` 43915 new_path="$unix_path" 43916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43917 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43918 new_path="$unix_path" 43919 fi 43920 43921 43922 new_path=`$WHICH "$new_path" 2> /dev/null` 43923 # bat and cmd files are not always considered executable in MSYS causing which 43924 # to not find them 43925 if test "x$new_path" = x \ 43926 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43927 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43928 new_path="$path" 43929 43930 windows_path="$new_path" 43931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43932 unix_path=`$CYGPATH -u "$windows_path"` 43933 new_path="$unix_path" 43934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43936 new_path="$unix_path" 43937 fi 43938 43939 fi 43940 43941 if test "x$new_path" = x; then 43942 # It's still not found. Now this is an unrecoverable error. 43943 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 43944 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 43945 has_space=`$ECHO "$complete" | $GREP " "` 43946 if test "x$has_space" != x; then 43947 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43948 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43949 fi 43950 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 43951 fi 43952 fi 43953 43954 # Now new_path has a complete unix path to the binary 43955 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43956 # Keep paths in /bin as-is, but remove trailing .exe if any 43957 new_path="${new_path/%.exe/}" 43958 # Do not save /bin paths to all_fixpath_prefixes! 43959 else 43960 # Not in mixed or Windows style, start by that. 43961 new_path=`cmd //c echo $new_path` 43962 43963 input_path="$new_path" 43964 # Check if we need to convert this using DOS-style short mode. If the path 43965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43966 # take no chances and rewrite it. 43967 # Note: m4 eats our [], so we need to use [ and ] instead. 43968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43969 if test "x$has_forbidden_chars" != x; then 43970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43971 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43972 fi 43973 43974 # Output is in $new_path 43975 43976 windows_path="$new_path" 43977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43978 unix_path=`$CYGPATH -u "$windows_path"` 43979 new_path="$unix_path" 43980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43982 new_path="$unix_path" 43983 fi 43984 43985 # remove trailing .exe if any 43986 new_path="${new_path/%.exe/}" 43987 43988 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43989 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43990 fi 43991 43992 else 43993 # We're on a unix platform. Hooray! :) 43994 # First separate the path from the arguments. This will split at the first 43995 # space. 43996 complete="$BUILD_CC" 43997 path="${complete%% *}" 43998 tmp="$complete EOL" 43999 arguments="${tmp#* }" 44000 44001 # Cannot rely on the command "which" here since it doesn't always work. 44002 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44003 if test -z "$is_absolute_path"; then 44004 # Path to executable is not absolute. Find it. 44005 IFS_save="$IFS" 44006 IFS=: 44007 for p in $PATH; do 44008 if test -f "$p/$path" && test -x "$p/$path"; then 44009 new_path="$p/$path" 44010 break 44011 fi 44012 done 44013 IFS="$IFS_save" 44014 else 44015 # This is an absolute path, we can use it without further modifications. 44016 new_path="$path" 44017 fi 44018 44019 if test "x$new_path" = x; then 44020 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 44021 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 44022 has_space=`$ECHO "$complete" | $GREP " "` 44023 if test "x$has_space" != x; then 44024 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44025 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44026 fi 44027 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 44028 fi 44029 fi 44030 44031 # Now join together the path and the arguments once again 44032 if test "x$arguments" != xEOL; then 44033 new_complete="$new_path ${arguments% *}" 44034 else 44035 new_complete="$new_path" 44036 fi 44037 44038 if test "x$complete" != "x$new_complete"; then 44039 BUILD_CC="$new_complete" 44040 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 44041 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 44042 fi 44043 fi 44044 44045 44046 44047 44048 # Publish this variable in the help. 44049 44050 44051 if [ -z "${BUILD_CXX+x}" ]; then 44052 # The variable is not set by user, try to locate tool using the code snippet 44053 for ac_prog in cl CC g++ 44054 do 44055 # Extract the first word of "$ac_prog", so it can be a program name with args. 44056 set dummy $ac_prog; ac_word=$2 44057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44058 $as_echo_n "checking for $ac_word... " >&6; } 44059 if ${ac_cv_path_BUILD_CXX+:} false; then : 44060 $as_echo_n "(cached) " >&6 44061 else 44062 case $BUILD_CXX in 44063 [\\/]* | ?:[\\/]*) 44064 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44065 ;; 44066 *) 44067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44068 for as_dir in $PATH 44069 do 44070 IFS=$as_save_IFS 44071 test -z "$as_dir" && as_dir=. 44072 for ac_exec_ext in '' $ac_executable_extensions; do 44073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44074 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44076 break 2 44077 fi 44078 done 44079 done 44080 IFS=$as_save_IFS 44081 44082 ;; 44083 esac 44084 fi 44085 BUILD_CXX=$ac_cv_path_BUILD_CXX 44086 if test -n "$BUILD_CXX"; then 44087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44088 $as_echo "$BUILD_CXX" >&6; } 44089 else 44090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44091 $as_echo "no" >&6; } 44092 fi 44093 44094 44095 test -n "$BUILD_CXX" && break 44096 done 44097 44098 else 44099 # The variable is set, but is it from the command line or the environment? 44100 44101 # Try to remove the string !BUILD_CXX! from our list. 44102 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 44103 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44104 # If it failed, the variable was not from the command line. Ignore it, 44105 # but warn the user (except for BASH, which is always set by the calling BASH). 44106 if test "xBUILD_CXX" != xBASH; then 44107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 44108 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 44109 fi 44110 # Try to locate tool using the code snippet 44111 for ac_prog in cl CC g++ 44112 do 44113 # Extract the first word of "$ac_prog", so it can be a program name with args. 44114 set dummy $ac_prog; ac_word=$2 44115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44116 $as_echo_n "checking for $ac_word... " >&6; } 44117 if ${ac_cv_path_BUILD_CXX+:} false; then : 44118 $as_echo_n "(cached) " >&6 44119 else 44120 case $BUILD_CXX in 44121 [\\/]* | ?:[\\/]*) 44122 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44123 ;; 44124 *) 44125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44126 for as_dir in $PATH 44127 do 44128 IFS=$as_save_IFS 44129 test -z "$as_dir" && as_dir=. 44130 for ac_exec_ext in '' $ac_executable_extensions; do 44131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44132 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44134 break 2 44135 fi 44136 done 44137 done 44138 IFS=$as_save_IFS 44139 44140 ;; 44141 esac 44142 fi 44143 BUILD_CXX=$ac_cv_path_BUILD_CXX 44144 if test -n "$BUILD_CXX"; then 44145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44146 $as_echo "$BUILD_CXX" >&6; } 44147 else 44148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44149 $as_echo "no" >&6; } 44150 fi 44151 44152 44153 test -n "$BUILD_CXX" && break 44154 done 44155 44156 else 44157 # If it succeeded, then it was overridden by the user. We will use it 44158 # for the tool. 44159 44160 # First remove it from the list of overridden variables, so we can test 44161 # for unknown variables in the end. 44162 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44163 44164 # Check if we try to supply an empty value 44165 if test "x$BUILD_CXX" = x; then 44166 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 44167 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 44168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44169 $as_echo_n "checking for BUILD_CXX... " >&6; } 44170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44171 $as_echo "disabled" >&6; } 44172 else 44173 # Check if the provided tool contains a complete path. 44174 tool_specified="$BUILD_CXX" 44175 tool_basename="${tool_specified##*/}" 44176 if test "x$tool_basename" = "x$tool_specified"; then 44177 # A command without a complete path is provided, search $PATH. 44178 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 44179 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 44180 # Extract the first word of "$tool_basename", so it can be a program name with args. 44181 set dummy $tool_basename; ac_word=$2 44182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44183 $as_echo_n "checking for $ac_word... " >&6; } 44184 if ${ac_cv_path_BUILD_CXX+:} false; then : 44185 $as_echo_n "(cached) " >&6 44186 else 44187 case $BUILD_CXX in 44188 [\\/]* | ?:[\\/]*) 44189 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 44190 ;; 44191 *) 44192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44193 for as_dir in $PATH 44194 do 44195 IFS=$as_save_IFS 44196 test -z "$as_dir" && as_dir=. 44197 for ac_exec_ext in '' $ac_executable_extensions; do 44198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44199 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 44200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44201 break 2 44202 fi 44203 done 44204 done 44205 IFS=$as_save_IFS 44206 44207 ;; 44208 esac 44209 fi 44210 BUILD_CXX=$ac_cv_path_BUILD_CXX 44211 if test -n "$BUILD_CXX"; then 44212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 44213 $as_echo "$BUILD_CXX" >&6; } 44214 else 44215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44216 $as_echo "no" >&6; } 44217 fi 44218 44219 44220 if test "x$BUILD_CXX" = x; then 44221 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44222 fi 44223 else 44224 # Otherwise we believe it is a complete path. Use it as it is. 44225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 44226 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 44227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 44228 $as_echo_n "checking for BUILD_CXX... " >&6; } 44229 if test ! -x "$tool_specified"; then 44230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44231 $as_echo "not found" >&6; } 44232 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 44233 fi 44234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44235 $as_echo "$tool_specified" >&6; } 44236 fi 44237 fi 44238 fi 44239 44240 fi 44241 44242 44243 44244 if test "x$BUILD_CXX" = x; then 44245 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 44246 fi 44247 44248 44249 44250 # Only process if variable expands to non-empty 44251 44252 if test "x$BUILD_CXX" != x; then 44253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44254 44255 # First separate the path from the arguments. This will split at the first 44256 # space. 44257 complete="$BUILD_CXX" 44258 path="${complete%% *}" 44259 tmp="$complete EOL" 44260 arguments="${tmp#* }" 44261 44262 # Input might be given as Windows format, start by converting to 44263 # unix format. 44264 new_path=`$CYGPATH -u "$path"` 44265 44266 # Now try to locate executable using which 44267 new_path=`$WHICH "$new_path" 2> /dev/null` 44268 # bat and cmd files are not always considered executable in cygwin causing which 44269 # to not find them 44270 if test "x$new_path" = x \ 44271 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44272 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44273 new_path=`$CYGPATH -u "$path"` 44274 fi 44275 if test "x$new_path" = x; then 44276 # Oops. Which didn't find the executable. 44277 # The splitting of arguments from the executable at a space might have been incorrect, 44278 # since paths with space are more likely in Windows. Give it another try with the whole 44279 # argument. 44280 path="$complete" 44281 arguments="EOL" 44282 new_path=`$CYGPATH -u "$path"` 44283 new_path=`$WHICH "$new_path" 2> /dev/null` 44284 # bat and cmd files are not always considered executable in cygwin causing which 44285 # to not find them 44286 if test "x$new_path" = x \ 44287 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44288 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44289 new_path=`$CYGPATH -u "$path"` 44290 fi 44291 if test "x$new_path" = x; then 44292 # It's still not found. Now this is an unrecoverable error. 44293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44294 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44295 has_space=`$ECHO "$complete" | $GREP " "` 44296 if test "x$has_space" != x; then 44297 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44298 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44299 fi 44300 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44301 fi 44302 fi 44303 44304 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44305 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44306 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44307 # "foo.exe" is OK but "foo" is an error. 44308 # 44309 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44310 # It is also a way to make sure we got the proper file name for the real test later on. 44311 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44312 if test "x$test_shortpath" = x; then 44313 # Short path failed, file does not exist as specified. 44314 # Try adding .exe or .cmd 44315 if test -f "${new_path}.exe"; then 44316 input_to_shortpath="${new_path}.exe" 44317 elif test -f "${new_path}.cmd"; then 44318 input_to_shortpath="${new_path}.cmd" 44319 else 44320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 44321 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 44322 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44323 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44324 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44325 fi 44326 else 44327 input_to_shortpath="$new_path" 44328 fi 44329 44330 # Call helper function which possibly converts this using DOS-style short mode. 44331 # If so, the updated path is stored in $new_path. 44332 new_path="$input_to_shortpath" 44333 44334 input_path="$input_to_shortpath" 44335 # Check if we need to convert this using DOS-style short mode. If the path 44336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44337 # take no chances and rewrite it. 44338 # Note: m4 eats our [], so we need to use [ and ] instead. 44339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44340 if test "x$has_forbidden_chars" != x; then 44341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44342 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44343 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44344 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44345 # Going to short mode and back again did indeed matter. Since short mode is 44346 # case insensitive, let's make it lowercase to improve readability. 44347 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44348 # Now convert it back to Unix-style (cygpath) 44349 input_path=`$CYGPATH -u "$shortmode_path"` 44350 new_path="$input_path" 44351 fi 44352 fi 44353 44354 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44355 if test "x$test_cygdrive_prefix" = x; then 44356 # As a simple fix, exclude /usr/bin since it's not a real path. 44357 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44358 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44359 # a path prefixed by /cygdrive for fixpath to work. 44360 new_path="$CYGWIN_ROOT_PATH$input_path" 44361 fi 44362 fi 44363 44364 # remove trailing .exe if any 44365 new_path="${new_path/%.exe/}" 44366 44367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44368 44369 # First separate the path from the arguments. This will split at the first 44370 # space. 44371 complete="$BUILD_CXX" 44372 path="${complete%% *}" 44373 tmp="$complete EOL" 44374 arguments="${tmp#* }" 44375 44376 # Input might be given as Windows format, start by converting to 44377 # unix format. 44378 new_path="$path" 44379 44380 windows_path="$new_path" 44381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44382 unix_path=`$CYGPATH -u "$windows_path"` 44383 new_path="$unix_path" 44384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44385 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44386 new_path="$unix_path" 44387 fi 44388 44389 44390 # Now try to locate executable using which 44391 new_path=`$WHICH "$new_path" 2> /dev/null` 44392 44393 if test "x$new_path" = x; then 44394 # Oops. Which didn't find the executable. 44395 # The splitting of arguments from the executable at a space might have been incorrect, 44396 # since paths with space are more likely in Windows. Give it another try with the whole 44397 # argument. 44398 path="$complete" 44399 arguments="EOL" 44400 new_path="$path" 44401 44402 windows_path="$new_path" 44403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44404 unix_path=`$CYGPATH -u "$windows_path"` 44405 new_path="$unix_path" 44406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44408 new_path="$unix_path" 44409 fi 44410 44411 44412 new_path=`$WHICH "$new_path" 2> /dev/null` 44413 # bat and cmd files are not always considered executable in MSYS causing which 44414 # to not find them 44415 if test "x$new_path" = x \ 44416 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44417 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44418 new_path="$path" 44419 44420 windows_path="$new_path" 44421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44422 unix_path=`$CYGPATH -u "$windows_path"` 44423 new_path="$unix_path" 44424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44425 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44426 new_path="$unix_path" 44427 fi 44428 44429 fi 44430 44431 if test "x$new_path" = x; then 44432 # It's still not found. Now this is an unrecoverable error. 44433 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44434 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44435 has_space=`$ECHO "$complete" | $GREP " "` 44436 if test "x$has_space" != x; then 44437 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44438 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44439 fi 44440 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44441 fi 44442 fi 44443 44444 # Now new_path has a complete unix path to the binary 44445 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44446 # Keep paths in /bin as-is, but remove trailing .exe if any 44447 new_path="${new_path/%.exe/}" 44448 # Do not save /bin paths to all_fixpath_prefixes! 44449 else 44450 # Not in mixed or Windows style, start by that. 44451 new_path=`cmd //c echo $new_path` 44452 44453 input_path="$new_path" 44454 # Check if we need to convert this using DOS-style short mode. If the path 44455 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44456 # take no chances and rewrite it. 44457 # Note: m4 eats our [], so we need to use [ and ] instead. 44458 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44459 if test "x$has_forbidden_chars" != x; then 44460 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44461 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44462 fi 44463 44464 # Output is in $new_path 44465 44466 windows_path="$new_path" 44467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44468 unix_path=`$CYGPATH -u "$windows_path"` 44469 new_path="$unix_path" 44470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44472 new_path="$unix_path" 44473 fi 44474 44475 # remove trailing .exe if any 44476 new_path="${new_path/%.exe/}" 44477 44478 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44479 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44480 fi 44481 44482 else 44483 # We're on a unix platform. Hooray! :) 44484 # First separate the path from the arguments. This will split at the first 44485 # space. 44486 complete="$BUILD_CXX" 44487 path="${complete%% *}" 44488 tmp="$complete EOL" 44489 arguments="${tmp#* }" 44490 44491 # Cannot rely on the command "which" here since it doesn't always work. 44492 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44493 if test -z "$is_absolute_path"; then 44494 # Path to executable is not absolute. Find it. 44495 IFS_save="$IFS" 44496 IFS=: 44497 for p in $PATH; do 44498 if test -f "$p/$path" && test -x "$p/$path"; then 44499 new_path="$p/$path" 44500 break 44501 fi 44502 done 44503 IFS="$IFS_save" 44504 else 44505 # This is an absolute path, we can use it without further modifications. 44506 new_path="$path" 44507 fi 44508 44509 if test "x$new_path" = x; then 44510 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 44511 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 44512 has_space=`$ECHO "$complete" | $GREP " "` 44513 if test "x$has_space" != x; then 44514 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44515 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44516 fi 44517 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 44518 fi 44519 fi 44520 44521 # Now join together the path and the arguments once again 44522 if test "x$arguments" != xEOL; then 44523 new_complete="$new_path ${arguments% *}" 44524 else 44525 new_complete="$new_path" 44526 fi 44527 44528 if test "x$complete" != "x$new_complete"; then 44529 BUILD_CXX="$new_complete" 44530 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 44531 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 44532 fi 44533 fi 44534 44535 44536 44537 # Publish this variable in the help. 44538 44539 44540 if [ -z "${BUILD_NM+x}" ]; then 44541 # The variable is not set by user, try to locate tool using the code snippet 44542 for ac_prog in nm gcc-nm 44543 do 44544 # Extract the first word of "$ac_prog", so it can be a program name with args. 44545 set dummy $ac_prog; ac_word=$2 44546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44547 $as_echo_n "checking for $ac_word... " >&6; } 44548 if ${ac_cv_path_BUILD_NM+:} false; then : 44549 $as_echo_n "(cached) " >&6 44550 else 44551 case $BUILD_NM in 44552 [\\/]* | ?:[\\/]*) 44553 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 44554 ;; 44555 *) 44556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44557 for as_dir in $PATH 44558 do 44559 IFS=$as_save_IFS 44560 test -z "$as_dir" && as_dir=. 44561 for ac_exec_ext in '' $ac_executable_extensions; do 44562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44563 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 44564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44565 break 2 44566 fi 44567 done 44568 done 44569 IFS=$as_save_IFS 44570 44571 ;; 44572 esac 44573 fi 44574 BUILD_NM=$ac_cv_path_BUILD_NM 44575 if test -n "$BUILD_NM"; then 44576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 44577 $as_echo "$BUILD_NM" >&6; } 44578 else 44579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44580 $as_echo "no" >&6; } 44581 fi 44582 44583 44584 test -n "$BUILD_NM" && break 44585 done 44586 44587 else 44588 # The variable is set, but is it from the command line or the environment? 44589 44590 # Try to remove the string !BUILD_NM! from our list. 44591 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 44592 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44593 # If it failed, the variable was not from the command line. Ignore it, 44594 # but warn the user (except for BASH, which is always set by the calling BASH). 44595 if test "xBUILD_NM" != xBASH; then 44596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 44597 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 44598 fi 44599 # Try to locate tool using the code snippet 44600 for ac_prog in nm gcc-nm 44601 do 44602 # Extract the first word of "$ac_prog", so it can be a program name with args. 44603 set dummy $ac_prog; ac_word=$2 44604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44605 $as_echo_n "checking for $ac_word... " >&6; } 44606 if ${ac_cv_path_BUILD_NM+:} false; then : 44607 $as_echo_n "(cached) " >&6 44608 else 44609 case $BUILD_NM in 44610 [\\/]* | ?:[\\/]*) 44611 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 44612 ;; 44613 *) 44614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44615 for as_dir in $PATH 44616 do 44617 IFS=$as_save_IFS 44618 test -z "$as_dir" && as_dir=. 44619 for ac_exec_ext in '' $ac_executable_extensions; do 44620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44621 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 44622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44623 break 2 44624 fi 44625 done 44626 done 44627 IFS=$as_save_IFS 44628 44629 ;; 44630 esac 44631 fi 44632 BUILD_NM=$ac_cv_path_BUILD_NM 44633 if test -n "$BUILD_NM"; then 44634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 44635 $as_echo "$BUILD_NM" >&6; } 44636 else 44637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44638 $as_echo "no" >&6; } 44639 fi 44640 44641 44642 test -n "$BUILD_NM" && break 44643 done 44644 44645 else 44646 # If it succeeded, then it was overridden by the user. We will use it 44647 # for the tool. 44648 44649 # First remove it from the list of overridden variables, so we can test 44650 # for unknown variables in the end. 44651 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44652 44653 # Check if we try to supply an empty value 44654 if test "x$BUILD_NM" = x; then 44655 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 44656 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 44657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 44658 $as_echo_n "checking for BUILD_NM... " >&6; } 44659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44660 $as_echo "disabled" >&6; } 44661 else 44662 # Check if the provided tool contains a complete path. 44663 tool_specified="$BUILD_NM" 44664 tool_basename="${tool_specified##*/}" 44665 if test "x$tool_basename" = "x$tool_specified"; then 44666 # A command without a complete path is provided, search $PATH. 44667 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 44668 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 44669 # Extract the first word of "$tool_basename", so it can be a program name with args. 44670 set dummy $tool_basename; ac_word=$2 44671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44672 $as_echo_n "checking for $ac_word... " >&6; } 44673 if ${ac_cv_path_BUILD_NM+:} false; then : 44674 $as_echo_n "(cached) " >&6 44675 else 44676 case $BUILD_NM in 44677 [\\/]* | ?:[\\/]*) 44678 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 44679 ;; 44680 *) 44681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44682 for as_dir in $PATH 44683 do 44684 IFS=$as_save_IFS 44685 test -z "$as_dir" && as_dir=. 44686 for ac_exec_ext in '' $ac_executable_extensions; do 44687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44688 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 44689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44690 break 2 44691 fi 44692 done 44693 done 44694 IFS=$as_save_IFS 44695 44696 ;; 44697 esac 44698 fi 44699 BUILD_NM=$ac_cv_path_BUILD_NM 44700 if test -n "$BUILD_NM"; then 44701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 44702 $as_echo "$BUILD_NM" >&6; } 44703 else 44704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44705 $as_echo "no" >&6; } 44706 fi 44707 44708 44709 if test "x$BUILD_NM" = x; then 44710 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44711 fi 44712 else 44713 # Otherwise we believe it is a complete path. Use it as it is. 44714 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 44715 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 44716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 44717 $as_echo_n "checking for BUILD_NM... " >&6; } 44718 if test ! -x "$tool_specified"; then 44719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44720 $as_echo "not found" >&6; } 44721 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 44722 fi 44723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44724 $as_echo "$tool_specified" >&6; } 44725 fi 44726 fi 44727 fi 44728 44729 fi 44730 44731 44732 44733 # Only process if variable expands to non-empty 44734 44735 if test "x$BUILD_NM" != x; then 44736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44737 44738 # First separate the path from the arguments. This will split at the first 44739 # space. 44740 complete="$BUILD_NM" 44741 path="${complete%% *}" 44742 tmp="$complete EOL" 44743 arguments="${tmp#* }" 44744 44745 # Input might be given as Windows format, start by converting to 44746 # unix format. 44747 new_path=`$CYGPATH -u "$path"` 44748 44749 # Now try to locate executable using which 44750 new_path=`$WHICH "$new_path" 2> /dev/null` 44751 # bat and cmd files are not always considered executable in cygwin causing which 44752 # to not find them 44753 if test "x$new_path" = x \ 44754 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44755 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44756 new_path=`$CYGPATH -u "$path"` 44757 fi 44758 if test "x$new_path" = x; then 44759 # Oops. Which didn't find the executable. 44760 # The splitting of arguments from the executable at a space might have been incorrect, 44761 # since paths with space are more likely in Windows. Give it another try with the whole 44762 # argument. 44763 path="$complete" 44764 arguments="EOL" 44765 new_path=`$CYGPATH -u "$path"` 44766 new_path=`$WHICH "$new_path" 2> /dev/null` 44767 # bat and cmd files are not always considered executable in cygwin causing which 44768 # to not find them 44769 if test "x$new_path" = x \ 44770 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44771 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44772 new_path=`$CYGPATH -u "$path"` 44773 fi 44774 if test "x$new_path" = x; then 44775 # It's still not found. Now this is an unrecoverable error. 44776 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 44777 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 44778 has_space=`$ECHO "$complete" | $GREP " "` 44779 if test "x$has_space" != x; then 44780 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44781 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44782 fi 44783 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 44784 fi 44785 fi 44786 44787 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44788 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44789 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44790 # "foo.exe" is OK but "foo" is an error. 44791 # 44792 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44793 # It is also a way to make sure we got the proper file name for the real test later on. 44794 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44795 if test "x$test_shortpath" = x; then 44796 # Short path failed, file does not exist as specified. 44797 # Try adding .exe or .cmd 44798 if test -f "${new_path}.exe"; then 44799 input_to_shortpath="${new_path}.exe" 44800 elif test -f "${new_path}.cmd"; then 44801 input_to_shortpath="${new_path}.cmd" 44802 else 44803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 44804 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 44805 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44806 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44807 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 44808 fi 44809 else 44810 input_to_shortpath="$new_path" 44811 fi 44812 44813 # Call helper function which possibly converts this using DOS-style short mode. 44814 # If so, the updated path is stored in $new_path. 44815 new_path="$input_to_shortpath" 44816 44817 input_path="$input_to_shortpath" 44818 # Check if we need to convert this using DOS-style short mode. If the path 44819 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44820 # take no chances and rewrite it. 44821 # Note: m4 eats our [], so we need to use [ and ] instead. 44822 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44823 if test "x$has_forbidden_chars" != x; then 44824 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44825 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44826 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44827 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44828 # Going to short mode and back again did indeed matter. Since short mode is 44829 # case insensitive, let's make it lowercase to improve readability. 44830 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44831 # Now convert it back to Unix-style (cygpath) 44832 input_path=`$CYGPATH -u "$shortmode_path"` 44833 new_path="$input_path" 44834 fi 44835 fi 44836 44837 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44838 if test "x$test_cygdrive_prefix" = x; then 44839 # As a simple fix, exclude /usr/bin since it's not a real path. 44840 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44841 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44842 # a path prefixed by /cygdrive for fixpath to work. 44843 new_path="$CYGWIN_ROOT_PATH$input_path" 44844 fi 44845 fi 44846 44847 # remove trailing .exe if any 44848 new_path="${new_path/%.exe/}" 44849 44850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44851 44852 # First separate the path from the arguments. This will split at the first 44853 # space. 44854 complete="$BUILD_NM" 44855 path="${complete%% *}" 44856 tmp="$complete EOL" 44857 arguments="${tmp#* }" 44858 44859 # Input might be given as Windows format, start by converting to 44860 # unix format. 44861 new_path="$path" 44862 44863 windows_path="$new_path" 44864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44865 unix_path=`$CYGPATH -u "$windows_path"` 44866 new_path="$unix_path" 44867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44868 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44869 new_path="$unix_path" 44870 fi 44871 44872 44873 # Now try to locate executable using which 44874 new_path=`$WHICH "$new_path" 2> /dev/null` 44875 44876 if test "x$new_path" = x; then 44877 # Oops. Which didn't find the executable. 44878 # The splitting of arguments from the executable at a space might have been incorrect, 44879 # since paths with space are more likely in Windows. Give it another try with the whole 44880 # argument. 44881 path="$complete" 44882 arguments="EOL" 44883 new_path="$path" 44884 44885 windows_path="$new_path" 44886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44887 unix_path=`$CYGPATH -u "$windows_path"` 44888 new_path="$unix_path" 44889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44890 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44891 new_path="$unix_path" 44892 fi 44893 44894 44895 new_path=`$WHICH "$new_path" 2> /dev/null` 44896 # bat and cmd files are not always considered executable in MSYS causing which 44897 # to not find them 44898 if test "x$new_path" = x \ 44899 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44900 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44901 new_path="$path" 44902 44903 windows_path="$new_path" 44904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44905 unix_path=`$CYGPATH -u "$windows_path"` 44906 new_path="$unix_path" 44907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44908 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44909 new_path="$unix_path" 44910 fi 44911 44912 fi 44913 44914 if test "x$new_path" = x; then 44915 # It's still not found. Now this is an unrecoverable error. 44916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 44917 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 44918 has_space=`$ECHO "$complete" | $GREP " "` 44919 if test "x$has_space" != x; then 44920 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44921 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44922 fi 44923 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 44924 fi 44925 fi 44926 44927 # Now new_path has a complete unix path to the binary 44928 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44929 # Keep paths in /bin as-is, but remove trailing .exe if any 44930 new_path="${new_path/%.exe/}" 44931 # Do not save /bin paths to all_fixpath_prefixes! 44932 else 44933 # Not in mixed or Windows style, start by that. 44934 new_path=`cmd //c echo $new_path` 44935 44936 input_path="$new_path" 44937 # Check if we need to convert this using DOS-style short mode. If the path 44938 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44939 # take no chances and rewrite it. 44940 # Note: m4 eats our [], so we need to use [ and ] instead. 44941 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44942 if test "x$has_forbidden_chars" != x; then 44943 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44944 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44945 fi 44946 44947 # Output is in $new_path 44948 44949 windows_path="$new_path" 44950 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44951 unix_path=`$CYGPATH -u "$windows_path"` 44952 new_path="$unix_path" 44953 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44954 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44955 new_path="$unix_path" 44956 fi 44957 44958 # remove trailing .exe if any 44959 new_path="${new_path/%.exe/}" 44960 44961 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44962 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44963 fi 44964 44965 else 44966 # We're on a unix platform. Hooray! :) 44967 # First separate the path from the arguments. This will split at the first 44968 # space. 44969 complete="$BUILD_NM" 44970 path="${complete%% *}" 44971 tmp="$complete EOL" 44972 arguments="${tmp#* }" 44973 44974 # Cannot rely on the command "which" here since it doesn't always work. 44975 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44976 if test -z "$is_absolute_path"; then 44977 # Path to executable is not absolute. Find it. 44978 IFS_save="$IFS" 44979 IFS=: 44980 for p in $PATH; do 44981 if test -f "$p/$path" && test -x "$p/$path"; then 44982 new_path="$p/$path" 44983 break 44984 fi 44985 done 44986 IFS="$IFS_save" 44987 else 44988 # This is an absolute path, we can use it without further modifications. 44989 new_path="$path" 44990 fi 44991 44992 if test "x$new_path" = x; then 44993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 44994 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 44995 has_space=`$ECHO "$complete" | $GREP " "` 44996 if test "x$has_space" != x; then 44997 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44998 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44999 fi 45000 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 45001 fi 45002 fi 45003 45004 # Now join together the path and the arguments once again 45005 if test "x$arguments" != xEOL; then 45006 new_complete="$new_path ${arguments% *}" 45007 else 45008 new_complete="$new_path" 45009 fi 45010 45011 if test "x$complete" != "x$new_complete"; then 45012 BUILD_NM="$new_complete" 45013 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 45014 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 45015 fi 45016 fi 45017 45018 45019 45020 # Publish this variable in the help. 45021 45022 45023 if [ -z "${BUILD_AR+x}" ]; then 45024 # The variable is not set by user, try to locate tool using the code snippet 45025 for ac_prog in ar gcc-ar 45026 do 45027 # Extract the first word of "$ac_prog", so it can be a program name with args. 45028 set dummy $ac_prog; ac_word=$2 45029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45030 $as_echo_n "checking for $ac_word... " >&6; } 45031 if ${ac_cv_path_BUILD_AR+:} false; then : 45032 $as_echo_n "(cached) " >&6 45033 else 45034 case $BUILD_AR in 45035 [\\/]* | ?:[\\/]*) 45036 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45037 ;; 45038 *) 45039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45040 for as_dir in $PATH 45041 do 45042 IFS=$as_save_IFS 45043 test -z "$as_dir" && as_dir=. 45044 for ac_exec_ext in '' $ac_executable_extensions; do 45045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45046 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45048 break 2 45049 fi 45050 done 45051 done 45052 IFS=$as_save_IFS 45053 45054 ;; 45055 esac 45056 fi 45057 BUILD_AR=$ac_cv_path_BUILD_AR 45058 if test -n "$BUILD_AR"; then 45059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45060 $as_echo "$BUILD_AR" >&6; } 45061 else 45062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45063 $as_echo "no" >&6; } 45064 fi 45065 45066 45067 test -n "$BUILD_AR" && break 45068 done 45069 45070 else 45071 # The variable is set, but is it from the command line or the environment? 45072 45073 # Try to remove the string !BUILD_AR! from our list. 45074 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 45075 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45076 # If it failed, the variable was not from the command line. Ignore it, 45077 # but warn the user (except for BASH, which is always set by the calling BASH). 45078 if test "xBUILD_AR" != xBASH; then 45079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 45080 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 45081 fi 45082 # Try to locate tool using the code snippet 45083 for ac_prog in ar gcc-ar 45084 do 45085 # Extract the first word of "$ac_prog", so it can be a program name with args. 45086 set dummy $ac_prog; ac_word=$2 45087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45088 $as_echo_n "checking for $ac_word... " >&6; } 45089 if ${ac_cv_path_BUILD_AR+:} false; then : 45090 $as_echo_n "(cached) " >&6 45091 else 45092 case $BUILD_AR in 45093 [\\/]* | ?:[\\/]*) 45094 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45095 ;; 45096 *) 45097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45098 for as_dir in $PATH 45099 do 45100 IFS=$as_save_IFS 45101 test -z "$as_dir" && as_dir=. 45102 for ac_exec_ext in '' $ac_executable_extensions; do 45103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45104 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45106 break 2 45107 fi 45108 done 45109 done 45110 IFS=$as_save_IFS 45111 45112 ;; 45113 esac 45114 fi 45115 BUILD_AR=$ac_cv_path_BUILD_AR 45116 if test -n "$BUILD_AR"; then 45117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45118 $as_echo "$BUILD_AR" >&6; } 45119 else 45120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45121 $as_echo "no" >&6; } 45122 fi 45123 45124 45125 test -n "$BUILD_AR" && break 45126 done 45127 45128 else 45129 # If it succeeded, then it was overridden by the user. We will use it 45130 # for the tool. 45131 45132 # First remove it from the list of overridden variables, so we can test 45133 # for unknown variables in the end. 45134 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45135 45136 # Check if we try to supply an empty value 45137 if test "x$BUILD_AR" = x; then 45138 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 45139 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 45140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45141 $as_echo_n "checking for BUILD_AR... " >&6; } 45142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45143 $as_echo "disabled" >&6; } 45144 else 45145 # Check if the provided tool contains a complete path. 45146 tool_specified="$BUILD_AR" 45147 tool_basename="${tool_specified##*/}" 45148 if test "x$tool_basename" = "x$tool_specified"; then 45149 # A command without a complete path is provided, search $PATH. 45150 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 45151 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 45152 # Extract the first word of "$tool_basename", so it can be a program name with args. 45153 set dummy $tool_basename; ac_word=$2 45154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45155 $as_echo_n "checking for $ac_word... " >&6; } 45156 if ${ac_cv_path_BUILD_AR+:} false; then : 45157 $as_echo_n "(cached) " >&6 45158 else 45159 case $BUILD_AR in 45160 [\\/]* | ?:[\\/]*) 45161 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 45162 ;; 45163 *) 45164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45165 for as_dir in $PATH 45166 do 45167 IFS=$as_save_IFS 45168 test -z "$as_dir" && as_dir=. 45169 for ac_exec_ext in '' $ac_executable_extensions; do 45170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45171 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 45172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45173 break 2 45174 fi 45175 done 45176 done 45177 IFS=$as_save_IFS 45178 45179 ;; 45180 esac 45181 fi 45182 BUILD_AR=$ac_cv_path_BUILD_AR 45183 if test -n "$BUILD_AR"; then 45184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 45185 $as_echo "$BUILD_AR" >&6; } 45186 else 45187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45188 $as_echo "no" >&6; } 45189 fi 45190 45191 45192 if test "x$BUILD_AR" = x; then 45193 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45194 fi 45195 else 45196 # Otherwise we believe it is a complete path. Use it as it is. 45197 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 45198 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 45199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 45200 $as_echo_n "checking for BUILD_AR... " >&6; } 45201 if test ! -x "$tool_specified"; then 45202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45203 $as_echo "not found" >&6; } 45204 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 45205 fi 45206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45207 $as_echo "$tool_specified" >&6; } 45208 fi 45209 fi 45210 fi 45211 45212 fi 45213 45214 45215 45216 # Only process if variable expands to non-empty 45217 45218 if test "x$BUILD_AR" != x; then 45219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45220 45221 # First separate the path from the arguments. This will split at the first 45222 # space. 45223 complete="$BUILD_AR" 45224 path="${complete%% *}" 45225 tmp="$complete EOL" 45226 arguments="${tmp#* }" 45227 45228 # Input might be given as Windows format, start by converting to 45229 # unix format. 45230 new_path=`$CYGPATH -u "$path"` 45231 45232 # Now try to locate executable using which 45233 new_path=`$WHICH "$new_path" 2> /dev/null` 45234 # bat and cmd files are not always considered executable in cygwin causing which 45235 # to not find them 45236 if test "x$new_path" = x \ 45237 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45238 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45239 new_path=`$CYGPATH -u "$path"` 45240 fi 45241 if test "x$new_path" = x; then 45242 # Oops. Which didn't find the executable. 45243 # The splitting of arguments from the executable at a space might have been incorrect, 45244 # since paths with space are more likely in Windows. Give it another try with the whole 45245 # argument. 45246 path="$complete" 45247 arguments="EOL" 45248 new_path=`$CYGPATH -u "$path"` 45249 new_path=`$WHICH "$new_path" 2> /dev/null` 45250 # bat and cmd files are not always considered executable in cygwin causing which 45251 # to not find them 45252 if test "x$new_path" = x \ 45253 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45254 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45255 new_path=`$CYGPATH -u "$path"` 45256 fi 45257 if test "x$new_path" = x; then 45258 # It's still not found. Now this is an unrecoverable error. 45259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45260 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45261 has_space=`$ECHO "$complete" | $GREP " "` 45262 if test "x$has_space" != x; then 45263 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45264 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45265 fi 45266 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45267 fi 45268 fi 45269 45270 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45271 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45272 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45273 # "foo.exe" is OK but "foo" is an error. 45274 # 45275 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45276 # It is also a way to make sure we got the proper file name for the real test later on. 45277 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45278 if test "x$test_shortpath" = x; then 45279 # Short path failed, file does not exist as specified. 45280 # Try adding .exe or .cmd 45281 if test -f "${new_path}.exe"; then 45282 input_to_shortpath="${new_path}.exe" 45283 elif test -f "${new_path}.cmd"; then 45284 input_to_shortpath="${new_path}.cmd" 45285 else 45286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 45287 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 45288 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45289 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45290 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45291 fi 45292 else 45293 input_to_shortpath="$new_path" 45294 fi 45295 45296 # Call helper function which possibly converts this using DOS-style short mode. 45297 # If so, the updated path is stored in $new_path. 45298 new_path="$input_to_shortpath" 45299 45300 input_path="$input_to_shortpath" 45301 # Check if we need to convert this using DOS-style short mode. If the path 45302 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45303 # take no chances and rewrite it. 45304 # Note: m4 eats our [], so we need to use [ and ] instead. 45305 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45306 if test "x$has_forbidden_chars" != x; then 45307 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45308 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45309 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45310 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45311 # Going to short mode and back again did indeed matter. Since short mode is 45312 # case insensitive, let's make it lowercase to improve readability. 45313 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45314 # Now convert it back to Unix-style (cygpath) 45315 input_path=`$CYGPATH -u "$shortmode_path"` 45316 new_path="$input_path" 45317 fi 45318 fi 45319 45320 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45321 if test "x$test_cygdrive_prefix" = x; then 45322 # As a simple fix, exclude /usr/bin since it's not a real path. 45323 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45324 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45325 # a path prefixed by /cygdrive for fixpath to work. 45326 new_path="$CYGWIN_ROOT_PATH$input_path" 45327 fi 45328 fi 45329 45330 # remove trailing .exe if any 45331 new_path="${new_path/%.exe/}" 45332 45333 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45334 45335 # First separate the path from the arguments. This will split at the first 45336 # space. 45337 complete="$BUILD_AR" 45338 path="${complete%% *}" 45339 tmp="$complete EOL" 45340 arguments="${tmp#* }" 45341 45342 # Input might be given as Windows format, start by converting to 45343 # unix format. 45344 new_path="$path" 45345 45346 windows_path="$new_path" 45347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45348 unix_path=`$CYGPATH -u "$windows_path"` 45349 new_path="$unix_path" 45350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45352 new_path="$unix_path" 45353 fi 45354 45355 45356 # Now try to locate executable using which 45357 new_path=`$WHICH "$new_path" 2> /dev/null` 45358 45359 if test "x$new_path" = x; then 45360 # Oops. Which didn't find the executable. 45361 # The splitting of arguments from the executable at a space might have been incorrect, 45362 # since paths with space are more likely in Windows. Give it another try with the whole 45363 # argument. 45364 path="$complete" 45365 arguments="EOL" 45366 new_path="$path" 45367 45368 windows_path="$new_path" 45369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45370 unix_path=`$CYGPATH -u "$windows_path"` 45371 new_path="$unix_path" 45372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45374 new_path="$unix_path" 45375 fi 45376 45377 45378 new_path=`$WHICH "$new_path" 2> /dev/null` 45379 # bat and cmd files are not always considered executable in MSYS causing which 45380 # to not find them 45381 if test "x$new_path" = x \ 45382 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45383 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45384 new_path="$path" 45385 45386 windows_path="$new_path" 45387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45388 unix_path=`$CYGPATH -u "$windows_path"` 45389 new_path="$unix_path" 45390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45391 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45392 new_path="$unix_path" 45393 fi 45394 45395 fi 45396 45397 if test "x$new_path" = x; then 45398 # It's still not found. Now this is an unrecoverable error. 45399 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45400 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45401 has_space=`$ECHO "$complete" | $GREP " "` 45402 if test "x$has_space" != x; then 45403 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45404 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45405 fi 45406 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45407 fi 45408 fi 45409 45410 # Now new_path has a complete unix path to the binary 45411 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45412 # Keep paths in /bin as-is, but remove trailing .exe if any 45413 new_path="${new_path/%.exe/}" 45414 # Do not save /bin paths to all_fixpath_prefixes! 45415 else 45416 # Not in mixed or Windows style, start by that. 45417 new_path=`cmd //c echo $new_path` 45418 45419 input_path="$new_path" 45420 # Check if we need to convert this using DOS-style short mode. If the path 45421 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45422 # take no chances and rewrite it. 45423 # Note: m4 eats our [], so we need to use [ and ] instead. 45424 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45425 if test "x$has_forbidden_chars" != x; then 45426 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45427 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45428 fi 45429 45430 # Output is in $new_path 45431 45432 windows_path="$new_path" 45433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45434 unix_path=`$CYGPATH -u "$windows_path"` 45435 new_path="$unix_path" 45436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45437 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45438 new_path="$unix_path" 45439 fi 45440 45441 # remove trailing .exe if any 45442 new_path="${new_path/%.exe/}" 45443 45444 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45445 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45446 fi 45447 45448 else 45449 # We're on a unix platform. Hooray! :) 45450 # First separate the path from the arguments. This will split at the first 45451 # space. 45452 complete="$BUILD_AR" 45453 path="${complete%% *}" 45454 tmp="$complete EOL" 45455 arguments="${tmp#* }" 45456 45457 # Cannot rely on the command "which" here since it doesn't always work. 45458 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45459 if test -z "$is_absolute_path"; then 45460 # Path to executable is not absolute. Find it. 45461 IFS_save="$IFS" 45462 IFS=: 45463 for p in $PATH; do 45464 if test -f "$p/$path" && test -x "$p/$path"; then 45465 new_path="$p/$path" 45466 break 45467 fi 45468 done 45469 IFS="$IFS_save" 45470 else 45471 # This is an absolute path, we can use it without further modifications. 45472 new_path="$path" 45473 fi 45474 45475 if test "x$new_path" = x; then 45476 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 45477 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 45478 has_space=`$ECHO "$complete" | $GREP " "` 45479 if test "x$has_space" != x; then 45480 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45481 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45482 fi 45483 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 45484 fi 45485 fi 45486 45487 # Now join together the path and the arguments once again 45488 if test "x$arguments" != xEOL; then 45489 new_complete="$new_path ${arguments% *}" 45490 else 45491 new_complete="$new_path" 45492 fi 45493 45494 if test "x$complete" != "x$new_complete"; then 45495 BUILD_AR="$new_complete" 45496 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 45497 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 45498 fi 45499 fi 45500 45501 45502 45503 # Publish this variable in the help. 45504 45505 45506 if [ -z "${BUILD_OBJCOPY+x}" ]; then 45507 # The variable is not set by user, try to locate tool using the code snippet 45508 for ac_prog in objcopy 45509 do 45510 # Extract the first word of "$ac_prog", so it can be a program name with args. 45511 set dummy $ac_prog; ac_word=$2 45512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45513 $as_echo_n "checking for $ac_word... " >&6; } 45514 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 45515 $as_echo_n "(cached) " >&6 45516 else 45517 case $BUILD_OBJCOPY in 45518 [\\/]* | ?:[\\/]*) 45519 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 45520 ;; 45521 *) 45522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45523 for as_dir in $PATH 45524 do 45525 IFS=$as_save_IFS 45526 test -z "$as_dir" && as_dir=. 45527 for ac_exec_ext in '' $ac_executable_extensions; do 45528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45529 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 45530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45531 break 2 45532 fi 45533 done 45534 done 45535 IFS=$as_save_IFS 45536 45537 ;; 45538 esac 45539 fi 45540 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 45541 if test -n "$BUILD_OBJCOPY"; then 45542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 45543 $as_echo "$BUILD_OBJCOPY" >&6; } 45544 else 45545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45546 $as_echo "no" >&6; } 45547 fi 45548 45549 45550 test -n "$BUILD_OBJCOPY" && break 45551 done 45552 45553 else 45554 # The variable is set, but is it from the command line or the environment? 45555 45556 # Try to remove the string !BUILD_OBJCOPY! from our list. 45557 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 45558 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45559 # If it failed, the variable was not from the command line. Ignore it, 45560 # but warn the user (except for BASH, which is always set by the calling BASH). 45561 if test "xBUILD_OBJCOPY" != xBASH; then 45562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 45563 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 45564 fi 45565 # Try to locate tool using the code snippet 45566 for ac_prog in objcopy 45567 do 45568 # Extract the first word of "$ac_prog", so it can be a program name with args. 45569 set dummy $ac_prog; ac_word=$2 45570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45571 $as_echo_n "checking for $ac_word... " >&6; } 45572 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 45573 $as_echo_n "(cached) " >&6 45574 else 45575 case $BUILD_OBJCOPY in 45576 [\\/]* | ?:[\\/]*) 45577 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 45578 ;; 45579 *) 45580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45581 for as_dir in $PATH 45582 do 45583 IFS=$as_save_IFS 45584 test -z "$as_dir" && as_dir=. 45585 for ac_exec_ext in '' $ac_executable_extensions; do 45586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45587 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 45588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45589 break 2 45590 fi 45591 done 45592 done 45593 IFS=$as_save_IFS 45594 45595 ;; 45596 esac 45597 fi 45598 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 45599 if test -n "$BUILD_OBJCOPY"; then 45600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 45601 $as_echo "$BUILD_OBJCOPY" >&6; } 45602 else 45603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45604 $as_echo "no" >&6; } 45605 fi 45606 45607 45608 test -n "$BUILD_OBJCOPY" && break 45609 done 45610 45611 else 45612 # If it succeeded, then it was overridden by the user. We will use it 45613 # for the tool. 45614 45615 # First remove it from the list of overridden variables, so we can test 45616 # for unknown variables in the end. 45617 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45618 45619 # Check if we try to supply an empty value 45620 if test "x$BUILD_OBJCOPY" = x; then 45621 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 45622 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 45623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 45624 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 45625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45626 $as_echo "disabled" >&6; } 45627 else 45628 # Check if the provided tool contains a complete path. 45629 tool_specified="$BUILD_OBJCOPY" 45630 tool_basename="${tool_specified##*/}" 45631 if test "x$tool_basename" = "x$tool_specified"; then 45632 # A command without a complete path is provided, search $PATH. 45633 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 45634 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 45635 # Extract the first word of "$tool_basename", so it can be a program name with args. 45636 set dummy $tool_basename; ac_word=$2 45637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45638 $as_echo_n "checking for $ac_word... " >&6; } 45639 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 45640 $as_echo_n "(cached) " >&6 45641 else 45642 case $BUILD_OBJCOPY in 45643 [\\/]* | ?:[\\/]*) 45644 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 45645 ;; 45646 *) 45647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45648 for as_dir in $PATH 45649 do 45650 IFS=$as_save_IFS 45651 test -z "$as_dir" && as_dir=. 45652 for ac_exec_ext in '' $ac_executable_extensions; do 45653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45654 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 45655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45656 break 2 45657 fi 45658 done 45659 done 45660 IFS=$as_save_IFS 45661 45662 ;; 45663 esac 45664 fi 45665 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 45666 if test -n "$BUILD_OBJCOPY"; then 45667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 45668 $as_echo "$BUILD_OBJCOPY" >&6; } 45669 else 45670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45671 $as_echo "no" >&6; } 45672 fi 45673 45674 45675 if test "x$BUILD_OBJCOPY" = x; then 45676 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45677 fi 45678 else 45679 # Otherwise we believe it is a complete path. Use it as it is. 45680 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 45681 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 45682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 45683 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 45684 if test ! -x "$tool_specified"; then 45685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45686 $as_echo "not found" >&6; } 45687 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 45688 fi 45689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45690 $as_echo "$tool_specified" >&6; } 45691 fi 45692 fi 45693 fi 45694 45695 fi 45696 45697 45698 45699 # Only process if variable expands to non-empty 45700 45701 if test "x$BUILD_OBJCOPY" != x; then 45702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45703 45704 # First separate the path from the arguments. This will split at the first 45705 # space. 45706 complete="$BUILD_OBJCOPY" 45707 path="${complete%% *}" 45708 tmp="$complete EOL" 45709 arguments="${tmp#* }" 45710 45711 # Input might be given as Windows format, start by converting to 45712 # unix format. 45713 new_path=`$CYGPATH -u "$path"` 45714 45715 # Now try to locate executable using which 45716 new_path=`$WHICH "$new_path" 2> /dev/null` 45717 # bat and cmd files are not always considered executable in cygwin causing which 45718 # to not find them 45719 if test "x$new_path" = x \ 45720 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45721 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45722 new_path=`$CYGPATH -u "$path"` 45723 fi 45724 if test "x$new_path" = x; then 45725 # Oops. Which didn't find the executable. 45726 # The splitting of arguments from the executable at a space might have been incorrect, 45727 # since paths with space are more likely in Windows. Give it another try with the whole 45728 # argument. 45729 path="$complete" 45730 arguments="EOL" 45731 new_path=`$CYGPATH -u "$path"` 45732 new_path=`$WHICH "$new_path" 2> /dev/null` 45733 # bat and cmd files are not always considered executable in cygwin causing which 45734 # to not find them 45735 if test "x$new_path" = x \ 45736 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45737 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45738 new_path=`$CYGPATH -u "$path"` 45739 fi 45740 if test "x$new_path" = x; then 45741 # It's still not found. Now this is an unrecoverable error. 45742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 45743 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 45744 has_space=`$ECHO "$complete" | $GREP " "` 45745 if test "x$has_space" != x; then 45746 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45747 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45748 fi 45749 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 45750 fi 45751 fi 45752 45753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45756 # "foo.exe" is OK but "foo" is an error. 45757 # 45758 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45759 # It is also a way to make sure we got the proper file name for the real test later on. 45760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45761 if test "x$test_shortpath" = x; then 45762 # Short path failed, file does not exist as specified. 45763 # Try adding .exe or .cmd 45764 if test -f "${new_path}.exe"; then 45765 input_to_shortpath="${new_path}.exe" 45766 elif test -f "${new_path}.cmd"; then 45767 input_to_shortpath="${new_path}.cmd" 45768 else 45769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 45770 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 45771 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45772 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45773 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 45774 fi 45775 else 45776 input_to_shortpath="$new_path" 45777 fi 45778 45779 # Call helper function which possibly converts this using DOS-style short mode. 45780 # If so, the updated path is stored in $new_path. 45781 new_path="$input_to_shortpath" 45782 45783 input_path="$input_to_shortpath" 45784 # Check if we need to convert this using DOS-style short mode. If the path 45785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45786 # take no chances and rewrite it. 45787 # Note: m4 eats our [], so we need to use [ and ] instead. 45788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45789 if test "x$has_forbidden_chars" != x; then 45790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45791 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45792 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45793 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45794 # Going to short mode and back again did indeed matter. Since short mode is 45795 # case insensitive, let's make it lowercase to improve readability. 45796 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45797 # Now convert it back to Unix-style (cygpath) 45798 input_path=`$CYGPATH -u "$shortmode_path"` 45799 new_path="$input_path" 45800 fi 45801 fi 45802 45803 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45804 if test "x$test_cygdrive_prefix" = x; then 45805 # As a simple fix, exclude /usr/bin since it's not a real path. 45806 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45807 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45808 # a path prefixed by /cygdrive for fixpath to work. 45809 new_path="$CYGWIN_ROOT_PATH$input_path" 45810 fi 45811 fi 45812 45813 # remove trailing .exe if any 45814 new_path="${new_path/%.exe/}" 45815 45816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45817 45818 # First separate the path from the arguments. This will split at the first 45819 # space. 45820 complete="$BUILD_OBJCOPY" 45821 path="${complete%% *}" 45822 tmp="$complete EOL" 45823 arguments="${tmp#* }" 45824 45825 # Input might be given as Windows format, start by converting to 45826 # unix format. 45827 new_path="$path" 45828 45829 windows_path="$new_path" 45830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45831 unix_path=`$CYGPATH -u "$windows_path"` 45832 new_path="$unix_path" 45833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45835 new_path="$unix_path" 45836 fi 45837 45838 45839 # Now try to locate executable using which 45840 new_path=`$WHICH "$new_path" 2> /dev/null` 45841 45842 if test "x$new_path" = x; then 45843 # Oops. Which didn't find the executable. 45844 # The splitting of arguments from the executable at a space might have been incorrect, 45845 # since paths with space are more likely in Windows. Give it another try with the whole 45846 # argument. 45847 path="$complete" 45848 arguments="EOL" 45849 new_path="$path" 45850 45851 windows_path="$new_path" 45852 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45853 unix_path=`$CYGPATH -u "$windows_path"` 45854 new_path="$unix_path" 45855 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45856 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45857 new_path="$unix_path" 45858 fi 45859 45860 45861 new_path=`$WHICH "$new_path" 2> /dev/null` 45862 # bat and cmd files are not always considered executable in MSYS causing which 45863 # to not find them 45864 if test "x$new_path" = x \ 45865 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45866 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45867 new_path="$path" 45868 45869 windows_path="$new_path" 45870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45871 unix_path=`$CYGPATH -u "$windows_path"` 45872 new_path="$unix_path" 45873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45875 new_path="$unix_path" 45876 fi 45877 45878 fi 45879 45880 if test "x$new_path" = x; then 45881 # It's still not found. Now this is an unrecoverable error. 45882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 45883 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 45884 has_space=`$ECHO "$complete" | $GREP " "` 45885 if test "x$has_space" != x; then 45886 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45887 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45888 fi 45889 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 45890 fi 45891 fi 45892 45893 # Now new_path has a complete unix path to the binary 45894 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45895 # Keep paths in /bin as-is, but remove trailing .exe if any 45896 new_path="${new_path/%.exe/}" 45897 # Do not save /bin paths to all_fixpath_prefixes! 45898 else 45899 # Not in mixed or Windows style, start by that. 45900 new_path=`cmd //c echo $new_path` 45901 45902 input_path="$new_path" 45903 # Check if we need to convert this using DOS-style short mode. If the path 45904 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45905 # take no chances and rewrite it. 45906 # Note: m4 eats our [], so we need to use [ and ] instead. 45907 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45908 if test "x$has_forbidden_chars" != x; then 45909 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45910 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45911 fi 45912 45913 # Output is in $new_path 45914 45915 windows_path="$new_path" 45916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45917 unix_path=`$CYGPATH -u "$windows_path"` 45918 new_path="$unix_path" 45919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45921 new_path="$unix_path" 45922 fi 45923 45924 # remove trailing .exe if any 45925 new_path="${new_path/%.exe/}" 45926 45927 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45928 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45929 fi 45930 45931 else 45932 # We're on a unix platform. Hooray! :) 45933 # First separate the path from the arguments. This will split at the first 45934 # space. 45935 complete="$BUILD_OBJCOPY" 45936 path="${complete%% *}" 45937 tmp="$complete EOL" 45938 arguments="${tmp#* }" 45939 45940 # Cannot rely on the command "which" here since it doesn't always work. 45941 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45942 if test -z "$is_absolute_path"; then 45943 # Path to executable is not absolute. Find it. 45944 IFS_save="$IFS" 45945 IFS=: 45946 for p in $PATH; do 45947 if test -f "$p/$path" && test -x "$p/$path"; then 45948 new_path="$p/$path" 45949 break 45950 fi 45951 done 45952 IFS="$IFS_save" 45953 else 45954 # This is an absolute path, we can use it without further modifications. 45955 new_path="$path" 45956 fi 45957 45958 if test "x$new_path" = x; then 45959 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 45960 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 45961 has_space=`$ECHO "$complete" | $GREP " "` 45962 if test "x$has_space" != x; then 45963 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45964 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45965 fi 45966 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 45967 fi 45968 fi 45969 45970 # Now join together the path and the arguments once again 45971 if test "x$arguments" != xEOL; then 45972 new_complete="$new_path ${arguments% *}" 45973 else 45974 new_complete="$new_path" 45975 fi 45976 45977 if test "x$complete" != "x$new_complete"; then 45978 BUILD_OBJCOPY="$new_complete" 45979 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 45980 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 45981 fi 45982 fi 45983 45984 45985 45986 # Publish this variable in the help. 45987 45988 45989 if [ -z "${BUILD_STRIP+x}" ]; then 45990 # The variable is not set by user, try to locate tool using the code snippet 45991 for ac_prog in strip 45992 do 45993 # Extract the first word of "$ac_prog", so it can be a program name with args. 45994 set dummy $ac_prog; ac_word=$2 45995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45996 $as_echo_n "checking for $ac_word... " >&6; } 45997 if ${ac_cv_path_BUILD_STRIP+:} false; then : 45998 $as_echo_n "(cached) " >&6 45999 else 46000 case $BUILD_STRIP in 46001 [\\/]* | ?:[\\/]*) 46002 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46003 ;; 46004 *) 46005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46006 for as_dir in $PATH 46007 do 46008 IFS=$as_save_IFS 46009 test -z "$as_dir" && as_dir=. 46010 for ac_exec_ext in '' $ac_executable_extensions; do 46011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46012 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46014 break 2 46015 fi 46016 done 46017 done 46018 IFS=$as_save_IFS 46019 46020 ;; 46021 esac 46022 fi 46023 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46024 if test -n "$BUILD_STRIP"; then 46025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46026 $as_echo "$BUILD_STRIP" >&6; } 46027 else 46028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46029 $as_echo "no" >&6; } 46030 fi 46031 46032 46033 test -n "$BUILD_STRIP" && break 46034 done 46035 46036 else 46037 # The variable is set, but is it from the command line or the environment? 46038 46039 # Try to remove the string !BUILD_STRIP! from our list. 46040 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 46041 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46042 # If it failed, the variable was not from the command line. Ignore it, 46043 # but warn the user (except for BASH, which is always set by the calling BASH). 46044 if test "xBUILD_STRIP" != xBASH; then 46045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 46046 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 46047 fi 46048 # Try to locate tool using the code snippet 46049 for ac_prog in strip 46050 do 46051 # Extract the first word of "$ac_prog", so it can be a program name with args. 46052 set dummy $ac_prog; ac_word=$2 46053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46054 $as_echo_n "checking for $ac_word... " >&6; } 46055 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46056 $as_echo_n "(cached) " >&6 46057 else 46058 case $BUILD_STRIP in 46059 [\\/]* | ?:[\\/]*) 46060 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46061 ;; 46062 *) 46063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46064 for as_dir in $PATH 46065 do 46066 IFS=$as_save_IFS 46067 test -z "$as_dir" && as_dir=. 46068 for ac_exec_ext in '' $ac_executable_extensions; do 46069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46070 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46072 break 2 46073 fi 46074 done 46075 done 46076 IFS=$as_save_IFS 46077 46078 ;; 46079 esac 46080 fi 46081 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46082 if test -n "$BUILD_STRIP"; then 46083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46084 $as_echo "$BUILD_STRIP" >&6; } 46085 else 46086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46087 $as_echo "no" >&6; } 46088 fi 46089 46090 46091 test -n "$BUILD_STRIP" && break 46092 done 46093 46094 else 46095 # If it succeeded, then it was overridden by the user. We will use it 46096 # for the tool. 46097 46098 # First remove it from the list of overridden variables, so we can test 46099 # for unknown variables in the end. 46100 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46101 46102 # Check if we try to supply an empty value 46103 if test "x$BUILD_STRIP" = x; then 46104 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 46105 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 46106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46107 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46109 $as_echo "disabled" >&6; } 46110 else 46111 # Check if the provided tool contains a complete path. 46112 tool_specified="$BUILD_STRIP" 46113 tool_basename="${tool_specified##*/}" 46114 if test "x$tool_basename" = "x$tool_specified"; then 46115 # A command without a complete path is provided, search $PATH. 46116 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 46117 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 46118 # Extract the first word of "$tool_basename", so it can be a program name with args. 46119 set dummy $tool_basename; ac_word=$2 46120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46121 $as_echo_n "checking for $ac_word... " >&6; } 46122 if ${ac_cv_path_BUILD_STRIP+:} false; then : 46123 $as_echo_n "(cached) " >&6 46124 else 46125 case $BUILD_STRIP in 46126 [\\/]* | ?:[\\/]*) 46127 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 46128 ;; 46129 *) 46130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46131 for as_dir in $PATH 46132 do 46133 IFS=$as_save_IFS 46134 test -z "$as_dir" && as_dir=. 46135 for ac_exec_ext in '' $ac_executable_extensions; do 46136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46137 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 46138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46139 break 2 46140 fi 46141 done 46142 done 46143 IFS=$as_save_IFS 46144 46145 ;; 46146 esac 46147 fi 46148 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 46149 if test -n "$BUILD_STRIP"; then 46150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 46151 $as_echo "$BUILD_STRIP" >&6; } 46152 else 46153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46154 $as_echo "no" >&6; } 46155 fi 46156 46157 46158 if test "x$BUILD_STRIP" = x; then 46159 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46160 fi 46161 else 46162 # Otherwise we believe it is a complete path. Use it as it is. 46163 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 46164 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 46165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 46166 $as_echo_n "checking for BUILD_STRIP... " >&6; } 46167 if test ! -x "$tool_specified"; then 46168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46169 $as_echo "not found" >&6; } 46170 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 46171 fi 46172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46173 $as_echo "$tool_specified" >&6; } 46174 fi 46175 fi 46176 fi 46177 46178 fi 46179 46180 46181 46182 # Only process if variable expands to non-empty 46183 46184 if test "x$BUILD_STRIP" != x; then 46185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46186 46187 # First separate the path from the arguments. This will split at the first 46188 # space. 46189 complete="$BUILD_STRIP" 46190 path="${complete%% *}" 46191 tmp="$complete EOL" 46192 arguments="${tmp#* }" 46193 46194 # Input might be given as Windows format, start by converting to 46195 # unix format. 46196 new_path=`$CYGPATH -u "$path"` 46197 46198 # Now try to locate executable using which 46199 new_path=`$WHICH "$new_path" 2> /dev/null` 46200 # bat and cmd files are not always considered executable in cygwin causing which 46201 # to not find them 46202 if test "x$new_path" = x \ 46203 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46204 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46205 new_path=`$CYGPATH -u "$path"` 46206 fi 46207 if test "x$new_path" = x; then 46208 # Oops. Which didn't find the executable. 46209 # The splitting of arguments from the executable at a space might have been incorrect, 46210 # since paths with space are more likely in Windows. Give it another try with the whole 46211 # argument. 46212 path="$complete" 46213 arguments="EOL" 46214 new_path=`$CYGPATH -u "$path"` 46215 new_path=`$WHICH "$new_path" 2> /dev/null` 46216 # bat and cmd files are not always considered executable in cygwin causing which 46217 # to not find them 46218 if test "x$new_path" = x \ 46219 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46220 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46221 new_path=`$CYGPATH -u "$path"` 46222 fi 46223 if test "x$new_path" = x; then 46224 # It's still not found. Now this is an unrecoverable error. 46225 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46226 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46227 has_space=`$ECHO "$complete" | $GREP " "` 46228 if test "x$has_space" != x; then 46229 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46230 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46231 fi 46232 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46233 fi 46234 fi 46235 46236 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46237 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46238 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46239 # "foo.exe" is OK but "foo" is an error. 46240 # 46241 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46242 # It is also a way to make sure we got the proper file name for the real test later on. 46243 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46244 if test "x$test_shortpath" = x; then 46245 # Short path failed, file does not exist as specified. 46246 # Try adding .exe or .cmd 46247 if test -f "${new_path}.exe"; then 46248 input_to_shortpath="${new_path}.exe" 46249 elif test -f "${new_path}.cmd"; then 46250 input_to_shortpath="${new_path}.cmd" 46251 else 46252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 46253 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 46254 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46255 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46256 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46257 fi 46258 else 46259 input_to_shortpath="$new_path" 46260 fi 46261 46262 # Call helper function which possibly converts this using DOS-style short mode. 46263 # If so, the updated path is stored in $new_path. 46264 new_path="$input_to_shortpath" 46265 46266 input_path="$input_to_shortpath" 46267 # Check if we need to convert this using DOS-style short mode. If the path 46268 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46269 # take no chances and rewrite it. 46270 # Note: m4 eats our [], so we need to use [ and ] instead. 46271 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46272 if test "x$has_forbidden_chars" != x; then 46273 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46274 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46275 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46276 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46277 # Going to short mode and back again did indeed matter. Since short mode is 46278 # case insensitive, let's make it lowercase to improve readability. 46279 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46280 # Now convert it back to Unix-style (cygpath) 46281 input_path=`$CYGPATH -u "$shortmode_path"` 46282 new_path="$input_path" 46283 fi 46284 fi 46285 46286 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46287 if test "x$test_cygdrive_prefix" = x; then 46288 # As a simple fix, exclude /usr/bin since it's not a real path. 46289 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46290 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46291 # a path prefixed by /cygdrive for fixpath to work. 46292 new_path="$CYGWIN_ROOT_PATH$input_path" 46293 fi 46294 fi 46295 46296 # remove trailing .exe if any 46297 new_path="${new_path/%.exe/}" 46298 46299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46300 46301 # First separate the path from the arguments. This will split at the first 46302 # space. 46303 complete="$BUILD_STRIP" 46304 path="${complete%% *}" 46305 tmp="$complete EOL" 46306 arguments="${tmp#* }" 46307 46308 # Input might be given as Windows format, start by converting to 46309 # unix format. 46310 new_path="$path" 46311 46312 windows_path="$new_path" 46313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46314 unix_path=`$CYGPATH -u "$windows_path"` 46315 new_path="$unix_path" 46316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46318 new_path="$unix_path" 46319 fi 46320 46321 46322 # Now try to locate executable using which 46323 new_path=`$WHICH "$new_path" 2> /dev/null` 46324 46325 if test "x$new_path" = x; then 46326 # Oops. Which didn't find the executable. 46327 # The splitting of arguments from the executable at a space might have been incorrect, 46328 # since paths with space are more likely in Windows. Give it another try with the whole 46329 # argument. 46330 path="$complete" 46331 arguments="EOL" 46332 new_path="$path" 46333 46334 windows_path="$new_path" 46335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46336 unix_path=`$CYGPATH -u "$windows_path"` 46337 new_path="$unix_path" 46338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46339 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46340 new_path="$unix_path" 46341 fi 46342 46343 46344 new_path=`$WHICH "$new_path" 2> /dev/null` 46345 # bat and cmd files are not always considered executable in MSYS causing which 46346 # to not find them 46347 if test "x$new_path" = x \ 46348 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46349 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46350 new_path="$path" 46351 46352 windows_path="$new_path" 46353 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46354 unix_path=`$CYGPATH -u "$windows_path"` 46355 new_path="$unix_path" 46356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46357 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46358 new_path="$unix_path" 46359 fi 46360 46361 fi 46362 46363 if test "x$new_path" = x; then 46364 # It's still not found. Now this is an unrecoverable error. 46365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46366 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46367 has_space=`$ECHO "$complete" | $GREP " "` 46368 if test "x$has_space" != x; then 46369 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46370 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46371 fi 46372 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46373 fi 46374 fi 46375 46376 # Now new_path has a complete unix path to the binary 46377 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46378 # Keep paths in /bin as-is, but remove trailing .exe if any 46379 new_path="${new_path/%.exe/}" 46380 # Do not save /bin paths to all_fixpath_prefixes! 46381 else 46382 # Not in mixed or Windows style, start by that. 46383 new_path=`cmd //c echo $new_path` 46384 46385 input_path="$new_path" 46386 # Check if we need to convert this using DOS-style short mode. If the path 46387 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46388 # take no chances and rewrite it. 46389 # Note: m4 eats our [], so we need to use [ and ] instead. 46390 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46391 if test "x$has_forbidden_chars" != x; then 46392 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46393 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46394 fi 46395 46396 # Output is in $new_path 46397 46398 windows_path="$new_path" 46399 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46400 unix_path=`$CYGPATH -u "$windows_path"` 46401 new_path="$unix_path" 46402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46403 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46404 new_path="$unix_path" 46405 fi 46406 46407 # remove trailing .exe if any 46408 new_path="${new_path/%.exe/}" 46409 46410 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46411 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46412 fi 46413 46414 else 46415 # We're on a unix platform. Hooray! :) 46416 # First separate the path from the arguments. This will split at the first 46417 # space. 46418 complete="$BUILD_STRIP" 46419 path="${complete%% *}" 46420 tmp="$complete EOL" 46421 arguments="${tmp#* }" 46422 46423 # Cannot rely on the command "which" here since it doesn't always work. 46424 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46425 if test -z "$is_absolute_path"; then 46426 # Path to executable is not absolute. Find it. 46427 IFS_save="$IFS" 46428 IFS=: 46429 for p in $PATH; do 46430 if test -f "$p/$path" && test -x "$p/$path"; then 46431 new_path="$p/$path" 46432 break 46433 fi 46434 done 46435 IFS="$IFS_save" 46436 else 46437 # This is an absolute path, we can use it without further modifications. 46438 new_path="$path" 46439 fi 46440 46441 if test "x$new_path" = x; then 46442 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 46443 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 46444 has_space=`$ECHO "$complete" | $GREP " "` 46445 if test "x$has_space" != x; then 46446 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46447 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46448 fi 46449 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 46450 fi 46451 fi 46452 46453 # Now join together the path and the arguments once again 46454 if test "x$arguments" != xEOL; then 46455 new_complete="$new_path ${arguments% *}" 46456 else 46457 new_complete="$new_path" 46458 fi 46459 46460 if test "x$complete" != "x$new_complete"; then 46461 BUILD_STRIP="$new_complete" 46462 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 46463 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 46464 fi 46465 fi 46466 46467 # Assume the C compiler is the assembler 46468 BUILD_AS="$BUILD_CC -c" 46469 # Just like for the target compiler, use the compiler as linker 46470 BUILD_LD="$BUILD_CC" 46471 BUILD_LDCXX="$BUILD_CXX" 46472 46473 PATH="$OLDPATH" 46474 else 46475 # If we are not cross compiling, use the normal target compilers for 46476 # building the build platform executables. 46477 BUILD_CC="$CC" 46478 BUILD_CXX="$CXX" 46479 BUILD_LD="$LD" 46480 BUILD_LDCXX="$LDCXX" 46481 BUILD_NM="$NM" 46482 BUILD_AS="$AS" 46483 BUILD_OBJCOPY="$OBJCOPY" 46484 BUILD_STRIP="$STRIP" 46485 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 46486 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 46487 BUILD_AR="$AR" 46488 fi 46489 46490 46491 46492 46493 46494 46495 46496 46497 46498 46499 46500 46501 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46502 # For hotspot, we need these in Windows mixed path, 46503 # so rewrite them all. Need added .exe suffix. 46504 HOTSPOT_CXX="$CXX.exe" 46505 HOTSPOT_LD="$LD.exe" 46506 HOTSPOT_MT="$MT.exe" 46507 HOTSPOT_RC="$RC.exe" 46508 46509 unix_path="$HOTSPOT_CXX" 46510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46511 windows_path=`$CYGPATH -m "$unix_path"` 46512 HOTSPOT_CXX="$windows_path" 46513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46514 windows_path=`cmd //c echo $unix_path` 46515 HOTSPOT_CXX="$windows_path" 46516 fi 46517 46518 46519 unix_path="$HOTSPOT_LD" 46520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46521 windows_path=`$CYGPATH -m "$unix_path"` 46522 HOTSPOT_LD="$windows_path" 46523 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46524 windows_path=`cmd //c echo $unix_path` 46525 HOTSPOT_LD="$windows_path" 46526 fi 46527 46528 46529 unix_path="$HOTSPOT_MT" 46530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46531 windows_path=`$CYGPATH -m "$unix_path"` 46532 HOTSPOT_MT="$windows_path" 46533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46534 windows_path=`cmd //c echo $unix_path` 46535 HOTSPOT_MT="$windows_path" 46536 fi 46537 46538 46539 unix_path="$HOTSPOT_RC" 46540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46541 windows_path=`$CYGPATH -m "$unix_path"` 46542 HOTSPOT_RC="$windows_path" 46543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46544 windows_path=`cmd //c echo $unix_path` 46545 HOTSPOT_RC="$windows_path" 46546 fi 46547 46548 46549 46550 else 46551 HOTSPOT_CXX="$CXX" 46552 HOTSPOT_LD="$LD" 46553 fi 46554 46555 46556 46557 if test "x$TOOLCHAIN_TYPE" = xclang; then 46558 USE_CLANG=true 46559 fi 46560 46561 46562 46563 46564 46565 # The package path is used only on macosx? 46566 # FIXME: clean this up, and/or move it elsewhere. 46567 PACKAGE_PATH=/opt/local 46568 46569 46570 # Check for extra potential brokenness. 46571 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 46572 # On Windows, double-check that we got the right compiler. 46573 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 46574 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 46575 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 46576 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 46577 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 46578 fi 46579 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 46580 if test "x$COMPILER_CPU_TEST" != "xx64"; then 46581 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 46582 fi 46583 fi 46584 fi 46585 46586 if test "x$TOOLCHAIN_TYPE" = xgcc; then 46587 # If this is a --hash-style=gnu system, use --hash-style=both, why? 46588 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 46589 # This is later checked when setting flags. 46590 46591 # "-Og" suppported for GCC 4.8 and later 46592 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 46593 46594 46595 46596 46597 46598 46599 46600 46601 46602 46603 46604 46605 46606 46607 46608 46609 46610 46611 46612 46613 46614 46615 46616 46617 46618 46619 46620 46621 46622 46623 46624 46625 46626 46627 46628 46629 46630 46631 46632 46633 46634 46635 46636 46637 46638 46639 46640 # Execute function body 46641 46642 46643 46644 46645 46646 46647 46648 46649 46650 46651 46652 46653 46654 46655 46656 46657 46658 46659 46660 46661 46662 46663 46664 46665 46666 46667 46668 46669 46670 46671 46672 46673 46674 46675 46676 46677 46678 46679 46680 46681 46682 46683 46684 46685 46686 46687 46688 46689 # Execute function body 46690 46691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 46692 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 46693 supports=yes 46694 46695 saved_cflags="$CFLAGS" 46696 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 46697 ac_ext=c 46698 ac_cpp='$CPP $CPPFLAGS' 46699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46701 ac_compiler_gnu=$ac_cv_c_compiler_gnu 46702 46703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46704 /* end confdefs.h. */ 46705 int i; 46706 _ACEOF 46707 if ac_fn_c_try_compile "$LINENO"; then : 46708 46709 else 46710 supports=no 46711 fi 46712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46713 ac_ext=cpp 46714 ac_cpp='$CXXCPP $CPPFLAGS' 46715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46718 46719 CFLAGS="$saved_cflags" 46720 46721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 46722 $as_echo "$supports" >&6; } 46723 if test "x$supports" = "xyes" ; then 46724 : 46725 C_COMP_SUPPORTS="yes" 46726 else 46727 : 46728 C_COMP_SUPPORTS="no" 46729 fi 46730 46731 46732 46733 46734 46735 46736 46737 46738 46739 46740 46741 46742 46743 46744 46745 46746 46747 46748 46749 46750 46751 46752 46753 46754 46755 46756 46757 46758 46759 46760 46761 46762 46763 46764 46765 46766 46767 46768 46769 46770 46771 46772 46773 46774 46775 46776 46777 46778 46779 46780 46781 46782 46783 46784 46785 46786 46787 46788 46789 # Execute function body 46790 46791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 46792 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 46793 supports=yes 46794 46795 saved_cxxflags="$CXXFLAGS" 46796 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 46797 ac_ext=cpp 46798 ac_cpp='$CXXCPP $CPPFLAGS' 46799 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46800 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46801 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46802 46803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46804 /* end confdefs.h. */ 46805 int i; 46806 _ACEOF 46807 if ac_fn_cxx_try_compile "$LINENO"; then : 46808 46809 else 46810 supports=no 46811 fi 46812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 46813 ac_ext=cpp 46814 ac_cpp='$CXXCPP $CPPFLAGS' 46815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46818 46819 CXXFLAGS="$saved_cxxflags" 46820 46821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 46822 $as_echo "$supports" >&6; } 46823 if test "x$supports" = "xyes" ; then 46824 : 46825 CXX_COMP_SUPPORTS="yes" 46826 else 46827 : 46828 CXX_COMP_SUPPORTS="no" 46829 fi 46830 46831 46832 46833 46834 46835 46836 46837 46838 46839 46840 46841 46842 46843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 46844 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 46845 supports=no 46846 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 46847 46848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 46849 $as_echo "$supports" >&6; } 46850 if test "x$supports" = "xyes" ; then 46851 : 46852 HAS_CFLAG_OPTIMIZE_DEBUG=true 46853 else 46854 : 46855 HAS_CFLAG_OPTIMIZE_DEBUG=false 46856 fi 46857 46858 46859 46860 46861 46862 46863 46864 # "-z relro" supported in GNU binutils 2.17 and later 46865 LINKER_RELRO_FLAG="-Wl,-z,relro" 46866 46867 46868 46869 46870 46871 46872 46873 46874 46875 46876 46877 46878 46879 46880 46881 46882 46883 46884 46885 46886 46887 46888 46889 46890 46891 46892 46893 46894 46895 46896 46897 46898 46899 46900 46901 46902 46903 46904 46905 46906 46907 46908 46909 46910 46911 46912 46913 # Execute function body 46914 46915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 46916 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 46917 supports=yes 46918 46919 saved_ldflags="$LDFLAGS" 46920 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 46921 ac_ext=c 46922 ac_cpp='$CPP $CPPFLAGS' 46923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46925 ac_compiler_gnu=$ac_cv_c_compiler_gnu 46926 46927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46928 /* end confdefs.h. */ 46929 46930 int 46931 main () 46932 { 46933 46934 ; 46935 return 0; 46936 } 46937 _ACEOF 46938 if ac_fn_c_try_link "$LINENO"; then : 46939 46940 else 46941 supports=no 46942 fi 46943 rm -f core conftest.err conftest.$ac_objext \ 46944 conftest$ac_exeext conftest.$ac_ext 46945 ac_ext=cpp 46946 ac_cpp='$CXXCPP $CPPFLAGS' 46947 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46948 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46949 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46950 46951 LDFLAGS="$saved_ldflags" 46952 46953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 46954 $as_echo "$supports" >&6; } 46955 if test "x$supports" = "xyes" ; then 46956 : 46957 HAS_LINKER_RELRO=true 46958 else 46959 : 46960 HAS_LINKER_RELRO=false 46961 fi 46962 46963 46964 46965 46966 46967 46968 46969 46970 46971 46972 46973 46974 46975 # "-z now" supported in GNU binutils 2.11 and later 46976 LINKER_NOW_FLAG="-Wl,-z,now" 46977 46978 46979 46980 46981 46982 46983 46984 46985 46986 46987 46988 46989 46990 46991 46992 46993 46994 46995 46996 46997 46998 46999 47000 47001 47002 47003 47004 47005 47006 47007 47008 47009 47010 47011 47012 47013 47014 47015 47016 47017 47018 47019 47020 47021 47022 47023 47024 # Execute function body 47025 47026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 47027 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 47028 supports=yes 47029 47030 saved_ldflags="$LDFLAGS" 47031 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 47032 ac_ext=c 47033 ac_cpp='$CPP $CPPFLAGS' 47034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47036 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47037 47038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47039 /* end confdefs.h. */ 47040 47041 int 47042 main () 47043 { 47044 47045 ; 47046 return 0; 47047 } 47048 _ACEOF 47049 if ac_fn_c_try_link "$LINENO"; then : 47050 47051 else 47052 supports=no 47053 fi 47054 rm -f core conftest.err conftest.$ac_objext \ 47055 conftest$ac_exeext conftest.$ac_ext 47056 ac_ext=cpp 47057 ac_cpp='$CXXCPP $CPPFLAGS' 47058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47061 47062 LDFLAGS="$saved_ldflags" 47063 47064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 47065 $as_echo "$supports" >&6; } 47066 if test "x$supports" = "xyes" ; then 47067 : 47068 HAS_LINKER_NOW=true 47069 else 47070 : 47071 HAS_LINKER_NOW=false 47072 fi 47073 47074 47075 47076 47077 47078 47079 47080 47081 47082 47083 47084 47085 fi 47086 47087 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 47088 # in executable.' 47089 USING_BROKEN_SUSE_LD=no 47090 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 47091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 47092 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 47093 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 47094 $ECHO "int main() { }" > main.c 47095 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 47096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47097 $as_echo "no" >&6; } 47098 USING_BROKEN_SUSE_LD=no 47099 else 47100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47101 $as_echo "yes" >&6; } 47102 USING_BROKEN_SUSE_LD=yes 47103 fi 47104 rm -rf version-script.map main.c a.out 47105 fi 47106 47107 47108 # Setup hotspot lecagy names for toolchains 47109 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 47110 if test "x$TOOLCHAIN_TYPE" = xclang; then 47111 HOTSPOT_TOOLCHAIN_TYPE=gcc 47112 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47113 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 47114 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47115 HOTSPOT_TOOLCHAIN_TYPE=visCPP 47116 fi 47117 47118 47119 47120 # Setup the JTReg Regression Test Harness. 47121 47122 47123 # Check whether --with-jtreg was given. 47124 if test "${with_jtreg+set}" = set; then : 47125 withval=$with_jtreg; 47126 else 47127 with_jtreg=no 47128 fi 47129 47130 47131 if test "x$with_jtreg" = xno; then 47132 # jtreg disabled 47133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 47134 $as_echo_n "checking for jtreg... " >&6; } 47135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47136 $as_echo "no" >&6; } 47137 else 47138 if test "x$with_jtreg" != xyes; then 47139 # with path specified. 47140 JT_HOME="$with_jtreg" 47141 fi 47142 47143 if test "x$JT_HOME" != x; then 47144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 47145 $as_echo_n "checking for jtreg... " >&6; } 47146 47147 # use JT_HOME enviroment var. 47148 47149 # Only process if variable expands to non-empty 47150 47151 if test "x$JT_HOME" != x; then 47152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47153 47154 # Input might be given as Windows format, start by converting to 47155 # unix format. 47156 path="$JT_HOME" 47157 new_path=`$CYGPATH -u "$path"` 47158 47159 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47160 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47161 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47162 # "foo.exe" is OK but "foo" is an error. 47163 # 47164 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47165 # It is also a way to make sure we got the proper file name for the real test later on. 47166 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47167 if test "x$test_shortpath" = x; then 47168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 47169 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 47170 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 47171 fi 47172 47173 # Call helper function which possibly converts this using DOS-style short mode. 47174 # If so, the updated path is stored in $new_path. 47175 47176 input_path="$new_path" 47177 # Check if we need to convert this using DOS-style short mode. If the path 47178 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47179 # take no chances and rewrite it. 47180 # Note: m4 eats our [], so we need to use [ and ] instead. 47181 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47182 if test "x$has_forbidden_chars" != x; then 47183 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47184 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47185 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47186 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47187 # Going to short mode and back again did indeed matter. Since short mode is 47188 # case insensitive, let's make it lowercase to improve readability. 47189 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47190 # Now convert it back to Unix-style (cygpath) 47191 input_path=`$CYGPATH -u "$shortmode_path"` 47192 new_path="$input_path" 47193 fi 47194 fi 47195 47196 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47197 if test "x$test_cygdrive_prefix" = x; then 47198 # As a simple fix, exclude /usr/bin since it's not a real path. 47199 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47200 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47201 # a path prefixed by /cygdrive for fixpath to work. 47202 new_path="$CYGWIN_ROOT_PATH$input_path" 47203 fi 47204 fi 47205 47206 47207 if test "x$path" != "x$new_path"; then 47208 JT_HOME="$new_path" 47209 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 47210 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 47211 fi 47212 47213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47214 47215 path="$JT_HOME" 47216 has_colon=`$ECHO $path | $GREP ^.:` 47217 new_path="$path" 47218 if test "x$has_colon" = x; then 47219 # Not in mixed or Windows style, start by that. 47220 new_path=`cmd //c echo $path` 47221 fi 47222 47223 47224 input_path="$new_path" 47225 # Check if we need to convert this using DOS-style short mode. If the path 47226 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47227 # take no chances and rewrite it. 47228 # Note: m4 eats our [], so we need to use [ and ] instead. 47229 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47230 if test "x$has_forbidden_chars" != x; then 47231 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47232 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47233 fi 47234 47235 47236 windows_path="$new_path" 47237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47238 unix_path=`$CYGPATH -u "$windows_path"` 47239 new_path="$unix_path" 47240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47242 new_path="$unix_path" 47243 fi 47244 47245 if test "x$path" != "x$new_path"; then 47246 JT_HOME="$new_path" 47247 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 47248 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 47249 fi 47250 47251 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47252 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47253 47254 else 47255 # We're on a unix platform. Hooray! :) 47256 path="$JT_HOME" 47257 has_space=`$ECHO "$path" | $GREP " "` 47258 if test "x$has_space" != x; then 47259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 47260 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 47261 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47262 fi 47263 47264 # Use eval to expand a potential ~ 47265 eval path="$path" 47266 if test ! -f "$path" && test ! -d "$path"; then 47267 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 47268 fi 47269 47270 if test -d "$path"; then 47271 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 47272 else 47273 dir="`$DIRNAME "$path"`" 47274 base="`$BASENAME "$path"`" 47275 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 47276 fi 47277 fi 47278 fi 47279 47280 47281 # jtreg win32 script works for everybody 47282 JTREGEXE="$JT_HOME/bin/jtreg" 47283 47284 if test ! -f "$JTREGEXE"; then 47285 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 47286 fi 47287 47288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 47289 $as_echo "$JTREGEXE" >&6; } 47290 else 47291 # try to find jtreg on path 47292 47293 47294 47295 # Publish this variable in the help. 47296 47297 47298 if [ -z "${JTREGEXE+x}" ]; then 47299 # The variable is not set by user, try to locate tool using the code snippet 47300 for ac_prog in jtreg 47301 do 47302 # Extract the first word of "$ac_prog", so it can be a program name with args. 47303 set dummy $ac_prog; ac_word=$2 47304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47305 $as_echo_n "checking for $ac_word... " >&6; } 47306 if ${ac_cv_path_JTREGEXE+:} false; then : 47307 $as_echo_n "(cached) " >&6 47308 else 47309 case $JTREGEXE in 47310 [\\/]* | ?:[\\/]*) 47311 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 47312 ;; 47313 *) 47314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47315 for as_dir in $PATH 47316 do 47317 IFS=$as_save_IFS 47318 test -z "$as_dir" && as_dir=. 47319 for ac_exec_ext in '' $ac_executable_extensions; do 47320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47321 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 47322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47323 break 2 47324 fi 47325 done 47326 done 47327 IFS=$as_save_IFS 47328 47329 ;; 47330 esac 47331 fi 47332 JTREGEXE=$ac_cv_path_JTREGEXE 47333 if test -n "$JTREGEXE"; then 47334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 47335 $as_echo "$JTREGEXE" >&6; } 47336 else 47337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47338 $as_echo "no" >&6; } 47339 fi 47340 47341 47342 test -n "$JTREGEXE" && break 47343 done 47344 47345 else 47346 # The variable is set, but is it from the command line or the environment? 47347 47348 # Try to remove the string !JTREGEXE! from our list. 47349 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 47350 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47351 # If it failed, the variable was not from the command line. Ignore it, 47352 # but warn the user (except for BASH, which is always set by the calling BASH). 47353 if test "xJTREGEXE" != xBASH; then 47354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 47355 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 47356 fi 47357 # Try to locate tool using the code snippet 47358 for ac_prog in jtreg 47359 do 47360 # Extract the first word of "$ac_prog", so it can be a program name with args. 47361 set dummy $ac_prog; ac_word=$2 47362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47363 $as_echo_n "checking for $ac_word... " >&6; } 47364 if ${ac_cv_path_JTREGEXE+:} false; then : 47365 $as_echo_n "(cached) " >&6 47366 else 47367 case $JTREGEXE in 47368 [\\/]* | ?:[\\/]*) 47369 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 47370 ;; 47371 *) 47372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47373 for as_dir in $PATH 47374 do 47375 IFS=$as_save_IFS 47376 test -z "$as_dir" && as_dir=. 47377 for ac_exec_ext in '' $ac_executable_extensions; do 47378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47379 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 47380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47381 break 2 47382 fi 47383 done 47384 done 47385 IFS=$as_save_IFS 47386 47387 ;; 47388 esac 47389 fi 47390 JTREGEXE=$ac_cv_path_JTREGEXE 47391 if test -n "$JTREGEXE"; then 47392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 47393 $as_echo "$JTREGEXE" >&6; } 47394 else 47395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47396 $as_echo "no" >&6; } 47397 fi 47398 47399 47400 test -n "$JTREGEXE" && break 47401 done 47402 47403 else 47404 # If it succeeded, then it was overridden by the user. We will use it 47405 # for the tool. 47406 47407 # First remove it from the list of overridden variables, so we can test 47408 # for unknown variables in the end. 47409 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47410 47411 # Check if we try to supply an empty value 47412 if test "x$JTREGEXE" = x; then 47413 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 47414 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 47415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 47416 $as_echo_n "checking for JTREGEXE... " >&6; } 47417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47418 $as_echo "disabled" >&6; } 47419 else 47420 # Check if the provided tool contains a complete path. 47421 tool_specified="$JTREGEXE" 47422 tool_basename="${tool_specified##*/}" 47423 if test "x$tool_basename" = "x$tool_specified"; then 47424 # A command without a complete path is provided, search $PATH. 47425 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 47426 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 47427 # Extract the first word of "$tool_basename", so it can be a program name with args. 47428 set dummy $tool_basename; ac_word=$2 47429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47430 $as_echo_n "checking for $ac_word... " >&6; } 47431 if ${ac_cv_path_JTREGEXE+:} false; then : 47432 $as_echo_n "(cached) " >&6 47433 else 47434 case $JTREGEXE in 47435 [\\/]* | ?:[\\/]*) 47436 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 47437 ;; 47438 *) 47439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47440 for as_dir in $PATH 47441 do 47442 IFS=$as_save_IFS 47443 test -z "$as_dir" && as_dir=. 47444 for ac_exec_ext in '' $ac_executable_extensions; do 47445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47446 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 47447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47448 break 2 47449 fi 47450 done 47451 done 47452 IFS=$as_save_IFS 47453 47454 ;; 47455 esac 47456 fi 47457 JTREGEXE=$ac_cv_path_JTREGEXE 47458 if test -n "$JTREGEXE"; then 47459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 47460 $as_echo "$JTREGEXE" >&6; } 47461 else 47462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47463 $as_echo "no" >&6; } 47464 fi 47465 47466 47467 if test "x$JTREGEXE" = x; then 47468 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47469 fi 47470 else 47471 # Otherwise we believe it is a complete path. Use it as it is. 47472 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 47473 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 47474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 47475 $as_echo_n "checking for JTREGEXE... " >&6; } 47476 if test ! -x "$tool_specified"; then 47477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47478 $as_echo "not found" >&6; } 47479 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 47480 fi 47481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47482 $as_echo "$tool_specified" >&6; } 47483 fi 47484 fi 47485 fi 47486 47487 fi 47488 47489 47490 47491 if test "x$JTREGEXE" = x; then 47492 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 47493 fi 47494 47495 47496 JT_HOME="`$DIRNAME $JTREGEXE`" 47497 fi 47498 fi 47499 47500 47501 47502 47503 47504 47505 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 47506 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 47507 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 47508 # commands produced by the link step (currently AIX only) 47509 if test "x$TOOLCHAIN_TYPE" = xxlc; then 47510 COMPILER_TARGET_BITS_FLAG="-q" 47511 COMPILER_COMMAND_FILE_FLAG="-f" 47512 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 47513 else 47514 COMPILER_TARGET_BITS_FLAG="-m" 47515 COMPILER_COMMAND_FILE_FLAG="@" 47516 COMPILER_BINDCMD_FILE_FLAG="" 47517 47518 # The solstudio linker does not support @-files. 47519 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 47520 COMPILER_COMMAND_FILE_FLAG= 47521 fi 47522 47523 # Check if @file is supported by gcc 47524 if test "x$TOOLCHAIN_TYPE" = xgcc; then 47525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 47526 $as_echo_n "checking if @file is supported by gcc... " >&6; } 47527 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 47528 $ECHO "" "--version" > command.file 47529 if $CXX @command.file 2>&5 >&5; then 47530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47531 $as_echo "yes" >&6; } 47532 COMPILER_COMMAND_FILE_FLAG="@" 47533 else 47534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47535 $as_echo "no" >&6; } 47536 COMPILER_COMMAND_FILE_FLAG= 47537 fi 47538 rm -rf command.file 47539 fi 47540 fi 47541 47542 47543 47544 47545 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 47546 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 47547 ARFLAGS="-r" 47548 elif test "x$OPENJDK_TARGET_OS" = xaix; then 47549 ARFLAGS="-X64" 47550 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 47551 # lib.exe is used as AR to create static libraries. 47552 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 47553 else 47554 ARFLAGS="" 47555 fi 47556 47557 47558 ## Setup strip. 47559 # FIXME: should this really be per platform, or should it be per toolchain type? 47560 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 47561 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 47562 if test "x$OPENJDK_TARGET_OS" = xlinux; then 47563 STRIPFLAGS="-g" 47564 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 47565 STRIPFLAGS="-x" 47566 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 47567 STRIPFLAGS="-S" 47568 elif test "x$OPENJDK_TARGET_OS" = xaix; then 47569 STRIPFLAGS="-X32_64" 47570 fi 47571 47572 47573 47574 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47575 CC_OUT_OPTION=-Fo 47576 EXE_OUT_OPTION=-out: 47577 LD_OUT_OPTION=-out: 47578 AR_OUT_OPTION=-out: 47579 else 47580 # The option used to specify the target .o,.a or .so file. 47581 # When compiling, how to specify the to be created object file. 47582 CC_OUT_OPTION='-o$(SPACE)' 47583 # When linking, how to specify the to be created executable. 47584 EXE_OUT_OPTION='-o$(SPACE)' 47585 # When linking, how to specify the to be created dynamically linkable library. 47586 LD_OUT_OPTION='-o$(SPACE)' 47587 # When archiving, how to specify the to be create static archive for object files. 47588 AR_OUT_OPTION='rcs$(SPACE)' 47589 fi 47590 47591 47592 47593 47594 47595 # On Windows, we need to set RC flags. 47596 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47597 RC_FLAGS="-nologo -l0x409" 47598 JVM_RCFLAGS="-nologo" 47599 if test "x$DEBUG_LEVEL" = xrelease; then 47600 RC_FLAGS="$RC_FLAGS -DNDEBUG" 47601 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 47602 fi 47603 47604 # The version variables used to create RC_FLAGS may be overridden 47605 # in a custom configure script, or possibly the command line. 47606 # Let those variables be expanded at make time in spec.gmk. 47607 # The \$ are escaped to the shell, and the $(...) variables 47608 # are evaluated by make. 47609 RC_FLAGS="$RC_FLAGS \ 47610 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 47611 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 47612 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 47613 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 47614 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 47615 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_MAJOR)\" \ 47616 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 47617 47618 JVM_RCFLAGS="$JVM_RCFLAGS \ 47619 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 47620 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 47621 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 47622 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 47623 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 47624 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 47625 -D\"HS_FNAME=jvm.dll\" \ 47626 -D\"HS_INTERNAL_NAME=jvm\"" 47627 fi 47628 47629 47630 47631 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 47632 # silence copyright notice and other headers. 47633 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 47634 fi 47635 47636 47637 # Now we can test some aspects on the target using configure macros. 47638 47639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 47640 $as_echo_n "checking for ANSI C header files... " >&6; } 47641 if ${ac_cv_header_stdc+:} false; then : 47642 $as_echo_n "(cached) " >&6 47643 else 47644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47645 /* end confdefs.h. */ 47646 #include <stdlib.h> 47647 #include <stdarg.h> 47648 #include <string.h> 47649 #include <float.h> 47650 47651 int 47652 main () 47653 { 47654 47655 ; 47656 return 0; 47657 } 47658 _ACEOF 47659 if ac_fn_cxx_try_compile "$LINENO"; then : 47660 ac_cv_header_stdc=yes 47661 else 47662 ac_cv_header_stdc=no 47663 fi 47664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47665 47666 if test $ac_cv_header_stdc = yes; then 47667 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 47668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47669 /* end confdefs.h. */ 47670 #include <string.h> 47671 47672 _ACEOF 47673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 47674 $EGREP "memchr" >/dev/null 2>&1; then : 47675 47676 else 47677 ac_cv_header_stdc=no 47678 fi 47679 rm -f conftest* 47680 47681 fi 47682 47683 if test $ac_cv_header_stdc = yes; then 47684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 47685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47686 /* end confdefs.h. */ 47687 #include <stdlib.h> 47688 47689 _ACEOF 47690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 47691 $EGREP "free" >/dev/null 2>&1; then : 47692 47693 else 47694 ac_cv_header_stdc=no 47695 fi 47696 rm -f conftest* 47697 47698 fi 47699 47700 if test $ac_cv_header_stdc = yes; then 47701 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 47702 if test "$cross_compiling" = yes; then : 47703 : 47704 else 47705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47706 /* end confdefs.h. */ 47707 #include <ctype.h> 47708 #include <stdlib.h> 47709 #if ((' ' & 0x0FF) == 0x020) 47710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 47711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 47712 #else 47713 # define ISLOWER(c) \ 47714 (('a' <= (c) && (c) <= 'i') \ 47715 || ('j' <= (c) && (c) <= 'r') \ 47716 || ('s' <= (c) && (c) <= 'z')) 47717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 47718 #endif 47719 47720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 47721 int 47722 main () 47723 { 47724 int i; 47725 for (i = 0; i < 256; i++) 47726 if (XOR (islower (i), ISLOWER (i)) 47727 || toupper (i) != TOUPPER (i)) 47728 return 2; 47729 return 0; 47730 } 47731 _ACEOF 47732 if ac_fn_cxx_try_run "$LINENO"; then : 47733 47734 else 47735 ac_cv_header_stdc=no 47736 fi 47737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 47738 conftest.$ac_objext conftest.beam conftest.$ac_ext 47739 fi 47740 47741 fi 47742 fi 47743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 47744 $as_echo "$ac_cv_header_stdc" >&6; } 47745 if test $ac_cv_header_stdc = yes; then 47746 47747 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 47748 47749 fi 47750 47751 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 47752 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 47753 inttypes.h stdint.h unistd.h 47754 do : 47755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 47756 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 47757 " 47758 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 47759 cat >>confdefs.h <<_ACEOF 47760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 47761 _ACEOF 47762 47763 fi 47764 47765 done 47766 47767 47768 47769 ############################################################################### 47770 # 47771 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 47772 # (The JVM can use 32 or 64 bit Java pointers but that decision 47773 # is made at runtime.) 47774 # 47775 47776 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 47777 # Always specify -m flag on Solaris 47778 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 47779 47780 # When we add flags to the "official" CFLAGS etc, we need to 47781 # keep track of these additions in ADDED_CFLAGS etc. These 47782 # will later be checked to make sure only controlled additions 47783 # have been made to CFLAGS etc. 47784 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47785 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47786 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47787 47788 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 47789 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 47790 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 47791 47792 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 47793 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 47794 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 47795 47796 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 47797 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 47798 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 47799 47800 elif test "x$COMPILE_TYPE" = xreduced; then 47801 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 47802 # Specify -m if running reduced on unix platforms 47803 47804 # When we add flags to the "official" CFLAGS etc, we need to 47805 # keep track of these additions in ADDED_CFLAGS etc. These 47806 # will later be checked to make sure only controlled additions 47807 # have been made to CFLAGS etc. 47808 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47809 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47810 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47811 47812 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 47813 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 47814 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 47815 47816 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 47817 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 47818 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 47819 47820 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 47821 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 47822 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 47823 47824 fi 47825 fi 47826 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 47827 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47828 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47829 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47830 fi 47831 47832 # Make compilation sanity check 47833 for ac_header in stdio.h 47834 do : 47835 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 47836 if test "x$ac_cv_header_stdio_h" = xyes; then : 47837 cat >>confdefs.h <<_ACEOF 47838 #define HAVE_STDIO_H 1 47839 _ACEOF 47840 47841 else 47842 47843 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 47844 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 47845 if test "x$COMPILE_TYPE" = xreduced; then 47846 47847 # Print a helpful message on how to acquire the necessary build dependency. 47848 # reduced is the help tag: freetype, cups, alsa etc 47849 MISSING_DEPENDENCY=reduced 47850 47851 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47852 cygwin_help $MISSING_DEPENDENCY 47853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47854 msys_help $MISSING_DEPENDENCY 47855 else 47856 PKGHANDLER_COMMAND= 47857 47858 case $PKGHANDLER in 47859 apt-get) 47860 apt_help $MISSING_DEPENDENCY ;; 47861 yum) 47862 yum_help $MISSING_DEPENDENCY ;; 47863 port) 47864 port_help $MISSING_DEPENDENCY ;; 47865 pkgutil) 47866 pkgutil_help $MISSING_DEPENDENCY ;; 47867 pkgadd) 47868 pkgadd_help $MISSING_DEPENDENCY ;; 47869 esac 47870 47871 if test "x$PKGHANDLER_COMMAND" != x; then 47872 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47873 fi 47874 fi 47875 47876 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 47877 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 47878 elif test "x$COMPILE_TYPE" = xcross; then 47879 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 47880 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 47881 fi 47882 as_fn_error $? "Cannot continue." "$LINENO" 5 47883 47884 fi 47885 47886 done 47887 47888 47889 # The cast to long int works around a bug in the HP C Compiler 47890 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 47891 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 47892 # This bug is HP SR number 8606223364. 47893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 47894 $as_echo_n "checking size of int *... " >&6; } 47895 if ${ac_cv_sizeof_int_p+:} false; then : 47896 $as_echo_n "(cached) " >&6 47897 else 47898 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 47899 47900 else 47901 if test "$ac_cv_type_int_p" = yes; then 47902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 47903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 47904 as_fn_error 77 "cannot compute sizeof (int *) 47905 See \`config.log' for more details" "$LINENO" 5; } 47906 else 47907 ac_cv_sizeof_int_p=0 47908 fi 47909 fi 47910 47911 fi 47912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 47913 $as_echo "$ac_cv_sizeof_int_p" >&6; } 47914 47915 47916 47917 cat >>confdefs.h <<_ACEOF 47918 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 47919 _ACEOF 47920 47921 47922 47923 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 47924 if test "x$ac_cv_sizeof_int_p" = x; then 47925 # The test failed, lets stick to the assumed value. 47926 { $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 47927 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 47928 else 47929 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 47930 47931 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 47932 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 47933 # Let's try to implicitely set the compilers target architecture and retry the test 47934 { $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 47935 $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;} 47936 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 47937 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 47938 47939 # When we add flags to the "official" CFLAGS etc, we need to 47940 # keep track of these additions in ADDED_CFLAGS etc. These 47941 # will later be checked to make sure only controlled additions 47942 # have been made to CFLAGS etc. 47943 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47944 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47945 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 47946 47947 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 47948 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 47949 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 47950 47951 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 47952 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 47953 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 47954 47955 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 47956 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 47957 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 47958 47959 47960 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 47961 unset ac_cv_sizeof_int_p 47962 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 47963 cat >>confdefs.h <<_ACEOF 47964 #undef SIZEOF_INT_P 47965 _ACEOF 47966 47967 # The cast to long int works around a bug in the HP C Compiler 47968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 47969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 47970 # This bug is HP SR number 8606223364. 47971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 47972 $as_echo_n "checking size of int *... " >&6; } 47973 if ${ac_cv_sizeof_int_p+:} false; then : 47974 $as_echo_n "(cached) " >&6 47975 else 47976 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 47977 47978 else 47979 if test "$ac_cv_type_int_p" = yes; then 47980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 47981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 47982 as_fn_error 77 "cannot compute sizeof (int *) 47983 See \`config.log' for more details" "$LINENO" 5; } 47984 else 47985 ac_cv_sizeof_int_p=0 47986 fi 47987 fi 47988 47989 fi 47990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 47991 $as_echo "$ac_cv_sizeof_int_p" >&6; } 47992 47993 47994 47995 cat >>confdefs.h <<_ACEOF 47996 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 47997 _ACEOF 47998 47999 48000 48001 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 48002 48003 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 48004 { $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 48005 $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;} 48006 if test "x$COMPILE_TYPE" = xreduced; then 48007 48008 # Print a helpful message on how to acquire the necessary build dependency. 48009 # reduced is the help tag: freetype, cups, alsa etc 48010 MISSING_DEPENDENCY=reduced 48011 48012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48013 cygwin_help $MISSING_DEPENDENCY 48014 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48015 msys_help $MISSING_DEPENDENCY 48016 else 48017 PKGHANDLER_COMMAND= 48018 48019 case $PKGHANDLER in 48020 apt-get) 48021 apt_help $MISSING_DEPENDENCY ;; 48022 yum) 48023 yum_help $MISSING_DEPENDENCY ;; 48024 port) 48025 port_help $MISSING_DEPENDENCY ;; 48026 pkgutil) 48027 pkgutil_help $MISSING_DEPENDENCY ;; 48028 pkgadd) 48029 pkgadd_help $MISSING_DEPENDENCY ;; 48030 esac 48031 48032 if test "x$PKGHANDLER_COMMAND" != x; then 48033 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48034 fi 48035 fi 48036 48037 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 48038 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 48039 elif test "x$COMPILE_TYPE" = xcross; then 48040 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 48041 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 48042 fi 48043 as_fn_error $? "Cannot continue." "$LINENO" 5 48044 fi 48045 fi 48046 fi 48047 48048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 48049 $as_echo_n "checking for target address size... " >&6; } 48050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 48051 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 48052 48053 48054 ############################################################################### 48055 # 48056 # Is the target little of big endian? 48057 # 48058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 48059 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 48060 if ${ac_cv_c_bigendian+:} false; then : 48061 $as_echo_n "(cached) " >&6 48062 else 48063 ac_cv_c_bigendian=unknown 48064 # See if we're dealing with a universal compiler. 48065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48066 /* end confdefs.h. */ 48067 #ifndef __APPLE_CC__ 48068 not a universal capable compiler 48069 #endif 48070 typedef int dummy; 48071 48072 _ACEOF 48073 if ac_fn_cxx_try_compile "$LINENO"; then : 48074 48075 # Check for potential -arch flags. It is not universal unless 48076 # there are at least two -arch flags with different values. 48077 ac_arch= 48078 ac_prev= 48079 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 48080 if test -n "$ac_prev"; then 48081 case $ac_word in 48082 i?86 | x86_64 | ppc | ppc64) 48083 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 48084 ac_arch=$ac_word 48085 else 48086 ac_cv_c_bigendian=universal 48087 break 48088 fi 48089 ;; 48090 esac 48091 ac_prev= 48092 elif test "x$ac_word" = "x-arch"; then 48093 ac_prev=arch 48094 fi 48095 done 48096 fi 48097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48098 if test $ac_cv_c_bigendian = unknown; then 48099 # See if sys/param.h defines the BYTE_ORDER macro. 48100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48101 /* end confdefs.h. */ 48102 #include <sys/types.h> 48103 #include <sys/param.h> 48104 48105 int 48106 main () 48107 { 48108 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 48109 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 48110 && LITTLE_ENDIAN) 48111 bogus endian macros 48112 #endif 48113 48114 ; 48115 return 0; 48116 } 48117 _ACEOF 48118 if ac_fn_cxx_try_compile "$LINENO"; then : 48119 # It does; now see whether it defined to BIG_ENDIAN or not. 48120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48121 /* end confdefs.h. */ 48122 #include <sys/types.h> 48123 #include <sys/param.h> 48124 48125 int 48126 main () 48127 { 48128 #if BYTE_ORDER != BIG_ENDIAN 48129 not big endian 48130 #endif 48131 48132 ; 48133 return 0; 48134 } 48135 _ACEOF 48136 if ac_fn_cxx_try_compile "$LINENO"; then : 48137 ac_cv_c_bigendian=yes 48138 else 48139 ac_cv_c_bigendian=no 48140 fi 48141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48142 fi 48143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48144 fi 48145 if test $ac_cv_c_bigendian = unknown; then 48146 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 48147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48148 /* end confdefs.h. */ 48149 #include <limits.h> 48150 48151 int 48152 main () 48153 { 48154 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 48155 bogus endian macros 48156 #endif 48157 48158 ; 48159 return 0; 48160 } 48161 _ACEOF 48162 if ac_fn_cxx_try_compile "$LINENO"; then : 48163 # It does; now see whether it defined to _BIG_ENDIAN or not. 48164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48165 /* end confdefs.h. */ 48166 #include <limits.h> 48167 48168 int 48169 main () 48170 { 48171 #ifndef _BIG_ENDIAN 48172 not big endian 48173 #endif 48174 48175 ; 48176 return 0; 48177 } 48178 _ACEOF 48179 if ac_fn_cxx_try_compile "$LINENO"; then : 48180 ac_cv_c_bigendian=yes 48181 else 48182 ac_cv_c_bigendian=no 48183 fi 48184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48185 fi 48186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48187 fi 48188 if test $ac_cv_c_bigendian = unknown; then 48189 # Compile a test program. 48190 if test "$cross_compiling" = yes; then : 48191 # Try to guess by grepping values from an object file. 48192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48193 /* end confdefs.h. */ 48194 short int ascii_mm[] = 48195 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 48196 short int ascii_ii[] = 48197 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 48198 int use_ascii (int i) { 48199 return ascii_mm[i] + ascii_ii[i]; 48200 } 48201 short int ebcdic_ii[] = 48202 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 48203 short int ebcdic_mm[] = 48204 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 48205 int use_ebcdic (int i) { 48206 return ebcdic_mm[i] + ebcdic_ii[i]; 48207 } 48208 extern int foo; 48209 48210 int 48211 main () 48212 { 48213 return use_ascii (foo) == use_ebcdic (foo); 48214 ; 48215 return 0; 48216 } 48217 _ACEOF 48218 if ac_fn_cxx_try_compile "$LINENO"; then : 48219 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 48220 ac_cv_c_bigendian=yes 48221 fi 48222 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 48223 if test "$ac_cv_c_bigendian" = unknown; then 48224 ac_cv_c_bigendian=no 48225 else 48226 # finding both strings is unlikely to happen, but who knows? 48227 ac_cv_c_bigendian=unknown 48228 fi 48229 fi 48230 fi 48231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48232 else 48233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48234 /* end confdefs.h. */ 48235 $ac_includes_default 48236 int 48237 main () 48238 { 48239 48240 /* Are we little or big endian? From Harbison&Steele. */ 48241 union 48242 { 48243 long int l; 48244 char c[sizeof (long int)]; 48245 } u; 48246 u.l = 1; 48247 return u.c[sizeof (long int) - 1] == 1; 48248 48249 ; 48250 return 0; 48251 } 48252 _ACEOF 48253 if ac_fn_cxx_try_run "$LINENO"; then : 48254 ac_cv_c_bigendian=no 48255 else 48256 ac_cv_c_bigendian=yes 48257 fi 48258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 48259 conftest.$ac_objext conftest.beam conftest.$ac_ext 48260 fi 48261 48262 fi 48263 fi 48264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 48265 $as_echo "$ac_cv_c_bigendian" >&6; } 48266 case $ac_cv_c_bigendian in #( 48267 yes) 48268 ENDIAN="big";; #( 48269 no) 48270 ENDIAN="little" ;; #( 48271 universal) 48272 ENDIAN="universal_endianness" 48273 ;; #( 48274 *) 48275 ENDIAN="unknown" ;; 48276 esac 48277 48278 48279 if test "x$ENDIAN" = xuniversal_endianness; then 48280 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 48281 fi 48282 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 48283 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 48284 fi 48285 48286 48287 # Configure flags for the tools 48288 48289 ############################################################################### 48290 # 48291 # How to compile shared libraries. 48292 # 48293 48294 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48295 PICFLAG="-fPIC" 48296 C_FLAG_REORDER='' 48297 CXX_FLAG_REORDER='' 48298 48299 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48300 # Linking is different on MacOSX 48301 if test "x$STATIC_BUILD" = xtrue; then 48302 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 48303 else 48304 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 48305 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 48306 fi 48307 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 48308 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 48309 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 48310 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 48311 else 48312 # Default works for linux, might work on other platforms as well. 48313 SHARED_LIBRARY_FLAGS='-shared' 48314 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 48315 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 48316 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 48317 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 48318 fi 48319 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48320 C_FLAG_REORDER='' 48321 CXX_FLAG_REORDER='' 48322 48323 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48324 # Linking is different on MacOSX 48325 PICFLAG='' 48326 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 48327 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path/.' 48328 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 48329 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 48330 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 48331 48332 if test "x$STATIC_BUILD" = xfalse; then 48333 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 48334 fi 48335 else 48336 # Default works for linux, might work on other platforms as well. 48337 PICFLAG='-fPIC' 48338 SHARED_LIBRARY_FLAGS='-shared' 48339 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 48340 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 48341 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 48342 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 48343 fi 48344 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48345 PICFLAG="-KPIC" 48346 C_FLAG_REORDER='-xF' 48347 CXX_FLAG_REORDER='-xF' 48348 SHARED_LIBRARY_FLAGS="-G" 48349 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 48350 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 48351 SET_SHARED_LIBRARY_NAME='-h $1' 48352 SET_SHARED_LIBRARY_MAPFILE='-M$1' 48353 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48354 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 48355 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 48356 # will have to patch this single instruction with a call to some out-of-order code which 48357 # does the load from the TOC. This is of course slow. But in that case we also would have 48358 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 48359 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 48360 # can be patched directly by the linker and does not require a jump to out-of-order code. 48361 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 48362 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 48363 # loads for accessing a global variable). But there are rumors that this may be seen as a 48364 # 'performance feature' because of improved code locality of the symbols used in a 48365 # compilation unit. 48366 PICFLAG="-qpic" 48367 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 48368 C_FLAG_REORDER='' 48369 CXX_FLAG_REORDER='' 48370 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 48371 SET_EXECUTABLE_ORIGIN="" 48372 SET_SHARED_LIBRARY_ORIGIN='' 48373 SET_SHARED_LIBRARY_NAME='' 48374 SET_SHARED_LIBRARY_MAPFILE='' 48375 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48376 PICFLAG="" 48377 C_FLAG_REORDER='' 48378 CXX_FLAG_REORDER='' 48379 SHARED_LIBRARY_FLAGS="-dll" 48380 SET_EXECUTABLE_ORIGIN='' 48381 SET_SHARED_LIBRARY_ORIGIN='' 48382 SET_SHARED_LIBRARY_NAME='' 48383 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 48384 fi 48385 48386 48387 48388 48389 48390 48391 48392 48393 48394 # The (cross) compiler is now configured, we can now test capabilities 48395 # of the target platform. 48396 48397 48398 48399 ############################################################################### 48400 # 48401 # Setup the opt flags for different compilers 48402 # and different operating systems. 48403 # 48404 48405 # FIXME: this was indirectly the old default, but just inherited. 48406 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48407 # C_FLAG_DEPS="-MMD -MF" 48408 # fi 48409 48410 # Generate make dependency files 48411 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48412 C_FLAG_DEPS="-MMD -MF" 48413 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48414 C_FLAG_DEPS="-MMD -MF" 48415 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48416 C_FLAG_DEPS="-xMMD -xMF" 48417 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48418 C_FLAG_DEPS="-qmakedep=gcc -MF" 48419 fi 48420 CXX_FLAG_DEPS="$C_FLAG_DEPS" 48421 48422 48423 48424 # Debug symbols 48425 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48426 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 48427 # reduce from default "-g2" option to save space 48428 CFLAGS_DEBUG_SYMBOLS="-g1" 48429 CXXFLAGS_DEBUG_SYMBOLS="-g1" 48430 else 48431 CFLAGS_DEBUG_SYMBOLS="-g" 48432 CXXFLAGS_DEBUG_SYMBOLS="-g" 48433 fi 48434 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48435 CFLAGS_DEBUG_SYMBOLS="-g" 48436 CXXFLAGS_DEBUG_SYMBOLS="-g" 48437 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48438 CFLAGS_DEBUG_SYMBOLS="-g -xs" 48439 # -g0 enables debug symbols without disabling inlining. 48440 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 48441 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48442 CFLAGS_DEBUG_SYMBOLS="-g" 48443 CXXFLAGS_DEBUG_SYMBOLS="-g" 48444 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48445 CFLAGS_DEBUG_SYMBOLS="-Zi" 48446 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 48447 fi 48448 48449 48450 48451 # Debug symbols for JVM_CFLAGS 48452 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48453 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 48454 if test "x$DEBUG_LEVEL" = xslowdebug; then 48455 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 48456 else 48457 # -g0 does not disable inlining, which -g does. 48458 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 48459 fi 48460 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48461 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 48462 else 48463 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 48464 fi 48465 48466 48467 # bounds, memory and behavior checking options 48468 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48469 case $DEBUG_LEVEL in 48470 release ) 48471 # no adjustment 48472 ;; 48473 fastdebug ) 48474 # no adjustment 48475 ;; 48476 slowdebug ) 48477 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 48478 # get's added conditionally on whether we produce debug symbols or not. 48479 # This is most likely not really correct. 48480 48481 # Add runtime stack smashing and undefined behavior checks. 48482 # Not all versions of gcc support -fstack-protector 48483 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 48484 48485 48486 48487 48488 48489 48490 48491 48492 48493 48494 48495 48496 48497 48498 48499 48500 48501 48502 48503 48504 48505 48506 48507 48508 48509 48510 48511 48512 48513 48514 48515 48516 48517 48518 48519 48520 48521 48522 48523 48524 48525 48526 # Execute function body 48527 48528 48529 48530 48531 48532 48533 48534 48535 48536 48537 48538 48539 48540 48541 48542 48543 48544 48545 48546 48547 48548 48549 48550 48551 48552 48553 48554 48555 48556 48557 48558 48559 48560 48561 48562 48563 48564 48565 48566 48567 48568 48569 48570 48571 48572 48573 48574 48575 # Execute function body 48576 48577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 48578 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 48579 supports=yes 48580 48581 saved_cflags="$CFLAGS" 48582 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 48583 ac_ext=c 48584 ac_cpp='$CPP $CPPFLAGS' 48585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48587 ac_compiler_gnu=$ac_cv_c_compiler_gnu 48588 48589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48590 /* end confdefs.h. */ 48591 int i; 48592 _ACEOF 48593 if ac_fn_c_try_compile "$LINENO"; then : 48594 48595 else 48596 supports=no 48597 fi 48598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48599 ac_ext=cpp 48600 ac_cpp='$CXXCPP $CPPFLAGS' 48601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48604 48605 CFLAGS="$saved_cflags" 48606 48607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48608 $as_echo "$supports" >&6; } 48609 if test "x$supports" = "xyes" ; then 48610 : 48611 C_COMP_SUPPORTS="yes" 48612 else 48613 : 48614 C_COMP_SUPPORTS="no" 48615 fi 48616 48617 48618 48619 48620 48621 48622 48623 48624 48625 48626 48627 48628 48629 48630 48631 48632 48633 48634 48635 48636 48637 48638 48639 48640 48641 48642 48643 48644 48645 48646 48647 48648 48649 48650 48651 48652 48653 48654 48655 48656 48657 48658 48659 48660 48661 48662 48663 48664 48665 48666 48667 48668 48669 48670 48671 48672 48673 48674 48675 # Execute function body 48676 48677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 48678 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 48679 supports=yes 48680 48681 saved_cxxflags="$CXXFLAGS" 48682 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 48683 ac_ext=cpp 48684 ac_cpp='$CXXCPP $CPPFLAGS' 48685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48688 48689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48690 /* end confdefs.h. */ 48691 int i; 48692 _ACEOF 48693 if ac_fn_cxx_try_compile "$LINENO"; then : 48694 48695 else 48696 supports=no 48697 fi 48698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48699 ac_ext=cpp 48700 ac_cpp='$CXXCPP $CPPFLAGS' 48701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48704 48705 CXXFLAGS="$saved_cxxflags" 48706 48707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48708 $as_echo "$supports" >&6; } 48709 if test "x$supports" = "xyes" ; then 48710 : 48711 CXX_COMP_SUPPORTS="yes" 48712 else 48713 : 48714 CXX_COMP_SUPPORTS="no" 48715 fi 48716 48717 48718 48719 48720 48721 48722 48723 48724 48725 48726 48727 48728 48729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 48730 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 48731 supports=no 48732 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 48733 48734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 48735 $as_echo "$supports" >&6; } 48736 if test "x$supports" = "xyes" ; then 48737 : 48738 48739 else 48740 : 48741 STACK_PROTECTOR_CFLAG="" 48742 fi 48743 48744 48745 48746 48747 48748 48749 48750 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 48751 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 48752 if test "x$STACK_PROTECTOR_CFLAG" != x; then 48753 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 48754 fi 48755 ;; 48756 esac 48757 fi 48758 48759 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48760 if test "x$DEBUG_LEVEL" != xrelease; then 48761 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 48762 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 48763 fi 48764 fi 48765 fi 48766 48767 # Optimization levels 48768 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48769 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 48770 48771 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 48772 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 48773 C_O_FLAG_HIGHEST_JVM="-xO4" 48774 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 48775 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 48776 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 48777 C_O_FLAG_DEBUG="-xregs=no%frameptr" 48778 C_O_FLAG_DEBUG_JVM="" 48779 C_O_FLAG_NONE="-xregs=no%frameptr" 48780 CXX_O_FLAG_HIGHEST_JVM="-xO4" 48781 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 48782 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 48783 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 48784 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 48785 CXX_O_FLAG_DEBUG_JVM="" 48786 CXX_O_FLAG_NONE="-xregs=no%frameptr" 48787 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 48788 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 48789 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 48790 fi 48791 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 48792 C_O_FLAG_HIGHEST_JVM="-xO4" 48793 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 48794 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 48795 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 48796 C_O_FLAG_DEBUG="" 48797 C_O_FLAG_DEBUG_JVM="" 48798 C_O_FLAG_NONE="" 48799 CXX_O_FLAG_HIGHEST_JVM="-xO4" 48800 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 48801 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 48802 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 48803 CXX_O_FLAG_DEBUG="" 48804 CXX_O_FLAG_DEBUG_JVM="" 48805 CXX_O_FLAG_NONE="" 48806 fi 48807 else 48808 # The remaining toolchains share opt flags between CC and CXX; 48809 # setup for C and duplicate afterwards. 48810 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48811 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48812 # On MacOSX we optimize for size, something 48813 # we should do for all platforms? 48814 C_O_FLAG_HIGHEST_JVM="-Os" 48815 C_O_FLAG_HIGHEST="-Os" 48816 C_O_FLAG_HI="-Os" 48817 C_O_FLAG_NORM="-Os" 48818 C_O_FLAG_SIZE="-Os" 48819 else 48820 C_O_FLAG_HIGHEST_JVM="-O3" 48821 C_O_FLAG_HIGHEST="-O3" 48822 C_O_FLAG_HI="-O3" 48823 C_O_FLAG_NORM="-O2" 48824 C_O_FLAG_SIZE="-Os" 48825 fi 48826 C_O_FLAG_DEBUG="-O0" 48827 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48828 C_O_FLAG_DEBUG_JVM="" 48829 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 48830 C_O_FLAG_DEBUG_JVM="-O0" 48831 fi 48832 C_O_FLAG_NONE="-O0" 48833 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48834 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48835 # On MacOSX we optimize for size, something 48836 # we should do for all platforms? 48837 C_O_FLAG_HIGHEST_JVM="-Os" 48838 C_O_FLAG_HIGHEST="-Os" 48839 C_O_FLAG_HI="-Os" 48840 C_O_FLAG_NORM="-Os" 48841 C_O_FLAG_SIZE="-Os" 48842 else 48843 C_O_FLAG_HIGHEST_JVM="-O3" 48844 C_O_FLAG_HIGHEST="-O3" 48845 C_O_FLAG_HI="-O3" 48846 C_O_FLAG_NORM="-O2" 48847 C_O_FLAG_SIZE="-Os" 48848 fi 48849 C_O_FLAG_DEBUG="-O0" 48850 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48851 C_O_FLAG_DEBUG_JVM="" 48852 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 48853 C_O_FLAG_DEBUG_JVM="-O0" 48854 fi 48855 C_O_FLAG_NONE="-O0" 48856 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48857 C_O_FLAG_HIGHEST_JVM="-O3" 48858 C_O_FLAG_HIGHEST="-O3" 48859 C_O_FLAG_HI="-O3 -qstrict" 48860 C_O_FLAG_NORM="-O2" 48861 C_O_FLAG_DEBUG="-qnoopt" 48862 # FIXME: Value below not verified. 48863 C_O_FLAG_DEBUG_JVM="" 48864 C_O_FLAG_NONE="-qnoopt" 48865 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48866 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 48867 C_O_FLAG_HIGHEST="-O2" 48868 C_O_FLAG_HI="-O1" 48869 C_O_FLAG_NORM="-O1" 48870 C_O_FLAG_DEBUG="-Od" 48871 C_O_FLAG_DEBUG_JVM="" 48872 C_O_FLAG_NONE="-Od" 48873 C_O_FLAG_SIZE="-Os" 48874 fi 48875 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 48876 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 48877 CXX_O_FLAG_HI="$C_O_FLAG_HI" 48878 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 48879 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 48880 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 48881 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 48882 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 48883 fi 48884 48885 # Adjust optimization flags according to debug level. 48886 case $DEBUG_LEVEL in 48887 release ) 48888 # no adjustment 48889 ;; 48890 fastdebug ) 48891 # Not quite so much optimization 48892 C_O_FLAG_HI="$C_O_FLAG_NORM" 48893 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 48894 ;; 48895 slowdebug ) 48896 # Disable optimization 48897 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 48898 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 48899 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 48900 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 48901 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 48902 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 48903 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 48904 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 48905 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 48906 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 48907 ;; 48908 esac 48909 48910 48911 48912 48913 48914 48915 48916 48917 48918 48919 48920 48921 48922 48923 48924 48925 48926 48927 48928 # Special extras... 48929 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48930 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 48931 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 48932 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 48933 fi 48934 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 48935 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 48936 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48937 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 48938 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 48939 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48940 CXXSTD_CXXFLAG="-std=gnu++98" 48941 48942 48943 48944 48945 48946 48947 48948 48949 48950 48951 48952 48953 48954 48955 48956 48957 48958 48959 48960 48961 48962 48963 48964 48965 48966 48967 48968 48969 48970 48971 48972 48973 48974 48975 48976 48977 48978 48979 48980 48981 48982 48983 # Execute function body 48984 48985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 48986 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 48987 supports=yes 48988 48989 saved_cxxflags="$CXXFLAGS" 48990 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 48991 ac_ext=cpp 48992 ac_cpp='$CXXCPP $CPPFLAGS' 48993 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48994 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48995 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48996 48997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48998 /* end confdefs.h. */ 48999 int i; 49000 _ACEOF 49001 if ac_fn_cxx_try_compile "$LINENO"; then : 49002 49003 else 49004 supports=no 49005 fi 49006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49007 ac_ext=cpp 49008 ac_cpp='$CXXCPP $CPPFLAGS' 49009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49012 49013 CXXFLAGS="$saved_cxxflags" 49014 49015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49016 $as_echo "$supports" >&6; } 49017 if test "x$supports" = "xyes" ; then 49018 : 49019 49020 else 49021 : 49022 CXXSTD_CXXFLAG="" 49023 fi 49024 49025 49026 49027 49028 49029 49030 49031 49032 49033 49034 49035 49036 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 49037 49038 fi 49039 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49040 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49041 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49042 CFLAGS_JDKLIB_EXTRA='-xstrconst' 49043 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49044 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 49045 fi 49046 49047 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49048 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 49049 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 49050 CFLAGS_JDKLIB_EXTRA='-xstrconst' 49051 fi 49052 49053 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 49054 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 49055 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 49056 49057 ############################################################################### 49058 # 49059 # Now setup the CFLAGS and LDFLAGS for the JDK build. 49060 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 49061 # 49062 49063 # Setup compiler/platform specific flags into 49064 # CFLAGS_JDK - C Compiler flags 49065 # CXXFLAGS_JDK - C++ Compiler flags 49066 # COMMON_CCXXFLAGS_JDK - common to C and C++ 49067 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49068 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 49069 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 49070 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 49071 if test "x$OPENJDK_TARGET_CPU" = xx86; then 49072 # Force compatibility with i586 on 32 bit intel platforms. 49073 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 49074 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 49075 fi 49076 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 49077 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 49078 case $OPENJDK_TARGET_CPU_ARCH in 49079 arm ) 49080 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49081 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49082 ;; 49083 ppc ) 49084 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49085 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49086 ;; 49087 * ) 49088 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 49089 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49090 ;; 49091 esac 49092 49093 49094 49095 49096 49097 49098 49099 49100 49101 49102 49103 49104 49105 49106 49107 49108 49109 49110 49111 49112 49113 49114 49115 49116 49117 49118 49119 49120 49121 49122 49123 49124 49125 49126 49127 49128 49129 49130 49131 49132 49133 49134 # Execute function body 49135 49136 # Need to assign to a variable since m4 is blocked from modifying parts in []. 49137 REFERENCE_VERSION=6 49138 49139 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 49140 as_fn_error $? "Internal error: Cannot compare to 6, only three parts (X.Y.Z) is supported" "$LINENO" 5 49141 fi 49142 49143 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 49144 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 49145 fi 49146 49147 # Version comparison method inspired by http://stackoverflow.com/a/24067243 49148 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 49149 49150 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 49151 : 49152 49153 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 49154 # runs afoul of the more aggressive versions of these optimisations. 49155 # Notably, value range propagation now assumes that the this pointer of C++ 49156 # member functions is non-null. 49157 NO_NULL_POINTER_CHECK_CFLAG="-fno-delete-null-pointer-checks" 49158 49159 49160 49161 49162 49163 49164 49165 49166 49167 49168 49169 49170 49171 49172 49173 49174 49175 49176 49177 49178 49179 49180 49181 49182 49183 49184 49185 49186 49187 49188 49189 49190 49191 49192 49193 49194 49195 49196 49197 49198 49199 49200 # Execute function body 49201 49202 49203 49204 49205 49206 49207 49208 49209 49210 49211 49212 49213 49214 49215 49216 49217 49218 49219 49220 49221 49222 49223 49224 49225 49226 49227 49228 49229 49230 49231 49232 49233 49234 49235 49236 49237 49238 49239 49240 49241 49242 49243 49244 49245 49246 49247 49248 49249 # Execute function body 49250 49251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"" >&5 49252 $as_echo_n "checking if the C compiler supports \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"... " >&6; } 49253 supports=yes 49254 49255 saved_cflags="$CFLAGS" 49256 CFLAGS="$CFLAGS $NO_NULL_POINTER_CHECK_CFLAG -Werror" 49257 ac_ext=c 49258 ac_cpp='$CPP $CPPFLAGS' 49259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49261 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49262 49263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49264 /* end confdefs.h. */ 49265 int i; 49266 _ACEOF 49267 if ac_fn_c_try_compile "$LINENO"; then : 49268 49269 else 49270 supports=no 49271 fi 49272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49273 ac_ext=cpp 49274 ac_cpp='$CXXCPP $CPPFLAGS' 49275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49278 49279 CFLAGS="$saved_cflags" 49280 49281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49282 $as_echo "$supports" >&6; } 49283 if test "x$supports" = "xyes" ; then 49284 : 49285 C_COMP_SUPPORTS="yes" 49286 else 49287 : 49288 C_COMP_SUPPORTS="no" 49289 fi 49290 49291 49292 49293 49294 49295 49296 49297 49298 49299 49300 49301 49302 49303 49304 49305 49306 49307 49308 49309 49310 49311 49312 49313 49314 49315 49316 49317 49318 49319 49320 49321 49322 49323 49324 49325 49326 49327 49328 49329 49330 49331 49332 49333 49334 49335 49336 49337 49338 49339 49340 49341 49342 49343 49344 49345 49346 49347 49348 49349 # Execute function body 49350 49351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"" >&5 49352 $as_echo_n "checking if the C++ compiler supports \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"... " >&6; } 49353 supports=yes 49354 49355 saved_cxxflags="$CXXFLAGS" 49356 CXXFLAGS="$CXXFLAG $NO_NULL_POINTER_CHECK_CFLAG -Werror" 49357 ac_ext=cpp 49358 ac_cpp='$CXXCPP $CPPFLAGS' 49359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49362 49363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49364 /* end confdefs.h. */ 49365 int i; 49366 _ACEOF 49367 if ac_fn_cxx_try_compile "$LINENO"; then : 49368 49369 else 49370 supports=no 49371 fi 49372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49373 ac_ext=cpp 49374 ac_cpp='$CXXCPP $CPPFLAGS' 49375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49378 49379 CXXFLAGS="$saved_cxxflags" 49380 49381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49382 $as_echo "$supports" >&6; } 49383 if test "x$supports" = "xyes" ; then 49384 : 49385 CXX_COMP_SUPPORTS="yes" 49386 else 49387 : 49388 CXX_COMP_SUPPORTS="no" 49389 fi 49390 49391 49392 49393 49394 49395 49396 49397 49398 49399 49400 49401 49402 49403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"" >&5 49404 $as_echo_n "checking if both compilers support \"$NO_NULL_POINTER_CHECK_CFLAG -Werror\"... " >&6; } 49405 supports=no 49406 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49407 49408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49409 $as_echo "$supports" >&6; } 49410 if test "x$supports" = "xyes" ; then 49411 : 49412 49413 else 49414 : 49415 NO_NULL_POINTER_CHECK_CFLAG="" 49416 fi 49417 49418 49419 49420 49421 49422 49423 49424 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 49425 49426 49427 49428 49429 49430 49431 49432 49433 49434 49435 49436 49437 49438 49439 49440 49441 49442 49443 49444 49445 49446 49447 49448 49449 49450 49451 49452 49453 49454 49455 49456 49457 49458 49459 49460 49461 49462 49463 49464 49465 49466 49467 # Execute function body 49468 49469 49470 49471 49472 49473 49474 49475 49476 49477 49478 49479 49480 49481 49482 49483 49484 49485 49486 49487 49488 49489 49490 49491 49492 49493 49494 49495 49496 49497 49498 49499 49500 49501 49502 49503 49504 49505 49506 49507 49508 49509 49510 49511 49512 49513 49514 49515 49516 # Execute function body 49517 49518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 49519 $as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 49520 supports=yes 49521 49522 saved_cflags="$CFLAGS" 49523 CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror" 49524 ac_ext=c 49525 ac_cpp='$CPP $CPPFLAGS' 49526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49528 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49529 49530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49531 /* end confdefs.h. */ 49532 int i; 49533 _ACEOF 49534 if ac_fn_c_try_compile "$LINENO"; then : 49535 49536 else 49537 supports=no 49538 fi 49539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49540 ac_ext=cpp 49541 ac_cpp='$CXXCPP $CPPFLAGS' 49542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49545 49546 CFLAGS="$saved_cflags" 49547 49548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49549 $as_echo "$supports" >&6; } 49550 if test "x$supports" = "xyes" ; then 49551 : 49552 C_COMP_SUPPORTS="yes" 49553 else 49554 : 49555 C_COMP_SUPPORTS="no" 49556 fi 49557 49558 49559 49560 49561 49562 49563 49564 49565 49566 49567 49568 49569 49570 49571 49572 49573 49574 49575 49576 49577 49578 49579 49580 49581 49582 49583 49584 49585 49586 49587 49588 49589 49590 49591 49592 49593 49594 49595 49596 49597 49598 49599 49600 49601 49602 49603 49604 49605 49606 49607 49608 49609 49610 49611 49612 49613 49614 49615 49616 # Execute function body 49617 49618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 49619 $as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 49620 supports=yes 49621 49622 saved_cxxflags="$CXXFLAGS" 49623 CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror" 49624 ac_ext=cpp 49625 ac_cpp='$CXXCPP $CPPFLAGS' 49626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49629 49630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49631 /* end confdefs.h. */ 49632 int i; 49633 _ACEOF 49634 if ac_fn_cxx_try_compile "$LINENO"; then : 49635 49636 else 49637 supports=no 49638 fi 49639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49640 ac_ext=cpp 49641 ac_cpp='$CXXCPP $CPPFLAGS' 49642 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49643 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49644 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49645 49646 CXXFLAGS="$saved_cxxflags" 49647 49648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49649 $as_echo "$supports" >&6; } 49650 if test "x$supports" = "xyes" ; then 49651 : 49652 CXX_COMP_SUPPORTS="yes" 49653 else 49654 : 49655 CXX_COMP_SUPPORTS="no" 49656 fi 49657 49658 49659 49660 49661 49662 49663 49664 49665 49666 49667 49668 49669 49670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 49671 $as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 49672 supports=no 49673 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49674 49675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49676 $as_echo "$supports" >&6; } 49677 if test "x$supports" = "xyes" ; then 49678 : 49679 49680 else 49681 : 49682 NO_LIFETIME_DSE_CFLAG="" 49683 fi 49684 49685 49686 49687 49688 49689 49690 CFLAGS_JDK="${CFLAGS_JDK} ${NO_NULL_POINTER_CHECK_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 49691 49692 49693 49694 else 49695 : 49696 49697 fi 49698 49699 49700 49701 49702 49703 49704 49705 49706 49707 49708 49709 49710 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49711 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 49712 49713 # Restrict the debug information created by Clang to avoid 49714 # too big object files and speed the build up a little bit 49715 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 49716 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 49717 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49718 if test "x$OPENJDK_TARGET_CPU" = xx86; then 49719 # Force compatibility with i586 on 32 bit intel platforms. 49720 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 49721 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 49722 fi 49723 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 49724 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 49725 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 49726 case $OPENJDK_TARGET_CPU_ARCH in 49727 ppc ) 49728 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 49729 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49730 ;; 49731 * ) 49732 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 49733 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 49734 ;; 49735 esac 49736 fi 49737 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49738 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 49739 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 49740 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 49741 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 49742 fi 49743 49744 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 49745 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 49746 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49747 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 49748 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 49749 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 49750 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49751 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 49752 -MD -Zc:wchar_t- -W3 -wd4800 \ 49753 -DWIN32_LEAN_AND_MEAN \ 49754 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 49755 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 49756 -DWIN32 -DIAL" 49757 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 49758 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 49759 else 49760 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 49761 fi 49762 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 49763 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 49764 # studio. 49765 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 49766 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 49767 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 49768 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 49769 fi 49770 fi 49771 49772 ############################################################################### 49773 49774 # Adjust flags according to debug level. 49775 case $DEBUG_LEVEL in 49776 fastdebug | slowdebug ) 49777 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 49778 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 49779 JAVAC_FLAGS="$JAVAC_FLAGS -g" 49780 ;; 49781 release ) 49782 ;; 49783 * ) 49784 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 49785 ;; 49786 esac 49787 49788 # Set some common defines. These works for all compilers, but assume 49789 # -D is universally accepted. 49790 49791 # Setup endianness 49792 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 49793 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 49794 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 49795 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 49796 # Note: -Dmacro is the same as #define macro 1 49797 # -Dmacro= is the same as #define macro 49798 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49799 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 49800 else 49801 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 49802 fi 49803 else 49804 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 49805 # are defined in the system? 49806 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49807 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 49808 else 49809 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 49810 fi 49811 fi 49812 49813 # Setup target OS define. Use OS target name but in upper case. 49814 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 49815 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 49816 49817 # Setup target CPU 49818 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 49819 $OPENJDK_TARGET_ADD_LP64 \ 49820 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 49821 49822 # Setup debug/release defines 49823 if test "x$DEBUG_LEVEL" = xrelease; then 49824 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 49825 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 49826 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 49827 fi 49828 else 49829 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 49830 fi 49831 49832 # Set some additional per-OS defines. 49833 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49834 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 49835 JVM_CFLAGS="$JVM_CFLAGS -pipe -fPIC -fno-rtti -fno-exceptions \ 49836 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 49837 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 49838 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 49839 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 49840 -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" 49841 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 49842 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 49843 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 49844 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 49845 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 49846 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 49847 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 49848 -fno-omit-frame-pointer" 49849 elif test "x$OPENJDK_TARGET_OS" = xaix; then 49850 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 49851 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 49852 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced -qhot=level=1 -qinline \ 49853 -qinlglue -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 49854 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 49855 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 49856 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 49857 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 49858 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 49859 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 49860 fi 49861 49862 # Set some additional per-CPU defines. 49863 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 49864 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 49865 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 49866 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 49867 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 49868 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49869 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 49870 # fixes `relocation truncated to fit' error for gcc 4.1. 49871 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 49872 # Use ppc64 instructions, but schedule for power5 49873 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 49874 elif test "x$OPENJDK_TARGET_OS" = xaix; then 49875 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 49876 fi 49877 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 49878 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49879 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 49880 # Little endian machine uses ELFv2 ABI. 49881 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 49882 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 49883 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power7 -mtune=power8" 49884 fi 49885 fi 49886 49887 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 49888 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 49889 fi 49890 49891 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49892 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 49893 # Solaris does not have _LP64=1 in the old build. 49894 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 49895 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 49896 fi 49897 fi 49898 49899 # Set JVM_CFLAGS warning handling 49900 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49901 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 49902 -Wunused-value -Woverloaded-virtual" 49903 49904 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49905 49906 49907 49908 49909 49910 49911 49912 49913 49914 49915 49916 49917 49918 49919 49920 49921 49922 49923 49924 49925 49926 49927 49928 49929 49930 49931 49932 49933 49934 49935 49936 49937 49938 49939 49940 49941 49942 49943 49944 49945 49946 49947 # Execute function body 49948 49949 # Need to assign to a variable since m4 is blocked from modifying parts in []. 49950 REFERENCE_VERSION=4.8 49951 49952 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 49953 as_fn_error $? "Internal error: Cannot compare to 4.8, only three parts (X.Y.Z) is supported" "$LINENO" 5 49954 fi 49955 49956 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 49957 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 49958 fi 49959 49960 # Version comparison method inspired by http://stackoverflow.com/a/24067243 49961 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 49962 49963 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 49964 : 49965 49966 # These flags either do not work or give spurious warnings prior to gcc 4.8. 49967 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 49968 49969 49970 else 49971 : 49972 49973 fi 49974 49975 49976 49977 49978 49979 49980 49981 49982 49983 49984 49985 49986 fi 49987 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 49988 # Non-zero builds have stricter warnings 49989 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 49990 else 49991 if test "x$TOOLCHAIN_TYPE" = xclang; then 49992 # Some versions of llvm do not like -Wundef 49993 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 49994 fi 49995 fi 49996 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 49997 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 49998 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 49999 fi 50000 50001 # Additional macosx handling 50002 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50003 # Setting these parameters makes it an error to link to macosx APIs that are 50004 # newer than the given OS version and makes the linked binaries compatible 50005 # even if built on a newer version of the OS. 50006 # The expected format is X.Y.Z 50007 MACOSX_VERSION_MIN=10.7.0 50008 50009 50010 # The macro takes the version with no dots, ex: 1070 50011 # Let the flags variables get resolved in make for easier override on make 50012 # command line. 50013 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50014 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50015 fi 50016 50017 # Setup some hard coded includes 50018 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 50019 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 50020 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 50021 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 50022 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 50023 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava" 50024 50025 # The shared libraries are compiled using the picflag. 50026 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50027 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 50028 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 50029 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 50030 50031 # Executable flags 50032 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 50033 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 50034 50035 50036 50037 50038 50039 50040 # Setup LDFLAGS et al. 50041 # 50042 50043 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50044 LDFLAGS_MICROSOFT="-nologo -opt:ref" 50045 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 50046 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 50047 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 50048 LDFLAGS_SAFESH="-safeseh" 50049 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 50050 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 50051 # NOTE: Old build added -machine. Probably not needed. 50052 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 50053 else 50054 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 50055 fi 50056 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50057 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 50058 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50059 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 50060 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50061 fi 50062 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50063 # If this is a --hash-style=gnu system, use --hash-style=both, why? 50064 # We have previously set HAS_GNU_HASH if this is the case 50065 if test -n "$HAS_GNU_HASH"; then 50066 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 50067 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 50068 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 50069 fi 50070 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50071 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50072 fi 50073 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50074 # And since we now know that the linker is gnu, then add -z defs, to forbid 50075 # undefined symbols in object files. 50076 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 50077 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 50078 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 50079 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 50080 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 50081 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50082 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 50083 fi 50084 case $DEBUG_LEVEL in 50085 release ) 50086 # tell linker to optimize libraries. 50087 # Should this be supplied to the OSS linker as well? 50088 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 50089 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 50090 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 50091 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50092 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50093 fi 50094 ;; 50095 slowdebug ) 50096 # Hotspot always let the linker optimize 50097 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50098 if test "x$HAS_LINKER_NOW" = "xtrue"; then 50099 # do relocations at load 50100 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 50101 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 50102 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 50103 fi 50104 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50105 # mark relocations read only 50106 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50107 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50108 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50109 fi 50110 ;; 50111 fastdebug ) 50112 # Hotspot always let the linker optimize 50113 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 50114 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50115 # mark relocations read only 50116 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 50117 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50118 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 50119 fi 50120 ;; 50121 * ) 50122 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50123 ;; 50124 esac 50125 fi 50126 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50127 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 50128 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -xildoff -ztext" 50129 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 50130 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 50131 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 50132 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 50133 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 50134 fi 50135 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50136 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 50137 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 50138 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 50139 fi 50140 50141 # Customize LDFLAGS for executables 50142 50143 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 50144 50145 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50146 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 50147 LDFLAGS_STACK_SIZE=1048576 50148 else 50149 LDFLAGS_STACK_SIZE=327680 50150 fi 50151 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 50152 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 50153 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 50154 fi 50155 50156 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 50157 50158 # Customize LDFLAGS for libs 50159 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 50160 50161 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 50162 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50163 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \ 50164 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 50165 JDKLIB_LIBS="" 50166 else 50167 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \ 50168 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)" 50169 50170 if test "xTARGET" = "xTARGET"; then 50171 # On some platforms (mac) the linker warns about non existing -L dirs. 50172 # Add server first if available. Linking aginst client does not always produce the same results. 50173 # Only add client/minimal dir if client/minimal is being built. 50174 # Default to server for other variants. 50175 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 50176 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50177 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 50178 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/client" 50179 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 50180 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/minimal" 50181 else 50182 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50183 fi 50184 elif test "xTARGET" = "xBUILD"; then 50185 # When building a buildjdk, it's always only the server variant 50186 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \ 50187 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server" 50188 fi 50189 50190 JDKLIB_LIBS="-ljava -ljvm" 50191 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50192 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 50193 fi 50194 50195 fi 50196 50197 # Set JVM_LIBS (per os) 50198 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50199 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 50200 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50201 # FIXME: This hard-coded path is not really proper. 50202 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 50203 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 50204 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 50205 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 50206 fi 50207 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 50208 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 50209 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50210 JVM_LIBS="$JVM_LIBS -lm" 50211 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50212 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 50213 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 50214 JVM_LIBS="$JVM_LIBS -lm" 50215 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50216 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 50217 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 50218 wsock32.lib winmm.lib version.lib psapi.lib" 50219 fi 50220 50221 # Set JVM_ASFLAGS 50222 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50223 if test "x$OPENJDK_TARGET_CPU" = xx86; then 50224 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 50225 fi 50226 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50227 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 50228 fi 50229 50230 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 50231 50232 50233 50234 50235 50236 50237 50238 50239 50240 50241 50242 50243 50244 50245 50246 # Special extras... 50247 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50248 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 50249 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50250 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 50251 fi 50252 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50253 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 50254 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50255 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50256 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50257 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50258 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 50259 50260 50261 50262 50263 50264 50265 50266 50267 50268 50269 50270 50271 50272 50273 50274 50275 50276 50277 50278 50279 50280 50281 50282 50283 50284 50285 50286 50287 50288 50289 50290 50291 50292 50293 50294 50295 50296 50297 50298 50299 50300 50301 # Execute function body 50302 50303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 50304 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 50305 supports=yes 50306 50307 saved_cxxflags="$CXXFLAGS" 50308 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 50309 ac_ext=cpp 50310 ac_cpp='$CXXCPP $CPPFLAGS' 50311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50314 50315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50316 /* end confdefs.h. */ 50317 int i; 50318 _ACEOF 50319 if ac_fn_cxx_try_compile "$LINENO"; then : 50320 50321 else 50322 supports=no 50323 fi 50324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50325 ac_ext=cpp 50326 ac_cpp='$CXXCPP $CPPFLAGS' 50327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 50328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 50329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 50330 50331 CXXFLAGS="$saved_cxxflags" 50332 50333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 50334 $as_echo "$supports" >&6; } 50335 if test "x$supports" = "xyes" ; then 50336 : 50337 50338 else 50339 : 50340 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 50341 fi 50342 50343 50344 50345 50346 50347 50348 50349 50350 50351 50352 50353 50354 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 50355 50356 fi 50357 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50358 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 50359 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 50360 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA='-xstrconst' 50361 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50362 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 50363 fi 50364 50365 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 50366 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 50367 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 50368 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA='-xstrconst' 50369 fi 50370 50371 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 50372 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 50373 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 50374 50375 ############################################################################### 50376 # 50377 # Now setup the CFLAGS and LDFLAGS for the JDK build. 50378 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 50379 # 50380 50381 # Setup compiler/platform specific flags into 50382 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 50383 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 50384 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 50385 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50386 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 50387 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 50388 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 50389 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50390 # Force compatibility with i586 on 32 bit intel platforms. 50391 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 50392 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 50393 fi 50394 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50395 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50396 case $OPENJDK_BUILD_CPU_ARCH in 50397 arm ) 50398 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50399 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50400 ;; 50401 ppc ) 50402 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50403 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50404 ;; 50405 * ) 50406 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50407 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50408 ;; 50409 esac 50410 50411 50412 50413 50414 50415 50416 50417 50418 50419 50420 50421 50422 50423 50424 50425 50426 50427 50428 50429 50430 50431 50432 50433 50434 50435 50436 50437 50438 50439 50440 50441 50442 50443 50444 50445 50446 50447 50448 50449 50450 50451 50452 # Execute function body 50453 50454 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50455 REFERENCE_VERSION=6 50456 50457 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 50458 as_fn_error $? "Internal error: Cannot compare to 6, only three parts (X.Y.Z) is supported" "$LINENO" 5 50459 fi 50460 50461 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50462 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 50463 fi 50464 50465 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50466 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 50467 50468 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50469 : 50470 50471 else 50472 : 50473 50474 fi 50475 50476 50477 50478 50479 50480 50481 50482 50483 50484 50485 50486 50487 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50488 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 50489 50490 # Restrict the debug information created by Clang to avoid 50491 # too big object files and speed the build up a little bit 50492 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 50493 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 50494 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50495 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50496 # Force compatibility with i586 on 32 bit intel platforms. 50497 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 50498 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 50499 fi 50500 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 50501 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 50502 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 50503 case $OPENJDK_BUILD_CPU_ARCH in 50504 ppc ) 50505 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 50506 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50507 ;; 50508 * ) 50509 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 50510 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 50511 ;; 50512 esac 50513 fi 50514 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50515 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 50516 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 50517 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 50518 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 50519 fi 50520 50521 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 50522 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 50523 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50524 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT -D__STDC_FORMAT_MACROS" 50525 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50526 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 50527 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50528 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50529 -MD -Zc:wchar_t- -W3 -wd4800 \ 50530 -DWIN32_LEAN_AND_MEAN \ 50531 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 50532 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 50533 -DWIN32 -DIAL" 50534 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 50535 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 50536 else 50537 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 50538 fi 50539 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 50540 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 50541 # studio. 50542 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 50543 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 50544 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 50545 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 50546 fi 50547 fi 50548 50549 ############################################################################### 50550 50551 # Adjust flags according to debug level. 50552 case $DEBUG_LEVEL in 50553 fastdebug | slowdebug ) 50554 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 50555 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 50556 JAVAC_FLAGS="$JAVAC_FLAGS -g" 50557 ;; 50558 release ) 50559 ;; 50560 * ) 50561 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50562 ;; 50563 esac 50564 50565 # Set some common defines. These works for all compilers, but assume 50566 # -D is universally accepted. 50567 50568 # Setup endianness 50569 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 50570 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 50571 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 50572 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 50573 # Note: -Dmacro is the same as #define macro 1 50574 # -Dmacro= is the same as #define macro 50575 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50576 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 50577 else 50578 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 50579 fi 50580 else 50581 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 50582 # are defined in the system? 50583 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50584 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 50585 else 50586 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 50587 fi 50588 fi 50589 50590 # Setup target OS define. Use OS target name but in upper case. 50591 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 50592 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 50593 50594 # Setup target CPU 50595 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50596 $OPENJDK_BUILD_ADD_LP64 \ 50597 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 50598 50599 # Setup debug/release defines 50600 if test "x$DEBUG_LEVEL" = xrelease; then 50601 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 50602 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 50603 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 50604 fi 50605 else 50606 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 50607 fi 50608 50609 # Set some additional per-OS defines. 50610 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50611 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 50612 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe -fPIC -fno-rtti -fno-exceptions \ 50613 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 50614 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 50615 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 50616 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 50617 -D_Crun_inline_placement -library=%none -KPIC -mt -xwe -features=no%except" 50618 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 50619 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 50620 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 50621 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 50622 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 50623 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 50624 -DMAC_OS_X_VERSION_MAX_ALLOWED=1070 -mmacosx-version-min=10.7.0 \ 50625 -fno-omit-frame-pointer" 50626 elif test "x$OPENJDK_BUILD_OS" = xaix; then 50627 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 50628 # We may need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 50629 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced -qhot=level=1 -qinline \ 50630 -qinlglue -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 50631 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 50632 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 50633 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 50634 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 50635 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 50636 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 50637 fi 50638 50639 # Set some additional per-CPU defines. 50640 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 50641 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 50642 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 50643 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 50644 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 50645 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50646 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50647 # fixes `relocation truncated to fit' error for gcc 4.1. 50648 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 50649 # Use ppc64 instructions, but schedule for power5 50650 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 50651 elif test "x$OPENJDK_BUILD_OS" = xaix; then 50652 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 50653 fi 50654 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 50655 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50656 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 50657 # Little endian machine uses ELFv2 ABI. 50658 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 50659 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 50660 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power7 -mtune=power8" 50661 fi 50662 fi 50663 50664 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 50665 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 50666 fi 50667 50668 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 50669 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 50670 # Solaris does not have _LP64=1 in the old build. 50671 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 50672 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 50673 fi 50674 fi 50675 50676 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 50677 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50678 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 50679 -Wunused-value -Woverloaded-virtual" 50680 50681 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50682 50683 50684 50685 50686 50687 50688 50689 50690 50691 50692 50693 50694 50695 50696 50697 50698 50699 50700 50701 50702 50703 50704 50705 50706 50707 50708 50709 50710 50711 50712 50713 50714 50715 50716 50717 50718 50719 50720 50721 50722 50723 50724 # Execute function body 50725 50726 # Need to assign to a variable since m4 is blocked from modifying parts in []. 50727 REFERENCE_VERSION=4.8 50728 50729 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 50730 as_fn_error $? "Internal error: Cannot compare to 4.8, only three parts (X.Y.Z) is supported" "$LINENO" 5 50731 fi 50732 50733 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 50734 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 50735 fi 50736 50737 # Version comparison method inspired by http://stackoverflow.com/a/24067243 50738 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 50739 50740 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 50741 : 50742 50743 # These flags either do not work or give spurious warnings prior to gcc 4.8. 50744 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 50745 50746 50747 else 50748 : 50749 50750 fi 50751 50752 50753 50754 50755 50756 50757 50758 50759 50760 50761 50762 50763 fi 50764 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 50765 # Non-zero builds have stricter warnings 50766 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 50767 else 50768 if test "x$TOOLCHAIN_TYPE" = xclang; then 50769 # Some versions of llvm do not like -Wundef 50770 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 50771 fi 50772 fi 50773 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 50774 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 50775 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 50776 fi 50777 50778 # Additional macosx handling 50779 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 50780 # Setting these parameters makes it an error to link to macosx APIs that are 50781 # newer than the given OS version and makes the linked binaries compatible 50782 # even if built on a newer version of the OS. 50783 # The expected format is X.Y.Z 50784 MACOSX_VERSION_MIN=10.7.0 50785 50786 50787 # The macro takes the version with no dots, ex: 1070 50788 # Let the flags variables get resolved in make for easier override on make 50789 # command line. 50790 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)" 50791 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 50792 fi 50793 50794 # Setup some hard coded includes 50795 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50796 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 50797 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 50798 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 50799 -I${JDK_TOPDIR}/src/java.base/share/native/libjava \ 50800 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava" 50801 50802 # The shared libraries are compiled using the picflag. 50803 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50804 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 50805 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 50806 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 50807 50808 # Executable flags 50809 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 50810 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 50811 50812 50813 50814 50815 50816 50817 # Setup LDFLAGS et al. 50818 # 50819 50820 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50821 LDFLAGS_MICROSOFT="-nologo -opt:ref" 50822 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 50823 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 50824 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 50825 LDFLAGS_SAFESH="-safeseh" 50826 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 50827 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 50828 # NOTE: Old build added -machine. Probably not needed. 50829 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 50830 else 50831 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 50832 fi 50833 elif test "x$TOOLCHAIN_TYPE" = xclang; then 50834 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 50835 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 50836 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 50837 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50838 fi 50839 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 50840 # If this is a --hash-style=gnu system, use --hash-style=both, why? 50841 # We have previously set HAS_GNU_HASH if this is the case 50842 if test -n "$HAS_GNU_HASH"; then 50843 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 50844 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 50845 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 50846 fi 50847 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 50848 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 50849 fi 50850 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50851 # And since we now know that the linker is gnu, then add -z defs, to forbid 50852 # undefined symbols in object files. 50853 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 50854 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 50855 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 50856 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 50857 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 50858 if test "x$OPENJDK_BUILD_CPU" = xx86; then 50859 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 50860 fi 50861 case $DEBUG_LEVEL in 50862 release ) 50863 # tell linker to optimize libraries. 50864 # Should this be supplied to the OSS linker as well? 50865 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 50866 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 50867 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 50868 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50869 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 50870 fi 50871 ;; 50872 slowdebug ) 50873 # Hotspot always let the linker optimize 50874 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 50875 if test "x$HAS_LINKER_NOW" = "xtrue"; then 50876 # do relocations at load 50877 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 50878 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 50879 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 50880 fi 50881 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50882 # mark relocations read only 50883 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 50884 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50885 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 50886 fi 50887 ;; 50888 fastdebug ) 50889 # Hotspot always let the linker optimize 50890 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 50891 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 50892 # mark relocations read only 50893 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 50894 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 50895 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 50896 fi 50897 ;; 50898 * ) 50899 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 50900 ;; 50901 esac 50902 fi 50903 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50904 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 50905 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -xildoff -ztext" 50906 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 50907 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 50908 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 50909 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 50910 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 50911 fi 50912 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 50913 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok" 50914 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 50915 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 50916 fi 50917 50918 # Customize LDFLAGS for executables 50919 50920 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 50921 50922 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50923 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 50924 LDFLAGS_STACK_SIZE=1048576 50925 else 50926 LDFLAGS_STACK_SIZE=327680 50927 fi 50928 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 50929 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 50930 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 50931 fi 50932 50933 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 50934 50935 # Customize LDFLAGS for libs 50936 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 50937 50938 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 50939 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50940 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} \ 50941 -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 50942 OPENJDK_BUILD_JDKLIB_LIBS="" 50943 else 50944 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} \ 50945 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)" 50946 50947 if test "xBUILD" = "xTARGET"; then 50948 # On some platforms (mac) the linker warns about non existing -L dirs. 50949 # Add server first if available. Linking aginst client does not always produce the same results. 50950 # Only add client/minimal dir if client/minimal is being built. 50951 # Default to server for other variants. 50952 if [[ " $JVM_VARIANTS " =~ " server " ]] ; then 50953 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 50954 elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then 50955 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/client" 50956 elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 50957 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/minimal" 50958 else 50959 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 50960 fi 50961 elif test "xBUILD" = "xBUILD"; then 50962 # When building a buildjdk, it's always only the server variant 50963 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} \ 50964 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server" 50965 fi 50966 50967 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 50968 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50969 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 50970 fi 50971 50972 fi 50973 50974 # Set OPENJDK_BUILD_JVM_LIBS (per os) 50975 if test "x$OPENJDK_BUILD_OS" = xlinux; then 50976 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 50977 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 50978 # FIXME: This hard-coded path is not really proper. 50979 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 50980 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 50981 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 50982 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 50983 fi 50984 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 50985 -lthread -ldoor -lc -ldemangle -lnsl -lkstat -lrt" 50986 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 50987 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 50988 elif test "x$OPENJDK_BUILD_OS" = xaix; then 50989 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 50990 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 50991 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 50992 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 50993 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 50994 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 50995 wsock32.lib winmm.lib version.lib psapi.lib" 50996 fi 50997 50998 # Set OPENJDK_BUILD_JVM_ASFLAGS 50999 if test "x$OPENJDK_BUILD_OS" = xlinux; then 51000 if test "x$OPENJDK_BUILD_CPU" = xx86; then 51001 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 51002 fi 51003 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 51004 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 51005 fi 51006 51007 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 51008 51009 51010 51011 51012 51013 51014 51015 51016 51017 51018 51019 51020 51021 51022 51023 # Tests are only ever compiled for TARGET 51024 # Flags for compiling test libraries 51025 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 51026 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 51027 51028 # Flags for compiling test executables 51029 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 51030 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 51031 51032 51033 51034 51035 51036 51037 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 51038 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE" 51039 51040 51041 51042 51043 51044 51045 # Some Zero and Shark settings. 51046 # ZERO_ARCHFLAG tells the compiler which mode to build for 51047 case "${OPENJDK_TARGET_CPU}" in 51048 s390) 51049 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 51050 ;; 51051 *) 51052 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51053 esac 51054 51055 51056 51057 51058 51059 51060 51061 51062 51063 51064 51065 51066 51067 51068 51069 51070 51071 51072 51073 51074 51075 51076 51077 51078 51079 51080 51081 51082 51083 51084 51085 51086 51087 51088 51089 51090 51091 51092 51093 51094 51095 51096 # Execute function body 51097 51098 51099 51100 51101 51102 51103 51104 51105 51106 51107 51108 51109 51110 51111 51112 51113 51114 51115 51116 51117 51118 51119 51120 51121 51122 51123 51124 51125 51126 51127 51128 51129 51130 51131 51132 51133 51134 51135 51136 51137 51138 51139 51140 51141 51142 51143 51144 51145 # Execute function body 51146 51147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 51148 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51149 supports=yes 51150 51151 saved_cflags="$CFLAGS" 51152 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 51153 ac_ext=c 51154 ac_cpp='$CPP $CPPFLAGS' 51155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51157 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51158 51159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51160 /* end confdefs.h. */ 51161 int i; 51162 _ACEOF 51163 if ac_fn_c_try_compile "$LINENO"; then : 51164 51165 else 51166 supports=no 51167 fi 51168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51169 ac_ext=cpp 51170 ac_cpp='$CXXCPP $CPPFLAGS' 51171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51174 51175 CFLAGS="$saved_cflags" 51176 51177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51178 $as_echo "$supports" >&6; } 51179 if test "x$supports" = "xyes" ; then 51180 : 51181 C_COMP_SUPPORTS="yes" 51182 else 51183 : 51184 C_COMP_SUPPORTS="no" 51185 fi 51186 51187 51188 51189 51190 51191 51192 51193 51194 51195 51196 51197 51198 51199 51200 51201 51202 51203 51204 51205 51206 51207 51208 51209 51210 51211 51212 51213 51214 51215 51216 51217 51218 51219 51220 51221 51222 51223 51224 51225 51226 51227 51228 51229 51230 51231 51232 51233 51234 51235 51236 51237 51238 51239 51240 51241 51242 51243 51244 51245 # Execute function body 51246 51247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 51248 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 51249 supports=yes 51250 51251 saved_cxxflags="$CXXFLAGS" 51252 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 51253 ac_ext=cpp 51254 ac_cpp='$CXXCPP $CPPFLAGS' 51255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51258 51259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51260 /* end confdefs.h. */ 51261 int i; 51262 _ACEOF 51263 if ac_fn_cxx_try_compile "$LINENO"; then : 51264 51265 else 51266 supports=no 51267 fi 51268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51269 ac_ext=cpp 51270 ac_cpp='$CXXCPP $CPPFLAGS' 51271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51274 51275 CXXFLAGS="$saved_cxxflags" 51276 51277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51278 $as_echo "$supports" >&6; } 51279 if test "x$supports" = "xyes" ; then 51280 : 51281 CXX_COMP_SUPPORTS="yes" 51282 else 51283 : 51284 CXX_COMP_SUPPORTS="no" 51285 fi 51286 51287 51288 51289 51290 51291 51292 51293 51294 51295 51296 51297 51298 51299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 51300 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 51301 supports=no 51302 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51303 51304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51305 $as_echo "$supports" >&6; } 51306 if test "x$supports" = "xyes" ; then 51307 : 51308 51309 else 51310 : 51311 ZERO_ARCHFLAG="" 51312 fi 51313 51314 51315 51316 51317 51318 51319 51320 51321 # Check that the compiler supports -mX (or -qX on AIX) flags 51322 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 51323 51324 51325 51326 51327 51328 51329 51330 51331 51332 51333 51334 51335 51336 51337 51338 51339 51340 51341 51342 51343 51344 51345 51346 51347 51348 51349 51350 51351 51352 51353 51354 51355 51356 51357 51358 51359 51360 51361 51362 51363 51364 51365 51366 51367 51368 51369 51370 # Execute function body 51371 51372 51373 51374 51375 51376 51377 51378 51379 51380 51381 51382 51383 51384 51385 51386 51387 51388 51389 51390 51391 51392 51393 51394 51395 51396 51397 51398 51399 51400 51401 51402 51403 51404 51405 51406 51407 51408 51409 51410 51411 51412 51413 51414 51415 51416 51417 51418 51419 # Execute function body 51420 51421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51422 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51423 supports=yes 51424 51425 saved_cflags="$CFLAGS" 51426 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51427 ac_ext=c 51428 ac_cpp='$CPP $CPPFLAGS' 51429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51431 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51432 51433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51434 /* end confdefs.h. */ 51435 int i; 51436 _ACEOF 51437 if ac_fn_c_try_compile "$LINENO"; then : 51438 51439 else 51440 supports=no 51441 fi 51442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51443 ac_ext=cpp 51444 ac_cpp='$CXXCPP $CPPFLAGS' 51445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51448 51449 CFLAGS="$saved_cflags" 51450 51451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51452 $as_echo "$supports" >&6; } 51453 if test "x$supports" = "xyes" ; then 51454 : 51455 C_COMP_SUPPORTS="yes" 51456 else 51457 : 51458 C_COMP_SUPPORTS="no" 51459 fi 51460 51461 51462 51463 51464 51465 51466 51467 51468 51469 51470 51471 51472 51473 51474 51475 51476 51477 51478 51479 51480 51481 51482 51483 51484 51485 51486 51487 51488 51489 51490 51491 51492 51493 51494 51495 51496 51497 51498 51499 51500 51501 51502 51503 51504 51505 51506 51507 51508 51509 51510 51511 51512 51513 51514 51515 51516 51517 51518 51519 # Execute function body 51520 51521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51522 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51523 supports=yes 51524 51525 saved_cxxflags="$CXXFLAGS" 51526 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51527 ac_ext=cpp 51528 ac_cpp='$CXXCPP $CPPFLAGS' 51529 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51530 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51531 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51532 51533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51534 /* end confdefs.h. */ 51535 int i; 51536 _ACEOF 51537 if ac_fn_cxx_try_compile "$LINENO"; then : 51538 51539 else 51540 supports=no 51541 fi 51542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51543 ac_ext=cpp 51544 ac_cpp='$CXXCPP $CPPFLAGS' 51545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51548 51549 CXXFLAGS="$saved_cxxflags" 51550 51551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51552 $as_echo "$supports" >&6; } 51553 if test "x$supports" = "xyes" ; then 51554 : 51555 CXX_COMP_SUPPORTS="yes" 51556 else 51557 : 51558 CXX_COMP_SUPPORTS="no" 51559 fi 51560 51561 51562 51563 51564 51565 51566 51567 51568 51569 51570 51571 51572 51573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 51574 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 51575 supports=no 51576 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51577 51578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51579 $as_echo "$supports" >&6; } 51580 if test "x$supports" = "xyes" ; then 51581 : 51582 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 51583 else 51584 : 51585 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 51586 fi 51587 51588 51589 51590 51591 51592 51593 51594 51595 # Check whether --enable-warnings-as-errors was given. 51596 if test "${enable_warnings_as_errors+set}" = set; then : 51597 enableval=$enable_warnings_as_errors; 51598 fi 51599 51600 51601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 51602 $as_echo_n "checking if native warnings are errors... " >&6; } 51603 if test "x$enable_warnings_as_errors" = "xyes"; then 51604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitely set)" >&5 51605 $as_echo "yes (explicitely set)" >&6; } 51606 WARNINGS_AS_ERRORS=true 51607 elif test "x$enable_warnings_as_errors" = "xno"; then 51608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51609 $as_echo "no" >&6; } 51610 WARNINGS_AS_ERRORS=false 51611 elif test "x$enable_warnings_as_errors" = "x"; then 51612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 51613 $as_echo "yes (default)" >&6; } 51614 WARNINGS_AS_ERRORS=true 51615 else 51616 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 51617 fi 51618 51619 if test "x$WARNINGS_AS_ERRORS" = "xfalse"; then 51620 # Set legacy hotspot variable 51621 HOTSPOT_SET_WARNINGS_AS_ERRORS="WARNINGS_ARE_ERRORS=" 51622 else 51623 HOTSPOT_SET_WARNINGS_AS_ERRORS="" 51624 fi 51625 51626 51627 51628 51629 case "${TOOLCHAIN_TYPE}" in 51630 microsoft) 51631 DISABLE_WARNING_PREFIX="-wd" 51632 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 51633 ;; 51634 solstudio) 51635 DISABLE_WARNING_PREFIX="-erroff=" 51636 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 51637 ;; 51638 gcc) 51639 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 51640 51641 51642 51643 51644 51645 51646 51647 51648 51649 51650 51651 51652 51653 51654 51655 51656 51657 51658 51659 51660 51661 51662 51663 51664 51665 51666 51667 51668 51669 51670 51671 51672 51673 51674 51675 51676 51677 51678 51679 51680 51681 51682 51683 51684 51685 51686 51687 # Execute function body 51688 51689 51690 51691 51692 51693 51694 51695 51696 51697 51698 51699 51700 51701 51702 51703 51704 51705 51706 51707 51708 51709 51710 51711 51712 51713 51714 51715 51716 51717 51718 51719 51720 51721 51722 51723 51724 51725 51726 51727 51728 51729 51730 51731 51732 51733 51734 51735 51736 # Execute function body 51737 51738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 51739 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 51740 supports=yes 51741 51742 saved_cflags="$CFLAGS" 51743 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 51744 ac_ext=c 51745 ac_cpp='$CPP $CPPFLAGS' 51746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51748 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51749 51750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51751 /* end confdefs.h. */ 51752 int i; 51753 _ACEOF 51754 if ac_fn_c_try_compile "$LINENO"; then : 51755 51756 else 51757 supports=no 51758 fi 51759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51760 ac_ext=cpp 51761 ac_cpp='$CXXCPP $CPPFLAGS' 51762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51765 51766 CFLAGS="$saved_cflags" 51767 51768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51769 $as_echo "$supports" >&6; } 51770 if test "x$supports" = "xyes" ; then 51771 : 51772 C_COMP_SUPPORTS="yes" 51773 else 51774 : 51775 C_COMP_SUPPORTS="no" 51776 fi 51777 51778 51779 51780 51781 51782 51783 51784 51785 51786 51787 51788 51789 51790 51791 51792 51793 51794 51795 51796 51797 51798 51799 51800 51801 51802 51803 51804 51805 51806 51807 51808 51809 51810 51811 51812 51813 51814 51815 51816 51817 51818 51819 51820 51821 51822 51823 51824 51825 51826 51827 51828 51829 51830 51831 51832 51833 51834 51835 51836 # Execute function body 51837 51838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 51839 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 51840 supports=yes 51841 51842 saved_cxxflags="$CXXFLAGS" 51843 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 51844 ac_ext=cpp 51845 ac_cpp='$CXXCPP $CPPFLAGS' 51846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51849 51850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51851 /* end confdefs.h. */ 51852 int i; 51853 _ACEOF 51854 if ac_fn_cxx_try_compile "$LINENO"; then : 51855 51856 else 51857 supports=no 51858 fi 51859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51860 ac_ext=cpp 51861 ac_cpp='$CXXCPP $CPPFLAGS' 51862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51865 51866 CXXFLAGS="$saved_cxxflags" 51867 51868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51869 $as_echo "$supports" >&6; } 51870 if test "x$supports" = "xyes" ; then 51871 : 51872 CXX_COMP_SUPPORTS="yes" 51873 else 51874 : 51875 CXX_COMP_SUPPORTS="no" 51876 fi 51877 51878 51879 51880 51881 51882 51883 51884 51885 51886 51887 51888 51889 51890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 51891 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 51892 supports=no 51893 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51894 51895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51896 $as_echo "$supports" >&6; } 51897 if test "x$supports" = "xyes" ; then 51898 : 51899 GCC_CAN_DISABLE_WARNINGS=true 51900 else 51901 : 51902 GCC_CAN_DISABLE_WARNINGS=false 51903 51904 fi 51905 51906 51907 51908 51909 51910 51911 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 51912 DISABLE_WARNING_PREFIX="-Wno-" 51913 else 51914 DISABLE_WARNING_PREFIX= 51915 fi 51916 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 51917 # Repeate the check for the BUILD_CC 51918 CC_OLD="$CC" 51919 CC="$BUILD_CC" 51920 51921 51922 51923 51924 51925 51926 51927 51928 51929 51930 51931 51932 51933 51934 51935 51936 51937 51938 51939 51940 51941 51942 51943 51944 51945 51946 51947 51948 51949 51950 51951 51952 51953 51954 51955 51956 51957 51958 51959 51960 51961 51962 51963 51964 51965 51966 51967 # Execute function body 51968 51969 51970 51971 51972 51973 51974 51975 51976 51977 51978 51979 51980 51981 51982 51983 51984 51985 51986 51987 51988 51989 51990 51991 51992 51993 51994 51995 51996 51997 51998 51999 52000 52001 52002 52003 52004 52005 52006 52007 52008 52009 52010 52011 52012 52013 52014 52015 52016 # Execute function body 52017 52018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52019 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52020 supports=yes 52021 52022 saved_cflags="$CFLAGS" 52023 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 52024 ac_ext=c 52025 ac_cpp='$CPP $CPPFLAGS' 52026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52028 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52029 52030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52031 /* end confdefs.h. */ 52032 int i; 52033 _ACEOF 52034 if ac_fn_c_try_compile "$LINENO"; then : 52035 52036 else 52037 supports=no 52038 fi 52039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52040 ac_ext=cpp 52041 ac_cpp='$CXXCPP $CPPFLAGS' 52042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52045 52046 CFLAGS="$saved_cflags" 52047 52048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52049 $as_echo "$supports" >&6; } 52050 if test "x$supports" = "xyes" ; then 52051 : 52052 C_COMP_SUPPORTS="yes" 52053 else 52054 : 52055 C_COMP_SUPPORTS="no" 52056 fi 52057 52058 52059 52060 52061 52062 52063 52064 52065 52066 52067 52068 52069 52070 52071 52072 52073 52074 52075 52076 52077 52078 52079 52080 52081 52082 52083 52084 52085 52086 52087 52088 52089 52090 52091 52092 52093 52094 52095 52096 52097 52098 52099 52100 52101 52102 52103 52104 52105 52106 52107 52108 52109 52110 52111 52112 52113 52114 52115 52116 # Execute function body 52117 52118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52119 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52120 supports=yes 52121 52122 saved_cxxflags="$CXXFLAGS" 52123 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 52124 ac_ext=cpp 52125 ac_cpp='$CXXCPP $CPPFLAGS' 52126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52129 52130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52131 /* end confdefs.h. */ 52132 int i; 52133 _ACEOF 52134 if ac_fn_cxx_try_compile "$LINENO"; then : 52135 52136 else 52137 supports=no 52138 fi 52139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52140 ac_ext=cpp 52141 ac_cpp='$CXXCPP $CPPFLAGS' 52142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52145 52146 CXXFLAGS="$saved_cxxflags" 52147 52148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52149 $as_echo "$supports" >&6; } 52150 if test "x$supports" = "xyes" ; then 52151 : 52152 CXX_COMP_SUPPORTS="yes" 52153 else 52154 : 52155 CXX_COMP_SUPPORTS="no" 52156 fi 52157 52158 52159 52160 52161 52162 52163 52164 52165 52166 52167 52168 52169 52170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 52171 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 52172 supports=no 52173 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 52174 52175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52176 $as_echo "$supports" >&6; } 52177 if test "x$supports" = "xyes" ; then 52178 : 52179 BUILD_CC_CAN_DISABLE_WARNINGS=true 52180 else 52181 : 52182 BUILD_CC_CAN_DISABLE_WARNINGS=false 52183 52184 fi 52185 52186 52187 52188 52189 52190 52191 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 52192 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 52193 else 52194 BUILD_CC_DISABLE_WARNING_PREFIX= 52195 fi 52196 CC="$CC_OLD" 52197 ;; 52198 clang) 52199 DISABLE_WARNING_PREFIX="-Wno-" 52200 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 52201 ;; 52202 xlc) 52203 DISABLE_WARNING_PREFIX="-qsuppress=" 52204 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 52205 ;; 52206 esac 52207 52208 52209 52210 52211 52212 # Setup debug symbols (need objcopy from the toolchain for that) 52213 52214 # 52215 # NATIVE_DEBUG_SYMBOLS 52216 # This must be done after the toolchain is setup, since we're looking at objcopy. 52217 # 52218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 52219 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 52220 52221 # Check whether --with-native-debug-symbols was given. 52222 if test "${with_native_debug_symbols+set}" = set; then : 52223 withval=$with_native_debug_symbols; 52224 if test "x$OPENJDK_TARGET_OS" = xaix; then 52225 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 52226 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 52227 fi 52228 fi 52229 52230 else 52231 52232 if test "x$OPENJDK_TARGET_OS" = xaix; then 52233 # AIX doesn't support 'zipped' so use 'internal' as default 52234 with_native_debug_symbols="internal" 52235 else 52236 if test "x$STATIC_BUILD" = xtrue; then 52237 with_native_debug_symbols="none" 52238 else 52239 with_native_debug_symbols="zipped" 52240 fi 52241 fi 52242 52243 fi 52244 52245 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 52246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 52247 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 52248 52249 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 52250 52251 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52252 if test "x$OBJCOPY" = x; then 52253 # enabling of enable-debug-symbols and can't find objcopy 52254 # this is an error 52255 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52256 fi 52257 fi 52258 52259 COMPILE_WITH_DEBUG_SYMBOLS=true 52260 COPY_DEBUG_SYMBOLS=true 52261 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 52262 52263 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 52264 DEBUG_BINARIES=false 52265 STRIP_POLICY=min_strip 52266 52267 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 52268 COMPILE_WITH_DEBUG_SYMBOLS=false 52269 COPY_DEBUG_SYMBOLS=false 52270 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52271 52272 DEBUG_BINARIES=false 52273 STRIP_POLICY=no_strip 52274 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 52275 COMPILE_WITH_DEBUG_SYMBOLS=true 52276 COPY_DEBUG_SYMBOLS=false 52277 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52278 52279 # Hotspot legacy support, will turn on -g when COPY_DEBUG_SYMBOLS=false 52280 DEBUG_BINARIES=true 52281 STRIP_POLICY=no_strip 52282 STRIP="" 52283 52284 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 52285 52286 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 52287 if test "x$OBJCOPY" = x; then 52288 # enabling of enable-debug-symbols and can't find objcopy 52289 # this is an error 52290 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 52291 fi 52292 fi 52293 52294 COMPILE_WITH_DEBUG_SYMBOLS=true 52295 COPY_DEBUG_SYMBOLS=true 52296 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 52297 52298 # Hotspot legacy support, not relevant with COPY_DEBUG_SYMBOLS=true 52299 DEBUG_BINARIES=false 52300 STRIP_POLICY=min_strip 52301 else 52302 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 52303 fi 52304 52305 # --enable-debug-symbols is deprecated. 52306 # Please use --with-native-debug-symbols=[internal,external,zipped] . 52307 52308 # Check whether --enable-debug-symbols was given. 52309 if test "${enable_debug_symbols+set}" = set; then : 52310 enableval=$enable_debug_symbols; 52311 fi 52312 52313 if test "x$enable_debug_symbols" != x; then 52314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 52315 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 52316 52317 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 52318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 52319 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 52320 fi 52321 52322 fi 52323 52324 52325 # --enable-zip-debug-info is deprecated. 52326 # Please use --with-native-debug-symbols=zipped . 52327 52328 # Check whether --enable-zip-debug-info was given. 52329 if test "${enable_zip_debug_info+set}" = set; then : 52330 enableval=$enable_zip_debug_info; 52331 fi 52332 52333 if test "x$enable_zip_debug_info" != x; then 52334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 52335 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 52336 52337 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 52338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 52339 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 52340 fi 52341 52342 fi 52343 52344 52345 52346 52347 52348 52349 # Legacy values 52350 52351 52352 52353 52354 # Check whether --enable-native-coverage was given. 52355 if test "${enable_native_coverage+set}" = set; then : 52356 enableval=$enable_native_coverage; 52357 fi 52358 52359 GCOV_ENABLED="false" 52360 if test "x$enable_native_coverage" = "xyes"; then 52361 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 52362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52363 $as_echo_n "checking if native coverage is enabled... " >&6; } 52364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52365 $as_echo "yes" >&6; } 52366 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 52367 GCOV_LDFLAGS="-fprofile-arcs" 52368 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 52369 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 52370 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 52371 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 52372 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 52373 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 52374 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 52375 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 52376 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 52377 GCOV_ENABLED="true" 52378 else 52379 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 52380 fi 52381 elif test "x$enable_native_coverage" = "xno"; then 52382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 52383 $as_echo_n "checking if native coverage is enabled... " >&6; } 52384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52385 $as_echo "no" >&6; } 52386 elif test "x$enable_native_coverage" != "x"; then 52387 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 52388 fi 52389 52390 52391 52392 52393 # Need toolchain to setup dtrace 52394 52395 # Test for dtrace dependencies 52396 # Check whether --enable-dtrace was given. 52397 if test "${enable_dtrace+set}" = set; then : 52398 enableval=$enable_dtrace; 52399 fi 52400 52401 52402 DTRACE_DEP_MISSING=false 52403 52404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 52405 $as_echo_n "checking for dtrace tool... " >&6; } 52406 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 52407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 52408 $as_echo "$DTRACE" >&6; } 52409 else 52410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 52411 $as_echo "not found, cannot build dtrace" >&6; } 52412 DTRACE_DEP_MISSING=true 52413 fi 52414 52415 for ac_header in sys/sdt.h 52416 do : 52417 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 52418 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 52419 cat >>confdefs.h <<_ACEOF 52420 #define HAVE_SYS_SDT_H 1 52421 _ACEOF 52422 DTRACE_HEADERS_OK=yes 52423 else 52424 DTRACE_HEADERS_OK=no 52425 fi 52426 52427 done 52428 52429 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 52430 DTRACE_DEP_MISSING=true 52431 fi 52432 52433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 52434 $as_echo_n "checking if dtrace should be built... " >&6; } 52435 if test "x$enable_dtrace" = "xyes"; then 52436 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52438 $as_echo "no, missing dependencies" >&6; } 52439 52440 # Print a helpful message on how to acquire the necessary build dependency. 52441 # dtrace is the help tag: freetype, cups, alsa etc 52442 MISSING_DEPENDENCY=dtrace 52443 52444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52445 cygwin_help $MISSING_DEPENDENCY 52446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52447 msys_help $MISSING_DEPENDENCY 52448 else 52449 PKGHANDLER_COMMAND= 52450 52451 case $PKGHANDLER in 52452 apt-get) 52453 apt_help $MISSING_DEPENDENCY ;; 52454 yum) 52455 yum_help $MISSING_DEPENDENCY ;; 52456 port) 52457 port_help $MISSING_DEPENDENCY ;; 52458 pkgutil) 52459 pkgutil_help $MISSING_DEPENDENCY ;; 52460 pkgadd) 52461 pkgadd_help $MISSING_DEPENDENCY ;; 52462 esac 52463 52464 if test "x$PKGHANDLER_COMMAND" != x; then 52465 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 52466 fi 52467 fi 52468 52469 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 52470 else 52471 INCLUDE_DTRACE=true 52472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 52473 $as_echo "yes, forced" >&6; } 52474 fi 52475 elif test "x$enable_dtrace" = "xno"; then 52476 INCLUDE_DTRACE=false 52477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 52478 $as_echo "no, forced" >&6; } 52479 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 52480 if test "x$OPENJDK_TARGET_OS" = "xlinux" && test "x$OPENJDK" != "xtrue"; then 52481 INCLUDE_DTRACE=false 52482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, non-open linux build" >&5 52483 $as_echo "no, non-open linux build" >&6; } 52484 elif test "x$DTRACE_DEP_MISSING" = "xtrue"; then 52485 INCLUDE_DTRACE=false 52486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 52487 $as_echo "no, missing dependencies" >&6; } 52488 else 52489 INCLUDE_DTRACE=true 52490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 52491 $as_echo "yes, dependencies present" >&6; } 52492 fi 52493 else 52494 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 52495 fi 52496 52497 52498 52499 # The user can in some cases supply additional jvm features. For the custom 52500 # variant, this defines the entire variant. 52501 52502 # Check whether --with-jvm-features was given. 52503 if test "${with_jvm_features+set}" = set; then : 52504 withval=$with_jvm_features; 52505 fi 52506 52507 if test "x$with_jvm_features" != x; then 52508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 52509 $as_echo_n "checking additional JVM features... " >&6; } 52510 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 52511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 52512 $as_echo "$JVM_FEATURES" >&6; } 52513 fi 52514 52515 # Verify that dependencies are met for explicitly set features. 52516 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 52517 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 52518 fi 52519 52520 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 52521 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 52522 fi 52523 52524 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! [[ " $JVM_FEATURES " =~ " compiler2 " ]] ; then 52525 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2'" "$LINENO" 5 52526 fi 52527 52528 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 52529 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 52530 fi 52531 52532 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 52533 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 52534 fi 52535 52536 # Turn on additional features based on other parts of configure 52537 if test "x$INCLUDE_DTRACE" = "xtrue"; then 52538 JVM_FEATURES="$JVM_FEATURES dtrace" 52539 else 52540 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 52541 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 52542 fi 52543 fi 52544 52545 if test "x$STATIC_BUILD" = "xtrue"; then 52546 JVM_FEATURES="$JVM_FEATURES static-build" 52547 else 52548 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 52549 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 52550 fi 52551 fi 52552 52553 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] && ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52554 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 52555 as_fn_error $? "To enable zero/zeroshark, you must use --with-jvm-variants=zero/zeroshark" "$LINENO" 5 52556 fi 52557 fi 52558 52559 if ! [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52560 if [[ " $JVM_FEATURES " =~ " shark " ]] ; then 52561 as_fn_error $? "To enable shark, you must use --with-jvm-variants=zeroshark" "$LINENO" 5 52562 fi 52563 fi 52564 52565 # Only enable jvmci on x86_64, sparcv9 and aarch64, and only on server. 52566 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 52567 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 52568 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 52569 JVM_FEATURES_jvmci="jvmci" 52570 else 52571 JVM_FEATURES_jvmci="" 52572 fi 52573 52574 # All variants but minimal (and custom) get these features 52575 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti fprof vm-structs jni-check services management all-gcs nmt cds" 52576 52577 # Enable features depending on variant. 52578 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 52579 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES" 52580 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 52581 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES" 52582 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 52583 JVM_FEATURES_zeroshark="zero shark $NON_MINIMAL_FEATURES $JVM_FEATURES" 52584 JVM_FEATURES_custom="$JVM_FEATURES" 52585 52586 52587 52588 52589 52590 52591 52592 52593 52594 # Used for verification of Makefiles by check-jvm-feature 52595 52596 52597 # We don't support --with-jvm-interpreter anymore, use zero instead. 52598 52599 52600 # Check whether --with-jvm-interpreter was given. 52601 if test "${with_jvm_interpreter+set}" = set; then : 52602 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 52603 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 52604 fi 52605 52606 52607 52608 52609 ############################################################################### 52610 # 52611 # Check dependencies for external and internal libraries. 52612 # 52613 ############################################################################### 52614 52615 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 52616 52617 # When using cygwin or msys, we need a wrapper binary that renames 52618 # /cygdrive/c/ arguments into c:/ arguments and peeks into 52619 # @files and rewrites these too! This wrapper binary is 52620 # called fixpath. 52621 FIXPATH= 52622 if test "x$OPENJDK_BUILD_OS" = xwindows; then 52623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 52624 $as_echo_n "checking if fixpath can be created... " >&6; } 52625 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 52626 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 52627 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 52628 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 52629 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 52630 FIXPATH="$FIXPATH_BIN -c" 52631 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 52632 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 52633 # @ was chosen as separator to minimize risk of other tools messing around with it 52634 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 52635 | tr ' ' '\n' | grep '^/./' | sort | uniq` 52636 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 52637 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 52638 fi 52639 FIXPATH_SRC_W="$FIXPATH_SRC" 52640 FIXPATH_BIN_W="$FIXPATH_BIN" 52641 52642 unix_path="$FIXPATH_SRC_W" 52643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52644 windows_path=`$CYGPATH -m "$unix_path"` 52645 FIXPATH_SRC_W="$windows_path" 52646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52647 windows_path=`cmd //c echo $unix_path` 52648 FIXPATH_SRC_W="$windows_path" 52649 fi 52650 52651 52652 unix_path="$FIXPATH_BIN_W" 52653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52654 windows_path=`$CYGPATH -m "$unix_path"` 52655 FIXPATH_BIN_W="$windows_path" 52656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52657 windows_path=`cmd //c echo $unix_path` 52658 FIXPATH_BIN_W="$windows_path" 52659 fi 52660 52661 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 52662 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 52663 cd $FIXPATH_DIR 52664 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 52665 cd $CURDIR 52666 52667 if test ! -x $FIXPATH_BIN; then 52668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52669 $as_echo "no" >&6; } 52670 cat $FIXPATH_DIR/fixpath1.log 52671 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 52672 fi 52673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52674 $as_echo "yes" >&6; } 52675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 52676 $as_echo_n "checking if fixpath.exe works... " >&6; } 52677 cd $FIXPATH_DIR 52678 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 52679 > $FIXPATH_DIR/fixpath2.log 2>&1 52680 cd $CURDIR 52681 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 52682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52683 $as_echo "no" >&6; } 52684 cat $FIXPATH_DIR/fixpath2.log 52685 as_fn_error $? "fixpath did not work!" "$LINENO" 5 52686 fi 52687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52688 $as_echo "yes" >&6; } 52689 52690 FIXPATH_DETACH_FLAG="--detach" 52691 fi 52692 52693 52694 52695 52696 52697 52698 # Check if X11 is needed 52699 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 52700 # No X11 support on windows or macosx 52701 NEEDS_LIB_X11=false 52702 else 52703 if test "x$SUPPORT_HEADFUL" = xno; then 52704 # No X11 support if building headless-only 52705 NEEDS_LIB_X11=false 52706 else 52707 # All other instances need X11 52708 NEEDS_LIB_X11=true 52709 fi 52710 fi 52711 52712 # Check if cups is needed 52713 if test "x$OPENJDK_TARGET_OS" = xwindows; then 52714 # Windows have a separate print system 52715 NEEDS_LIB_CUPS=false 52716 else 52717 NEEDS_LIB_CUPS=true 52718 fi 52719 52720 # Check if freetype is needed 52721 if test "x$OPENJDK" = "xtrue"; then 52722 NEEDS_LIB_FREETYPE=true 52723 else 52724 NEEDS_LIB_FREETYPE=false 52725 fi 52726 52727 # Check if alsa is needed 52728 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52729 NEEDS_LIB_ALSA=true 52730 else 52731 NEEDS_LIB_ALSA=false 52732 fi 52733 52734 # Check if ffi is needed 52735 if [[ " $JVM_VARIANTS " =~ " zero " ]] || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52736 NEEDS_LIB_FFI=true 52737 else 52738 NEEDS_LIB_FFI=false 52739 fi 52740 52741 52742 # statically link libstdc++ before C++ ABI is stablized on Linux unless 52743 # dynamic build is configured on command line. 52744 52745 # Check whether --with-stdc++lib was given. 52746 if test "${with_stdc__lib+set}" = set; then : 52747 withval=$with_stdc__lib; 52748 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 52749 && test "x$with_stdc__lib" != xdefault; then 52750 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 52751 fi 52752 52753 else 52754 with_stdc__lib=default 52755 52756 fi 52757 52758 52759 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52760 # Test if -lstdc++ works. 52761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 52762 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 52763 ac_ext=cpp 52764 ac_cpp='$CXXCPP $CPPFLAGS' 52765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52768 52769 OLD_CXXFLAGS="$CXXFLAGS" 52770 CXXFLAGS="$CXXFLAGS -lstdc++" 52771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52772 /* end confdefs.h. */ 52773 52774 int 52775 main () 52776 { 52777 return 0; 52778 ; 52779 return 0; 52780 } 52781 _ACEOF 52782 if ac_fn_cxx_try_link "$LINENO"; then : 52783 has_dynamic_libstdcxx=yes 52784 else 52785 has_dynamic_libstdcxx=no 52786 fi 52787 rm -f core conftest.err conftest.$ac_objext \ 52788 conftest$ac_exeext conftest.$ac_ext 52789 CXXFLAGS="$OLD_CXXFLAGS" 52790 ac_ext=cpp 52791 ac_cpp='$CXXCPP $CPPFLAGS' 52792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52795 52796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 52797 $as_echo "$has_dynamic_libstdcxx" >&6; } 52798 52799 # Test if stdc++ can be linked statically. 52800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 52801 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 52802 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 52803 ac_ext=cpp 52804 ac_cpp='$CXXCPP $CPPFLAGS' 52805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52808 52809 OLD_LIBS="$LIBS" 52810 OLD_CXX="$CXX" 52811 LIBS="$STATIC_STDCXX_FLAGS" 52812 CXX="$CC" 52813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52814 /* end confdefs.h. */ 52815 52816 int 52817 main () 52818 { 52819 return 0; 52820 ; 52821 return 0; 52822 } 52823 _ACEOF 52824 if ac_fn_cxx_try_link "$LINENO"; then : 52825 has_static_libstdcxx=yes 52826 else 52827 has_static_libstdcxx=no 52828 fi 52829 rm -f core conftest.err conftest.$ac_objext \ 52830 conftest$ac_exeext conftest.$ac_ext 52831 LIBS="$OLD_LIBS" 52832 CXX="$OLD_CXX" 52833 ac_ext=cpp 52834 ac_cpp='$CXXCPP $CPPFLAGS' 52835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52838 52839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 52840 $as_echo "$has_static_libstdcxx" >&6; } 52841 52842 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 52843 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 52844 fi 52845 52846 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 52847 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 52848 fi 52849 52850 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 52851 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 52852 fi 52853 52854 # If dynamic was requested, it's available since it would fail above otherwise. 52855 # If dynamic wasn't requested, go with static unless it isn't available. 52856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 52857 $as_echo_n "checking how to link with libstdc++... " >&6; } 52858 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 52859 LIBCXX="$LIBCXX -lstdc++" 52860 # To help comparisons with old build, put stdc++ first in JVM_LIBS 52861 JVM_LIBS="-lstdc++ $JVM_LIBS" 52862 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 52863 # just use the same setting as for the TARGET toolchain. 52864 OPENJDK_BUILD_JVM_LIBS="-lstdc++ $OPENJDK_BUILD_JVM_LIBS" 52865 LDCXX="$CXX" 52866 STATIC_CXX_SETTING="STATIC_CXX=false" 52867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 52868 $as_echo "dynamic" >&6; } 52869 else 52870 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 52871 JVM_LDFLAGS="$JVM_LDFLAGS -static-libgcc" 52872 # To help comparisons with old build, put stdc++ first in JVM_LIBS 52873 JVM_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic $JVM_LIBS" 52874 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 52875 # just use the same setting as for the TARGET toolchain. 52876 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -static-libgcc" 52877 OPENJDK_BUILD_JVM_LIBS="-Wl,-Bstatic -lstdc++ -Wl,-Bdynamic $OPENJDK_BUILD_JVM_LIBS" 52878 LDCXX="$CC" 52879 STATIC_CXX_SETTING="STATIC_CXX=true" 52880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 52881 $as_echo "static" >&6; } 52882 fi 52883 fi 52884 52885 52886 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 52887 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 52888 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 52889 fi 52890 52891 # TODO better (platform agnostic) test 52892 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 52893 LIBCXX="-lstdc++" 52894 fi 52895 52896 52897 # Setup Windows runtime dlls 52898 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 52899 52900 52901 # Check whether --with-msvcr-dll was given. 52902 if test "${with_msvcr_dll+set}" = set; then : 52903 withval=$with_msvcr_dll; 52904 fi 52905 52906 52907 if test "x$with_msvcr_dll" != x; then 52908 # If given explicitely by user, do not probe. If not present, fail directly. 52909 52910 DLL_NAME="$MSVCR_NAME" 52911 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 52912 METHOD="--with-msvcr-dll" 52913 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 52914 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 52915 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 52916 52917 # Need to check if the found msvcr is correct architecture 52918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 52919 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 52920 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 52921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52922 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 52923 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 52924 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 52925 CORRECT_MSVCR_ARCH="PE32 executable" 52926 else 52927 CORRECT_MSVCR_ARCH="PE32+ executable" 52928 fi 52929 else 52930 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 52931 CORRECT_MSVCR_ARCH=386 52932 else 52933 CORRECT_MSVCR_ARCH=x86-64 52934 fi 52935 fi 52936 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 52937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 52938 $as_echo "ok" >&6; } 52939 MSVC_DLL="$POSSIBLE_MSVC_DLL" 52940 52941 # Only process if variable expands to non-empty 52942 52943 if test "x$MSVC_DLL" != x; then 52944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52945 52946 # Input might be given as Windows format, start by converting to 52947 # unix format. 52948 path="$MSVC_DLL" 52949 new_path=`$CYGPATH -u "$path"` 52950 52951 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 52952 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 52953 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 52954 # "foo.exe" is OK but "foo" is an error. 52955 # 52956 # This test is therefore slightly more accurate than "test -f" to check for file precense. 52957 # It is also a way to make sure we got the proper file name for the real test later on. 52958 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 52959 if test "x$test_shortpath" = x; then 52960 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 52961 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 52962 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 52963 fi 52964 52965 # Call helper function which possibly converts this using DOS-style short mode. 52966 # If so, the updated path is stored in $new_path. 52967 52968 input_path="$new_path" 52969 # Check if we need to convert this using DOS-style short mode. If the path 52970 # contains just simple characters, use it. Otherwise (spaces, weird characters), 52971 # take no chances and rewrite it. 52972 # Note: m4 eats our [], so we need to use [ and ] instead. 52973 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 52974 if test "x$has_forbidden_chars" != x; then 52975 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 52976 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 52977 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 52978 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 52979 # Going to short mode and back again did indeed matter. Since short mode is 52980 # case insensitive, let's make it lowercase to improve readability. 52981 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 52982 # Now convert it back to Unix-style (cygpath) 52983 input_path=`$CYGPATH -u "$shortmode_path"` 52984 new_path="$input_path" 52985 fi 52986 fi 52987 52988 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 52989 if test "x$test_cygdrive_prefix" = x; then 52990 # As a simple fix, exclude /usr/bin since it's not a real path. 52991 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 52992 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 52993 # a path prefixed by /cygdrive for fixpath to work. 52994 new_path="$CYGWIN_ROOT_PATH$input_path" 52995 fi 52996 fi 52997 52998 52999 if test "x$path" != "x$new_path"; then 53000 MSVC_DLL="$new_path" 53001 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53002 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53003 fi 53004 53005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53006 53007 path="$MSVC_DLL" 53008 has_colon=`$ECHO $path | $GREP ^.:` 53009 new_path="$path" 53010 if test "x$has_colon" = x; then 53011 # Not in mixed or Windows style, start by that. 53012 new_path=`cmd //c echo $path` 53013 fi 53014 53015 53016 input_path="$new_path" 53017 # Check if we need to convert this using DOS-style short mode. If the path 53018 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53019 # take no chances and rewrite it. 53020 # Note: m4 eats our [], so we need to use [ and ] instead. 53021 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53022 if test "x$has_forbidden_chars" != x; then 53023 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53024 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53025 fi 53026 53027 53028 windows_path="$new_path" 53029 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53030 unix_path=`$CYGPATH -u "$windows_path"` 53031 new_path="$unix_path" 53032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53033 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53034 new_path="$unix_path" 53035 fi 53036 53037 if test "x$path" != "x$new_path"; then 53038 MSVC_DLL="$new_path" 53039 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53040 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53041 fi 53042 53043 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53044 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53045 53046 else 53047 # We're on a unix platform. Hooray! :) 53048 path="$MSVC_DLL" 53049 has_space=`$ECHO "$path" | $GREP " "` 53050 if test "x$has_space" != x; then 53051 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53052 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53053 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53054 fi 53055 53056 # Use eval to expand a potential ~ 53057 eval path="$path" 53058 if test ! -f "$path" && test ! -d "$path"; then 53059 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53060 fi 53061 53062 if test -d "$path"; then 53063 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53064 else 53065 dir="`$DIRNAME "$path"`" 53066 base="`$BASENAME "$path"`" 53067 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53068 fi 53069 fi 53070 fi 53071 53072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53073 $as_echo_n "checking for $DLL_NAME... " >&6; } 53074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53075 $as_echo "$MSVC_DLL" >&6; } 53076 else 53077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53078 $as_echo "incorrect, ignoring" >&6; } 53079 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53080 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53081 fi 53082 fi 53083 53084 if test "x$MSVC_DLL" = x; then 53085 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 53086 fi 53087 MSVCR_DLL="$MSVC_DLL" 53088 elif test "x$DEVKIT_MSVCR_DLL" != x; then 53089 53090 DLL_NAME="$MSVCR_NAME" 53091 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 53092 METHOD="devkit" 53093 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53094 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53095 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53096 53097 # Need to check if the found msvcr is correct architecture 53098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53099 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53100 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53102 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53103 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53104 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53105 CORRECT_MSVCR_ARCH="PE32 executable" 53106 else 53107 CORRECT_MSVCR_ARCH="PE32+ executable" 53108 fi 53109 else 53110 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53111 CORRECT_MSVCR_ARCH=386 53112 else 53113 CORRECT_MSVCR_ARCH=x86-64 53114 fi 53115 fi 53116 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53118 $as_echo "ok" >&6; } 53119 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53120 53121 # Only process if variable expands to non-empty 53122 53123 if test "x$MSVC_DLL" != x; then 53124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53125 53126 # Input might be given as Windows format, start by converting to 53127 # unix format. 53128 path="$MSVC_DLL" 53129 new_path=`$CYGPATH -u "$path"` 53130 53131 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53132 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53133 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53134 # "foo.exe" is OK but "foo" is an error. 53135 # 53136 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53137 # It is also a way to make sure we got the proper file name for the real test later on. 53138 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53139 if test "x$test_shortpath" = x; then 53140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53141 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53142 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53143 fi 53144 53145 # Call helper function which possibly converts this using DOS-style short mode. 53146 # If so, the updated path is stored in $new_path. 53147 53148 input_path="$new_path" 53149 # Check if we need to convert this using DOS-style short mode. If the path 53150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53151 # take no chances and rewrite it. 53152 # Note: m4 eats our [], so we need to use [ and ] instead. 53153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53154 if test "x$has_forbidden_chars" != x; then 53155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53156 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53157 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53158 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53159 # Going to short mode and back again did indeed matter. Since short mode is 53160 # case insensitive, let's make it lowercase to improve readability. 53161 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53162 # Now convert it back to Unix-style (cygpath) 53163 input_path=`$CYGPATH -u "$shortmode_path"` 53164 new_path="$input_path" 53165 fi 53166 fi 53167 53168 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53169 if test "x$test_cygdrive_prefix" = x; then 53170 # As a simple fix, exclude /usr/bin since it's not a real path. 53171 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53172 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53173 # a path prefixed by /cygdrive for fixpath to work. 53174 new_path="$CYGWIN_ROOT_PATH$input_path" 53175 fi 53176 fi 53177 53178 53179 if test "x$path" != "x$new_path"; then 53180 MSVC_DLL="$new_path" 53181 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53182 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53183 fi 53184 53185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53186 53187 path="$MSVC_DLL" 53188 has_colon=`$ECHO $path | $GREP ^.:` 53189 new_path="$path" 53190 if test "x$has_colon" = x; then 53191 # Not in mixed or Windows style, start by that. 53192 new_path=`cmd //c echo $path` 53193 fi 53194 53195 53196 input_path="$new_path" 53197 # Check if we need to convert this using DOS-style short mode. If the path 53198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53199 # take no chances and rewrite it. 53200 # Note: m4 eats our [], so we need to use [ and ] instead. 53201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53202 if test "x$has_forbidden_chars" != x; then 53203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53204 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53205 fi 53206 53207 53208 windows_path="$new_path" 53209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53210 unix_path=`$CYGPATH -u "$windows_path"` 53211 new_path="$unix_path" 53212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53213 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53214 new_path="$unix_path" 53215 fi 53216 53217 if test "x$path" != "x$new_path"; then 53218 MSVC_DLL="$new_path" 53219 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53220 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53221 fi 53222 53223 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53224 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53225 53226 else 53227 # We're on a unix platform. Hooray! :) 53228 path="$MSVC_DLL" 53229 has_space=`$ECHO "$path" | $GREP " "` 53230 if test "x$has_space" != x; then 53231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53232 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53233 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53234 fi 53235 53236 # Use eval to expand a potential ~ 53237 eval path="$path" 53238 if test ! -f "$path" && test ! -d "$path"; then 53239 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53240 fi 53241 53242 if test -d "$path"; then 53243 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53244 else 53245 dir="`$DIRNAME "$path"`" 53246 base="`$BASENAME "$path"`" 53247 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53248 fi 53249 fi 53250 fi 53251 53252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53253 $as_echo_n "checking for $DLL_NAME... " >&6; } 53254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53255 $as_echo "$MSVC_DLL" >&6; } 53256 else 53257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53258 $as_echo "incorrect, ignoring" >&6; } 53259 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53260 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53261 fi 53262 fi 53263 53264 if test "x$MSVC_DLL" = x; then 53265 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 53266 fi 53267 MSVCR_DLL="$MSVC_DLL" 53268 else 53269 53270 DLL_NAME="${MSVCR_NAME}" 53271 MSVC_DLL= 53272 53273 if test "x$MSVC_DLL" = x; then 53274 # Probe: Using well-known location from Visual Studio 10.0 53275 if test "x$VCINSTALLDIR" != x; then 53276 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 53277 53278 windows_path="$CYGWIN_VC_INSTALL_DIR" 53279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53280 unix_path=`$CYGPATH -u "$windows_path"` 53281 CYGWIN_VC_INSTALL_DIR="$unix_path" 53282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53284 CYGWIN_VC_INSTALL_DIR="$unix_path" 53285 fi 53286 53287 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 53288 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53289 else 53290 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 53291 fi 53292 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 53293 53294 DLL_NAME="$DLL_NAME" 53295 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53296 METHOD="well-known location in VCINSTALLDIR" 53297 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53298 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53299 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53300 53301 # Need to check if the found msvcr is correct architecture 53302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53303 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53304 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53305 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53306 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53307 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53308 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53309 CORRECT_MSVCR_ARCH="PE32 executable" 53310 else 53311 CORRECT_MSVCR_ARCH="PE32+ executable" 53312 fi 53313 else 53314 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53315 CORRECT_MSVCR_ARCH=386 53316 else 53317 CORRECT_MSVCR_ARCH=x86-64 53318 fi 53319 fi 53320 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53322 $as_echo "ok" >&6; } 53323 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53324 53325 # Only process if variable expands to non-empty 53326 53327 if test "x$MSVC_DLL" != x; then 53328 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53329 53330 # Input might be given as Windows format, start by converting to 53331 # unix format. 53332 path="$MSVC_DLL" 53333 new_path=`$CYGPATH -u "$path"` 53334 53335 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53336 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53337 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53338 # "foo.exe" is OK but "foo" is an error. 53339 # 53340 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53341 # It is also a way to make sure we got the proper file name for the real test later on. 53342 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53343 if test "x$test_shortpath" = x; then 53344 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53345 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53346 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53347 fi 53348 53349 # Call helper function which possibly converts this using DOS-style short mode. 53350 # If so, the updated path is stored in $new_path. 53351 53352 input_path="$new_path" 53353 # Check if we need to convert this using DOS-style short mode. If the path 53354 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53355 # take no chances and rewrite it. 53356 # Note: m4 eats our [], so we need to use [ and ] instead. 53357 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53358 if test "x$has_forbidden_chars" != x; then 53359 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53360 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53361 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53362 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53363 # Going to short mode and back again did indeed matter. Since short mode is 53364 # case insensitive, let's make it lowercase to improve readability. 53365 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53366 # Now convert it back to Unix-style (cygpath) 53367 input_path=`$CYGPATH -u "$shortmode_path"` 53368 new_path="$input_path" 53369 fi 53370 fi 53371 53372 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53373 if test "x$test_cygdrive_prefix" = x; then 53374 # As a simple fix, exclude /usr/bin since it's not a real path. 53375 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53376 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53377 # a path prefixed by /cygdrive for fixpath to work. 53378 new_path="$CYGWIN_ROOT_PATH$input_path" 53379 fi 53380 fi 53381 53382 53383 if test "x$path" != "x$new_path"; then 53384 MSVC_DLL="$new_path" 53385 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53386 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53387 fi 53388 53389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53390 53391 path="$MSVC_DLL" 53392 has_colon=`$ECHO $path | $GREP ^.:` 53393 new_path="$path" 53394 if test "x$has_colon" = x; then 53395 # Not in mixed or Windows style, start by that. 53396 new_path=`cmd //c echo $path` 53397 fi 53398 53399 53400 input_path="$new_path" 53401 # Check if we need to convert this using DOS-style short mode. If the path 53402 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53403 # take no chances and rewrite it. 53404 # Note: m4 eats our [], so we need to use [ and ] instead. 53405 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53406 if test "x$has_forbidden_chars" != x; then 53407 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53408 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53409 fi 53410 53411 53412 windows_path="$new_path" 53413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53414 unix_path=`$CYGPATH -u "$windows_path"` 53415 new_path="$unix_path" 53416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53417 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53418 new_path="$unix_path" 53419 fi 53420 53421 if test "x$path" != "x$new_path"; then 53422 MSVC_DLL="$new_path" 53423 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53424 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53425 fi 53426 53427 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53428 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53429 53430 else 53431 # We're on a unix platform. Hooray! :) 53432 path="$MSVC_DLL" 53433 has_space=`$ECHO "$path" | $GREP " "` 53434 if test "x$has_space" != x; then 53435 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53436 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53437 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53438 fi 53439 53440 # Use eval to expand a potential ~ 53441 eval path="$path" 53442 if test ! -f "$path" && test ! -d "$path"; then 53443 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53444 fi 53445 53446 if test -d "$path"; then 53447 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53448 else 53449 dir="`$DIRNAME "$path"`" 53450 base="`$BASENAME "$path"`" 53451 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53452 fi 53453 fi 53454 fi 53455 53456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53457 $as_echo_n "checking for $DLL_NAME... " >&6; } 53458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53459 $as_echo "$MSVC_DLL" >&6; } 53460 else 53461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53462 $as_echo "incorrect, ignoring" >&6; } 53463 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53464 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53465 fi 53466 fi 53467 53468 fi 53469 fi 53470 53471 if test "x$MSVC_DLL" = x; then 53472 # Probe: Check in the Boot JDK directory. 53473 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 53474 53475 DLL_NAME="$DLL_NAME" 53476 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53477 METHOD="well-known location in Boot JDK" 53478 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53479 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53480 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53481 53482 # Need to check if the found msvcr is correct architecture 53483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53484 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53485 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53487 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53488 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53489 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53490 CORRECT_MSVCR_ARCH="PE32 executable" 53491 else 53492 CORRECT_MSVCR_ARCH="PE32+ executable" 53493 fi 53494 else 53495 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53496 CORRECT_MSVCR_ARCH=386 53497 else 53498 CORRECT_MSVCR_ARCH=x86-64 53499 fi 53500 fi 53501 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53503 $as_echo "ok" >&6; } 53504 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53505 53506 # Only process if variable expands to non-empty 53507 53508 if test "x$MSVC_DLL" != x; then 53509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53510 53511 # Input might be given as Windows format, start by converting to 53512 # unix format. 53513 path="$MSVC_DLL" 53514 new_path=`$CYGPATH -u "$path"` 53515 53516 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53517 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53518 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53519 # "foo.exe" is OK but "foo" is an error. 53520 # 53521 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53522 # It is also a way to make sure we got the proper file name for the real test later on. 53523 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53524 if test "x$test_shortpath" = x; then 53525 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53526 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53527 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53528 fi 53529 53530 # Call helper function which possibly converts this using DOS-style short mode. 53531 # If so, the updated path is stored in $new_path. 53532 53533 input_path="$new_path" 53534 # Check if we need to convert this using DOS-style short mode. If the path 53535 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53536 # take no chances and rewrite it. 53537 # Note: m4 eats our [], so we need to use [ and ] instead. 53538 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53539 if test "x$has_forbidden_chars" != x; then 53540 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53541 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53542 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53543 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53544 # Going to short mode and back again did indeed matter. Since short mode is 53545 # case insensitive, let's make it lowercase to improve readability. 53546 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53547 # Now convert it back to Unix-style (cygpath) 53548 input_path=`$CYGPATH -u "$shortmode_path"` 53549 new_path="$input_path" 53550 fi 53551 fi 53552 53553 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53554 if test "x$test_cygdrive_prefix" = x; then 53555 # As a simple fix, exclude /usr/bin since it's not a real path. 53556 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53557 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53558 # a path prefixed by /cygdrive for fixpath to work. 53559 new_path="$CYGWIN_ROOT_PATH$input_path" 53560 fi 53561 fi 53562 53563 53564 if test "x$path" != "x$new_path"; then 53565 MSVC_DLL="$new_path" 53566 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53567 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53568 fi 53569 53570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53571 53572 path="$MSVC_DLL" 53573 has_colon=`$ECHO $path | $GREP ^.:` 53574 new_path="$path" 53575 if test "x$has_colon" = x; then 53576 # Not in mixed or Windows style, start by that. 53577 new_path=`cmd //c echo $path` 53578 fi 53579 53580 53581 input_path="$new_path" 53582 # Check if we need to convert this using DOS-style short mode. If the path 53583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53584 # take no chances and rewrite it. 53585 # Note: m4 eats our [], so we need to use [ and ] instead. 53586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53587 if test "x$has_forbidden_chars" != x; then 53588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53589 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53590 fi 53591 53592 53593 windows_path="$new_path" 53594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53595 unix_path=`$CYGPATH -u "$windows_path"` 53596 new_path="$unix_path" 53597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53598 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53599 new_path="$unix_path" 53600 fi 53601 53602 if test "x$path" != "x$new_path"; then 53603 MSVC_DLL="$new_path" 53604 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53605 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53606 fi 53607 53608 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53609 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53610 53611 else 53612 # We're on a unix platform. Hooray! :) 53613 path="$MSVC_DLL" 53614 has_space=`$ECHO "$path" | $GREP " "` 53615 if test "x$has_space" != x; then 53616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53617 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53618 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53619 fi 53620 53621 # Use eval to expand a potential ~ 53622 eval path="$path" 53623 if test ! -f "$path" && test ! -d "$path"; then 53624 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53625 fi 53626 53627 if test -d "$path"; then 53628 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53629 else 53630 dir="`$DIRNAME "$path"`" 53631 base="`$BASENAME "$path"`" 53632 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53633 fi 53634 fi 53635 fi 53636 53637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53638 $as_echo_n "checking for $DLL_NAME... " >&6; } 53639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53640 $as_echo "$MSVC_DLL" >&6; } 53641 else 53642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53643 $as_echo "incorrect, ignoring" >&6; } 53644 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53645 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53646 fi 53647 fi 53648 53649 fi 53650 53651 if test "x$MSVC_DLL" = x; then 53652 # Probe: Look in the Windows system32 directory 53653 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 53654 53655 windows_path="$CYGWIN_SYSTEMROOT" 53656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53657 unix_path=`$CYGPATH -u "$windows_path"` 53658 CYGWIN_SYSTEMROOT="$unix_path" 53659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53660 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53661 CYGWIN_SYSTEMROOT="$unix_path" 53662 fi 53663 53664 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 53665 53666 DLL_NAME="$DLL_NAME" 53667 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53668 METHOD="well-known location in SYSTEMROOT" 53669 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53670 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53671 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53672 53673 # Need to check if the found msvcr is correct architecture 53674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53675 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53676 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53678 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53679 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53680 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53681 CORRECT_MSVCR_ARCH="PE32 executable" 53682 else 53683 CORRECT_MSVCR_ARCH="PE32+ executable" 53684 fi 53685 else 53686 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53687 CORRECT_MSVCR_ARCH=386 53688 else 53689 CORRECT_MSVCR_ARCH=x86-64 53690 fi 53691 fi 53692 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53694 $as_echo "ok" >&6; } 53695 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53696 53697 # Only process if variable expands to non-empty 53698 53699 if test "x$MSVC_DLL" != x; then 53700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53701 53702 # Input might be given as Windows format, start by converting to 53703 # unix format. 53704 path="$MSVC_DLL" 53705 new_path=`$CYGPATH -u "$path"` 53706 53707 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53708 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53709 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53710 # "foo.exe" is OK but "foo" is an error. 53711 # 53712 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53713 # It is also a way to make sure we got the proper file name for the real test later on. 53714 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53715 if test "x$test_shortpath" = x; then 53716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53717 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53718 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53719 fi 53720 53721 # Call helper function which possibly converts this using DOS-style short mode. 53722 # If so, the updated path is stored in $new_path. 53723 53724 input_path="$new_path" 53725 # Check if we need to convert this using DOS-style short mode. If the path 53726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53727 # take no chances and rewrite it. 53728 # Note: m4 eats our [], so we need to use [ and ] instead. 53729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53730 if test "x$has_forbidden_chars" != x; then 53731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53732 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53733 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53734 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53735 # Going to short mode and back again did indeed matter. Since short mode is 53736 # case insensitive, let's make it lowercase to improve readability. 53737 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53738 # Now convert it back to Unix-style (cygpath) 53739 input_path=`$CYGPATH -u "$shortmode_path"` 53740 new_path="$input_path" 53741 fi 53742 fi 53743 53744 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53745 if test "x$test_cygdrive_prefix" = x; then 53746 # As a simple fix, exclude /usr/bin since it's not a real path. 53747 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53748 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53749 # a path prefixed by /cygdrive for fixpath to work. 53750 new_path="$CYGWIN_ROOT_PATH$input_path" 53751 fi 53752 fi 53753 53754 53755 if test "x$path" != "x$new_path"; then 53756 MSVC_DLL="$new_path" 53757 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53758 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53759 fi 53760 53761 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53762 53763 path="$MSVC_DLL" 53764 has_colon=`$ECHO $path | $GREP ^.:` 53765 new_path="$path" 53766 if test "x$has_colon" = x; then 53767 # Not in mixed or Windows style, start by that. 53768 new_path=`cmd //c echo $path` 53769 fi 53770 53771 53772 input_path="$new_path" 53773 # Check if we need to convert this using DOS-style short mode. If the path 53774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53775 # take no chances and rewrite it. 53776 # Note: m4 eats our [], so we need to use [ and ] instead. 53777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53778 if test "x$has_forbidden_chars" != x; then 53779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53780 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53781 fi 53782 53783 53784 windows_path="$new_path" 53785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53786 unix_path=`$CYGPATH -u "$windows_path"` 53787 new_path="$unix_path" 53788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53789 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53790 new_path="$unix_path" 53791 fi 53792 53793 if test "x$path" != "x$new_path"; then 53794 MSVC_DLL="$new_path" 53795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53796 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53797 fi 53798 53799 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53800 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53801 53802 else 53803 # We're on a unix platform. Hooray! :) 53804 path="$MSVC_DLL" 53805 has_space=`$ECHO "$path" | $GREP " "` 53806 if test "x$has_space" != x; then 53807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53808 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53809 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 53810 fi 53811 53812 # Use eval to expand a potential ~ 53813 eval path="$path" 53814 if test ! -f "$path" && test ! -d "$path"; then 53815 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 53816 fi 53817 53818 if test -d "$path"; then 53819 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 53820 else 53821 dir="`$DIRNAME "$path"`" 53822 base="`$BASENAME "$path"`" 53823 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 53824 fi 53825 fi 53826 fi 53827 53828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 53829 $as_echo_n "checking for $DLL_NAME... " >&6; } 53830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 53831 $as_echo "$MSVC_DLL" >&6; } 53832 else 53833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 53834 $as_echo "incorrect, ignoring" >&6; } 53835 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 53836 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 53837 fi 53838 fi 53839 53840 fi 53841 53842 if test "x$MSVC_DLL" = x; then 53843 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 53844 if test "x$VS100COMNTOOLS" != x; then 53845 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 53846 53847 windows_path="$CYGWIN_VS_TOOLS_DIR" 53848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53849 unix_path=`$CYGPATH -u "$windows_path"` 53850 CYGWIN_VS_TOOLS_DIR="$unix_path" 53851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53853 CYGWIN_VS_TOOLS_DIR="$unix_path" 53854 fi 53855 53856 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 53857 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 53858 | $GREP -i /x64/ | $HEAD --lines 1` 53859 else 53860 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 53861 | $GREP -i /x86/ | $HEAD --lines 1` 53862 fi 53863 53864 DLL_NAME="$DLL_NAME" 53865 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 53866 METHOD="search of VS100COMNTOOLS" 53867 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 53868 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 53869 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 53870 53871 # Need to check if the found msvcr is correct architecture 53872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 53873 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 53874 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 53875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53876 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 53877 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 53878 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53879 CORRECT_MSVCR_ARCH="PE32 executable" 53880 else 53881 CORRECT_MSVCR_ARCH="PE32+ executable" 53882 fi 53883 else 53884 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 53885 CORRECT_MSVCR_ARCH=386 53886 else 53887 CORRECT_MSVCR_ARCH=x86-64 53888 fi 53889 fi 53890 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 53891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 53892 $as_echo "ok" >&6; } 53893 MSVC_DLL="$POSSIBLE_MSVC_DLL" 53894 53895 # Only process if variable expands to non-empty 53896 53897 if test "x$MSVC_DLL" != x; then 53898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53899 53900 # Input might be given as Windows format, start by converting to 53901 # unix format. 53902 path="$MSVC_DLL" 53903 new_path=`$CYGPATH -u "$path"` 53904 53905 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 53906 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 53907 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 53908 # "foo.exe" is OK but "foo" is an error. 53909 # 53910 # This test is therefore slightly more accurate than "test -f" to check for file precense. 53911 # It is also a way to make sure we got the proper file name for the real test later on. 53912 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 53913 if test "x$test_shortpath" = x; then 53914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 53915 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 53916 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 53917 fi 53918 53919 # Call helper function which possibly converts this using DOS-style short mode. 53920 # If so, the updated path is stored in $new_path. 53921 53922 input_path="$new_path" 53923 # Check if we need to convert this using DOS-style short mode. If the path 53924 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53925 # take no chances and rewrite it. 53926 # Note: m4 eats our [], so we need to use [ and ] instead. 53927 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 53928 if test "x$has_forbidden_chars" != x; then 53929 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53930 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 53931 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 53932 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 53933 # Going to short mode and back again did indeed matter. Since short mode is 53934 # case insensitive, let's make it lowercase to improve readability. 53935 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53936 # Now convert it back to Unix-style (cygpath) 53937 input_path=`$CYGPATH -u "$shortmode_path"` 53938 new_path="$input_path" 53939 fi 53940 fi 53941 53942 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 53943 if test "x$test_cygdrive_prefix" = x; then 53944 # As a simple fix, exclude /usr/bin since it's not a real path. 53945 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 53946 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 53947 # a path prefixed by /cygdrive for fixpath to work. 53948 new_path="$CYGWIN_ROOT_PATH$input_path" 53949 fi 53950 fi 53951 53952 53953 if test "x$path" != "x$new_path"; then 53954 MSVC_DLL="$new_path" 53955 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53956 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53957 fi 53958 53959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53960 53961 path="$MSVC_DLL" 53962 has_colon=`$ECHO $path | $GREP ^.:` 53963 new_path="$path" 53964 if test "x$has_colon" = x; then 53965 # Not in mixed or Windows style, start by that. 53966 new_path=`cmd //c echo $path` 53967 fi 53968 53969 53970 input_path="$new_path" 53971 # Check if we need to convert this using DOS-style short mode. If the path 53972 # contains just simple characters, use it. Otherwise (spaces, weird characters), 53973 # take no chances and rewrite it. 53974 # Note: m4 eats our [], so we need to use [ and ] instead. 53975 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 53976 if test "x$has_forbidden_chars" != x; then 53977 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 53978 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 53979 fi 53980 53981 53982 windows_path="$new_path" 53983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53984 unix_path=`$CYGPATH -u "$windows_path"` 53985 new_path="$unix_path" 53986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53987 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 53988 new_path="$unix_path" 53989 fi 53990 53991 if test "x$path" != "x$new_path"; then 53992 MSVC_DLL="$new_path" 53993 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 53994 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 53995 fi 53996 53997 # Save the first 10 bytes of this path to the storage, so fixpath can work. 53998 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 53999 54000 else 54001 # We're on a unix platform. Hooray! :) 54002 path="$MSVC_DLL" 54003 has_space=`$ECHO "$path" | $GREP " "` 54004 if test "x$has_space" != x; then 54005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54006 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54007 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54008 fi 54009 54010 # Use eval to expand a potential ~ 54011 eval path="$path" 54012 if test ! -f "$path" && test ! -d "$path"; then 54013 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54014 fi 54015 54016 if test -d "$path"; then 54017 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54018 else 54019 dir="`$DIRNAME "$path"`" 54020 base="`$BASENAME "$path"`" 54021 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54022 fi 54023 fi 54024 fi 54025 54026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54027 $as_echo_n "checking for $DLL_NAME... " >&6; } 54028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54029 $as_echo "$MSVC_DLL" >&6; } 54030 else 54031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54032 $as_echo "incorrect, ignoring" >&6; } 54033 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54034 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54035 fi 54036 fi 54037 54038 fi 54039 fi 54040 54041 if test "x$MSVC_DLL" = x; then 54042 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 54043 # (This was the original behaviour; kept since it might turn something up) 54044 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 54045 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54046 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54047 | $GREP x64 | $HEAD --lines 1` 54048 else 54049 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54050 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 54051 if test "x$POSSIBLE_MSVC_DLL" = x; then 54052 # We're grasping at straws now... 54053 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 54054 | $HEAD --lines 1` 54055 fi 54056 fi 54057 54058 54059 DLL_NAME="$DLL_NAME" 54060 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54061 METHOD="search of VCINSTALLDIR" 54062 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54063 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54064 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54065 54066 # Need to check if the found msvcr is correct architecture 54067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54068 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54069 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54071 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54072 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54073 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54074 CORRECT_MSVCR_ARCH="PE32 executable" 54075 else 54076 CORRECT_MSVCR_ARCH="PE32+ executable" 54077 fi 54078 else 54079 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54080 CORRECT_MSVCR_ARCH=386 54081 else 54082 CORRECT_MSVCR_ARCH=x86-64 54083 fi 54084 fi 54085 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54087 $as_echo "ok" >&6; } 54088 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54089 54090 # Only process if variable expands to non-empty 54091 54092 if test "x$MSVC_DLL" != x; then 54093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54094 54095 # Input might be given as Windows format, start by converting to 54096 # unix format. 54097 path="$MSVC_DLL" 54098 new_path=`$CYGPATH -u "$path"` 54099 54100 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54101 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54102 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54103 # "foo.exe" is OK but "foo" is an error. 54104 # 54105 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54106 # It is also a way to make sure we got the proper file name for the real test later on. 54107 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54108 if test "x$test_shortpath" = x; then 54109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54110 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54111 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54112 fi 54113 54114 # Call helper function which possibly converts this using DOS-style short mode. 54115 # If so, the updated path is stored in $new_path. 54116 54117 input_path="$new_path" 54118 # Check if we need to convert this using DOS-style short mode. If the path 54119 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54120 # take no chances and rewrite it. 54121 # Note: m4 eats our [], so we need to use [ and ] instead. 54122 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54123 if test "x$has_forbidden_chars" != x; then 54124 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54125 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54126 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54127 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54128 # Going to short mode and back again did indeed matter. Since short mode is 54129 # case insensitive, let's make it lowercase to improve readability. 54130 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54131 # Now convert it back to Unix-style (cygpath) 54132 input_path=`$CYGPATH -u "$shortmode_path"` 54133 new_path="$input_path" 54134 fi 54135 fi 54136 54137 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54138 if test "x$test_cygdrive_prefix" = x; then 54139 # As a simple fix, exclude /usr/bin since it's not a real path. 54140 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54141 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54142 # a path prefixed by /cygdrive for fixpath to work. 54143 new_path="$CYGWIN_ROOT_PATH$input_path" 54144 fi 54145 fi 54146 54147 54148 if test "x$path" != "x$new_path"; then 54149 MSVC_DLL="$new_path" 54150 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54151 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54152 fi 54153 54154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54155 54156 path="$MSVC_DLL" 54157 has_colon=`$ECHO $path | $GREP ^.:` 54158 new_path="$path" 54159 if test "x$has_colon" = x; then 54160 # Not in mixed or Windows style, start by that. 54161 new_path=`cmd //c echo $path` 54162 fi 54163 54164 54165 input_path="$new_path" 54166 # Check if we need to convert this using DOS-style short mode. If the path 54167 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54168 # take no chances and rewrite it. 54169 # Note: m4 eats our [], so we need to use [ and ] instead. 54170 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54171 if test "x$has_forbidden_chars" != x; then 54172 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54173 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54174 fi 54175 54176 54177 windows_path="$new_path" 54178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54179 unix_path=`$CYGPATH -u "$windows_path"` 54180 new_path="$unix_path" 54181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54182 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54183 new_path="$unix_path" 54184 fi 54185 54186 if test "x$path" != "x$new_path"; then 54187 MSVC_DLL="$new_path" 54188 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54189 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54190 fi 54191 54192 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54193 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54194 54195 else 54196 # We're on a unix platform. Hooray! :) 54197 path="$MSVC_DLL" 54198 has_space=`$ECHO "$path" | $GREP " "` 54199 if test "x$has_space" != x; then 54200 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54201 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54202 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54203 fi 54204 54205 # Use eval to expand a potential ~ 54206 eval path="$path" 54207 if test ! -f "$path" && test ! -d "$path"; then 54208 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54209 fi 54210 54211 if test -d "$path"; then 54212 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54213 else 54214 dir="`$DIRNAME "$path"`" 54215 base="`$BASENAME "$path"`" 54216 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54217 fi 54218 fi 54219 fi 54220 54221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54222 $as_echo_n "checking for $DLL_NAME... " >&6; } 54223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54224 $as_echo "$MSVC_DLL" >&6; } 54225 else 54226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54227 $as_echo "incorrect, ignoring" >&6; } 54228 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54229 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54230 fi 54231 fi 54232 54233 fi 54234 fi 54235 54236 if test "x$MSVC_DLL" = x; then 54237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54238 $as_echo_n "checking for $DLL_NAME... " >&6; } 54239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54240 $as_echo "no" >&6; } 54241 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 54242 fi 54243 54244 MSVCR_DLL="$MSVC_DLL" 54245 fi 54246 54247 54248 54249 # Check whether --with-msvcp-dll was given. 54250 if test "${with_msvcp_dll+set}" = set; then : 54251 withval=$with_msvcp_dll; 54252 fi 54253 54254 54255 if test "x$MSVCP_NAME" != "x"; then 54256 if test "x$with_msvcp_dll" != x; then 54257 # If given explicitely by user, do not probe. If not present, fail directly. 54258 54259 DLL_NAME="$MSVCP_NAME" 54260 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 54261 METHOD="--with-msvcp-dll" 54262 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54263 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54264 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54265 54266 # Need to check if the found msvcr is correct architecture 54267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54268 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54269 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54271 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54272 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54273 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54274 CORRECT_MSVCR_ARCH="PE32 executable" 54275 else 54276 CORRECT_MSVCR_ARCH="PE32+ executable" 54277 fi 54278 else 54279 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54280 CORRECT_MSVCR_ARCH=386 54281 else 54282 CORRECT_MSVCR_ARCH=x86-64 54283 fi 54284 fi 54285 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54287 $as_echo "ok" >&6; } 54288 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54289 54290 # Only process if variable expands to non-empty 54291 54292 if test "x$MSVC_DLL" != x; then 54293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54294 54295 # Input might be given as Windows format, start by converting to 54296 # unix format. 54297 path="$MSVC_DLL" 54298 new_path=`$CYGPATH -u "$path"` 54299 54300 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54301 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54302 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54303 # "foo.exe" is OK but "foo" is an error. 54304 # 54305 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54306 # It is also a way to make sure we got the proper file name for the real test later on. 54307 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54308 if test "x$test_shortpath" = x; then 54309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54310 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54311 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54312 fi 54313 54314 # Call helper function which possibly converts this using DOS-style short mode. 54315 # If so, the updated path is stored in $new_path. 54316 54317 input_path="$new_path" 54318 # Check if we need to convert this using DOS-style short mode. If the path 54319 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54320 # take no chances and rewrite it. 54321 # Note: m4 eats our [], so we need to use [ and ] instead. 54322 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54323 if test "x$has_forbidden_chars" != x; then 54324 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54325 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54326 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54327 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54328 # Going to short mode and back again did indeed matter. Since short mode is 54329 # case insensitive, let's make it lowercase to improve readability. 54330 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54331 # Now convert it back to Unix-style (cygpath) 54332 input_path=`$CYGPATH -u "$shortmode_path"` 54333 new_path="$input_path" 54334 fi 54335 fi 54336 54337 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54338 if test "x$test_cygdrive_prefix" = x; then 54339 # As a simple fix, exclude /usr/bin since it's not a real path. 54340 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54341 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54342 # a path prefixed by /cygdrive for fixpath to work. 54343 new_path="$CYGWIN_ROOT_PATH$input_path" 54344 fi 54345 fi 54346 54347 54348 if test "x$path" != "x$new_path"; then 54349 MSVC_DLL="$new_path" 54350 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54351 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54352 fi 54353 54354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54355 54356 path="$MSVC_DLL" 54357 has_colon=`$ECHO $path | $GREP ^.:` 54358 new_path="$path" 54359 if test "x$has_colon" = x; then 54360 # Not in mixed or Windows style, start by that. 54361 new_path=`cmd //c echo $path` 54362 fi 54363 54364 54365 input_path="$new_path" 54366 # Check if we need to convert this using DOS-style short mode. If the path 54367 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54368 # take no chances and rewrite it. 54369 # Note: m4 eats our [], so we need to use [ and ] instead. 54370 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54371 if test "x$has_forbidden_chars" != x; then 54372 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54373 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54374 fi 54375 54376 54377 windows_path="$new_path" 54378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54379 unix_path=`$CYGPATH -u "$windows_path"` 54380 new_path="$unix_path" 54381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54382 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54383 new_path="$unix_path" 54384 fi 54385 54386 if test "x$path" != "x$new_path"; then 54387 MSVC_DLL="$new_path" 54388 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54389 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54390 fi 54391 54392 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54393 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54394 54395 else 54396 # We're on a unix platform. Hooray! :) 54397 path="$MSVC_DLL" 54398 has_space=`$ECHO "$path" | $GREP " "` 54399 if test "x$has_space" != x; then 54400 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54401 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54402 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54403 fi 54404 54405 # Use eval to expand a potential ~ 54406 eval path="$path" 54407 if test ! -f "$path" && test ! -d "$path"; then 54408 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54409 fi 54410 54411 if test -d "$path"; then 54412 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54413 else 54414 dir="`$DIRNAME "$path"`" 54415 base="`$BASENAME "$path"`" 54416 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54417 fi 54418 fi 54419 fi 54420 54421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54422 $as_echo_n "checking for $DLL_NAME... " >&6; } 54423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54424 $as_echo "$MSVC_DLL" >&6; } 54425 else 54426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54427 $as_echo "incorrect, ignoring" >&6; } 54428 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54429 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54430 fi 54431 fi 54432 54433 if test "x$MSVC_DLL" = x; then 54434 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 54435 fi 54436 MSVCP_DLL="$MSVC_DLL" 54437 elif test "x$DEVKIT_MSVCP_DLL" != x; then 54438 54439 DLL_NAME="$MSVCP_NAME" 54440 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 54441 METHOD="devkit" 54442 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54443 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54444 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54445 54446 # Need to check if the found msvcr is correct architecture 54447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54448 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54449 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54451 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54452 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54453 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54454 CORRECT_MSVCR_ARCH="PE32 executable" 54455 else 54456 CORRECT_MSVCR_ARCH="PE32+ executable" 54457 fi 54458 else 54459 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54460 CORRECT_MSVCR_ARCH=386 54461 else 54462 CORRECT_MSVCR_ARCH=x86-64 54463 fi 54464 fi 54465 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54467 $as_echo "ok" >&6; } 54468 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54469 54470 # Only process if variable expands to non-empty 54471 54472 if test "x$MSVC_DLL" != x; then 54473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54474 54475 # Input might be given as Windows format, start by converting to 54476 # unix format. 54477 path="$MSVC_DLL" 54478 new_path=`$CYGPATH -u "$path"` 54479 54480 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54481 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54482 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54483 # "foo.exe" is OK but "foo" is an error. 54484 # 54485 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54486 # It is also a way to make sure we got the proper file name for the real test later on. 54487 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54488 if test "x$test_shortpath" = x; then 54489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54490 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54491 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54492 fi 54493 54494 # Call helper function which possibly converts this using DOS-style short mode. 54495 # If so, the updated path is stored in $new_path. 54496 54497 input_path="$new_path" 54498 # Check if we need to convert this using DOS-style short mode. If the path 54499 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54500 # take no chances and rewrite it. 54501 # Note: m4 eats our [], so we need to use [ and ] instead. 54502 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54503 if test "x$has_forbidden_chars" != x; then 54504 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54505 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54506 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54507 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54508 # Going to short mode and back again did indeed matter. Since short mode is 54509 # case insensitive, let's make it lowercase to improve readability. 54510 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54511 # Now convert it back to Unix-style (cygpath) 54512 input_path=`$CYGPATH -u "$shortmode_path"` 54513 new_path="$input_path" 54514 fi 54515 fi 54516 54517 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54518 if test "x$test_cygdrive_prefix" = x; then 54519 # As a simple fix, exclude /usr/bin since it's not a real path. 54520 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54521 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54522 # a path prefixed by /cygdrive for fixpath to work. 54523 new_path="$CYGWIN_ROOT_PATH$input_path" 54524 fi 54525 fi 54526 54527 54528 if test "x$path" != "x$new_path"; then 54529 MSVC_DLL="$new_path" 54530 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54531 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54532 fi 54533 54534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54535 54536 path="$MSVC_DLL" 54537 has_colon=`$ECHO $path | $GREP ^.:` 54538 new_path="$path" 54539 if test "x$has_colon" = x; then 54540 # Not in mixed or Windows style, start by that. 54541 new_path=`cmd //c echo $path` 54542 fi 54543 54544 54545 input_path="$new_path" 54546 # Check if we need to convert this using DOS-style short mode. If the path 54547 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54548 # take no chances and rewrite it. 54549 # Note: m4 eats our [], so we need to use [ and ] instead. 54550 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54551 if test "x$has_forbidden_chars" != x; then 54552 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54553 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54554 fi 54555 54556 54557 windows_path="$new_path" 54558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54559 unix_path=`$CYGPATH -u "$windows_path"` 54560 new_path="$unix_path" 54561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54563 new_path="$unix_path" 54564 fi 54565 54566 if test "x$path" != "x$new_path"; then 54567 MSVC_DLL="$new_path" 54568 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54569 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54570 fi 54571 54572 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54573 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54574 54575 else 54576 # We're on a unix platform. Hooray! :) 54577 path="$MSVC_DLL" 54578 has_space=`$ECHO "$path" | $GREP " "` 54579 if test "x$has_space" != x; then 54580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54581 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54582 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54583 fi 54584 54585 # Use eval to expand a potential ~ 54586 eval path="$path" 54587 if test ! -f "$path" && test ! -d "$path"; then 54588 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54589 fi 54590 54591 if test -d "$path"; then 54592 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54593 else 54594 dir="`$DIRNAME "$path"`" 54595 base="`$BASENAME "$path"`" 54596 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54597 fi 54598 fi 54599 fi 54600 54601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54602 $as_echo_n "checking for $DLL_NAME... " >&6; } 54603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54604 $as_echo "$MSVC_DLL" >&6; } 54605 else 54606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54607 $as_echo "incorrect, ignoring" >&6; } 54608 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54609 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54610 fi 54611 fi 54612 54613 if test "x$MSVC_DLL" = x; then 54614 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 54615 fi 54616 MSVCP_DLL="$MSVC_DLL" 54617 else 54618 54619 DLL_NAME="${MSVCP_NAME}" 54620 MSVC_DLL= 54621 54622 if test "x$MSVC_DLL" = x; then 54623 # Probe: Using well-known location from Visual Studio 10.0 54624 if test "x$VCINSTALLDIR" != x; then 54625 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 54626 54627 windows_path="$CYGWIN_VC_INSTALL_DIR" 54628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54629 unix_path=`$CYGPATH -u "$windows_path"` 54630 CYGWIN_VC_INSTALL_DIR="$unix_path" 54631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54633 CYGWIN_VC_INSTALL_DIR="$unix_path" 54634 fi 54635 54636 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 54637 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54638 else 54639 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 54640 fi 54641 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 54642 54643 DLL_NAME="$DLL_NAME" 54644 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54645 METHOD="well-known location in VCINSTALLDIR" 54646 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54647 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54648 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54649 54650 # Need to check if the found msvcr is correct architecture 54651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54652 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54653 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54655 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54656 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54657 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54658 CORRECT_MSVCR_ARCH="PE32 executable" 54659 else 54660 CORRECT_MSVCR_ARCH="PE32+ executable" 54661 fi 54662 else 54663 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54664 CORRECT_MSVCR_ARCH=386 54665 else 54666 CORRECT_MSVCR_ARCH=x86-64 54667 fi 54668 fi 54669 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54671 $as_echo "ok" >&6; } 54672 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54673 54674 # Only process if variable expands to non-empty 54675 54676 if test "x$MSVC_DLL" != x; then 54677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54678 54679 # Input might be given as Windows format, start by converting to 54680 # unix format. 54681 path="$MSVC_DLL" 54682 new_path=`$CYGPATH -u "$path"` 54683 54684 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54685 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54686 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54687 # "foo.exe" is OK but "foo" is an error. 54688 # 54689 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54690 # It is also a way to make sure we got the proper file name for the real test later on. 54691 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54692 if test "x$test_shortpath" = x; then 54693 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54694 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54695 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54696 fi 54697 54698 # Call helper function which possibly converts this using DOS-style short mode. 54699 # If so, the updated path is stored in $new_path. 54700 54701 input_path="$new_path" 54702 # Check if we need to convert this using DOS-style short mode. If the path 54703 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54704 # take no chances and rewrite it. 54705 # Note: m4 eats our [], so we need to use [ and ] instead. 54706 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54707 if test "x$has_forbidden_chars" != x; then 54708 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54709 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54710 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54711 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54712 # Going to short mode and back again did indeed matter. Since short mode is 54713 # case insensitive, let's make it lowercase to improve readability. 54714 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54715 # Now convert it back to Unix-style (cygpath) 54716 input_path=`$CYGPATH -u "$shortmode_path"` 54717 new_path="$input_path" 54718 fi 54719 fi 54720 54721 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54722 if test "x$test_cygdrive_prefix" = x; then 54723 # As a simple fix, exclude /usr/bin since it's not a real path. 54724 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54725 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54726 # a path prefixed by /cygdrive for fixpath to work. 54727 new_path="$CYGWIN_ROOT_PATH$input_path" 54728 fi 54729 fi 54730 54731 54732 if test "x$path" != "x$new_path"; then 54733 MSVC_DLL="$new_path" 54734 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54735 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54736 fi 54737 54738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54739 54740 path="$MSVC_DLL" 54741 has_colon=`$ECHO $path | $GREP ^.:` 54742 new_path="$path" 54743 if test "x$has_colon" = x; then 54744 # Not in mixed or Windows style, start by that. 54745 new_path=`cmd //c echo $path` 54746 fi 54747 54748 54749 input_path="$new_path" 54750 # Check if we need to convert this using DOS-style short mode. If the path 54751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54752 # take no chances and rewrite it. 54753 # Note: m4 eats our [], so we need to use [ and ] instead. 54754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54755 if test "x$has_forbidden_chars" != x; then 54756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54757 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54758 fi 54759 54760 54761 windows_path="$new_path" 54762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54763 unix_path=`$CYGPATH -u "$windows_path"` 54764 new_path="$unix_path" 54765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54767 new_path="$unix_path" 54768 fi 54769 54770 if test "x$path" != "x$new_path"; then 54771 MSVC_DLL="$new_path" 54772 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54773 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54774 fi 54775 54776 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54777 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54778 54779 else 54780 # We're on a unix platform. Hooray! :) 54781 path="$MSVC_DLL" 54782 has_space=`$ECHO "$path" | $GREP " "` 54783 if test "x$has_space" != x; then 54784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54785 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54786 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54787 fi 54788 54789 # Use eval to expand a potential ~ 54790 eval path="$path" 54791 if test ! -f "$path" && test ! -d "$path"; then 54792 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54793 fi 54794 54795 if test -d "$path"; then 54796 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54797 else 54798 dir="`$DIRNAME "$path"`" 54799 base="`$BASENAME "$path"`" 54800 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54801 fi 54802 fi 54803 fi 54804 54805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54806 $as_echo_n "checking for $DLL_NAME... " >&6; } 54807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54808 $as_echo "$MSVC_DLL" >&6; } 54809 else 54810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54811 $as_echo "incorrect, ignoring" >&6; } 54812 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54813 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54814 fi 54815 fi 54816 54817 fi 54818 fi 54819 54820 if test "x$MSVC_DLL" = x; then 54821 # Probe: Check in the Boot JDK directory. 54822 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 54823 54824 DLL_NAME="$DLL_NAME" 54825 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 54826 METHOD="well-known location in Boot JDK" 54827 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 54828 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 54829 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 54830 54831 # Need to check if the found msvcr is correct architecture 54832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 54833 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 54834 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 54835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54836 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 54837 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 54838 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54839 CORRECT_MSVCR_ARCH="PE32 executable" 54840 else 54841 CORRECT_MSVCR_ARCH="PE32+ executable" 54842 fi 54843 else 54844 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 54845 CORRECT_MSVCR_ARCH=386 54846 else 54847 CORRECT_MSVCR_ARCH=x86-64 54848 fi 54849 fi 54850 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 54851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 54852 $as_echo "ok" >&6; } 54853 MSVC_DLL="$POSSIBLE_MSVC_DLL" 54854 54855 # Only process if variable expands to non-empty 54856 54857 if test "x$MSVC_DLL" != x; then 54858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54859 54860 # Input might be given as Windows format, start by converting to 54861 # unix format. 54862 path="$MSVC_DLL" 54863 new_path=`$CYGPATH -u "$path"` 54864 54865 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 54866 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 54867 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 54868 # "foo.exe" is OK but "foo" is an error. 54869 # 54870 # This test is therefore slightly more accurate than "test -f" to check for file precense. 54871 # It is also a way to make sure we got the proper file name for the real test later on. 54872 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 54873 if test "x$test_shortpath" = x; then 54874 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54875 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54876 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 54877 fi 54878 54879 # Call helper function which possibly converts this using DOS-style short mode. 54880 # If so, the updated path is stored in $new_path. 54881 54882 input_path="$new_path" 54883 # Check if we need to convert this using DOS-style short mode. If the path 54884 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54885 # take no chances and rewrite it. 54886 # Note: m4 eats our [], so we need to use [ and ] instead. 54887 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 54888 if test "x$has_forbidden_chars" != x; then 54889 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54890 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 54891 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 54892 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 54893 # Going to short mode and back again did indeed matter. Since short mode is 54894 # case insensitive, let's make it lowercase to improve readability. 54895 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54896 # Now convert it back to Unix-style (cygpath) 54897 input_path=`$CYGPATH -u "$shortmode_path"` 54898 new_path="$input_path" 54899 fi 54900 fi 54901 54902 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 54903 if test "x$test_cygdrive_prefix" = x; then 54904 # As a simple fix, exclude /usr/bin since it's not a real path. 54905 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 54906 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 54907 # a path prefixed by /cygdrive for fixpath to work. 54908 new_path="$CYGWIN_ROOT_PATH$input_path" 54909 fi 54910 fi 54911 54912 54913 if test "x$path" != "x$new_path"; then 54914 MSVC_DLL="$new_path" 54915 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54916 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54917 fi 54918 54919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54920 54921 path="$MSVC_DLL" 54922 has_colon=`$ECHO $path | $GREP ^.:` 54923 new_path="$path" 54924 if test "x$has_colon" = x; then 54925 # Not in mixed or Windows style, start by that. 54926 new_path=`cmd //c echo $path` 54927 fi 54928 54929 54930 input_path="$new_path" 54931 # Check if we need to convert this using DOS-style short mode. If the path 54932 # contains just simple characters, use it. Otherwise (spaces, weird characters), 54933 # take no chances and rewrite it. 54934 # Note: m4 eats our [], so we need to use [ and ] instead. 54935 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 54936 if test "x$has_forbidden_chars" != x; then 54937 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 54938 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 54939 fi 54940 54941 54942 windows_path="$new_path" 54943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 54944 unix_path=`$CYGPATH -u "$windows_path"` 54945 new_path="$unix_path" 54946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 54947 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 54948 new_path="$unix_path" 54949 fi 54950 54951 if test "x$path" != "x$new_path"; then 54952 MSVC_DLL="$new_path" 54953 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 54954 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 54955 fi 54956 54957 # Save the first 10 bytes of this path to the storage, so fixpath can work. 54958 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 54959 54960 else 54961 # We're on a unix platform. Hooray! :) 54962 path="$MSVC_DLL" 54963 has_space=`$ECHO "$path" | $GREP " "` 54964 if test "x$has_space" != x; then 54965 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 54966 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 54967 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 54968 fi 54969 54970 # Use eval to expand a potential ~ 54971 eval path="$path" 54972 if test ! -f "$path" && test ! -d "$path"; then 54973 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 54974 fi 54975 54976 if test -d "$path"; then 54977 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 54978 else 54979 dir="`$DIRNAME "$path"`" 54980 base="`$BASENAME "$path"`" 54981 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 54982 fi 54983 fi 54984 fi 54985 54986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 54987 $as_echo_n "checking for $DLL_NAME... " >&6; } 54988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 54989 $as_echo "$MSVC_DLL" >&6; } 54990 else 54991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 54992 $as_echo "incorrect, ignoring" >&6; } 54993 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 54994 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 54995 fi 54996 fi 54997 54998 fi 54999 55000 if test "x$MSVC_DLL" = x; then 55001 # Probe: Look in the Windows system32 directory 55002 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 55003 55004 windows_path="$CYGWIN_SYSTEMROOT" 55005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55006 unix_path=`$CYGPATH -u "$windows_path"` 55007 CYGWIN_SYSTEMROOT="$unix_path" 55008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55010 CYGWIN_SYSTEMROOT="$unix_path" 55011 fi 55012 55013 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 55014 55015 DLL_NAME="$DLL_NAME" 55016 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55017 METHOD="well-known location in SYSTEMROOT" 55018 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55019 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55020 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55021 55022 # Need to check if the found msvcr is correct architecture 55023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55024 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55025 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55027 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55028 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55029 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55030 CORRECT_MSVCR_ARCH="PE32 executable" 55031 else 55032 CORRECT_MSVCR_ARCH="PE32+ executable" 55033 fi 55034 else 55035 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55036 CORRECT_MSVCR_ARCH=386 55037 else 55038 CORRECT_MSVCR_ARCH=x86-64 55039 fi 55040 fi 55041 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55043 $as_echo "ok" >&6; } 55044 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55045 55046 # Only process if variable expands to non-empty 55047 55048 if test "x$MSVC_DLL" != x; then 55049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55050 55051 # Input might be given as Windows format, start by converting to 55052 # unix format. 55053 path="$MSVC_DLL" 55054 new_path=`$CYGPATH -u "$path"` 55055 55056 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55057 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55058 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55059 # "foo.exe" is OK but "foo" is an error. 55060 # 55061 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55062 # It is also a way to make sure we got the proper file name for the real test later on. 55063 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55064 if test "x$test_shortpath" = x; then 55065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55066 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55067 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55068 fi 55069 55070 # Call helper function which possibly converts this using DOS-style short mode. 55071 # If so, the updated path is stored in $new_path. 55072 55073 input_path="$new_path" 55074 # Check if we need to convert this using DOS-style short mode. If the path 55075 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55076 # take no chances and rewrite it. 55077 # Note: m4 eats our [], so we need to use [ and ] instead. 55078 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55079 if test "x$has_forbidden_chars" != x; then 55080 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55081 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55082 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55083 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55084 # Going to short mode and back again did indeed matter. Since short mode is 55085 # case insensitive, let's make it lowercase to improve readability. 55086 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55087 # Now convert it back to Unix-style (cygpath) 55088 input_path=`$CYGPATH -u "$shortmode_path"` 55089 new_path="$input_path" 55090 fi 55091 fi 55092 55093 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55094 if test "x$test_cygdrive_prefix" = x; then 55095 # As a simple fix, exclude /usr/bin since it's not a real path. 55096 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55097 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55098 # a path prefixed by /cygdrive for fixpath to work. 55099 new_path="$CYGWIN_ROOT_PATH$input_path" 55100 fi 55101 fi 55102 55103 55104 if test "x$path" != "x$new_path"; then 55105 MSVC_DLL="$new_path" 55106 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55107 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55108 fi 55109 55110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55111 55112 path="$MSVC_DLL" 55113 has_colon=`$ECHO $path | $GREP ^.:` 55114 new_path="$path" 55115 if test "x$has_colon" = x; then 55116 # Not in mixed or Windows style, start by that. 55117 new_path=`cmd //c echo $path` 55118 fi 55119 55120 55121 input_path="$new_path" 55122 # Check if we need to convert this using DOS-style short mode. If the path 55123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55124 # take no chances and rewrite it. 55125 # Note: m4 eats our [], so we need to use [ and ] instead. 55126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55127 if test "x$has_forbidden_chars" != x; then 55128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55129 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55130 fi 55131 55132 55133 windows_path="$new_path" 55134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55135 unix_path=`$CYGPATH -u "$windows_path"` 55136 new_path="$unix_path" 55137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55138 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55139 new_path="$unix_path" 55140 fi 55141 55142 if test "x$path" != "x$new_path"; then 55143 MSVC_DLL="$new_path" 55144 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55145 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55146 fi 55147 55148 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55149 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55150 55151 else 55152 # We're on a unix platform. Hooray! :) 55153 path="$MSVC_DLL" 55154 has_space=`$ECHO "$path" | $GREP " "` 55155 if test "x$has_space" != x; then 55156 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55157 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55158 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55159 fi 55160 55161 # Use eval to expand a potential ~ 55162 eval path="$path" 55163 if test ! -f "$path" && test ! -d "$path"; then 55164 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55165 fi 55166 55167 if test -d "$path"; then 55168 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55169 else 55170 dir="`$DIRNAME "$path"`" 55171 base="`$BASENAME "$path"`" 55172 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55173 fi 55174 fi 55175 fi 55176 55177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55178 $as_echo_n "checking for $DLL_NAME... " >&6; } 55179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55180 $as_echo "$MSVC_DLL" >&6; } 55181 else 55182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55183 $as_echo "incorrect, ignoring" >&6; } 55184 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55185 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55186 fi 55187 fi 55188 55189 fi 55190 55191 if test "x$MSVC_DLL" = x; then 55192 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 55193 if test "x$VS100COMNTOOLS" != x; then 55194 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 55195 55196 windows_path="$CYGWIN_VS_TOOLS_DIR" 55197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55198 unix_path=`$CYGPATH -u "$windows_path"` 55199 CYGWIN_VS_TOOLS_DIR="$unix_path" 55200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55202 CYGWIN_VS_TOOLS_DIR="$unix_path" 55203 fi 55204 55205 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55206 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55207 | $GREP -i /x64/ | $HEAD --lines 1` 55208 else 55209 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 55210 | $GREP -i /x86/ | $HEAD --lines 1` 55211 fi 55212 55213 DLL_NAME="$DLL_NAME" 55214 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55215 METHOD="search of VS100COMNTOOLS" 55216 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55217 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55218 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55219 55220 # Need to check if the found msvcr is correct architecture 55221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55222 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55223 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55225 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55226 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55227 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55228 CORRECT_MSVCR_ARCH="PE32 executable" 55229 else 55230 CORRECT_MSVCR_ARCH="PE32+ executable" 55231 fi 55232 else 55233 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55234 CORRECT_MSVCR_ARCH=386 55235 else 55236 CORRECT_MSVCR_ARCH=x86-64 55237 fi 55238 fi 55239 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55241 $as_echo "ok" >&6; } 55242 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55243 55244 # Only process if variable expands to non-empty 55245 55246 if test "x$MSVC_DLL" != x; then 55247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55248 55249 # Input might be given as Windows format, start by converting to 55250 # unix format. 55251 path="$MSVC_DLL" 55252 new_path=`$CYGPATH -u "$path"` 55253 55254 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55255 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55256 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55257 # "foo.exe" is OK but "foo" is an error. 55258 # 55259 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55260 # It is also a way to make sure we got the proper file name for the real test later on. 55261 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55262 if test "x$test_shortpath" = x; then 55263 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55264 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55265 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55266 fi 55267 55268 # Call helper function which possibly converts this using DOS-style short mode. 55269 # If so, the updated path is stored in $new_path. 55270 55271 input_path="$new_path" 55272 # Check if we need to convert this using DOS-style short mode. If the path 55273 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55274 # take no chances and rewrite it. 55275 # Note: m4 eats our [], so we need to use [ and ] instead. 55276 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55277 if test "x$has_forbidden_chars" != x; then 55278 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55279 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55280 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55281 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55282 # Going to short mode and back again did indeed matter. Since short mode is 55283 # case insensitive, let's make it lowercase to improve readability. 55284 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55285 # Now convert it back to Unix-style (cygpath) 55286 input_path=`$CYGPATH -u "$shortmode_path"` 55287 new_path="$input_path" 55288 fi 55289 fi 55290 55291 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55292 if test "x$test_cygdrive_prefix" = x; then 55293 # As a simple fix, exclude /usr/bin since it's not a real path. 55294 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55295 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55296 # a path prefixed by /cygdrive for fixpath to work. 55297 new_path="$CYGWIN_ROOT_PATH$input_path" 55298 fi 55299 fi 55300 55301 55302 if test "x$path" != "x$new_path"; then 55303 MSVC_DLL="$new_path" 55304 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55305 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55306 fi 55307 55308 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55309 55310 path="$MSVC_DLL" 55311 has_colon=`$ECHO $path | $GREP ^.:` 55312 new_path="$path" 55313 if test "x$has_colon" = x; then 55314 # Not in mixed or Windows style, start by that. 55315 new_path=`cmd //c echo $path` 55316 fi 55317 55318 55319 input_path="$new_path" 55320 # Check if we need to convert this using DOS-style short mode. If the path 55321 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55322 # take no chances and rewrite it. 55323 # Note: m4 eats our [], so we need to use [ and ] instead. 55324 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55325 if test "x$has_forbidden_chars" != x; then 55326 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55327 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55328 fi 55329 55330 55331 windows_path="$new_path" 55332 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55333 unix_path=`$CYGPATH -u "$windows_path"` 55334 new_path="$unix_path" 55335 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55336 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55337 new_path="$unix_path" 55338 fi 55339 55340 if test "x$path" != "x$new_path"; then 55341 MSVC_DLL="$new_path" 55342 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55343 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55344 fi 55345 55346 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55347 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55348 55349 else 55350 # We're on a unix platform. Hooray! :) 55351 path="$MSVC_DLL" 55352 has_space=`$ECHO "$path" | $GREP " "` 55353 if test "x$has_space" != x; then 55354 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55355 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55356 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55357 fi 55358 55359 # Use eval to expand a potential ~ 55360 eval path="$path" 55361 if test ! -f "$path" && test ! -d "$path"; then 55362 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55363 fi 55364 55365 if test -d "$path"; then 55366 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55367 else 55368 dir="`$DIRNAME "$path"`" 55369 base="`$BASENAME "$path"`" 55370 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55371 fi 55372 fi 55373 fi 55374 55375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55376 $as_echo_n "checking for $DLL_NAME... " >&6; } 55377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55378 $as_echo "$MSVC_DLL" >&6; } 55379 else 55380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55381 $as_echo "incorrect, ignoring" >&6; } 55382 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55383 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55384 fi 55385 fi 55386 55387 fi 55388 fi 55389 55390 if test "x$MSVC_DLL" = x; then 55391 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 55392 # (This was the original behaviour; kept since it might turn something up) 55393 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 55394 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55395 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55396 | $GREP x64 | $HEAD --lines 1` 55397 else 55398 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55399 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 55400 if test "x$POSSIBLE_MSVC_DLL" = x; then 55401 # We're grasping at straws now... 55402 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 55403 | $HEAD --lines 1` 55404 fi 55405 fi 55406 55407 55408 DLL_NAME="$DLL_NAME" 55409 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55410 METHOD="search of VCINSTALLDIR" 55411 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55412 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55413 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55414 55415 # Need to check if the found msvcr is correct architecture 55416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55417 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55418 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55420 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55421 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55422 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55423 CORRECT_MSVCR_ARCH="PE32 executable" 55424 else 55425 CORRECT_MSVCR_ARCH="PE32+ executable" 55426 fi 55427 else 55428 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55429 CORRECT_MSVCR_ARCH=386 55430 else 55431 CORRECT_MSVCR_ARCH=x86-64 55432 fi 55433 fi 55434 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55436 $as_echo "ok" >&6; } 55437 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55438 55439 # Only process if variable expands to non-empty 55440 55441 if test "x$MSVC_DLL" != x; then 55442 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55443 55444 # Input might be given as Windows format, start by converting to 55445 # unix format. 55446 path="$MSVC_DLL" 55447 new_path=`$CYGPATH -u "$path"` 55448 55449 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55450 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55451 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55452 # "foo.exe" is OK but "foo" is an error. 55453 # 55454 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55455 # It is also a way to make sure we got the proper file name for the real test later on. 55456 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55457 if test "x$test_shortpath" = x; then 55458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55459 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55460 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55461 fi 55462 55463 # Call helper function which possibly converts this using DOS-style short mode. 55464 # If so, the updated path is stored in $new_path. 55465 55466 input_path="$new_path" 55467 # Check if we need to convert this using DOS-style short mode. If the path 55468 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55469 # take no chances and rewrite it. 55470 # Note: m4 eats our [], so we need to use [ and ] instead. 55471 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55472 if test "x$has_forbidden_chars" != x; then 55473 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55474 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55475 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55476 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55477 # Going to short mode and back again did indeed matter. Since short mode is 55478 # case insensitive, let's make it lowercase to improve readability. 55479 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55480 # Now convert it back to Unix-style (cygpath) 55481 input_path=`$CYGPATH -u "$shortmode_path"` 55482 new_path="$input_path" 55483 fi 55484 fi 55485 55486 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55487 if test "x$test_cygdrive_prefix" = x; then 55488 # As a simple fix, exclude /usr/bin since it's not a real path. 55489 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55490 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55491 # a path prefixed by /cygdrive for fixpath to work. 55492 new_path="$CYGWIN_ROOT_PATH$input_path" 55493 fi 55494 fi 55495 55496 55497 if test "x$path" != "x$new_path"; then 55498 MSVC_DLL="$new_path" 55499 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55500 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55501 fi 55502 55503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55504 55505 path="$MSVC_DLL" 55506 has_colon=`$ECHO $path | $GREP ^.:` 55507 new_path="$path" 55508 if test "x$has_colon" = x; then 55509 # Not in mixed or Windows style, start by that. 55510 new_path=`cmd //c echo $path` 55511 fi 55512 55513 55514 input_path="$new_path" 55515 # Check if we need to convert this using DOS-style short mode. If the path 55516 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55517 # take no chances and rewrite it. 55518 # Note: m4 eats our [], so we need to use [ and ] instead. 55519 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55520 if test "x$has_forbidden_chars" != x; then 55521 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55522 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55523 fi 55524 55525 55526 windows_path="$new_path" 55527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55528 unix_path=`$CYGPATH -u "$windows_path"` 55529 new_path="$unix_path" 55530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55531 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55532 new_path="$unix_path" 55533 fi 55534 55535 if test "x$path" != "x$new_path"; then 55536 MSVC_DLL="$new_path" 55537 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55538 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55539 fi 55540 55541 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55542 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55543 55544 else 55545 # We're on a unix platform. Hooray! :) 55546 path="$MSVC_DLL" 55547 has_space=`$ECHO "$path" | $GREP " "` 55548 if test "x$has_space" != x; then 55549 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55550 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55551 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55552 fi 55553 55554 # Use eval to expand a potential ~ 55555 eval path="$path" 55556 if test ! -f "$path" && test ! -d "$path"; then 55557 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55558 fi 55559 55560 if test -d "$path"; then 55561 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55562 else 55563 dir="`$DIRNAME "$path"`" 55564 base="`$BASENAME "$path"`" 55565 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55566 fi 55567 fi 55568 fi 55569 55570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55571 $as_echo_n "checking for $DLL_NAME... " >&6; } 55572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55573 $as_echo "$MSVC_DLL" >&6; } 55574 else 55575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55576 $as_echo "incorrect, ignoring" >&6; } 55577 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55578 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55579 fi 55580 fi 55581 55582 fi 55583 fi 55584 55585 if test "x$MSVC_DLL" = x; then 55586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55587 $as_echo_n "checking for $DLL_NAME... " >&6; } 55588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55589 $as_echo "no" >&6; } 55590 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 55591 fi 55592 55593 MSVCP_DLL="$MSVC_DLL" 55594 fi 55595 55596 fi 55597 55598 fi 55599 55600 55601 if test "x$NEEDS_LIB_X11" = xfalse; then 55602 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 55603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 55604 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 55605 fi 55606 X_CFLAGS= 55607 X_LIBS= 55608 else 55609 55610 if test "x${with_x}" = xno; then 55611 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 55612 fi 55613 55614 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 55615 # The user has specified a X11 base directory. Use it for includes and 55616 # libraries, unless explicitely overridden. 55617 if test "x$x_includes" = xNONE; then 55618 x_includes="${with_x}/include" 55619 fi 55620 if test "x$x_libraries" = xNONE; then 55621 x_libraries="${with_x}/lib" 55622 fi 55623 else 55624 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 55625 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 55626 # --x-libraries for the sysroot, if that seems to be correct. 55627 if test "x$SYSROOT" != "x"; then 55628 if test "x$x_includes" = xNONE; then 55629 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 55630 x_includes="$SYSROOT/usr/X11R6/include" 55631 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 55632 x_includes="$SYSROOT/usr/include" 55633 fi 55634 fi 55635 if test "x$x_libraries" = xNONE; then 55636 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 55637 x_libraries="$SYSROOT/usr/X11R6/lib" 55638 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55639 x_libraries="$SYSROOT/usr/lib64" 55640 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 55641 x_libraries="$SYSROOT/usr/lib" 55642 fi 55643 fi 55644 fi 55645 fi 55646 55647 # Now let autoconf do it's magic 55648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 55649 $as_echo_n "checking for X... " >&6; } 55650 55651 55652 # Check whether --with-x was given. 55653 if test "${with_x+set}" = set; then : 55654 withval=$with_x; 55655 fi 55656 55657 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 55658 if test "x$with_x" = xno; then 55659 # The user explicitly disabled X. 55660 have_x=disabled 55661 else 55662 case $x_includes,$x_libraries in #( 55663 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 55664 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 55665 $as_echo_n "(cached) " >&6 55666 else 55667 # One or both of the vars are not set, and there is no cached value. 55668 ac_x_includes=no ac_x_libraries=no 55669 rm -f -r conftest.dir 55670 if mkdir conftest.dir; then 55671 cd conftest.dir 55672 cat >Imakefile <<'_ACEOF' 55673 incroot: 55674 @echo incroot='${INCROOT}' 55675 usrlibdir: 55676 @echo usrlibdir='${USRLIBDIR}' 55677 libdir: 55678 @echo libdir='${LIBDIR}' 55679 _ACEOF 55680 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 55681 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 55682 for ac_var in incroot usrlibdir libdir; do 55683 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 55684 done 55685 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 55686 for ac_extension in a so sl dylib la dll; do 55687 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 55688 test -f "$ac_im_libdir/libX11.$ac_extension"; then 55689 ac_im_usrlibdir=$ac_im_libdir; break 55690 fi 55691 done 55692 # Screen out bogus values from the imake configuration. They are 55693 # bogus both because they are the default anyway, and because 55694 # using them would break gcc on systems where it needs fixed includes. 55695 case $ac_im_incroot in 55696 /usr/include) ac_x_includes= ;; 55697 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 55698 esac 55699 case $ac_im_usrlibdir in 55700 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 55701 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 55702 esac 55703 fi 55704 cd .. 55705 rm -f -r conftest.dir 55706 fi 55707 55708 # Standard set of common directories for X headers. 55709 # Check X11 before X11Rn because it is often a symlink to the current release. 55710 ac_x_header_dirs=' 55711 /usr/X11/include 55712 /usr/X11R7/include 55713 /usr/X11R6/include 55714 /usr/X11R5/include 55715 /usr/X11R4/include 55716 55717 /usr/include/X11 55718 /usr/include/X11R7 55719 /usr/include/X11R6 55720 /usr/include/X11R5 55721 /usr/include/X11R4 55722 55723 /usr/local/X11/include 55724 /usr/local/X11R7/include 55725 /usr/local/X11R6/include 55726 /usr/local/X11R5/include 55727 /usr/local/X11R4/include 55728 55729 /usr/local/include/X11 55730 /usr/local/include/X11R7 55731 /usr/local/include/X11R6 55732 /usr/local/include/X11R5 55733 /usr/local/include/X11R4 55734 55735 /usr/X386/include 55736 /usr/x386/include 55737 /usr/XFree86/include/X11 55738 55739 /usr/include 55740 /usr/local/include 55741 /usr/unsupported/include 55742 /usr/athena/include 55743 /usr/local/x11r5/include 55744 /usr/lpp/Xamples/include 55745 55746 /usr/openwin/include 55747 /usr/openwin/share/include' 55748 55749 if test "$ac_x_includes" = no; then 55750 # Guess where to find include files, by looking for Xlib.h. 55751 # First, try using that file with no special directory specified. 55752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55753 /* end confdefs.h. */ 55754 #include <X11/Xlib.h> 55755 _ACEOF 55756 if ac_fn_cxx_try_cpp "$LINENO"; then : 55757 # We can compile using X headers with no special include directory. 55758 ac_x_includes= 55759 else 55760 for ac_dir in $ac_x_header_dirs; do 55761 if test -r "$ac_dir/X11/Xlib.h"; then 55762 ac_x_includes=$ac_dir 55763 break 55764 fi 55765 done 55766 fi 55767 rm -f conftest.err conftest.i conftest.$ac_ext 55768 fi # $ac_x_includes = no 55769 55770 if test "$ac_x_libraries" = no; then 55771 # Check for the libraries. 55772 # See if we find them without any special options. 55773 # Don't add to $LIBS permanently. 55774 ac_save_LIBS=$LIBS 55775 LIBS="-lX11 $LIBS" 55776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55777 /* end confdefs.h. */ 55778 #include <X11/Xlib.h> 55779 int 55780 main () 55781 { 55782 XrmInitialize () 55783 ; 55784 return 0; 55785 } 55786 _ACEOF 55787 if ac_fn_cxx_try_link "$LINENO"; then : 55788 LIBS=$ac_save_LIBS 55789 # We can link X programs with no special library path. 55790 ac_x_libraries= 55791 else 55792 LIBS=$ac_save_LIBS 55793 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 55794 do 55795 # Don't even attempt the hair of trying to link an X program! 55796 for ac_extension in a so sl dylib la dll; do 55797 if test -r "$ac_dir/libX11.$ac_extension"; then 55798 ac_x_libraries=$ac_dir 55799 break 2 55800 fi 55801 done 55802 done 55803 fi 55804 rm -f core conftest.err conftest.$ac_objext \ 55805 conftest$ac_exeext conftest.$ac_ext 55806 fi # $ac_x_libraries = no 55807 55808 case $ac_x_includes,$ac_x_libraries in #( 55809 no,* | *,no | *\'*) 55810 # Didn't find X, or a directory has "'" in its name. 55811 ac_cv_have_x="have_x=no";; #( 55812 *) 55813 # Record where we found X for the cache. 55814 ac_cv_have_x="have_x=yes\ 55815 ac_x_includes='$ac_x_includes'\ 55816 ac_x_libraries='$ac_x_libraries'" 55817 esac 55818 fi 55819 ;; #( 55820 *) have_x=yes;; 55821 esac 55822 eval "$ac_cv_have_x" 55823 fi # $with_x != no 55824 55825 if test "$have_x" != yes; then 55826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 55827 $as_echo "$have_x" >&6; } 55828 no_x=yes 55829 else 55830 # If each of the values was on the command line, it overrides each guess. 55831 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 55832 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 55833 # Update the cache value to reflect the command line values. 55834 ac_cv_have_x="have_x=yes\ 55835 ac_x_includes='$x_includes'\ 55836 ac_x_libraries='$x_libraries'" 55837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 55838 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 55839 fi 55840 55841 if test "$no_x" = yes; then 55842 # Not all programs may use this symbol, but it does not hurt to define it. 55843 55844 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 55845 55846 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 55847 else 55848 if test -n "$x_includes"; then 55849 X_CFLAGS="$X_CFLAGS -I$x_includes" 55850 fi 55851 55852 # It would also be nice to do this for all -L options, not just this one. 55853 if test -n "$x_libraries"; then 55854 X_LIBS="$X_LIBS -L$x_libraries" 55855 # For Solaris; some versions of Sun CC require a space after -R and 55856 # others require no space. Words are not sufficient . . . . 55857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 55858 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 55859 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 55860 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 55861 ac_cxx_werror_flag=yes 55862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55863 /* end confdefs.h. */ 55864 55865 int 55866 main () 55867 { 55868 55869 ; 55870 return 0; 55871 } 55872 _ACEOF 55873 if ac_fn_cxx_try_link "$LINENO"; then : 55874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55875 $as_echo "no" >&6; } 55876 X_LIBS="$X_LIBS -R$x_libraries" 55877 else 55878 LIBS="$ac_xsave_LIBS -R $x_libraries" 55879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55880 /* end confdefs.h. */ 55881 55882 int 55883 main () 55884 { 55885 55886 ; 55887 return 0; 55888 } 55889 _ACEOF 55890 if ac_fn_cxx_try_link "$LINENO"; then : 55891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55892 $as_echo "yes" >&6; } 55893 X_LIBS="$X_LIBS -R $x_libraries" 55894 else 55895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 55896 $as_echo "neither works" >&6; } 55897 fi 55898 rm -f core conftest.err conftest.$ac_objext \ 55899 conftest$ac_exeext conftest.$ac_ext 55900 fi 55901 rm -f core conftest.err conftest.$ac_objext \ 55902 conftest$ac_exeext conftest.$ac_ext 55903 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 55904 LIBS=$ac_xsave_LIBS 55905 fi 55906 55907 # Check for system-dependent libraries X programs must link with. 55908 # Do this before checking for the system-independent R6 libraries 55909 # (-lICE), since we may need -lsocket or whatever for X linking. 55910 55911 if test "$ISC" = yes; then 55912 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 55913 else 55914 # Martyn Johnson says this is needed for Ultrix, if the X 55915 # libraries were built with DECnet support. And Karl Berry says 55916 # the Alpha needs dnet_stub (dnet does not exist). 55917 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 55918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55919 /* end confdefs.h. */ 55920 55921 /* Override any GCC internal prototype to avoid an error. 55922 Use char because int might match the return type of a GCC 55923 builtin and then its argument prototype would still apply. */ 55924 #ifdef __cplusplus 55925 extern "C" 55926 #endif 55927 char XOpenDisplay (); 55928 int 55929 main () 55930 { 55931 return XOpenDisplay (); 55932 ; 55933 return 0; 55934 } 55935 _ACEOF 55936 if ac_fn_cxx_try_link "$LINENO"; then : 55937 55938 else 55939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 55940 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 55941 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 55942 $as_echo_n "(cached) " >&6 55943 else 55944 ac_check_lib_save_LIBS=$LIBS 55945 LIBS="-ldnet $LIBS" 55946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55947 /* end confdefs.h. */ 55948 55949 /* Override any GCC internal prototype to avoid an error. 55950 Use char because int might match the return type of a GCC 55951 builtin and then its argument prototype would still apply. */ 55952 #ifdef __cplusplus 55953 extern "C" 55954 #endif 55955 char dnet_ntoa (); 55956 int 55957 main () 55958 { 55959 return dnet_ntoa (); 55960 ; 55961 return 0; 55962 } 55963 _ACEOF 55964 if ac_fn_cxx_try_link "$LINENO"; then : 55965 ac_cv_lib_dnet_dnet_ntoa=yes 55966 else 55967 ac_cv_lib_dnet_dnet_ntoa=no 55968 fi 55969 rm -f core conftest.err conftest.$ac_objext \ 55970 conftest$ac_exeext conftest.$ac_ext 55971 LIBS=$ac_check_lib_save_LIBS 55972 fi 55973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 55974 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 55975 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 55976 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 55977 fi 55978 55979 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 55980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 55981 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 55982 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 55983 $as_echo_n "(cached) " >&6 55984 else 55985 ac_check_lib_save_LIBS=$LIBS 55986 LIBS="-ldnet_stub $LIBS" 55987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55988 /* end confdefs.h. */ 55989 55990 /* Override any GCC internal prototype to avoid an error. 55991 Use char because int might match the return type of a GCC 55992 builtin and then its argument prototype would still apply. */ 55993 #ifdef __cplusplus 55994 extern "C" 55995 #endif 55996 char dnet_ntoa (); 55997 int 55998 main () 55999 { 56000 return dnet_ntoa (); 56001 ; 56002 return 0; 56003 } 56004 _ACEOF 56005 if ac_fn_cxx_try_link "$LINENO"; then : 56006 ac_cv_lib_dnet_stub_dnet_ntoa=yes 56007 else 56008 ac_cv_lib_dnet_stub_dnet_ntoa=no 56009 fi 56010 rm -f core conftest.err conftest.$ac_objext \ 56011 conftest$ac_exeext conftest.$ac_ext 56012 LIBS=$ac_check_lib_save_LIBS 56013 fi 56014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 56015 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 56016 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 56017 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 56018 fi 56019 56020 fi 56021 fi 56022 rm -f core conftest.err conftest.$ac_objext \ 56023 conftest$ac_exeext conftest.$ac_ext 56024 LIBS="$ac_xsave_LIBS" 56025 56026 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 56027 # to get the SysV transport functions. 56028 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 56029 # needs -lnsl. 56030 # The nsl library prevents programs from opening the X display 56031 # on Irix 5.2, according to T.E. Dickey. 56032 # The functions gethostbyname, getservbyname, and inet_addr are 56033 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 56034 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 56035 if test "x$ac_cv_func_gethostbyname" = xyes; then : 56036 56037 fi 56038 56039 if test $ac_cv_func_gethostbyname = no; then 56040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 56041 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 56042 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 56043 $as_echo_n "(cached) " >&6 56044 else 56045 ac_check_lib_save_LIBS=$LIBS 56046 LIBS="-lnsl $LIBS" 56047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56048 /* end confdefs.h. */ 56049 56050 /* Override any GCC internal prototype to avoid an error. 56051 Use char because int might match the return type of a GCC 56052 builtin and then its argument prototype would still apply. */ 56053 #ifdef __cplusplus 56054 extern "C" 56055 #endif 56056 char gethostbyname (); 56057 int 56058 main () 56059 { 56060 return gethostbyname (); 56061 ; 56062 return 0; 56063 } 56064 _ACEOF 56065 if ac_fn_cxx_try_link "$LINENO"; then : 56066 ac_cv_lib_nsl_gethostbyname=yes 56067 else 56068 ac_cv_lib_nsl_gethostbyname=no 56069 fi 56070 rm -f core conftest.err conftest.$ac_objext \ 56071 conftest$ac_exeext conftest.$ac_ext 56072 LIBS=$ac_check_lib_save_LIBS 56073 fi 56074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 56075 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 56076 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 56077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 56078 fi 56079 56080 if test $ac_cv_lib_nsl_gethostbyname = no; then 56081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 56082 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 56083 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 56084 $as_echo_n "(cached) " >&6 56085 else 56086 ac_check_lib_save_LIBS=$LIBS 56087 LIBS="-lbsd $LIBS" 56088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56089 /* end confdefs.h. */ 56090 56091 /* Override any GCC internal prototype to avoid an error. 56092 Use char because int might match the return type of a GCC 56093 builtin and then its argument prototype would still apply. */ 56094 #ifdef __cplusplus 56095 extern "C" 56096 #endif 56097 char gethostbyname (); 56098 int 56099 main () 56100 { 56101 return gethostbyname (); 56102 ; 56103 return 0; 56104 } 56105 _ACEOF 56106 if ac_fn_cxx_try_link "$LINENO"; then : 56107 ac_cv_lib_bsd_gethostbyname=yes 56108 else 56109 ac_cv_lib_bsd_gethostbyname=no 56110 fi 56111 rm -f core conftest.err conftest.$ac_objext \ 56112 conftest$ac_exeext conftest.$ac_ext 56113 LIBS=$ac_check_lib_save_LIBS 56114 fi 56115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 56116 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 56117 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 56118 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 56119 fi 56120 56121 fi 56122 fi 56123 56124 # lieder@skyler.mavd.honeywell.com says without -lsocket, 56125 # socket/setsockopt and other routines are undefined under SCO ODT 56126 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 56127 # on later versions), says Simon Leinen: it contains gethostby* 56128 # variants that don't use the name server (or something). -lsocket 56129 # must be given before -lnsl if both are needed. We assume that 56130 # if connect needs -lnsl, so does gethostbyname. 56131 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 56132 if test "x$ac_cv_func_connect" = xyes; then : 56133 56134 fi 56135 56136 if test $ac_cv_func_connect = no; then 56137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 56138 $as_echo_n "checking for connect in -lsocket... " >&6; } 56139 if ${ac_cv_lib_socket_connect+:} false; then : 56140 $as_echo_n "(cached) " >&6 56141 else 56142 ac_check_lib_save_LIBS=$LIBS 56143 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 56144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56145 /* end confdefs.h. */ 56146 56147 /* Override any GCC internal prototype to avoid an error. 56148 Use char because int might match the return type of a GCC 56149 builtin and then its argument prototype would still apply. */ 56150 #ifdef __cplusplus 56151 extern "C" 56152 #endif 56153 char connect (); 56154 int 56155 main () 56156 { 56157 return connect (); 56158 ; 56159 return 0; 56160 } 56161 _ACEOF 56162 if ac_fn_cxx_try_link "$LINENO"; then : 56163 ac_cv_lib_socket_connect=yes 56164 else 56165 ac_cv_lib_socket_connect=no 56166 fi 56167 rm -f core conftest.err conftest.$ac_objext \ 56168 conftest$ac_exeext conftest.$ac_ext 56169 LIBS=$ac_check_lib_save_LIBS 56170 fi 56171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 56172 $as_echo "$ac_cv_lib_socket_connect" >&6; } 56173 if test "x$ac_cv_lib_socket_connect" = xyes; then : 56174 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 56175 fi 56176 56177 fi 56178 56179 # Guillermo Gomez says -lposix is necessary on A/UX. 56180 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 56181 if test "x$ac_cv_func_remove" = xyes; then : 56182 56183 fi 56184 56185 if test $ac_cv_func_remove = no; then 56186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 56187 $as_echo_n "checking for remove in -lposix... " >&6; } 56188 if ${ac_cv_lib_posix_remove+:} false; then : 56189 $as_echo_n "(cached) " >&6 56190 else 56191 ac_check_lib_save_LIBS=$LIBS 56192 LIBS="-lposix $LIBS" 56193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56194 /* end confdefs.h. */ 56195 56196 /* Override any GCC internal prototype to avoid an error. 56197 Use char because int might match the return type of a GCC 56198 builtin and then its argument prototype would still apply. */ 56199 #ifdef __cplusplus 56200 extern "C" 56201 #endif 56202 char remove (); 56203 int 56204 main () 56205 { 56206 return remove (); 56207 ; 56208 return 0; 56209 } 56210 _ACEOF 56211 if ac_fn_cxx_try_link "$LINENO"; then : 56212 ac_cv_lib_posix_remove=yes 56213 else 56214 ac_cv_lib_posix_remove=no 56215 fi 56216 rm -f core conftest.err conftest.$ac_objext \ 56217 conftest$ac_exeext conftest.$ac_ext 56218 LIBS=$ac_check_lib_save_LIBS 56219 fi 56220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 56221 $as_echo "$ac_cv_lib_posix_remove" >&6; } 56222 if test "x$ac_cv_lib_posix_remove" = xyes; then : 56223 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 56224 fi 56225 56226 fi 56227 56228 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 56229 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 56230 if test "x$ac_cv_func_shmat" = xyes; then : 56231 56232 fi 56233 56234 if test $ac_cv_func_shmat = no; then 56235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 56236 $as_echo_n "checking for shmat in -lipc... " >&6; } 56237 if ${ac_cv_lib_ipc_shmat+:} false; then : 56238 $as_echo_n "(cached) " >&6 56239 else 56240 ac_check_lib_save_LIBS=$LIBS 56241 LIBS="-lipc $LIBS" 56242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56243 /* end confdefs.h. */ 56244 56245 /* Override any GCC internal prototype to avoid an error. 56246 Use char because int might match the return type of a GCC 56247 builtin and then its argument prototype would still apply. */ 56248 #ifdef __cplusplus 56249 extern "C" 56250 #endif 56251 char shmat (); 56252 int 56253 main () 56254 { 56255 return shmat (); 56256 ; 56257 return 0; 56258 } 56259 _ACEOF 56260 if ac_fn_cxx_try_link "$LINENO"; then : 56261 ac_cv_lib_ipc_shmat=yes 56262 else 56263 ac_cv_lib_ipc_shmat=no 56264 fi 56265 rm -f core conftest.err conftest.$ac_objext \ 56266 conftest$ac_exeext conftest.$ac_ext 56267 LIBS=$ac_check_lib_save_LIBS 56268 fi 56269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 56270 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 56271 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 56272 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 56273 fi 56274 56275 fi 56276 fi 56277 56278 # Check for libraries that X11R6 Xt/Xaw programs need. 56279 ac_save_LDFLAGS=$LDFLAGS 56280 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 56281 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 56282 # check for ICE first), but we must link in the order -lSM -lICE or 56283 # we get undefined symbols. So assume we have SM if we have ICE. 56284 # These have to be linked with before -lX11, unlike the other 56285 # libraries we check for below, so use a different variable. 56286 # John Interrante, Karl Berry 56287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 56288 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 56289 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 56290 $as_echo_n "(cached) " >&6 56291 else 56292 ac_check_lib_save_LIBS=$LIBS 56293 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 56294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56295 /* end confdefs.h. */ 56296 56297 /* Override any GCC internal prototype to avoid an error. 56298 Use char because int might match the return type of a GCC 56299 builtin and then its argument prototype would still apply. */ 56300 #ifdef __cplusplus 56301 extern "C" 56302 #endif 56303 char IceConnectionNumber (); 56304 int 56305 main () 56306 { 56307 return IceConnectionNumber (); 56308 ; 56309 return 0; 56310 } 56311 _ACEOF 56312 if ac_fn_cxx_try_link "$LINENO"; then : 56313 ac_cv_lib_ICE_IceConnectionNumber=yes 56314 else 56315 ac_cv_lib_ICE_IceConnectionNumber=no 56316 fi 56317 rm -f core conftest.err conftest.$ac_objext \ 56318 conftest$ac_exeext conftest.$ac_ext 56319 LIBS=$ac_check_lib_save_LIBS 56320 fi 56321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 56322 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 56323 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 56324 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 56325 fi 56326 56327 LDFLAGS=$ac_save_LDFLAGS 56328 56329 fi 56330 56331 56332 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 56333 # this doesn't make sense so we remove it. 56334 if test "x$COMPILE_TYPE" = xcross; then 56335 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 56336 fi 56337 56338 if test "x$no_x" = xyes; then 56339 56340 # Print a helpful message on how to acquire the necessary build dependency. 56341 # x11 is the help tag: freetype, cups, alsa etc 56342 MISSING_DEPENDENCY=x11 56343 56344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56345 cygwin_help $MISSING_DEPENDENCY 56346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56347 msys_help $MISSING_DEPENDENCY 56348 else 56349 PKGHANDLER_COMMAND= 56350 56351 case $PKGHANDLER in 56352 apt-get) 56353 apt_help $MISSING_DEPENDENCY ;; 56354 yum) 56355 yum_help $MISSING_DEPENDENCY ;; 56356 port) 56357 port_help $MISSING_DEPENDENCY ;; 56358 pkgutil) 56359 pkgutil_help $MISSING_DEPENDENCY ;; 56360 pkgadd) 56361 pkgadd_help $MISSING_DEPENDENCY ;; 56362 esac 56363 56364 if test "x$PKGHANDLER_COMMAND" != x; then 56365 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56366 fi 56367 fi 56368 56369 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 56370 fi 56371 56372 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 56373 OPENWIN_HOME="/usr/openwin" 56374 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 56375 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 56376 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 56377 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 56378 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 56379 fi 56380 56381 ac_ext=c 56382 ac_cpp='$CPP $CPPFLAGS' 56383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56385 ac_compiler_gnu=$ac_cv_c_compiler_gnu 56386 56387 OLD_CFLAGS="$CFLAGS" 56388 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 56389 56390 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 56391 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 56392 do : 56393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56394 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 56395 # include <X11/Xlib.h> 56396 # include <X11/Xutil.h> 56397 56398 56399 " 56400 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56401 cat >>confdefs.h <<_ACEOF 56402 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56403 _ACEOF 56404 X11_HEADERS_OK=yes 56405 else 56406 X11_HEADERS_OK=no; break 56407 fi 56408 56409 done 56410 56411 56412 if test "x$X11_HEADERS_OK" = xno; then 56413 56414 # Print a helpful message on how to acquire the necessary build dependency. 56415 # x11 is the help tag: freetype, cups, alsa etc 56416 MISSING_DEPENDENCY=x11 56417 56418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56419 cygwin_help $MISSING_DEPENDENCY 56420 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56421 msys_help $MISSING_DEPENDENCY 56422 else 56423 PKGHANDLER_COMMAND= 56424 56425 case $PKGHANDLER in 56426 apt-get) 56427 apt_help $MISSING_DEPENDENCY ;; 56428 yum) 56429 yum_help $MISSING_DEPENDENCY ;; 56430 port) 56431 port_help $MISSING_DEPENDENCY ;; 56432 pkgutil) 56433 pkgutil_help $MISSING_DEPENDENCY ;; 56434 pkgadd) 56435 pkgadd_help $MISSING_DEPENDENCY ;; 56436 esac 56437 56438 if test "x$PKGHANDLER_COMMAND" != x; then 56439 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56440 fi 56441 fi 56442 56443 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 56444 fi 56445 56446 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 56447 # defined in libawt_xawt. 56448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 56449 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 56450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 56451 /* end confdefs.h. */ 56452 #include <X11/extensions/Xrender.h> 56453 int 56454 main () 56455 { 56456 XLinearGradient x; 56457 ; 56458 return 0; 56459 } 56460 _ACEOF 56461 if ac_fn_c_try_compile "$LINENO"; then : 56462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 56463 $as_echo "yes" >&6; } 56464 else 56465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56466 $as_echo "no" >&6; } 56467 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 56468 fi 56469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 56470 56471 CFLAGS="$OLD_CFLAGS" 56472 ac_ext=cpp 56473 ac_cpp='$CXXCPP $CPPFLAGS' 56474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 56475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 56476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 56477 56478 fi # NEEDS_LIB_X11 56479 56480 56481 56482 56483 56484 56485 # Check whether --with-cups was given. 56486 if test "${with_cups+set}" = set; then : 56487 withval=$with_cups; 56488 fi 56489 56490 56491 # Check whether --with-cups-include was given. 56492 if test "${with_cups_include+set}" = set; then : 56493 withval=$with_cups_include; 56494 fi 56495 56496 56497 if test "x$NEEDS_LIB_CUPS" = xfalse; then 56498 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 56499 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 56500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 56501 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 56502 fi 56503 CUPS_CFLAGS= 56504 else 56505 CUPS_FOUND=no 56506 56507 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 56508 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 56509 fi 56510 56511 if test "x${with_cups}" != x; then 56512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56513 $as_echo_n "checking for cups headers... " >&6; } 56514 if test -s "${with_cups}/include/cups/cups.h"; then 56515 CUPS_CFLAGS="-I${with_cups}/include" 56516 CUPS_FOUND=yes 56517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56518 $as_echo "$CUPS_FOUND" >&6; } 56519 else 56520 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 56521 fi 56522 fi 56523 if test "x${with_cups_include}" != x; then 56524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56525 $as_echo_n "checking for cups headers... " >&6; } 56526 if test -s "${with_cups_include}/cups/cups.h"; then 56527 CUPS_CFLAGS="-I${with_cups_include}" 56528 CUPS_FOUND=yes 56529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56530 $as_echo "$CUPS_FOUND" >&6; } 56531 else 56532 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 56533 fi 56534 fi 56535 if test "x$CUPS_FOUND" = xno; then 56536 # Are the cups headers installed in the default /usr/include location? 56537 for ac_header in cups/cups.h cups/ppd.h 56538 do : 56539 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 56540 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 56541 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 56542 cat >>confdefs.h <<_ACEOF 56543 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 56544 _ACEOF 56545 56546 CUPS_FOUND=yes 56547 CUPS_CFLAGS= 56548 DEFAULT_CUPS=yes 56549 56550 fi 56551 56552 done 56553 56554 fi 56555 if test "x$CUPS_FOUND" = xno; then 56556 # Getting nervous now? Lets poke around for standard Solaris third-party 56557 # package installation locations. 56558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 56559 $as_echo_n "checking for cups headers... " >&6; } 56560 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 56561 # An SFW package seems to be installed! 56562 CUPS_FOUND=yes 56563 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 56564 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 56565 # A CSW package seems to be installed! 56566 CUPS_FOUND=yes 56567 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 56568 fi 56569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 56570 $as_echo "$CUPS_FOUND" >&6; } 56571 fi 56572 if test "x$CUPS_FOUND" = xno; then 56573 56574 # Print a helpful message on how to acquire the necessary build dependency. 56575 # cups is the help tag: freetype, cups, alsa etc 56576 MISSING_DEPENDENCY=cups 56577 56578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56579 cygwin_help $MISSING_DEPENDENCY 56580 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56581 msys_help $MISSING_DEPENDENCY 56582 else 56583 PKGHANDLER_COMMAND= 56584 56585 case $PKGHANDLER in 56586 apt-get) 56587 apt_help $MISSING_DEPENDENCY ;; 56588 yum) 56589 yum_help $MISSING_DEPENDENCY ;; 56590 port) 56591 port_help $MISSING_DEPENDENCY ;; 56592 pkgutil) 56593 pkgutil_help $MISSING_DEPENDENCY ;; 56594 pkgadd) 56595 pkgadd_help $MISSING_DEPENDENCY ;; 56596 esac 56597 56598 if test "x$PKGHANDLER_COMMAND" != x; then 56599 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 56600 fi 56601 fi 56602 56603 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 56604 fi 56605 fi 56606 56607 56608 56609 56610 56611 # Check whether --with-freetype was given. 56612 if test "${with_freetype+set}" = set; then : 56613 withval=$with_freetype; 56614 fi 56615 56616 56617 # Check whether --with-freetype-include was given. 56618 if test "${with_freetype_include+set}" = set; then : 56619 withval=$with_freetype_include; 56620 fi 56621 56622 56623 # Check whether --with-freetype-lib was given. 56624 if test "${with_freetype_lib+set}" = set; then : 56625 withval=$with_freetype_lib; 56626 fi 56627 56628 56629 # Check whether --with-freetype-src was given. 56630 if test "${with_freetype_src+set}" = set; then : 56631 withval=$with_freetype_src; 56632 fi 56633 56634 # Check whether --enable-freetype-bundling was given. 56635 if test "${enable_freetype_bundling+set}" = set; then : 56636 enableval=$enable_freetype_bundling; 56637 fi 56638 56639 56640 # Need to specify explicitly since it needs to be overridden on some versions of macosx 56641 FREETYPE_BASE_NAME=freetype 56642 FREETYPE_CFLAGS= 56643 FREETYPE_LIBS= 56644 FREETYPE_BUNDLE_LIB_PATH= 56645 56646 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 56647 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 56648 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 56649 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 56650 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 56651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 56652 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 56653 fi 56654 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 56655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 56656 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 56657 fi 56658 else 56659 # freetype is needed to build; go get it! 56660 56661 BUNDLE_FREETYPE="$enable_freetype_bundling" 56662 56663 if test "x$with_freetype_src" != x; then 56664 if test "x$OPENJDK_TARGET_OS" = xwindows; then 56665 # Try to build freetype if --with-freetype-src was given on Windows 56666 56667 FREETYPE_SRC_PATH="$with_freetype_src" 56668 BUILD_FREETYPE=yes 56669 56670 # Check if the freetype sources are acessible.. 56671 if ! test -d $FREETYPE_SRC_PATH; then 56672 { $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 56673 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 56674 BUILD_FREETYPE=no 56675 fi 56676 # ..and contain a vc2010 project file 56677 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 56678 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 56679 { $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 56680 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 56681 BUILD_FREETYPE=no 56682 fi 56683 # Now check if configure found a version of 'msbuild.exe' 56684 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 56685 { $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 56686 $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;} 56687 BUILD_FREETYPE=no 56688 fi 56689 56690 # Ready to go.. 56691 if test "x$BUILD_FREETYPE" = xyes; then 56692 # msbuild requires trailing slashes for output directories 56693 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 56694 freetype_lib_path_unix="$freetype_lib_path" 56695 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 56696 56697 unix_path="$vcxproj_path" 56698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56699 windows_path=`$CYGPATH -m "$unix_path"` 56700 vcxproj_path="$windows_path" 56701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56702 windows_path=`cmd //c echo $unix_path` 56703 vcxproj_path="$windows_path" 56704 fi 56705 56706 56707 unix_path="$freetype_lib_path" 56708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56709 windows_path=`$CYGPATH -m "$unix_path"` 56710 freetype_lib_path="$windows_path" 56711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56712 windows_path=`cmd //c echo $unix_path` 56713 freetype_lib_path="$windows_path" 56714 fi 56715 56716 56717 unix_path="$freetype_obj_path" 56718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56719 windows_path=`$CYGPATH -m "$unix_path"` 56720 freetype_obj_path="$windows_path" 56721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56722 windows_path=`cmd //c echo $unix_path` 56723 freetype_obj_path="$windows_path" 56724 fi 56725 56726 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56727 freetype_platform=x64 56728 else 56729 freetype_platform=win32 56730 fi 56731 56732 # The original freetype project file is for VS 2010 (i.e. 'v100'), 56733 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 56734 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 56735 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 56736 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 56737 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 56738 56739 # First we try to build the freetype.dll 56740 $ECHO -e "@echo off\n"\ 56741 "$MSBUILD $vcxproj_path "\ 56742 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 56743 "/p:Configuration=\"Release Multithreaded\" "\ 56744 "/p:Platform=$freetype_platform "\ 56745 "/p:ConfigurationType=DynamicLibrary "\ 56746 "/p:TargetName=freetype "\ 56747 "/p:OutDir=\"$freetype_lib_path\" "\ 56748 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 56749 cmd /c freetype.bat 56750 56751 if test -s "$freetype_lib_path_unix/freetype.dll"; then 56752 # If that succeeds we also build freetype.lib 56753 $ECHO -e "@echo off\n"\ 56754 "$MSBUILD $vcxproj_path "\ 56755 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 56756 "/p:Configuration=\"Release Multithreaded\" "\ 56757 "/p:Platform=$freetype_platform "\ 56758 "/p:ConfigurationType=StaticLibrary "\ 56759 "/p:TargetName=freetype "\ 56760 "/p:OutDir=\"$freetype_lib_path\" "\ 56761 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 56762 cmd /c freetype.bat 56763 56764 if test -s "$freetype_lib_path_unix/freetype.lib"; then 56765 # Once we build both, lib and dll, set freetype lib and include path appropriately 56766 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 56767 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 56768 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 56769 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 56770 else 56771 BUILD_FREETYPE=no 56772 fi 56773 else 56774 BUILD_FREETYPE=no 56775 fi 56776 fi 56777 56778 if test "x$BUILD_FREETYPE" = xyes; then 56779 # Okay, we built it. Check that it works. 56780 56781 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56782 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 56783 METHOD="--with-freetype-src" 56784 56785 # Let's start with an optimistic view of the world :-) 56786 FOUND_FREETYPE=yes 56787 56788 # First look for the canonical freetype main include file ft2build.h. 56789 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56790 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 56791 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 56792 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 56793 # Fail. 56794 FOUND_FREETYPE=no 56795 fi 56796 fi 56797 56798 if test "x$FOUND_FREETYPE" = xyes; then 56799 # Include file found, let's continue the sanity check. 56800 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 56801 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 56802 56803 # Reset to default value 56804 FREETYPE_BASE_NAME=freetype 56805 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 56806 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 56807 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 56808 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 56809 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 56810 # for the .6 version explicitly. 56811 FREETYPE_BASE_NAME=freetype.6 56812 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 56813 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 56814 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 56815 else 56816 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 56817 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 56818 FOUND_FREETYPE=no 56819 fi 56820 else 56821 if test "x$OPENJDK_TARGET_OS" = xwindows; then 56822 # On Windows, we will need both .lib and .dll file. 56823 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 56824 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 56825 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 56826 FOUND_FREETYPE=no 56827 fi 56828 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 56829 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 56830 # Found lib in isa dir, use that instead. 56831 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 56832 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 56833 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 56834 fi 56835 fi 56836 fi 56837 56838 if test "x$FOUND_FREETYPE" = xyes; then 56839 56840 # Only process if variable expands to non-empty 56841 56842 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 56843 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56844 56845 # Input might be given as Windows format, start by converting to 56846 # unix format. 56847 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56848 new_path=`$CYGPATH -u "$path"` 56849 56850 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56851 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56852 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56853 # "foo.exe" is OK but "foo" is an error. 56854 # 56855 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56856 # It is also a way to make sure we got the proper file name for the real test later on. 56857 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56858 if test "x$test_shortpath" = x; then 56859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 56860 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 56861 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 56862 fi 56863 56864 # Call helper function which possibly converts this using DOS-style short mode. 56865 # If so, the updated path is stored in $new_path. 56866 56867 input_path="$new_path" 56868 # Check if we need to convert this using DOS-style short mode. If the path 56869 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56870 # take no chances and rewrite it. 56871 # Note: m4 eats our [], so we need to use [ and ] instead. 56872 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56873 if test "x$has_forbidden_chars" != x; then 56874 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56875 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56876 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56877 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56878 # Going to short mode and back again did indeed matter. Since short mode is 56879 # case insensitive, let's make it lowercase to improve readability. 56880 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56881 # Now convert it back to Unix-style (cygpath) 56882 input_path=`$CYGPATH -u "$shortmode_path"` 56883 new_path="$input_path" 56884 fi 56885 fi 56886 56887 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56888 if test "x$test_cygdrive_prefix" = x; then 56889 # As a simple fix, exclude /usr/bin since it's not a real path. 56890 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56891 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56892 # a path prefixed by /cygdrive for fixpath to work. 56893 new_path="$CYGWIN_ROOT_PATH$input_path" 56894 fi 56895 fi 56896 56897 56898 if test "x$path" != "x$new_path"; then 56899 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 56900 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 56901 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 56902 fi 56903 56904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56905 56906 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56907 has_colon=`$ECHO $path | $GREP ^.:` 56908 new_path="$path" 56909 if test "x$has_colon" = x; then 56910 # Not in mixed or Windows style, start by that. 56911 new_path=`cmd //c echo $path` 56912 fi 56913 56914 56915 input_path="$new_path" 56916 # Check if we need to convert this using DOS-style short mode. If the path 56917 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56918 # take no chances and rewrite it. 56919 # Note: m4 eats our [], so we need to use [ and ] instead. 56920 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56921 if test "x$has_forbidden_chars" != x; then 56922 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56923 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56924 fi 56925 56926 56927 windows_path="$new_path" 56928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56929 unix_path=`$CYGPATH -u "$windows_path"` 56930 new_path="$unix_path" 56931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56932 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56933 new_path="$unix_path" 56934 fi 56935 56936 if test "x$path" != "x$new_path"; then 56937 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 56938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 56939 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 56940 fi 56941 56942 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56943 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56944 56945 else 56946 # We're on a unix platform. Hooray! :) 56947 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 56948 has_space=`$ECHO "$path" | $GREP " "` 56949 if test "x$has_space" != x; then 56950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 56951 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 56952 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56953 fi 56954 56955 # Use eval to expand a potential ~ 56956 eval path="$path" 56957 if test ! -f "$path" && test ! -d "$path"; then 56958 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 56959 fi 56960 56961 if test -d "$path"; then 56962 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 56963 else 56964 dir="`$DIRNAME "$path"`" 56965 base="`$BASENAME "$path"`" 56966 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 56967 fi 56968 fi 56969 fi 56970 56971 56972 # Only process if variable expands to non-empty 56973 56974 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 56975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56976 56977 # Input might be given as Windows format, start by converting to 56978 # unix format. 56979 path="$POTENTIAL_FREETYPE_LIB_PATH" 56980 new_path=`$CYGPATH -u "$path"` 56981 56982 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56983 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56984 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56985 # "foo.exe" is OK but "foo" is an error. 56986 # 56987 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56988 # It is also a way to make sure we got the proper file name for the real test later on. 56989 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56990 if test "x$test_shortpath" = x; then 56991 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 56992 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 56993 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 56994 fi 56995 56996 # Call helper function which possibly converts this using DOS-style short mode. 56997 # If so, the updated path is stored in $new_path. 56998 56999 input_path="$new_path" 57000 # Check if we need to convert this using DOS-style short mode. If the path 57001 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57002 # take no chances and rewrite it. 57003 # Note: m4 eats our [], so we need to use [ and ] instead. 57004 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57005 if test "x$has_forbidden_chars" != x; then 57006 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57007 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57008 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57009 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57010 # Going to short mode and back again did indeed matter. Since short mode is 57011 # case insensitive, let's make it lowercase to improve readability. 57012 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57013 # Now convert it back to Unix-style (cygpath) 57014 input_path=`$CYGPATH -u "$shortmode_path"` 57015 new_path="$input_path" 57016 fi 57017 fi 57018 57019 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57020 if test "x$test_cygdrive_prefix" = x; then 57021 # As a simple fix, exclude /usr/bin since it's not a real path. 57022 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57023 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57024 # a path prefixed by /cygdrive for fixpath to work. 57025 new_path="$CYGWIN_ROOT_PATH$input_path" 57026 fi 57027 fi 57028 57029 57030 if test "x$path" != "x$new_path"; then 57031 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57032 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57033 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57034 fi 57035 57036 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57037 57038 path="$POTENTIAL_FREETYPE_LIB_PATH" 57039 has_colon=`$ECHO $path | $GREP ^.:` 57040 new_path="$path" 57041 if test "x$has_colon" = x; then 57042 # Not in mixed or Windows style, start by that. 57043 new_path=`cmd //c echo $path` 57044 fi 57045 57046 57047 input_path="$new_path" 57048 # Check if we need to convert this using DOS-style short mode. If the path 57049 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57050 # take no chances and rewrite it. 57051 # Note: m4 eats our [], so we need to use [ and ] instead. 57052 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57053 if test "x$has_forbidden_chars" != x; then 57054 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57055 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57056 fi 57057 57058 57059 windows_path="$new_path" 57060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57061 unix_path=`$CYGPATH -u "$windows_path"` 57062 new_path="$unix_path" 57063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57064 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57065 new_path="$unix_path" 57066 fi 57067 57068 if test "x$path" != "x$new_path"; then 57069 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57070 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57071 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57072 fi 57073 57074 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57075 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57076 57077 else 57078 # We're on a unix platform. Hooray! :) 57079 path="$POTENTIAL_FREETYPE_LIB_PATH" 57080 has_space=`$ECHO "$path" | $GREP " "` 57081 if test "x$has_space" != x; then 57082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57083 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57084 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57085 fi 57086 57087 # Use eval to expand a potential ~ 57088 eval path="$path" 57089 if test ! -f "$path" && test ! -d "$path"; then 57090 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57091 fi 57092 57093 if test -d "$path"; then 57094 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57095 else 57096 dir="`$DIRNAME "$path"`" 57097 base="`$BASENAME "$path"`" 57098 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57099 fi 57100 fi 57101 fi 57102 57103 57104 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57106 $as_echo_n "checking for freetype includes... " >&6; } 57107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57108 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57109 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57111 $as_echo_n "checking for freetype libraries... " >&6; } 57112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57113 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57114 fi 57115 57116 if test "x$FOUND_FREETYPE" != xyes; then 57117 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 57118 fi 57119 else 57120 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 57121 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 57122 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 57123 fi 57124 else 57125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 57126 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 57127 fi 57128 fi 57129 57130 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 57131 # User has specified settings 57132 57133 if test "x$BUNDLE_FREETYPE" = x; then 57134 # If not specified, default is to bundle freetype 57135 BUNDLE_FREETYPE=yes 57136 fi 57137 57138 if test "x$with_freetype" != x; then 57139 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 57140 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 57141 fi 57142 57143 # Allow --with-freetype-lib and --with-freetype-include to override 57144 if test "x$with_freetype_include" != x; then 57145 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 57146 fi 57147 if test "x$with_freetype_lib" != x; then 57148 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 57149 fi 57150 57151 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57152 # Okay, we got it. Check that it works. 57153 57154 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57155 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57156 METHOD="--with-freetype" 57157 57158 # Let's start with an optimistic view of the world :-) 57159 FOUND_FREETYPE=yes 57160 57161 # First look for the canonical freetype main include file ft2build.h. 57162 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57163 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57164 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57165 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57166 # Fail. 57167 FOUND_FREETYPE=no 57168 fi 57169 fi 57170 57171 if test "x$FOUND_FREETYPE" = xyes; then 57172 # Include file found, let's continue the sanity check. 57173 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57174 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57175 57176 # Reset to default value 57177 FREETYPE_BASE_NAME=freetype 57178 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57179 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57180 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57181 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57182 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57183 # for the .6 version explicitly. 57184 FREETYPE_BASE_NAME=freetype.6 57185 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57186 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57187 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57188 else 57189 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57190 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57191 FOUND_FREETYPE=no 57192 fi 57193 else 57194 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57195 # On Windows, we will need both .lib and .dll file. 57196 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57197 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57198 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57199 FOUND_FREETYPE=no 57200 fi 57201 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57202 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57203 # Found lib in isa dir, use that instead. 57204 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57205 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57206 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57207 fi 57208 fi 57209 fi 57210 57211 if test "x$FOUND_FREETYPE" = xyes; then 57212 57213 # Only process if variable expands to non-empty 57214 57215 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57217 57218 # Input might be given as Windows format, start by converting to 57219 # unix format. 57220 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57221 new_path=`$CYGPATH -u "$path"` 57222 57223 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57224 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57225 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57226 # "foo.exe" is OK but "foo" is an error. 57227 # 57228 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57229 # It is also a way to make sure we got the proper file name for the real test later on. 57230 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57231 if test "x$test_shortpath" = x; then 57232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57233 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57234 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57235 fi 57236 57237 # Call helper function which possibly converts this using DOS-style short mode. 57238 # If so, the updated path is stored in $new_path. 57239 57240 input_path="$new_path" 57241 # Check if we need to convert this using DOS-style short mode. If the path 57242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57243 # take no chances and rewrite it. 57244 # Note: m4 eats our [], so we need to use [ and ] instead. 57245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57246 if test "x$has_forbidden_chars" != x; then 57247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57248 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57249 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57250 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57251 # Going to short mode and back again did indeed matter. Since short mode is 57252 # case insensitive, let's make it lowercase to improve readability. 57253 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57254 # Now convert it back to Unix-style (cygpath) 57255 input_path=`$CYGPATH -u "$shortmode_path"` 57256 new_path="$input_path" 57257 fi 57258 fi 57259 57260 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57261 if test "x$test_cygdrive_prefix" = x; then 57262 # As a simple fix, exclude /usr/bin since it's not a real path. 57263 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57264 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57265 # a path prefixed by /cygdrive for fixpath to work. 57266 new_path="$CYGWIN_ROOT_PATH$input_path" 57267 fi 57268 fi 57269 57270 57271 if test "x$path" != "x$new_path"; then 57272 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57273 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57274 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57275 fi 57276 57277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57278 57279 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57280 has_colon=`$ECHO $path | $GREP ^.:` 57281 new_path="$path" 57282 if test "x$has_colon" = x; then 57283 # Not in mixed or Windows style, start by that. 57284 new_path=`cmd //c echo $path` 57285 fi 57286 57287 57288 input_path="$new_path" 57289 # Check if we need to convert this using DOS-style short mode. If the path 57290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57291 # take no chances and rewrite it. 57292 # Note: m4 eats our [], so we need to use [ and ] instead. 57293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57294 if test "x$has_forbidden_chars" != x; then 57295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57296 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57297 fi 57298 57299 57300 windows_path="$new_path" 57301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57302 unix_path=`$CYGPATH -u "$windows_path"` 57303 new_path="$unix_path" 57304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57306 new_path="$unix_path" 57307 fi 57308 57309 if test "x$path" != "x$new_path"; then 57310 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57312 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57313 fi 57314 57315 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57316 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57317 57318 else 57319 # We're on a unix platform. Hooray! :) 57320 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57321 has_space=`$ECHO "$path" | $GREP " "` 57322 if test "x$has_space" != x; then 57323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57324 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57325 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57326 fi 57327 57328 # Use eval to expand a potential ~ 57329 eval path="$path" 57330 if test ! -f "$path" && test ! -d "$path"; then 57331 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57332 fi 57333 57334 if test -d "$path"; then 57335 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57336 else 57337 dir="`$DIRNAME "$path"`" 57338 base="`$BASENAME "$path"`" 57339 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57340 fi 57341 fi 57342 fi 57343 57344 57345 # Only process if variable expands to non-empty 57346 57347 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57348 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57349 57350 # Input might be given as Windows format, start by converting to 57351 # unix format. 57352 path="$POTENTIAL_FREETYPE_LIB_PATH" 57353 new_path=`$CYGPATH -u "$path"` 57354 57355 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57356 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57357 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57358 # "foo.exe" is OK but "foo" is an error. 57359 # 57360 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57361 # It is also a way to make sure we got the proper file name for the real test later on. 57362 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57363 if test "x$test_shortpath" = x; then 57364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57365 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57366 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57367 fi 57368 57369 # Call helper function which possibly converts this using DOS-style short mode. 57370 # If so, the updated path is stored in $new_path. 57371 57372 input_path="$new_path" 57373 # Check if we need to convert this using DOS-style short mode. If the path 57374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57375 # take no chances and rewrite it. 57376 # Note: m4 eats our [], so we need to use [ and ] instead. 57377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57378 if test "x$has_forbidden_chars" != x; then 57379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57380 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57381 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57382 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57383 # Going to short mode and back again did indeed matter. Since short mode is 57384 # case insensitive, let's make it lowercase to improve readability. 57385 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57386 # Now convert it back to Unix-style (cygpath) 57387 input_path=`$CYGPATH -u "$shortmode_path"` 57388 new_path="$input_path" 57389 fi 57390 fi 57391 57392 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57393 if test "x$test_cygdrive_prefix" = x; then 57394 # As a simple fix, exclude /usr/bin since it's not a real path. 57395 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57396 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57397 # a path prefixed by /cygdrive for fixpath to work. 57398 new_path="$CYGWIN_ROOT_PATH$input_path" 57399 fi 57400 fi 57401 57402 57403 if test "x$path" != "x$new_path"; then 57404 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57405 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57406 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57407 fi 57408 57409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57410 57411 path="$POTENTIAL_FREETYPE_LIB_PATH" 57412 has_colon=`$ECHO $path | $GREP ^.:` 57413 new_path="$path" 57414 if test "x$has_colon" = x; then 57415 # Not in mixed or Windows style, start by that. 57416 new_path=`cmd //c echo $path` 57417 fi 57418 57419 57420 input_path="$new_path" 57421 # Check if we need to convert this using DOS-style short mode. If the path 57422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57423 # take no chances and rewrite it. 57424 # Note: m4 eats our [], so we need to use [ and ] instead. 57425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57426 if test "x$has_forbidden_chars" != x; then 57427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57428 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57429 fi 57430 57431 57432 windows_path="$new_path" 57433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57434 unix_path=`$CYGPATH -u "$windows_path"` 57435 new_path="$unix_path" 57436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57437 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57438 new_path="$unix_path" 57439 fi 57440 57441 if test "x$path" != "x$new_path"; then 57442 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57443 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57444 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57445 fi 57446 57447 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57448 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57449 57450 else 57451 # We're on a unix platform. Hooray! :) 57452 path="$POTENTIAL_FREETYPE_LIB_PATH" 57453 has_space=`$ECHO "$path" | $GREP " "` 57454 if test "x$has_space" != x; then 57455 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57456 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57457 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57458 fi 57459 57460 # Use eval to expand a potential ~ 57461 eval path="$path" 57462 if test ! -f "$path" && test ! -d "$path"; then 57463 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57464 fi 57465 57466 if test -d "$path"; then 57467 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57468 else 57469 dir="`$DIRNAME "$path"`" 57470 base="`$BASENAME "$path"`" 57471 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57472 fi 57473 fi 57474 fi 57475 57476 57477 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57479 $as_echo_n "checking for freetype includes... " >&6; } 57480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57481 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57482 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57484 $as_echo_n "checking for freetype libraries... " >&6; } 57485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57486 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57487 fi 57488 57489 if test "x$FOUND_FREETYPE" != xyes; then 57490 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 57491 fi 57492 else 57493 # User specified only one of lib or include. This is an error. 57494 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 57495 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 57496 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 57497 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 57498 else 57499 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 57500 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 57501 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 57502 fi 57503 fi 57504 else 57505 # User did not specify settings, but we need freetype. Try to locate it. 57506 57507 if test "x$BUNDLE_FREETYPE" = x; then 57508 # If not specified, default is to bundle freetype only on windows 57509 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57510 BUNDLE_FREETYPE=yes 57511 else 57512 BUNDLE_FREETYPE=no 57513 fi 57514 fi 57515 57516 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 57517 if test "x$SYSROOT" = x; then 57518 if test "x$FOUND_FREETYPE" != xyes; then 57519 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 57520 if test "x$PKG_CONFIG" != x; then 57521 57522 pkg_failed=no 57523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 57524 $as_echo_n "checking for FREETYPE... " >&6; } 57525 57526 if test -n "$FREETYPE_CFLAGS"; then 57527 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 57528 elif test -n "$PKG_CONFIG"; then 57529 if test -n "$PKG_CONFIG" && \ 57530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 57531 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 57532 ac_status=$? 57533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57534 test $ac_status = 0; }; then 57535 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 57536 else 57537 pkg_failed=yes 57538 fi 57539 else 57540 pkg_failed=untried 57541 fi 57542 if test -n "$FREETYPE_LIBS"; then 57543 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 57544 elif test -n "$PKG_CONFIG"; then 57545 if test -n "$PKG_CONFIG" && \ 57546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 57547 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 57548 ac_status=$? 57549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 57550 test $ac_status = 0; }; then 57551 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 57552 else 57553 pkg_failed=yes 57554 fi 57555 else 57556 pkg_failed=untried 57557 fi 57558 57559 57560 57561 if test $pkg_failed = yes; then 57562 57563 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 57564 _pkg_short_errors_supported=yes 57565 else 57566 _pkg_short_errors_supported=no 57567 fi 57568 if test $_pkg_short_errors_supported = yes; then 57569 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 57570 else 57571 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 57572 fi 57573 # Put the nasty error message in config.log where it belongs 57574 echo "$FREETYPE_PKG_ERRORS" >&5 57575 57576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 57577 $as_echo "no" >&6; } 57578 FOUND_FREETYPE=no 57579 elif test $pkg_failed = untried; then 57580 FOUND_FREETYPE=no 57581 else 57582 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 57583 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 57584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 57585 $as_echo "yes" >&6; } 57586 FOUND_FREETYPE=yes 57587 fi 57588 if test "x$FOUND_FREETYPE" = xyes; then 57589 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 57590 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 57591 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 57592 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 57593 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 57594 fi 57595 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 57596 if test "x$BUNDLE_FREETYPE" = xyes; then 57597 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 57598 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 57599 FOUND_FREETYPE=no 57600 else 57601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 57602 $as_echo_n "checking for freetype... " >&6; } 57603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 57604 $as_echo "yes (using pkg-config)" >&6; } 57605 fi 57606 fi 57607 fi 57608 fi 57609 fi 57610 57611 if test "x$FOUND_FREETYPE" != xyes; then 57612 # Check in well-known locations 57613 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57614 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 57615 57616 windows_path="$FREETYPE_BASE_DIR" 57617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57618 unix_path=`$CYGPATH -u "$windows_path"` 57619 FREETYPE_BASE_DIR="$unix_path" 57620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57622 FREETYPE_BASE_DIR="$unix_path" 57623 fi 57624 57625 57626 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 57627 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 57628 METHOD="well-known location" 57629 57630 # Let's start with an optimistic view of the world :-) 57631 FOUND_FREETYPE=yes 57632 57633 # First look for the canonical freetype main include file ft2build.h. 57634 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57635 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57636 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57637 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57638 # Fail. 57639 FOUND_FREETYPE=no 57640 fi 57641 fi 57642 57643 if test "x$FOUND_FREETYPE" = xyes; then 57644 # Include file found, let's continue the sanity check. 57645 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57646 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57647 57648 # Reset to default value 57649 FREETYPE_BASE_NAME=freetype 57650 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57651 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 57652 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 57653 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 57654 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 57655 # for the .6 version explicitly. 57656 FREETYPE_BASE_NAME=freetype.6 57657 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57658 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 57659 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 57660 else 57661 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 57662 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 57663 FOUND_FREETYPE=no 57664 fi 57665 else 57666 if test "x$OPENJDK_TARGET_OS" = xwindows; then 57667 # On Windows, we will need both .lib and .dll file. 57668 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 57669 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 57670 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 57671 FOUND_FREETYPE=no 57672 fi 57673 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 57674 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 57675 # Found lib in isa dir, use that instead. 57676 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 57677 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 57678 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 57679 fi 57680 fi 57681 fi 57682 57683 if test "x$FOUND_FREETYPE" = xyes; then 57684 57685 # Only process if variable expands to non-empty 57686 57687 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 57688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57689 57690 # Input might be given as Windows format, start by converting to 57691 # unix format. 57692 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57693 new_path=`$CYGPATH -u "$path"` 57694 57695 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57696 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57697 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57698 # "foo.exe" is OK but "foo" is an error. 57699 # 57700 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57701 # It is also a way to make sure we got the proper file name for the real test later on. 57702 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57703 if test "x$test_shortpath" = x; then 57704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57705 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57706 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 57707 fi 57708 57709 # Call helper function which possibly converts this using DOS-style short mode. 57710 # If so, the updated path is stored in $new_path. 57711 57712 input_path="$new_path" 57713 # Check if we need to convert this using DOS-style short mode. If the path 57714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57715 # take no chances and rewrite it. 57716 # Note: m4 eats our [], so we need to use [ and ] instead. 57717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57718 if test "x$has_forbidden_chars" != x; then 57719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57720 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57721 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57722 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57723 # Going to short mode and back again did indeed matter. Since short mode is 57724 # case insensitive, let's make it lowercase to improve readability. 57725 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57726 # Now convert it back to Unix-style (cygpath) 57727 input_path=`$CYGPATH -u "$shortmode_path"` 57728 new_path="$input_path" 57729 fi 57730 fi 57731 57732 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57733 if test "x$test_cygdrive_prefix" = x; then 57734 # As a simple fix, exclude /usr/bin since it's not a real path. 57735 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57736 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57737 # a path prefixed by /cygdrive for fixpath to work. 57738 new_path="$CYGWIN_ROOT_PATH$input_path" 57739 fi 57740 fi 57741 57742 57743 if test "x$path" != "x$new_path"; then 57744 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57746 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57747 fi 57748 57749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57750 57751 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57752 has_colon=`$ECHO $path | $GREP ^.:` 57753 new_path="$path" 57754 if test "x$has_colon" = x; then 57755 # Not in mixed or Windows style, start by that. 57756 new_path=`cmd //c echo $path` 57757 fi 57758 57759 57760 input_path="$new_path" 57761 # Check if we need to convert this using DOS-style short mode. If the path 57762 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57763 # take no chances and rewrite it. 57764 # Note: m4 eats our [], so we need to use [ and ] instead. 57765 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57766 if test "x$has_forbidden_chars" != x; then 57767 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57768 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57769 fi 57770 57771 57772 windows_path="$new_path" 57773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57774 unix_path=`$CYGPATH -u "$windows_path"` 57775 new_path="$unix_path" 57776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57778 new_path="$unix_path" 57779 fi 57780 57781 if test "x$path" != "x$new_path"; then 57782 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 57783 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 57784 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 57785 fi 57786 57787 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57788 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57789 57790 else 57791 # We're on a unix platform. Hooray! :) 57792 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57793 has_space=`$ECHO "$path" | $GREP " "` 57794 if test "x$has_space" != x; then 57795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 57796 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 57797 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57798 fi 57799 57800 # Use eval to expand a potential ~ 57801 eval path="$path" 57802 if test ! -f "$path" && test ! -d "$path"; then 57803 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57804 fi 57805 57806 if test -d "$path"; then 57807 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 57808 else 57809 dir="`$DIRNAME "$path"`" 57810 base="`$BASENAME "$path"`" 57811 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57812 fi 57813 fi 57814 fi 57815 57816 57817 # Only process if variable expands to non-empty 57818 57819 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 57820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57821 57822 # Input might be given as Windows format, start by converting to 57823 # unix format. 57824 path="$POTENTIAL_FREETYPE_LIB_PATH" 57825 new_path=`$CYGPATH -u "$path"` 57826 57827 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57828 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57829 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57830 # "foo.exe" is OK but "foo" is an error. 57831 # 57832 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57833 # It is also a way to make sure we got the proper file name for the real test later on. 57834 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57835 if test "x$test_shortpath" = x; then 57836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57837 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57838 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 57839 fi 57840 57841 # Call helper function which possibly converts this using DOS-style short mode. 57842 # If so, the updated path is stored in $new_path. 57843 57844 input_path="$new_path" 57845 # Check if we need to convert this using DOS-style short mode. If the path 57846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57847 # take no chances and rewrite it. 57848 # Note: m4 eats our [], so we need to use [ and ] instead. 57849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57850 if test "x$has_forbidden_chars" != x; then 57851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57852 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57853 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57854 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57855 # Going to short mode and back again did indeed matter. Since short mode is 57856 # case insensitive, let's make it lowercase to improve readability. 57857 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57858 # Now convert it back to Unix-style (cygpath) 57859 input_path=`$CYGPATH -u "$shortmode_path"` 57860 new_path="$input_path" 57861 fi 57862 fi 57863 57864 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57865 if test "x$test_cygdrive_prefix" = x; then 57866 # As a simple fix, exclude /usr/bin since it's not a real path. 57867 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57868 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57869 # a path prefixed by /cygdrive for fixpath to work. 57870 new_path="$CYGWIN_ROOT_PATH$input_path" 57871 fi 57872 fi 57873 57874 57875 if test "x$path" != "x$new_path"; then 57876 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57877 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57878 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57879 fi 57880 57881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57882 57883 path="$POTENTIAL_FREETYPE_LIB_PATH" 57884 has_colon=`$ECHO $path | $GREP ^.:` 57885 new_path="$path" 57886 if test "x$has_colon" = x; then 57887 # Not in mixed or Windows style, start by that. 57888 new_path=`cmd //c echo $path` 57889 fi 57890 57891 57892 input_path="$new_path" 57893 # Check if we need to convert this using DOS-style short mode. If the path 57894 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57895 # take no chances and rewrite it. 57896 # Note: m4 eats our [], so we need to use [ and ] instead. 57897 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57898 if test "x$has_forbidden_chars" != x; then 57899 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57900 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57901 fi 57902 57903 57904 windows_path="$new_path" 57905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57906 unix_path=`$CYGPATH -u "$windows_path"` 57907 new_path="$unix_path" 57908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57910 new_path="$unix_path" 57911 fi 57912 57913 if test "x$path" != "x$new_path"; then 57914 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 57915 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 57916 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 57917 fi 57918 57919 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57920 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57921 57922 else 57923 # We're on a unix platform. Hooray! :) 57924 path="$POTENTIAL_FREETYPE_LIB_PATH" 57925 has_space=`$ECHO "$path" | $GREP " "` 57926 if test "x$has_space" != x; then 57927 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 57928 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 57929 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57930 fi 57931 57932 # Use eval to expand a potential ~ 57933 eval path="$path" 57934 if test ! -f "$path" && test ! -d "$path"; then 57935 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 57936 fi 57937 57938 if test -d "$path"; then 57939 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 57940 else 57941 dir="`$DIRNAME "$path"`" 57942 base="`$BASENAME "$path"`" 57943 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 57944 fi 57945 fi 57946 fi 57947 57948 57949 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 57950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 57951 $as_echo_n "checking for freetype includes... " >&6; } 57952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 57953 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 57954 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 57955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 57956 $as_echo_n "checking for freetype libraries... " >&6; } 57957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 57958 $as_echo "$FREETYPE_LIB_PATH" >&6; } 57959 fi 57960 57961 if test "x$FOUND_FREETYPE" != xyes; then 57962 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 57963 57964 windows_path="$FREETYPE_BASE_DIR" 57965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57966 unix_path=`$CYGPATH -u "$windows_path"` 57967 FREETYPE_BASE_DIR="$unix_path" 57968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57969 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57970 FREETYPE_BASE_DIR="$unix_path" 57971 fi 57972 57973 57974 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 57975 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 57976 METHOD="well-known location" 57977 57978 # Let's start with an optimistic view of the world :-) 57979 FOUND_FREETYPE=yes 57980 57981 # First look for the canonical freetype main include file ft2build.h. 57982 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57983 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 57984 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 57985 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 57986 # Fail. 57987 FOUND_FREETYPE=no 57988 fi 57989 fi 57990 57991 if test "x$FOUND_FREETYPE" = xyes; then 57992 # Include file found, let's continue the sanity check. 57993 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 57994 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 57995 57996 # Reset to default value 57997 FREETYPE_BASE_NAME=freetype 57998 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 57999 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58000 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58001 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58002 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58003 # for the .6 version explicitly. 58004 FREETYPE_BASE_NAME=freetype.6 58005 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58006 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58007 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58008 else 58009 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58010 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58011 FOUND_FREETYPE=no 58012 fi 58013 else 58014 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58015 # On Windows, we will need both .lib and .dll file. 58016 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58017 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58018 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58019 FOUND_FREETYPE=no 58020 fi 58021 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58022 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58023 # Found lib in isa dir, use that instead. 58024 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58026 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58027 fi 58028 fi 58029 fi 58030 58031 if test "x$FOUND_FREETYPE" = xyes; then 58032 58033 # Only process if variable expands to non-empty 58034 58035 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58037 58038 # Input might be given as Windows format, start by converting to 58039 # unix format. 58040 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58041 new_path=`$CYGPATH -u "$path"` 58042 58043 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58044 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58045 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58046 # "foo.exe" is OK but "foo" is an error. 58047 # 58048 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58049 # It is also a way to make sure we got the proper file name for the real test later on. 58050 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58051 if test "x$test_shortpath" = x; then 58052 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58053 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58054 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58055 fi 58056 58057 # Call helper function which possibly converts this using DOS-style short mode. 58058 # If so, the updated path is stored in $new_path. 58059 58060 input_path="$new_path" 58061 # Check if we need to convert this using DOS-style short mode. If the path 58062 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58063 # take no chances and rewrite it. 58064 # Note: m4 eats our [], so we need to use [ and ] instead. 58065 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58066 if test "x$has_forbidden_chars" != x; then 58067 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58068 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58069 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58070 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58071 # Going to short mode and back again did indeed matter. Since short mode is 58072 # case insensitive, let's make it lowercase to improve readability. 58073 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58074 # Now convert it back to Unix-style (cygpath) 58075 input_path=`$CYGPATH -u "$shortmode_path"` 58076 new_path="$input_path" 58077 fi 58078 fi 58079 58080 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58081 if test "x$test_cygdrive_prefix" = x; then 58082 # As a simple fix, exclude /usr/bin since it's not a real path. 58083 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58084 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58085 # a path prefixed by /cygdrive for fixpath to work. 58086 new_path="$CYGWIN_ROOT_PATH$input_path" 58087 fi 58088 fi 58089 58090 58091 if test "x$path" != "x$new_path"; then 58092 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58093 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58094 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58095 fi 58096 58097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58098 58099 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58100 has_colon=`$ECHO $path | $GREP ^.:` 58101 new_path="$path" 58102 if test "x$has_colon" = x; then 58103 # Not in mixed or Windows style, start by that. 58104 new_path=`cmd //c echo $path` 58105 fi 58106 58107 58108 input_path="$new_path" 58109 # Check if we need to convert this using DOS-style short mode. If the path 58110 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58111 # take no chances and rewrite it. 58112 # Note: m4 eats our [], so we need to use [ and ] instead. 58113 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58114 if test "x$has_forbidden_chars" != x; then 58115 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58116 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58117 fi 58118 58119 58120 windows_path="$new_path" 58121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58122 unix_path=`$CYGPATH -u "$windows_path"` 58123 new_path="$unix_path" 58124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58126 new_path="$unix_path" 58127 fi 58128 58129 if test "x$path" != "x$new_path"; then 58130 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58132 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58133 fi 58134 58135 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58136 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58137 58138 else 58139 # We're on a unix platform. Hooray! :) 58140 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58141 has_space=`$ECHO "$path" | $GREP " "` 58142 if test "x$has_space" != x; then 58143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58144 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58145 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58146 fi 58147 58148 # Use eval to expand a potential ~ 58149 eval path="$path" 58150 if test ! -f "$path" && test ! -d "$path"; then 58151 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58152 fi 58153 58154 if test -d "$path"; then 58155 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58156 else 58157 dir="`$DIRNAME "$path"`" 58158 base="`$BASENAME "$path"`" 58159 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58160 fi 58161 fi 58162 fi 58163 58164 58165 # Only process if variable expands to non-empty 58166 58167 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58169 58170 # Input might be given as Windows format, start by converting to 58171 # unix format. 58172 path="$POTENTIAL_FREETYPE_LIB_PATH" 58173 new_path=`$CYGPATH -u "$path"` 58174 58175 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58176 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58177 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58178 # "foo.exe" is OK but "foo" is an error. 58179 # 58180 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58181 # It is also a way to make sure we got the proper file name for the real test later on. 58182 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58183 if test "x$test_shortpath" = x; then 58184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58185 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58186 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58187 fi 58188 58189 # Call helper function which possibly converts this using DOS-style short mode. 58190 # If so, the updated path is stored in $new_path. 58191 58192 input_path="$new_path" 58193 # Check if we need to convert this using DOS-style short mode. If the path 58194 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58195 # take no chances and rewrite it. 58196 # Note: m4 eats our [], so we need to use [ and ] instead. 58197 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58198 if test "x$has_forbidden_chars" != x; then 58199 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58200 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58201 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58202 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58203 # Going to short mode and back again did indeed matter. Since short mode is 58204 # case insensitive, let's make it lowercase to improve readability. 58205 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58206 # Now convert it back to Unix-style (cygpath) 58207 input_path=`$CYGPATH -u "$shortmode_path"` 58208 new_path="$input_path" 58209 fi 58210 fi 58211 58212 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58213 if test "x$test_cygdrive_prefix" = x; then 58214 # As a simple fix, exclude /usr/bin since it's not a real path. 58215 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58216 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58217 # a path prefixed by /cygdrive for fixpath to work. 58218 new_path="$CYGWIN_ROOT_PATH$input_path" 58219 fi 58220 fi 58221 58222 58223 if test "x$path" != "x$new_path"; then 58224 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58225 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58226 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58227 fi 58228 58229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58230 58231 path="$POTENTIAL_FREETYPE_LIB_PATH" 58232 has_colon=`$ECHO $path | $GREP ^.:` 58233 new_path="$path" 58234 if test "x$has_colon" = x; then 58235 # Not in mixed or Windows style, start by that. 58236 new_path=`cmd //c echo $path` 58237 fi 58238 58239 58240 input_path="$new_path" 58241 # Check if we need to convert this using DOS-style short mode. If the path 58242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58243 # take no chances and rewrite it. 58244 # Note: m4 eats our [], so we need to use [ and ] instead. 58245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58246 if test "x$has_forbidden_chars" != x; then 58247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58248 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58249 fi 58250 58251 58252 windows_path="$new_path" 58253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58254 unix_path=`$CYGPATH -u "$windows_path"` 58255 new_path="$unix_path" 58256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58257 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58258 new_path="$unix_path" 58259 fi 58260 58261 if test "x$path" != "x$new_path"; then 58262 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58263 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58264 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58265 fi 58266 58267 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58268 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58269 58270 else 58271 # We're on a unix platform. Hooray! :) 58272 path="$POTENTIAL_FREETYPE_LIB_PATH" 58273 has_space=`$ECHO "$path" | $GREP " "` 58274 if test "x$has_space" != x; then 58275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58276 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58277 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58278 fi 58279 58280 # Use eval to expand a potential ~ 58281 eval path="$path" 58282 if test ! -f "$path" && test ! -d "$path"; then 58283 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58284 fi 58285 58286 if test -d "$path"; then 58287 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58288 else 58289 dir="`$DIRNAME "$path"`" 58290 base="`$BASENAME "$path"`" 58291 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58292 fi 58293 fi 58294 fi 58295 58296 58297 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58299 $as_echo_n "checking for freetype includes... " >&6; } 58300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58301 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58302 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58304 $as_echo_n "checking for freetype libraries... " >&6; } 58305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58306 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58307 fi 58308 58309 fi 58310 if test "x$FOUND_FREETYPE" != xyes; then 58311 FREETYPE_BASE_DIR="$HOME/freetype" 58312 58313 windows_path="$FREETYPE_BASE_DIR" 58314 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58315 unix_path=`$CYGPATH -u "$windows_path"` 58316 FREETYPE_BASE_DIR="$unix_path" 58317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58318 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58319 FREETYPE_BASE_DIR="$unix_path" 58320 fi 58321 58322 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58323 58324 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58325 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 58326 METHOD="well-known location" 58327 58328 # Let's start with an optimistic view of the world :-) 58329 FOUND_FREETYPE=yes 58330 58331 # First look for the canonical freetype main include file ft2build.h. 58332 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58333 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58334 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58335 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58336 # Fail. 58337 FOUND_FREETYPE=no 58338 fi 58339 fi 58340 58341 if test "x$FOUND_FREETYPE" = xyes; then 58342 # Include file found, let's continue the sanity check. 58343 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58344 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58345 58346 # Reset to default value 58347 FREETYPE_BASE_NAME=freetype 58348 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58349 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58350 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58351 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58352 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58353 # for the .6 version explicitly. 58354 FREETYPE_BASE_NAME=freetype.6 58355 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58356 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58357 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58358 else 58359 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58360 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58361 FOUND_FREETYPE=no 58362 fi 58363 else 58364 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58365 # On Windows, we will need both .lib and .dll file. 58366 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58367 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58368 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58369 FOUND_FREETYPE=no 58370 fi 58371 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58372 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58373 # Found lib in isa dir, use that instead. 58374 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58376 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58377 fi 58378 fi 58379 fi 58380 58381 if test "x$FOUND_FREETYPE" = xyes; then 58382 58383 # Only process if variable expands to non-empty 58384 58385 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58387 58388 # Input might be given as Windows format, start by converting to 58389 # unix format. 58390 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58391 new_path=`$CYGPATH -u "$path"` 58392 58393 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58394 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58395 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58396 # "foo.exe" is OK but "foo" is an error. 58397 # 58398 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58399 # It is also a way to make sure we got the proper file name for the real test later on. 58400 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58401 if test "x$test_shortpath" = x; then 58402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58403 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58404 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58405 fi 58406 58407 # Call helper function which possibly converts this using DOS-style short mode. 58408 # If so, the updated path is stored in $new_path. 58409 58410 input_path="$new_path" 58411 # Check if we need to convert this using DOS-style short mode. If the path 58412 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58413 # take no chances and rewrite it. 58414 # Note: m4 eats our [], so we need to use [ and ] instead. 58415 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58416 if test "x$has_forbidden_chars" != x; then 58417 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58418 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58419 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58420 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58421 # Going to short mode and back again did indeed matter. Since short mode is 58422 # case insensitive, let's make it lowercase to improve readability. 58423 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58424 # Now convert it back to Unix-style (cygpath) 58425 input_path=`$CYGPATH -u "$shortmode_path"` 58426 new_path="$input_path" 58427 fi 58428 fi 58429 58430 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58431 if test "x$test_cygdrive_prefix" = x; then 58432 # As a simple fix, exclude /usr/bin since it's not a real path. 58433 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58434 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58435 # a path prefixed by /cygdrive for fixpath to work. 58436 new_path="$CYGWIN_ROOT_PATH$input_path" 58437 fi 58438 fi 58439 58440 58441 if test "x$path" != "x$new_path"; then 58442 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58443 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58444 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58445 fi 58446 58447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58448 58449 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58450 has_colon=`$ECHO $path | $GREP ^.:` 58451 new_path="$path" 58452 if test "x$has_colon" = x; then 58453 # Not in mixed or Windows style, start by that. 58454 new_path=`cmd //c echo $path` 58455 fi 58456 58457 58458 input_path="$new_path" 58459 # Check if we need to convert this using DOS-style short mode. If the path 58460 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58461 # take no chances and rewrite it. 58462 # Note: m4 eats our [], so we need to use [ and ] instead. 58463 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58464 if test "x$has_forbidden_chars" != x; then 58465 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58466 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58467 fi 58468 58469 58470 windows_path="$new_path" 58471 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58472 unix_path=`$CYGPATH -u "$windows_path"` 58473 new_path="$unix_path" 58474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58475 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58476 new_path="$unix_path" 58477 fi 58478 58479 if test "x$path" != "x$new_path"; then 58480 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58481 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58482 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58483 fi 58484 58485 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58486 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58487 58488 else 58489 # We're on a unix platform. Hooray! :) 58490 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58491 has_space=`$ECHO "$path" | $GREP " "` 58492 if test "x$has_space" != x; then 58493 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58494 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58495 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58496 fi 58497 58498 # Use eval to expand a potential ~ 58499 eval path="$path" 58500 if test ! -f "$path" && test ! -d "$path"; then 58501 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58502 fi 58503 58504 if test -d "$path"; then 58505 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58506 else 58507 dir="`$DIRNAME "$path"`" 58508 base="`$BASENAME "$path"`" 58509 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58510 fi 58511 fi 58512 fi 58513 58514 58515 # Only process if variable expands to non-empty 58516 58517 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58519 58520 # Input might be given as Windows format, start by converting to 58521 # unix format. 58522 path="$POTENTIAL_FREETYPE_LIB_PATH" 58523 new_path=`$CYGPATH -u "$path"` 58524 58525 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58526 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58527 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58528 # "foo.exe" is OK but "foo" is an error. 58529 # 58530 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58531 # It is also a way to make sure we got the proper file name for the real test later on. 58532 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58533 if test "x$test_shortpath" = x; then 58534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58535 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58536 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58537 fi 58538 58539 # Call helper function which possibly converts this using DOS-style short mode. 58540 # If so, the updated path is stored in $new_path. 58541 58542 input_path="$new_path" 58543 # Check if we need to convert this using DOS-style short mode. If the path 58544 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58545 # take no chances and rewrite it. 58546 # Note: m4 eats our [], so we need to use [ and ] instead. 58547 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58548 if test "x$has_forbidden_chars" != x; then 58549 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58550 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58551 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58552 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58553 # Going to short mode and back again did indeed matter. Since short mode is 58554 # case insensitive, let's make it lowercase to improve readability. 58555 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58556 # Now convert it back to Unix-style (cygpath) 58557 input_path=`$CYGPATH -u "$shortmode_path"` 58558 new_path="$input_path" 58559 fi 58560 fi 58561 58562 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58563 if test "x$test_cygdrive_prefix" = x; then 58564 # As a simple fix, exclude /usr/bin since it's not a real path. 58565 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58566 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58567 # a path prefixed by /cygdrive for fixpath to work. 58568 new_path="$CYGWIN_ROOT_PATH$input_path" 58569 fi 58570 fi 58571 58572 58573 if test "x$path" != "x$new_path"; then 58574 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58575 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58576 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58577 fi 58578 58579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58580 58581 path="$POTENTIAL_FREETYPE_LIB_PATH" 58582 has_colon=`$ECHO $path | $GREP ^.:` 58583 new_path="$path" 58584 if test "x$has_colon" = x; then 58585 # Not in mixed or Windows style, start by that. 58586 new_path=`cmd //c echo $path` 58587 fi 58588 58589 58590 input_path="$new_path" 58591 # Check if we need to convert this using DOS-style short mode. If the path 58592 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58593 # take no chances and rewrite it. 58594 # Note: m4 eats our [], so we need to use [ and ] instead. 58595 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58596 if test "x$has_forbidden_chars" != x; then 58597 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58598 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58599 fi 58600 58601 58602 windows_path="$new_path" 58603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58604 unix_path=`$CYGPATH -u "$windows_path"` 58605 new_path="$unix_path" 58606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58607 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58608 new_path="$unix_path" 58609 fi 58610 58611 if test "x$path" != "x$new_path"; then 58612 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58613 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58614 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58615 fi 58616 58617 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58618 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58619 58620 else 58621 # We're on a unix platform. Hooray! :) 58622 path="$POTENTIAL_FREETYPE_LIB_PATH" 58623 has_space=`$ECHO "$path" | $GREP " "` 58624 if test "x$has_space" != x; then 58625 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58626 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58627 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58628 fi 58629 58630 # Use eval to expand a potential ~ 58631 eval path="$path" 58632 if test ! -f "$path" && test ! -d "$path"; then 58633 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58634 fi 58635 58636 if test -d "$path"; then 58637 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58638 else 58639 dir="`$DIRNAME "$path"`" 58640 base="`$BASENAME "$path"`" 58641 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58642 fi 58643 fi 58644 fi 58645 58646 58647 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58649 $as_echo_n "checking for freetype includes... " >&6; } 58650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58651 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58652 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58654 $as_echo_n "checking for freetype libraries... " >&6; } 58655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58656 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58657 fi 58658 58659 else 58660 58661 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 58662 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 58663 METHOD="well-known location" 58664 58665 # Let's start with an optimistic view of the world :-) 58666 FOUND_FREETYPE=yes 58667 58668 # First look for the canonical freetype main include file ft2build.h. 58669 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58670 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 58671 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 58672 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 58673 # Fail. 58674 FOUND_FREETYPE=no 58675 fi 58676 fi 58677 58678 if test "x$FOUND_FREETYPE" = xyes; then 58679 # Include file found, let's continue the sanity check. 58680 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 58681 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 58682 58683 # Reset to default value 58684 FREETYPE_BASE_NAME=freetype 58685 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58686 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 58687 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 58688 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 58689 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 58690 # for the .6 version explicitly. 58691 FREETYPE_BASE_NAME=freetype.6 58692 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 58693 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 58694 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 58695 else 58696 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 58697 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 58698 FOUND_FREETYPE=no 58699 fi 58700 else 58701 if test "x$OPENJDK_TARGET_OS" = xwindows; then 58702 # On Windows, we will need both .lib and .dll file. 58703 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 58704 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 58705 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 58706 FOUND_FREETYPE=no 58707 fi 58708 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 58709 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 58710 # Found lib in isa dir, use that instead. 58711 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 58712 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 58713 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 58714 fi 58715 fi 58716 fi 58717 58718 if test "x$FOUND_FREETYPE" = xyes; then 58719 58720 # Only process if variable expands to non-empty 58721 58722 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 58723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58724 58725 # Input might be given as Windows format, start by converting to 58726 # unix format. 58727 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58728 new_path=`$CYGPATH -u "$path"` 58729 58730 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58731 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58732 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58733 # "foo.exe" is OK but "foo" is an error. 58734 # 58735 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58736 # It is also a way to make sure we got the proper file name for the real test later on. 58737 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58738 if test "x$test_shortpath" = x; then 58739 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58740 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58741 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 58742 fi 58743 58744 # Call helper function which possibly converts this using DOS-style short mode. 58745 # If so, the updated path is stored in $new_path. 58746 58747 input_path="$new_path" 58748 # Check if we need to convert this using DOS-style short mode. If the path 58749 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58750 # take no chances and rewrite it. 58751 # Note: m4 eats our [], so we need to use [ and ] instead. 58752 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58753 if test "x$has_forbidden_chars" != x; then 58754 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58755 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58756 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58757 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58758 # Going to short mode and back again did indeed matter. Since short mode is 58759 # case insensitive, let's make it lowercase to improve readability. 58760 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58761 # Now convert it back to Unix-style (cygpath) 58762 input_path=`$CYGPATH -u "$shortmode_path"` 58763 new_path="$input_path" 58764 fi 58765 fi 58766 58767 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58768 if test "x$test_cygdrive_prefix" = x; then 58769 # As a simple fix, exclude /usr/bin since it's not a real path. 58770 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58771 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58772 # a path prefixed by /cygdrive for fixpath to work. 58773 new_path="$CYGWIN_ROOT_PATH$input_path" 58774 fi 58775 fi 58776 58777 58778 if test "x$path" != "x$new_path"; then 58779 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58780 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58781 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58782 fi 58783 58784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58785 58786 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58787 has_colon=`$ECHO $path | $GREP ^.:` 58788 new_path="$path" 58789 if test "x$has_colon" = x; then 58790 # Not in mixed or Windows style, start by that. 58791 new_path=`cmd //c echo $path` 58792 fi 58793 58794 58795 input_path="$new_path" 58796 # Check if we need to convert this using DOS-style short mode. If the path 58797 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58798 # take no chances and rewrite it. 58799 # Note: m4 eats our [], so we need to use [ and ] instead. 58800 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58801 if test "x$has_forbidden_chars" != x; then 58802 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58803 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58804 fi 58805 58806 58807 windows_path="$new_path" 58808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58809 unix_path=`$CYGPATH -u "$windows_path"` 58810 new_path="$unix_path" 58811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58812 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58813 new_path="$unix_path" 58814 fi 58815 58816 if test "x$path" != "x$new_path"; then 58817 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 58818 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 58819 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 58820 fi 58821 58822 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58823 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58824 58825 else 58826 # We're on a unix platform. Hooray! :) 58827 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58828 has_space=`$ECHO "$path" | $GREP " "` 58829 if test "x$has_space" != x; then 58830 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 58831 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 58832 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58833 fi 58834 58835 # Use eval to expand a potential ~ 58836 eval path="$path" 58837 if test ! -f "$path" && test ! -d "$path"; then 58838 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58839 fi 58840 58841 if test -d "$path"; then 58842 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 58843 else 58844 dir="`$DIRNAME "$path"`" 58845 base="`$BASENAME "$path"`" 58846 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58847 fi 58848 fi 58849 fi 58850 58851 58852 # Only process if variable expands to non-empty 58853 58854 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 58855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58856 58857 # Input might be given as Windows format, start by converting to 58858 # unix format. 58859 path="$POTENTIAL_FREETYPE_LIB_PATH" 58860 new_path=`$CYGPATH -u "$path"` 58861 58862 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58863 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58864 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58865 # "foo.exe" is OK but "foo" is an error. 58866 # 58867 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58868 # It is also a way to make sure we got the proper file name for the real test later on. 58869 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58870 if test "x$test_shortpath" = x; then 58871 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58872 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58873 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 58874 fi 58875 58876 # Call helper function which possibly converts this using DOS-style short mode. 58877 # If so, the updated path is stored in $new_path. 58878 58879 input_path="$new_path" 58880 # Check if we need to convert this using DOS-style short mode. If the path 58881 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58882 # take no chances and rewrite it. 58883 # Note: m4 eats our [], so we need to use [ and ] instead. 58884 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58885 if test "x$has_forbidden_chars" != x; then 58886 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58887 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58888 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58889 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58890 # Going to short mode and back again did indeed matter. Since short mode is 58891 # case insensitive, let's make it lowercase to improve readability. 58892 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58893 # Now convert it back to Unix-style (cygpath) 58894 input_path=`$CYGPATH -u "$shortmode_path"` 58895 new_path="$input_path" 58896 fi 58897 fi 58898 58899 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58900 if test "x$test_cygdrive_prefix" = x; then 58901 # As a simple fix, exclude /usr/bin since it's not a real path. 58902 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58903 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58904 # a path prefixed by /cygdrive for fixpath to work. 58905 new_path="$CYGWIN_ROOT_PATH$input_path" 58906 fi 58907 fi 58908 58909 58910 if test "x$path" != "x$new_path"; then 58911 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58912 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58913 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58914 fi 58915 58916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58917 58918 path="$POTENTIAL_FREETYPE_LIB_PATH" 58919 has_colon=`$ECHO $path | $GREP ^.:` 58920 new_path="$path" 58921 if test "x$has_colon" = x; then 58922 # Not in mixed or Windows style, start by that. 58923 new_path=`cmd //c echo $path` 58924 fi 58925 58926 58927 input_path="$new_path" 58928 # Check if we need to convert this using DOS-style short mode. If the path 58929 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58930 # take no chances and rewrite it. 58931 # Note: m4 eats our [], so we need to use [ and ] instead. 58932 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58933 if test "x$has_forbidden_chars" != x; then 58934 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58935 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58936 fi 58937 58938 58939 windows_path="$new_path" 58940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58941 unix_path=`$CYGPATH -u "$windows_path"` 58942 new_path="$unix_path" 58943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58944 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58945 new_path="$unix_path" 58946 fi 58947 58948 if test "x$path" != "x$new_path"; then 58949 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 58950 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 58951 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 58952 fi 58953 58954 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58955 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58956 58957 else 58958 # We're on a unix platform. Hooray! :) 58959 path="$POTENTIAL_FREETYPE_LIB_PATH" 58960 has_space=`$ECHO "$path" | $GREP " "` 58961 if test "x$has_space" != x; then 58962 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 58963 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 58964 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58965 fi 58966 58967 # Use eval to expand a potential ~ 58968 eval path="$path" 58969 if test ! -f "$path" && test ! -d "$path"; then 58970 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 58971 fi 58972 58973 if test -d "$path"; then 58974 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 58975 else 58976 dir="`$DIRNAME "$path"`" 58977 base="`$BASENAME "$path"`" 58978 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 58979 fi 58980 fi 58981 fi 58982 58983 58984 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 58985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 58986 $as_echo_n "checking for freetype includes... " >&6; } 58987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 58988 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 58989 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 58990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 58991 $as_echo_n "checking for freetype libraries... " >&6; } 58992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 58993 $as_echo "$FREETYPE_LIB_PATH" >&6; } 58994 fi 58995 58996 fi 58997 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 58998 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 58999 # Source is available, as a last resort try to build freetype in default location 59000 59001 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 59002 BUILD_FREETYPE=yes 59003 59004 # Check if the freetype sources are acessible.. 59005 if ! test -d $FREETYPE_SRC_PATH; then 59006 { $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 59007 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59008 BUILD_FREETYPE=no 59009 fi 59010 # ..and contain a vc2010 project file 59011 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59012 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59013 { $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 59014 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59015 BUILD_FREETYPE=no 59016 fi 59017 # Now check if configure found a version of 'msbuild.exe' 59018 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59019 { $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 59020 $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;} 59021 BUILD_FREETYPE=no 59022 fi 59023 59024 # Ready to go.. 59025 if test "x$BUILD_FREETYPE" = xyes; then 59026 # msbuild requires trailing slashes for output directories 59027 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59028 freetype_lib_path_unix="$freetype_lib_path" 59029 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59030 59031 unix_path="$vcxproj_path" 59032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59033 windows_path=`$CYGPATH -m "$unix_path"` 59034 vcxproj_path="$windows_path" 59035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59036 windows_path=`cmd //c echo $unix_path` 59037 vcxproj_path="$windows_path" 59038 fi 59039 59040 59041 unix_path="$freetype_lib_path" 59042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59043 windows_path=`$CYGPATH -m "$unix_path"` 59044 freetype_lib_path="$windows_path" 59045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59046 windows_path=`cmd //c echo $unix_path` 59047 freetype_lib_path="$windows_path" 59048 fi 59049 59050 59051 unix_path="$freetype_obj_path" 59052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59053 windows_path=`$CYGPATH -m "$unix_path"` 59054 freetype_obj_path="$windows_path" 59055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59056 windows_path=`cmd //c echo $unix_path` 59057 freetype_obj_path="$windows_path" 59058 fi 59059 59060 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59061 freetype_platform=x64 59062 else 59063 freetype_platform=win32 59064 fi 59065 59066 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59067 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59068 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59069 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59070 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59071 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59072 59073 # First we try to build the freetype.dll 59074 $ECHO -e "@echo off\n"\ 59075 "$MSBUILD $vcxproj_path "\ 59076 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59077 "/p:Configuration=\"Release Multithreaded\" "\ 59078 "/p:Platform=$freetype_platform "\ 59079 "/p:ConfigurationType=DynamicLibrary "\ 59080 "/p:TargetName=freetype "\ 59081 "/p:OutDir=\"$freetype_lib_path\" "\ 59082 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59083 cmd /c freetype.bat 59084 59085 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59086 # If that succeeds we also build freetype.lib 59087 $ECHO -e "@echo off\n"\ 59088 "$MSBUILD $vcxproj_path "\ 59089 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59090 "/p:Configuration=\"Release Multithreaded\" "\ 59091 "/p:Platform=$freetype_platform "\ 59092 "/p:ConfigurationType=StaticLibrary "\ 59093 "/p:TargetName=freetype "\ 59094 "/p:OutDir=\"$freetype_lib_path\" "\ 59095 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59096 cmd /c freetype.bat 59097 59098 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59099 # Once we build both, lib and dll, set freetype lib and include path appropriately 59100 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59101 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59102 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59103 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59104 else 59105 BUILD_FREETYPE=no 59106 fi 59107 else 59108 BUILD_FREETYPE=no 59109 fi 59110 fi 59111 59112 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59113 59114 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59115 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 59116 METHOD="well-known location" 59117 59118 # Let's start with an optimistic view of the world :-) 59119 FOUND_FREETYPE=yes 59120 59121 # First look for the canonical freetype main include file ft2build.h. 59122 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59123 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59124 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59125 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59126 # Fail. 59127 FOUND_FREETYPE=no 59128 fi 59129 fi 59130 59131 if test "x$FOUND_FREETYPE" = xyes; then 59132 # Include file found, let's continue the sanity check. 59133 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59134 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59135 59136 # Reset to default value 59137 FREETYPE_BASE_NAME=freetype 59138 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59139 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59140 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59141 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59142 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59143 # for the .6 version explicitly. 59144 FREETYPE_BASE_NAME=freetype.6 59145 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59146 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59147 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59148 else 59149 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59150 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59151 FOUND_FREETYPE=no 59152 fi 59153 else 59154 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59155 # On Windows, we will need both .lib and .dll file. 59156 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59157 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59158 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59159 FOUND_FREETYPE=no 59160 fi 59161 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59162 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59163 # Found lib in isa dir, use that instead. 59164 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59165 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59166 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59167 fi 59168 fi 59169 fi 59170 59171 if test "x$FOUND_FREETYPE" = xyes; then 59172 59173 # Only process if variable expands to non-empty 59174 59175 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59177 59178 # Input might be given as Windows format, start by converting to 59179 # unix format. 59180 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59181 new_path=`$CYGPATH -u "$path"` 59182 59183 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59184 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59185 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59186 # "foo.exe" is OK but "foo" is an error. 59187 # 59188 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59189 # It is also a way to make sure we got the proper file name for the real test later on. 59190 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59191 if test "x$test_shortpath" = x; then 59192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59193 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59194 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59195 fi 59196 59197 # Call helper function which possibly converts this using DOS-style short mode. 59198 # If so, the updated path is stored in $new_path. 59199 59200 input_path="$new_path" 59201 # Check if we need to convert this using DOS-style short mode. If the path 59202 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59203 # take no chances and rewrite it. 59204 # Note: m4 eats our [], so we need to use [ and ] instead. 59205 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59206 if test "x$has_forbidden_chars" != x; then 59207 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59208 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59209 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59210 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59211 # Going to short mode and back again did indeed matter. Since short mode is 59212 # case insensitive, let's make it lowercase to improve readability. 59213 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59214 # Now convert it back to Unix-style (cygpath) 59215 input_path=`$CYGPATH -u "$shortmode_path"` 59216 new_path="$input_path" 59217 fi 59218 fi 59219 59220 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59221 if test "x$test_cygdrive_prefix" = x; then 59222 # As a simple fix, exclude /usr/bin since it's not a real path. 59223 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59224 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59225 # a path prefixed by /cygdrive for fixpath to work. 59226 new_path="$CYGWIN_ROOT_PATH$input_path" 59227 fi 59228 fi 59229 59230 59231 if test "x$path" != "x$new_path"; then 59232 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59234 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59235 fi 59236 59237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59238 59239 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59240 has_colon=`$ECHO $path | $GREP ^.:` 59241 new_path="$path" 59242 if test "x$has_colon" = x; then 59243 # Not in mixed or Windows style, start by that. 59244 new_path=`cmd //c echo $path` 59245 fi 59246 59247 59248 input_path="$new_path" 59249 # Check if we need to convert this using DOS-style short mode. If the path 59250 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59251 # take no chances and rewrite it. 59252 # Note: m4 eats our [], so we need to use [ and ] instead. 59253 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59254 if test "x$has_forbidden_chars" != x; then 59255 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59256 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59257 fi 59258 59259 59260 windows_path="$new_path" 59261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59262 unix_path=`$CYGPATH -u "$windows_path"` 59263 new_path="$unix_path" 59264 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59265 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59266 new_path="$unix_path" 59267 fi 59268 59269 if test "x$path" != "x$new_path"; then 59270 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59271 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59272 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59273 fi 59274 59275 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59276 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59277 59278 else 59279 # We're on a unix platform. Hooray! :) 59280 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59281 has_space=`$ECHO "$path" | $GREP " "` 59282 if test "x$has_space" != x; then 59283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59284 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59285 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59286 fi 59287 59288 # Use eval to expand a potential ~ 59289 eval path="$path" 59290 if test ! -f "$path" && test ! -d "$path"; then 59291 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59292 fi 59293 59294 if test -d "$path"; then 59295 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59296 else 59297 dir="`$DIRNAME "$path"`" 59298 base="`$BASENAME "$path"`" 59299 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59300 fi 59301 fi 59302 fi 59303 59304 59305 # Only process if variable expands to non-empty 59306 59307 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59309 59310 # Input might be given as Windows format, start by converting to 59311 # unix format. 59312 path="$POTENTIAL_FREETYPE_LIB_PATH" 59313 new_path=`$CYGPATH -u "$path"` 59314 59315 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59316 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59317 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59318 # "foo.exe" is OK but "foo" is an error. 59319 # 59320 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59321 # It is also a way to make sure we got the proper file name for the real test later on. 59322 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59323 if test "x$test_shortpath" = x; then 59324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59325 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59326 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59327 fi 59328 59329 # Call helper function which possibly converts this using DOS-style short mode. 59330 # If so, the updated path is stored in $new_path. 59331 59332 input_path="$new_path" 59333 # Check if we need to convert this using DOS-style short mode. If the path 59334 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59335 # take no chances and rewrite it. 59336 # Note: m4 eats our [], so we need to use [ and ] instead. 59337 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59338 if test "x$has_forbidden_chars" != x; then 59339 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59340 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59341 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59342 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59343 # Going to short mode and back again did indeed matter. Since short mode is 59344 # case insensitive, let's make it lowercase to improve readability. 59345 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59346 # Now convert it back to Unix-style (cygpath) 59347 input_path=`$CYGPATH -u "$shortmode_path"` 59348 new_path="$input_path" 59349 fi 59350 fi 59351 59352 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59353 if test "x$test_cygdrive_prefix" = x; then 59354 # As a simple fix, exclude /usr/bin since it's not a real path. 59355 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59356 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59357 # a path prefixed by /cygdrive for fixpath to work. 59358 new_path="$CYGWIN_ROOT_PATH$input_path" 59359 fi 59360 fi 59361 59362 59363 if test "x$path" != "x$new_path"; then 59364 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59365 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59366 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59367 fi 59368 59369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59370 59371 path="$POTENTIAL_FREETYPE_LIB_PATH" 59372 has_colon=`$ECHO $path | $GREP ^.:` 59373 new_path="$path" 59374 if test "x$has_colon" = x; then 59375 # Not in mixed or Windows style, start by that. 59376 new_path=`cmd //c echo $path` 59377 fi 59378 59379 59380 input_path="$new_path" 59381 # Check if we need to convert this using DOS-style short mode. If the path 59382 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59383 # take no chances and rewrite it. 59384 # Note: m4 eats our [], so we need to use [ and ] instead. 59385 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59386 if test "x$has_forbidden_chars" != x; then 59387 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59388 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59389 fi 59390 59391 59392 windows_path="$new_path" 59393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59394 unix_path=`$CYGPATH -u "$windows_path"` 59395 new_path="$unix_path" 59396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59397 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59398 new_path="$unix_path" 59399 fi 59400 59401 if test "x$path" != "x$new_path"; then 59402 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59403 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59404 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59405 fi 59406 59407 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59408 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59409 59410 else 59411 # We're on a unix platform. Hooray! :) 59412 path="$POTENTIAL_FREETYPE_LIB_PATH" 59413 has_space=`$ECHO "$path" | $GREP " "` 59414 if test "x$has_space" != x; then 59415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59416 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59417 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59418 fi 59419 59420 # Use eval to expand a potential ~ 59421 eval path="$path" 59422 if test ! -f "$path" && test ! -d "$path"; then 59423 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59424 fi 59425 59426 if test -d "$path"; then 59427 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59428 else 59429 dir="`$DIRNAME "$path"`" 59430 base="`$BASENAME "$path"`" 59431 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59432 fi 59433 fi 59434 fi 59435 59436 59437 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59439 $as_echo_n "checking for freetype includes... " >&6; } 59440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59441 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59442 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59444 $as_echo_n "checking for freetype libraries... " >&6; } 59445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59446 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59447 fi 59448 59449 else 59450 59451 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59452 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 59453 METHOD="well-known location" 59454 59455 # Let's start with an optimistic view of the world :-) 59456 FOUND_FREETYPE=yes 59457 59458 # First look for the canonical freetype main include file ft2build.h. 59459 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59460 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59461 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59462 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59463 # Fail. 59464 FOUND_FREETYPE=no 59465 fi 59466 fi 59467 59468 if test "x$FOUND_FREETYPE" = xyes; then 59469 # Include file found, let's continue the sanity check. 59470 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59471 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59472 59473 # Reset to default value 59474 FREETYPE_BASE_NAME=freetype 59475 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59476 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59477 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59478 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59479 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59480 # for the .6 version explicitly. 59481 FREETYPE_BASE_NAME=freetype.6 59482 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59483 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59484 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59485 else 59486 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59487 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59488 FOUND_FREETYPE=no 59489 fi 59490 else 59491 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59492 # On Windows, we will need both .lib and .dll file. 59493 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59494 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59495 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59496 FOUND_FREETYPE=no 59497 fi 59498 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59499 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59500 # Found lib in isa dir, use that instead. 59501 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59503 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59504 fi 59505 fi 59506 fi 59507 59508 if test "x$FOUND_FREETYPE" = xyes; then 59509 59510 # Only process if variable expands to non-empty 59511 59512 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59514 59515 # Input might be given as Windows format, start by converting to 59516 # unix format. 59517 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59518 new_path=`$CYGPATH -u "$path"` 59519 59520 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59521 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59522 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59523 # "foo.exe" is OK but "foo" is an error. 59524 # 59525 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59526 # It is also a way to make sure we got the proper file name for the real test later on. 59527 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59528 if test "x$test_shortpath" = x; then 59529 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59530 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59531 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59532 fi 59533 59534 # Call helper function which possibly converts this using DOS-style short mode. 59535 # If so, the updated path is stored in $new_path. 59536 59537 input_path="$new_path" 59538 # Check if we need to convert this using DOS-style short mode. If the path 59539 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59540 # take no chances and rewrite it. 59541 # Note: m4 eats our [], so we need to use [ and ] instead. 59542 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59543 if test "x$has_forbidden_chars" != x; then 59544 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59545 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59546 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59547 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59548 # Going to short mode and back again did indeed matter. Since short mode is 59549 # case insensitive, let's make it lowercase to improve readability. 59550 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59551 # Now convert it back to Unix-style (cygpath) 59552 input_path=`$CYGPATH -u "$shortmode_path"` 59553 new_path="$input_path" 59554 fi 59555 fi 59556 59557 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59558 if test "x$test_cygdrive_prefix" = x; then 59559 # As a simple fix, exclude /usr/bin since it's not a real path. 59560 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59561 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59562 # a path prefixed by /cygdrive for fixpath to work. 59563 new_path="$CYGWIN_ROOT_PATH$input_path" 59564 fi 59565 fi 59566 59567 59568 if test "x$path" != "x$new_path"; then 59569 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59571 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59572 fi 59573 59574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59575 59576 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59577 has_colon=`$ECHO $path | $GREP ^.:` 59578 new_path="$path" 59579 if test "x$has_colon" = x; then 59580 # Not in mixed or Windows style, start by that. 59581 new_path=`cmd //c echo $path` 59582 fi 59583 59584 59585 input_path="$new_path" 59586 # Check if we need to convert this using DOS-style short mode. If the path 59587 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59588 # take no chances and rewrite it. 59589 # Note: m4 eats our [], so we need to use [ and ] instead. 59590 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59591 if test "x$has_forbidden_chars" != x; then 59592 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59593 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59594 fi 59595 59596 59597 windows_path="$new_path" 59598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59599 unix_path=`$CYGPATH -u "$windows_path"` 59600 new_path="$unix_path" 59601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59603 new_path="$unix_path" 59604 fi 59605 59606 if test "x$path" != "x$new_path"; then 59607 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59608 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59609 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59610 fi 59611 59612 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59613 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59614 59615 else 59616 # We're on a unix platform. Hooray! :) 59617 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59618 has_space=`$ECHO "$path" | $GREP " "` 59619 if test "x$has_space" != x; then 59620 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59621 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59622 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59623 fi 59624 59625 # Use eval to expand a potential ~ 59626 eval path="$path" 59627 if test ! -f "$path" && test ! -d "$path"; then 59628 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59629 fi 59630 59631 if test -d "$path"; then 59632 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59633 else 59634 dir="`$DIRNAME "$path"`" 59635 base="`$BASENAME "$path"`" 59636 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59637 fi 59638 fi 59639 fi 59640 59641 59642 # Only process if variable expands to non-empty 59643 59644 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59646 59647 # Input might be given as Windows format, start by converting to 59648 # unix format. 59649 path="$POTENTIAL_FREETYPE_LIB_PATH" 59650 new_path=`$CYGPATH -u "$path"` 59651 59652 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59653 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59654 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59655 # "foo.exe" is OK but "foo" is an error. 59656 # 59657 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59658 # It is also a way to make sure we got the proper file name for the real test later on. 59659 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59660 if test "x$test_shortpath" = x; then 59661 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59662 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59663 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59664 fi 59665 59666 # Call helper function which possibly converts this using DOS-style short mode. 59667 # If so, the updated path is stored in $new_path. 59668 59669 input_path="$new_path" 59670 # Check if we need to convert this using DOS-style short mode. If the path 59671 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59672 # take no chances and rewrite it. 59673 # Note: m4 eats our [], so we need to use [ and ] instead. 59674 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59675 if test "x$has_forbidden_chars" != x; then 59676 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59677 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59678 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59679 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59680 # Going to short mode and back again did indeed matter. Since short mode is 59681 # case insensitive, let's make it lowercase to improve readability. 59682 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59683 # Now convert it back to Unix-style (cygpath) 59684 input_path=`$CYGPATH -u "$shortmode_path"` 59685 new_path="$input_path" 59686 fi 59687 fi 59688 59689 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59690 if test "x$test_cygdrive_prefix" = x; then 59691 # As a simple fix, exclude /usr/bin since it's not a real path. 59692 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59693 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59694 # a path prefixed by /cygdrive for fixpath to work. 59695 new_path="$CYGWIN_ROOT_PATH$input_path" 59696 fi 59697 fi 59698 59699 59700 if test "x$path" != "x$new_path"; then 59701 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59702 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59703 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59704 fi 59705 59706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59707 59708 path="$POTENTIAL_FREETYPE_LIB_PATH" 59709 has_colon=`$ECHO $path | $GREP ^.:` 59710 new_path="$path" 59711 if test "x$has_colon" = x; then 59712 # Not in mixed or Windows style, start by that. 59713 new_path=`cmd //c echo $path` 59714 fi 59715 59716 59717 input_path="$new_path" 59718 # Check if we need to convert this using DOS-style short mode. If the path 59719 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59720 # take no chances and rewrite it. 59721 # Note: m4 eats our [], so we need to use [ and ] instead. 59722 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59723 if test "x$has_forbidden_chars" != x; then 59724 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59725 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59726 fi 59727 59728 59729 windows_path="$new_path" 59730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59731 unix_path=`$CYGPATH -u "$windows_path"` 59732 new_path="$unix_path" 59733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59734 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59735 new_path="$unix_path" 59736 fi 59737 59738 if test "x$path" != "x$new_path"; then 59739 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59740 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59741 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59742 fi 59743 59744 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59745 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59746 59747 else 59748 # We're on a unix platform. Hooray! :) 59749 path="$POTENTIAL_FREETYPE_LIB_PATH" 59750 has_space=`$ECHO "$path" | $GREP " "` 59751 if test "x$has_space" != x; then 59752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59753 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59754 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59755 fi 59756 59757 # Use eval to expand a potential ~ 59758 eval path="$path" 59759 if test ! -f "$path" && test ! -d "$path"; then 59760 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59761 fi 59762 59763 if test -d "$path"; then 59764 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59765 else 59766 dir="`$DIRNAME "$path"`" 59767 base="`$BASENAME "$path"`" 59768 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59769 fi 59770 fi 59771 fi 59772 59773 59774 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59776 $as_echo_n "checking for freetype includes... " >&6; } 59777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59778 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59779 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59781 $as_echo_n "checking for freetype libraries... " >&6; } 59782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59783 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59784 fi 59785 59786 fi 59787 fi 59788 fi 59789 else 59790 FREETYPE_BASE_DIR="$SYSROOT/usr" 59791 59792 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 59793 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 59794 METHOD="well-known location" 59795 59796 # Let's start with an optimistic view of the world :-) 59797 FOUND_FREETYPE=yes 59798 59799 # First look for the canonical freetype main include file ft2build.h. 59800 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59801 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59802 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59803 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59804 # Fail. 59805 FOUND_FREETYPE=no 59806 fi 59807 fi 59808 59809 if test "x$FOUND_FREETYPE" = xyes; then 59810 # Include file found, let's continue the sanity check. 59811 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59812 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59813 59814 # Reset to default value 59815 FREETYPE_BASE_NAME=freetype 59816 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59817 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59818 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59819 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59820 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59821 # for the .6 version explicitly. 59822 FREETYPE_BASE_NAME=freetype.6 59823 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59824 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59825 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59826 else 59827 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59828 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59829 FOUND_FREETYPE=no 59830 fi 59831 else 59832 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59833 # On Windows, we will need both .lib and .dll file. 59834 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59835 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59836 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59837 FOUND_FREETYPE=no 59838 fi 59839 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59840 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59841 # Found lib in isa dir, use that instead. 59842 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59843 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59844 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59845 fi 59846 fi 59847 fi 59848 59849 if test "x$FOUND_FREETYPE" = xyes; then 59850 59851 # Only process if variable expands to non-empty 59852 59853 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59855 59856 # Input might be given as Windows format, start by converting to 59857 # unix format. 59858 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59859 new_path=`$CYGPATH -u "$path"` 59860 59861 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59862 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59863 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59864 # "foo.exe" is OK but "foo" is an error. 59865 # 59866 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59867 # It is also a way to make sure we got the proper file name for the real test later on. 59868 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59869 if test "x$test_shortpath" = x; then 59870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59871 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59872 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59873 fi 59874 59875 # Call helper function which possibly converts this using DOS-style short mode. 59876 # If so, the updated path is stored in $new_path. 59877 59878 input_path="$new_path" 59879 # Check if we need to convert this using DOS-style short mode. If the path 59880 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59881 # take no chances and rewrite it. 59882 # Note: m4 eats our [], so we need to use [ and ] instead. 59883 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59884 if test "x$has_forbidden_chars" != x; then 59885 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59886 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59887 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59888 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59889 # Going to short mode and back again did indeed matter. Since short mode is 59890 # case insensitive, let's make it lowercase to improve readability. 59891 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59892 # Now convert it back to Unix-style (cygpath) 59893 input_path=`$CYGPATH -u "$shortmode_path"` 59894 new_path="$input_path" 59895 fi 59896 fi 59897 59898 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59899 if test "x$test_cygdrive_prefix" = x; then 59900 # As a simple fix, exclude /usr/bin since it's not a real path. 59901 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59902 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59903 # a path prefixed by /cygdrive for fixpath to work. 59904 new_path="$CYGWIN_ROOT_PATH$input_path" 59905 fi 59906 fi 59907 59908 59909 if test "x$path" != "x$new_path"; then 59910 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59911 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59912 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59913 fi 59914 59915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59916 59917 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59918 has_colon=`$ECHO $path | $GREP ^.:` 59919 new_path="$path" 59920 if test "x$has_colon" = x; then 59921 # Not in mixed or Windows style, start by that. 59922 new_path=`cmd //c echo $path` 59923 fi 59924 59925 59926 input_path="$new_path" 59927 # Check if we need to convert this using DOS-style short mode. If the path 59928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59929 # take no chances and rewrite it. 59930 # Note: m4 eats our [], so we need to use [ and ] instead. 59931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59932 if test "x$has_forbidden_chars" != x; then 59933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59934 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59935 fi 59936 59937 59938 windows_path="$new_path" 59939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59940 unix_path=`$CYGPATH -u "$windows_path"` 59941 new_path="$unix_path" 59942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59943 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59944 new_path="$unix_path" 59945 fi 59946 59947 if test "x$path" != "x$new_path"; then 59948 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59949 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59950 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59951 fi 59952 59953 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59954 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59955 59956 else 59957 # We're on a unix platform. Hooray! :) 59958 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59959 has_space=`$ECHO "$path" | $GREP " "` 59960 if test "x$has_space" != x; then 59961 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59962 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59963 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59964 fi 59965 59966 # Use eval to expand a potential ~ 59967 eval path="$path" 59968 if test ! -f "$path" && test ! -d "$path"; then 59969 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59970 fi 59971 59972 if test -d "$path"; then 59973 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59974 else 59975 dir="`$DIRNAME "$path"`" 59976 base="`$BASENAME "$path"`" 59977 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59978 fi 59979 fi 59980 fi 59981 59982 59983 # Only process if variable expands to non-empty 59984 59985 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59986 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59987 59988 # Input might be given as Windows format, start by converting to 59989 # unix format. 59990 path="$POTENTIAL_FREETYPE_LIB_PATH" 59991 new_path=`$CYGPATH -u "$path"` 59992 59993 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59994 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59995 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59996 # "foo.exe" is OK but "foo" is an error. 59997 # 59998 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59999 # It is also a way to make sure we got the proper file name for the real test later on. 60000 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60001 if test "x$test_shortpath" = x; then 60002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60003 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60004 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60005 fi 60006 60007 # Call helper function which possibly converts this using DOS-style short mode. 60008 # If so, the updated path is stored in $new_path. 60009 60010 input_path="$new_path" 60011 # Check if we need to convert this using DOS-style short mode. If the path 60012 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60013 # take no chances and rewrite it. 60014 # Note: m4 eats our [], so we need to use [ and ] instead. 60015 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60016 if test "x$has_forbidden_chars" != x; then 60017 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60018 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60019 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60020 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60021 # Going to short mode and back again did indeed matter. Since short mode is 60022 # case insensitive, let's make it lowercase to improve readability. 60023 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60024 # Now convert it back to Unix-style (cygpath) 60025 input_path=`$CYGPATH -u "$shortmode_path"` 60026 new_path="$input_path" 60027 fi 60028 fi 60029 60030 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60031 if test "x$test_cygdrive_prefix" = x; then 60032 # As a simple fix, exclude /usr/bin since it's not a real path. 60033 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60034 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60035 # a path prefixed by /cygdrive for fixpath to work. 60036 new_path="$CYGWIN_ROOT_PATH$input_path" 60037 fi 60038 fi 60039 60040 60041 if test "x$path" != "x$new_path"; then 60042 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60043 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60044 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60045 fi 60046 60047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60048 60049 path="$POTENTIAL_FREETYPE_LIB_PATH" 60050 has_colon=`$ECHO $path | $GREP ^.:` 60051 new_path="$path" 60052 if test "x$has_colon" = x; then 60053 # Not in mixed or Windows style, start by that. 60054 new_path=`cmd //c echo $path` 60055 fi 60056 60057 60058 input_path="$new_path" 60059 # Check if we need to convert this using DOS-style short mode. If the path 60060 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60061 # take no chances and rewrite it. 60062 # Note: m4 eats our [], so we need to use [ and ] instead. 60063 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60064 if test "x$has_forbidden_chars" != x; then 60065 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60066 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60067 fi 60068 60069 60070 windows_path="$new_path" 60071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60072 unix_path=`$CYGPATH -u "$windows_path"` 60073 new_path="$unix_path" 60074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60075 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60076 new_path="$unix_path" 60077 fi 60078 60079 if test "x$path" != "x$new_path"; then 60080 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60081 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60082 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60083 fi 60084 60085 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60086 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60087 60088 else 60089 # We're on a unix platform. Hooray! :) 60090 path="$POTENTIAL_FREETYPE_LIB_PATH" 60091 has_space=`$ECHO "$path" | $GREP " "` 60092 if test "x$has_space" != x; then 60093 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60094 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60095 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60096 fi 60097 60098 # Use eval to expand a potential ~ 60099 eval path="$path" 60100 if test ! -f "$path" && test ! -d "$path"; then 60101 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60102 fi 60103 60104 if test -d "$path"; then 60105 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60106 else 60107 dir="`$DIRNAME "$path"`" 60108 base="`$BASENAME "$path"`" 60109 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60110 fi 60111 fi 60112 fi 60113 60114 60115 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60117 $as_echo_n "checking for freetype includes... " >&6; } 60118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60119 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60120 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60122 $as_echo_n "checking for freetype libraries... " >&6; } 60123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60124 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60125 fi 60126 60127 60128 if test "x$FOUND_FREETYPE" != xyes; then 60129 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 60130 60131 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60132 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60133 METHOD="well-known location" 60134 60135 # Let's start with an optimistic view of the world :-) 60136 FOUND_FREETYPE=yes 60137 60138 # First look for the canonical freetype main include file ft2build.h. 60139 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60140 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60141 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60142 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60143 # Fail. 60144 FOUND_FREETYPE=no 60145 fi 60146 fi 60147 60148 if test "x$FOUND_FREETYPE" = xyes; then 60149 # Include file found, let's continue the sanity check. 60150 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60151 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60152 60153 # Reset to default value 60154 FREETYPE_BASE_NAME=freetype 60155 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60156 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60157 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60158 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60159 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60160 # for the .6 version explicitly. 60161 FREETYPE_BASE_NAME=freetype.6 60162 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60163 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60164 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60165 else 60166 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60167 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60168 FOUND_FREETYPE=no 60169 fi 60170 else 60171 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60172 # On Windows, we will need both .lib and .dll file. 60173 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60174 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60175 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60176 FOUND_FREETYPE=no 60177 fi 60178 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60179 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60180 # Found lib in isa dir, use that instead. 60181 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60182 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60183 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60184 fi 60185 fi 60186 fi 60187 60188 if test "x$FOUND_FREETYPE" = xyes; then 60189 60190 # Only process if variable expands to non-empty 60191 60192 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60194 60195 # Input might be given as Windows format, start by converting to 60196 # unix format. 60197 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60198 new_path=`$CYGPATH -u "$path"` 60199 60200 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60201 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60202 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60203 # "foo.exe" is OK but "foo" is an error. 60204 # 60205 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60206 # It is also a way to make sure we got the proper file name for the real test later on. 60207 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60208 if test "x$test_shortpath" = x; then 60209 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60210 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60211 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60212 fi 60213 60214 # Call helper function which possibly converts this using DOS-style short mode. 60215 # If so, the updated path is stored in $new_path. 60216 60217 input_path="$new_path" 60218 # Check if we need to convert this using DOS-style short mode. If the path 60219 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60220 # take no chances and rewrite it. 60221 # Note: m4 eats our [], so we need to use [ and ] instead. 60222 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60223 if test "x$has_forbidden_chars" != x; then 60224 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60225 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60226 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60227 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60228 # Going to short mode and back again did indeed matter. Since short mode is 60229 # case insensitive, let's make it lowercase to improve readability. 60230 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60231 # Now convert it back to Unix-style (cygpath) 60232 input_path=`$CYGPATH -u "$shortmode_path"` 60233 new_path="$input_path" 60234 fi 60235 fi 60236 60237 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60238 if test "x$test_cygdrive_prefix" = x; then 60239 # As a simple fix, exclude /usr/bin since it's not a real path. 60240 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60241 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60242 # a path prefixed by /cygdrive for fixpath to work. 60243 new_path="$CYGWIN_ROOT_PATH$input_path" 60244 fi 60245 fi 60246 60247 60248 if test "x$path" != "x$new_path"; then 60249 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60250 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60251 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60252 fi 60253 60254 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60255 60256 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60257 has_colon=`$ECHO $path | $GREP ^.:` 60258 new_path="$path" 60259 if test "x$has_colon" = x; then 60260 # Not in mixed or Windows style, start by that. 60261 new_path=`cmd //c echo $path` 60262 fi 60263 60264 60265 input_path="$new_path" 60266 # Check if we need to convert this using DOS-style short mode. If the path 60267 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60268 # take no chances and rewrite it. 60269 # Note: m4 eats our [], so we need to use [ and ] instead. 60270 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60271 if test "x$has_forbidden_chars" != x; then 60272 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60273 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60274 fi 60275 60276 60277 windows_path="$new_path" 60278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60279 unix_path=`$CYGPATH -u "$windows_path"` 60280 new_path="$unix_path" 60281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60282 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60283 new_path="$unix_path" 60284 fi 60285 60286 if test "x$path" != "x$new_path"; then 60287 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60289 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60290 fi 60291 60292 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60293 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60294 60295 else 60296 # We're on a unix platform. Hooray! :) 60297 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60298 has_space=`$ECHO "$path" | $GREP " "` 60299 if test "x$has_space" != x; then 60300 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60301 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60302 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60303 fi 60304 60305 # Use eval to expand a potential ~ 60306 eval path="$path" 60307 if test ! -f "$path" && test ! -d "$path"; then 60308 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60309 fi 60310 60311 if test -d "$path"; then 60312 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60313 else 60314 dir="`$DIRNAME "$path"`" 60315 base="`$BASENAME "$path"`" 60316 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60317 fi 60318 fi 60319 fi 60320 60321 60322 # Only process if variable expands to non-empty 60323 60324 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60326 60327 # Input might be given as Windows format, start by converting to 60328 # unix format. 60329 path="$POTENTIAL_FREETYPE_LIB_PATH" 60330 new_path=`$CYGPATH -u "$path"` 60331 60332 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60333 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60334 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60335 # "foo.exe" is OK but "foo" is an error. 60336 # 60337 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60338 # It is also a way to make sure we got the proper file name for the real test later on. 60339 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60340 if test "x$test_shortpath" = x; then 60341 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60342 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60343 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60344 fi 60345 60346 # Call helper function which possibly converts this using DOS-style short mode. 60347 # If so, the updated path is stored in $new_path. 60348 60349 input_path="$new_path" 60350 # Check if we need to convert this using DOS-style short mode. If the path 60351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60352 # take no chances and rewrite it. 60353 # Note: m4 eats our [], so we need to use [ and ] instead. 60354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60355 if test "x$has_forbidden_chars" != x; then 60356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60357 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60358 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60359 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60360 # Going to short mode and back again did indeed matter. Since short mode is 60361 # case insensitive, let's make it lowercase to improve readability. 60362 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60363 # Now convert it back to Unix-style (cygpath) 60364 input_path=`$CYGPATH -u "$shortmode_path"` 60365 new_path="$input_path" 60366 fi 60367 fi 60368 60369 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60370 if test "x$test_cygdrive_prefix" = x; then 60371 # As a simple fix, exclude /usr/bin since it's not a real path. 60372 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60373 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60374 # a path prefixed by /cygdrive for fixpath to work. 60375 new_path="$CYGWIN_ROOT_PATH$input_path" 60376 fi 60377 fi 60378 60379 60380 if test "x$path" != "x$new_path"; then 60381 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60382 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60383 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60384 fi 60385 60386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60387 60388 path="$POTENTIAL_FREETYPE_LIB_PATH" 60389 has_colon=`$ECHO $path | $GREP ^.:` 60390 new_path="$path" 60391 if test "x$has_colon" = x; then 60392 # Not in mixed or Windows style, start by that. 60393 new_path=`cmd //c echo $path` 60394 fi 60395 60396 60397 input_path="$new_path" 60398 # Check if we need to convert this using DOS-style short mode. If the path 60399 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60400 # take no chances and rewrite it. 60401 # Note: m4 eats our [], so we need to use [ and ] instead. 60402 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60403 if test "x$has_forbidden_chars" != x; then 60404 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60405 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60406 fi 60407 60408 60409 windows_path="$new_path" 60410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60411 unix_path=`$CYGPATH -u "$windows_path"` 60412 new_path="$unix_path" 60413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60415 new_path="$unix_path" 60416 fi 60417 60418 if test "x$path" != "x$new_path"; then 60419 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60420 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60421 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60422 fi 60423 60424 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60425 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60426 60427 else 60428 # We're on a unix platform. Hooray! :) 60429 path="$POTENTIAL_FREETYPE_LIB_PATH" 60430 has_space=`$ECHO "$path" | $GREP " "` 60431 if test "x$has_space" != x; then 60432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60433 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60434 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60435 fi 60436 60437 # Use eval to expand a potential ~ 60438 eval path="$path" 60439 if test ! -f "$path" && test ! -d "$path"; then 60440 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60441 fi 60442 60443 if test -d "$path"; then 60444 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60445 else 60446 dir="`$DIRNAME "$path"`" 60447 base="`$BASENAME "$path"`" 60448 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60449 fi 60450 fi 60451 fi 60452 60453 60454 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60456 $as_echo_n "checking for freetype includes... " >&6; } 60457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60458 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60459 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60461 $as_echo_n "checking for freetype libraries... " >&6; } 60462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60463 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60464 fi 60465 60466 fi 60467 60468 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 60469 if test "x$FOUND_FREETYPE" != xyes; then 60470 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 60471 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 60472 60473 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60474 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60475 METHOD="well-known location" 60476 60477 # Let's start with an optimistic view of the world :-) 60478 FOUND_FREETYPE=yes 60479 60480 # First look for the canonical freetype main include file ft2build.h. 60481 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60482 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60483 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60484 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60485 # Fail. 60486 FOUND_FREETYPE=no 60487 fi 60488 fi 60489 60490 if test "x$FOUND_FREETYPE" = xyes; then 60491 # Include file found, let's continue the sanity check. 60492 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60493 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60494 60495 # Reset to default value 60496 FREETYPE_BASE_NAME=freetype 60497 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60498 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60499 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60500 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60501 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60502 # for the .6 version explicitly. 60503 FREETYPE_BASE_NAME=freetype.6 60504 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60505 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60506 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60507 else 60508 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60509 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60510 FOUND_FREETYPE=no 60511 fi 60512 else 60513 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60514 # On Windows, we will need both .lib and .dll file. 60515 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60516 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60517 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60518 FOUND_FREETYPE=no 60519 fi 60520 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60521 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60522 # Found lib in isa dir, use that instead. 60523 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60524 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60525 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60526 fi 60527 fi 60528 fi 60529 60530 if test "x$FOUND_FREETYPE" = xyes; then 60531 60532 # Only process if variable expands to non-empty 60533 60534 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60536 60537 # Input might be given as Windows format, start by converting to 60538 # unix format. 60539 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60540 new_path=`$CYGPATH -u "$path"` 60541 60542 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60543 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60544 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60545 # "foo.exe" is OK but "foo" is an error. 60546 # 60547 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60548 # It is also a way to make sure we got the proper file name for the real test later on. 60549 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60550 if test "x$test_shortpath" = x; then 60551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60552 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60553 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60554 fi 60555 60556 # Call helper function which possibly converts this using DOS-style short mode. 60557 # If so, the updated path is stored in $new_path. 60558 60559 input_path="$new_path" 60560 # Check if we need to convert this using DOS-style short mode. If the path 60561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60562 # take no chances and rewrite it. 60563 # Note: m4 eats our [], so we need to use [ and ] instead. 60564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60565 if test "x$has_forbidden_chars" != x; then 60566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60567 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60568 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60569 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60570 # Going to short mode and back again did indeed matter. Since short mode is 60571 # case insensitive, let's make it lowercase to improve readability. 60572 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60573 # Now convert it back to Unix-style (cygpath) 60574 input_path=`$CYGPATH -u "$shortmode_path"` 60575 new_path="$input_path" 60576 fi 60577 fi 60578 60579 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60580 if test "x$test_cygdrive_prefix" = x; then 60581 # As a simple fix, exclude /usr/bin since it's not a real path. 60582 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60583 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60584 # a path prefixed by /cygdrive for fixpath to work. 60585 new_path="$CYGWIN_ROOT_PATH$input_path" 60586 fi 60587 fi 60588 60589 60590 if test "x$path" != "x$new_path"; then 60591 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60593 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60594 fi 60595 60596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60597 60598 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60599 has_colon=`$ECHO $path | $GREP ^.:` 60600 new_path="$path" 60601 if test "x$has_colon" = x; then 60602 # Not in mixed or Windows style, start by that. 60603 new_path=`cmd //c echo $path` 60604 fi 60605 60606 60607 input_path="$new_path" 60608 # Check if we need to convert this using DOS-style short mode. If the path 60609 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60610 # take no chances and rewrite it. 60611 # Note: m4 eats our [], so we need to use [ and ] instead. 60612 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60613 if test "x$has_forbidden_chars" != x; then 60614 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60615 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60616 fi 60617 60618 60619 windows_path="$new_path" 60620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60621 unix_path=`$CYGPATH -u "$windows_path"` 60622 new_path="$unix_path" 60623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60625 new_path="$unix_path" 60626 fi 60627 60628 if test "x$path" != "x$new_path"; then 60629 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60630 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60631 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60632 fi 60633 60634 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60635 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60636 60637 else 60638 # We're on a unix platform. Hooray! :) 60639 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60640 has_space=`$ECHO "$path" | $GREP " "` 60641 if test "x$has_space" != x; then 60642 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60643 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60644 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60645 fi 60646 60647 # Use eval to expand a potential ~ 60648 eval path="$path" 60649 if test ! -f "$path" && test ! -d "$path"; then 60650 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60651 fi 60652 60653 if test -d "$path"; then 60654 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60655 else 60656 dir="`$DIRNAME "$path"`" 60657 base="`$BASENAME "$path"`" 60658 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60659 fi 60660 fi 60661 fi 60662 60663 60664 # Only process if variable expands to non-empty 60665 60666 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60668 60669 # Input might be given as Windows format, start by converting to 60670 # unix format. 60671 path="$POTENTIAL_FREETYPE_LIB_PATH" 60672 new_path=`$CYGPATH -u "$path"` 60673 60674 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60675 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60676 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60677 # "foo.exe" is OK but "foo" is an error. 60678 # 60679 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60680 # It is also a way to make sure we got the proper file name for the real test later on. 60681 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60682 if test "x$test_shortpath" = x; then 60683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60684 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60685 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60686 fi 60687 60688 # Call helper function which possibly converts this using DOS-style short mode. 60689 # If so, the updated path is stored in $new_path. 60690 60691 input_path="$new_path" 60692 # Check if we need to convert this using DOS-style short mode. If the path 60693 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60694 # take no chances and rewrite it. 60695 # Note: m4 eats our [], so we need to use [ and ] instead. 60696 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60697 if test "x$has_forbidden_chars" != x; then 60698 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60699 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60700 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60701 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60702 # Going to short mode and back again did indeed matter. Since short mode is 60703 # case insensitive, let's make it lowercase to improve readability. 60704 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60705 # Now convert it back to Unix-style (cygpath) 60706 input_path=`$CYGPATH -u "$shortmode_path"` 60707 new_path="$input_path" 60708 fi 60709 fi 60710 60711 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60712 if test "x$test_cygdrive_prefix" = x; then 60713 # As a simple fix, exclude /usr/bin since it's not a real path. 60714 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60715 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60716 # a path prefixed by /cygdrive for fixpath to work. 60717 new_path="$CYGWIN_ROOT_PATH$input_path" 60718 fi 60719 fi 60720 60721 60722 if test "x$path" != "x$new_path"; then 60723 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60724 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60725 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60726 fi 60727 60728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60729 60730 path="$POTENTIAL_FREETYPE_LIB_PATH" 60731 has_colon=`$ECHO $path | $GREP ^.:` 60732 new_path="$path" 60733 if test "x$has_colon" = x; then 60734 # Not in mixed or Windows style, start by that. 60735 new_path=`cmd //c echo $path` 60736 fi 60737 60738 60739 input_path="$new_path" 60740 # Check if we need to convert this using DOS-style short mode. If the path 60741 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60742 # take no chances and rewrite it. 60743 # Note: m4 eats our [], so we need to use [ and ] instead. 60744 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60745 if test "x$has_forbidden_chars" != x; then 60746 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60747 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60748 fi 60749 60750 60751 windows_path="$new_path" 60752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60753 unix_path=`$CYGPATH -u "$windows_path"` 60754 new_path="$unix_path" 60755 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60756 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60757 new_path="$unix_path" 60758 fi 60759 60760 if test "x$path" != "x$new_path"; then 60761 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60762 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60763 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60764 fi 60765 60766 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60767 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60768 60769 else 60770 # We're on a unix platform. Hooray! :) 60771 path="$POTENTIAL_FREETYPE_LIB_PATH" 60772 has_space=`$ECHO "$path" | $GREP " "` 60773 if test "x$has_space" != x; then 60774 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60775 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60776 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60777 fi 60778 60779 # Use eval to expand a potential ~ 60780 eval path="$path" 60781 if test ! -f "$path" && test ! -d "$path"; then 60782 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60783 fi 60784 60785 if test -d "$path"; then 60786 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60787 else 60788 dir="`$DIRNAME "$path"`" 60789 base="`$BASENAME "$path"`" 60790 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60791 fi 60792 fi 60793 fi 60794 60795 60796 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60798 $as_echo_n "checking for freetype includes... " >&6; } 60799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60800 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60801 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60803 $as_echo_n "checking for freetype libraries... " >&6; } 60804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60805 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60806 fi 60807 60808 fi 60809 fi 60810 60811 if test "x$FOUND_FREETYPE" != xyes; then 60812 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 60813 60814 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60815 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60816 METHOD="well-known location" 60817 60818 # Let's start with an optimistic view of the world :-) 60819 FOUND_FREETYPE=yes 60820 60821 # First look for the canonical freetype main include file ft2build.h. 60822 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60823 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60824 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60825 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60826 # Fail. 60827 FOUND_FREETYPE=no 60828 fi 60829 fi 60830 60831 if test "x$FOUND_FREETYPE" = xyes; then 60832 # Include file found, let's continue the sanity check. 60833 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60834 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60835 60836 # Reset to default value 60837 FREETYPE_BASE_NAME=freetype 60838 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60839 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60840 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60841 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60842 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60843 # for the .6 version explicitly. 60844 FREETYPE_BASE_NAME=freetype.6 60845 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60846 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60847 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60848 else 60849 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60850 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60851 FOUND_FREETYPE=no 60852 fi 60853 else 60854 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60855 # On Windows, we will need both .lib and .dll file. 60856 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60857 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60858 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60859 FOUND_FREETYPE=no 60860 fi 60861 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60862 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60863 # Found lib in isa dir, use that instead. 60864 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60865 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60866 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60867 fi 60868 fi 60869 fi 60870 60871 if test "x$FOUND_FREETYPE" = xyes; then 60872 60873 # Only process if variable expands to non-empty 60874 60875 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60877 60878 # Input might be given as Windows format, start by converting to 60879 # unix format. 60880 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60881 new_path=`$CYGPATH -u "$path"` 60882 60883 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60884 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60885 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60886 # "foo.exe" is OK but "foo" is an error. 60887 # 60888 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60889 # It is also a way to make sure we got the proper file name for the real test later on. 60890 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60891 if test "x$test_shortpath" = x; then 60892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60893 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60894 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60895 fi 60896 60897 # Call helper function which possibly converts this using DOS-style short mode. 60898 # If so, the updated path is stored in $new_path. 60899 60900 input_path="$new_path" 60901 # Check if we need to convert this using DOS-style short mode. If the path 60902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60903 # take no chances and rewrite it. 60904 # Note: m4 eats our [], so we need to use [ and ] instead. 60905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60906 if test "x$has_forbidden_chars" != x; then 60907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60908 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60909 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60910 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60911 # Going to short mode and back again did indeed matter. Since short mode is 60912 # case insensitive, let's make it lowercase to improve readability. 60913 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60914 # Now convert it back to Unix-style (cygpath) 60915 input_path=`$CYGPATH -u "$shortmode_path"` 60916 new_path="$input_path" 60917 fi 60918 fi 60919 60920 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60921 if test "x$test_cygdrive_prefix" = x; then 60922 # As a simple fix, exclude /usr/bin since it's not a real path. 60923 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60924 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60925 # a path prefixed by /cygdrive for fixpath to work. 60926 new_path="$CYGWIN_ROOT_PATH$input_path" 60927 fi 60928 fi 60929 60930 60931 if test "x$path" != "x$new_path"; then 60932 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60934 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60935 fi 60936 60937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60938 60939 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60940 has_colon=`$ECHO $path | $GREP ^.:` 60941 new_path="$path" 60942 if test "x$has_colon" = x; then 60943 # Not in mixed or Windows style, start by that. 60944 new_path=`cmd //c echo $path` 60945 fi 60946 60947 60948 input_path="$new_path" 60949 # Check if we need to convert this using DOS-style short mode. If the path 60950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60951 # take no chances and rewrite it. 60952 # Note: m4 eats our [], so we need to use [ and ] instead. 60953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60954 if test "x$has_forbidden_chars" != x; then 60955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60956 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60957 fi 60958 60959 60960 windows_path="$new_path" 60961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60962 unix_path=`$CYGPATH -u "$windows_path"` 60963 new_path="$unix_path" 60964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60965 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60966 new_path="$unix_path" 60967 fi 60968 60969 if test "x$path" != "x$new_path"; then 60970 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60971 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60972 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60973 fi 60974 60975 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60976 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60977 60978 else 60979 # We're on a unix platform. Hooray! :) 60980 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60981 has_space=`$ECHO "$path" | $GREP " "` 60982 if test "x$has_space" != x; then 60983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60984 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60985 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60986 fi 60987 60988 # Use eval to expand a potential ~ 60989 eval path="$path" 60990 if test ! -f "$path" && test ! -d "$path"; then 60991 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60992 fi 60993 60994 if test -d "$path"; then 60995 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60996 else 60997 dir="`$DIRNAME "$path"`" 60998 base="`$BASENAME "$path"`" 60999 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61000 fi 61001 fi 61002 fi 61003 61004 61005 # Only process if variable expands to non-empty 61006 61007 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61009 61010 # Input might be given as Windows format, start by converting to 61011 # unix format. 61012 path="$POTENTIAL_FREETYPE_LIB_PATH" 61013 new_path=`$CYGPATH -u "$path"` 61014 61015 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61016 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61017 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61018 # "foo.exe" is OK but "foo" is an error. 61019 # 61020 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61021 # It is also a way to make sure we got the proper file name for the real test later on. 61022 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61023 if test "x$test_shortpath" = x; then 61024 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61025 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61026 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61027 fi 61028 61029 # Call helper function which possibly converts this using DOS-style short mode. 61030 # If so, the updated path is stored in $new_path. 61031 61032 input_path="$new_path" 61033 # Check if we need to convert this using DOS-style short mode. If the path 61034 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61035 # take no chances and rewrite it. 61036 # Note: m4 eats our [], so we need to use [ and ] instead. 61037 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61038 if test "x$has_forbidden_chars" != x; then 61039 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61040 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61041 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61042 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61043 # Going to short mode and back again did indeed matter. Since short mode is 61044 # case insensitive, let's make it lowercase to improve readability. 61045 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61046 # Now convert it back to Unix-style (cygpath) 61047 input_path=`$CYGPATH -u "$shortmode_path"` 61048 new_path="$input_path" 61049 fi 61050 fi 61051 61052 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61053 if test "x$test_cygdrive_prefix" = x; then 61054 # As a simple fix, exclude /usr/bin since it's not a real path. 61055 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61056 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61057 # a path prefixed by /cygdrive for fixpath to work. 61058 new_path="$CYGWIN_ROOT_PATH$input_path" 61059 fi 61060 fi 61061 61062 61063 if test "x$path" != "x$new_path"; then 61064 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61066 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61067 fi 61068 61069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61070 61071 path="$POTENTIAL_FREETYPE_LIB_PATH" 61072 has_colon=`$ECHO $path | $GREP ^.:` 61073 new_path="$path" 61074 if test "x$has_colon" = x; then 61075 # Not in mixed or Windows style, start by that. 61076 new_path=`cmd //c echo $path` 61077 fi 61078 61079 61080 input_path="$new_path" 61081 # Check if we need to convert this using DOS-style short mode. If the path 61082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61083 # take no chances and rewrite it. 61084 # Note: m4 eats our [], so we need to use [ and ] instead. 61085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61086 if test "x$has_forbidden_chars" != x; then 61087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61088 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61089 fi 61090 61091 61092 windows_path="$new_path" 61093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61094 unix_path=`$CYGPATH -u "$windows_path"` 61095 new_path="$unix_path" 61096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61097 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61098 new_path="$unix_path" 61099 fi 61100 61101 if test "x$path" != "x$new_path"; then 61102 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61103 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61104 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61105 fi 61106 61107 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61108 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61109 61110 else 61111 # We're on a unix platform. Hooray! :) 61112 path="$POTENTIAL_FREETYPE_LIB_PATH" 61113 has_space=`$ECHO "$path" | $GREP " "` 61114 if test "x$has_space" != x; then 61115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61116 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61117 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61118 fi 61119 61120 # Use eval to expand a potential ~ 61121 eval path="$path" 61122 if test ! -f "$path" && test ! -d "$path"; then 61123 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61124 fi 61125 61126 if test -d "$path"; then 61127 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61128 else 61129 dir="`$DIRNAME "$path"`" 61130 base="`$BASENAME "$path"`" 61131 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61132 fi 61133 fi 61134 fi 61135 61136 61137 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61139 $as_echo_n "checking for freetype includes... " >&6; } 61140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61141 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61142 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61144 $as_echo_n "checking for freetype libraries... " >&6; } 61145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61146 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61147 fi 61148 61149 fi 61150 61151 if test "x$FOUND_FREETYPE" != xyes; then 61152 FREETYPE_BASE_DIR="$SYSROOT/usr" 61153 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61154 61155 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61156 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 61157 METHOD="well-known location" 61158 61159 # Let's start with an optimistic view of the world :-) 61160 FOUND_FREETYPE=yes 61161 61162 # First look for the canonical freetype main include file ft2build.h. 61163 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61164 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61165 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61166 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61167 # Fail. 61168 FOUND_FREETYPE=no 61169 fi 61170 fi 61171 61172 if test "x$FOUND_FREETYPE" = xyes; then 61173 # Include file found, let's continue the sanity check. 61174 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61175 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61176 61177 # Reset to default value 61178 FREETYPE_BASE_NAME=freetype 61179 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61180 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61181 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61182 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61183 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61184 # for the .6 version explicitly. 61185 FREETYPE_BASE_NAME=freetype.6 61186 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61187 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61188 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61189 else 61190 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61191 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61192 FOUND_FREETYPE=no 61193 fi 61194 else 61195 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61196 # On Windows, we will need both .lib and .dll file. 61197 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61198 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61199 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61200 FOUND_FREETYPE=no 61201 fi 61202 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61203 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61204 # Found lib in isa dir, use that instead. 61205 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61207 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61208 fi 61209 fi 61210 fi 61211 61212 if test "x$FOUND_FREETYPE" = xyes; then 61213 61214 # Only process if variable expands to non-empty 61215 61216 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61218 61219 # Input might be given as Windows format, start by converting to 61220 # unix format. 61221 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61222 new_path=`$CYGPATH -u "$path"` 61223 61224 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61225 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61226 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61227 # "foo.exe" is OK but "foo" is an error. 61228 # 61229 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61230 # It is also a way to make sure we got the proper file name for the real test later on. 61231 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61232 if test "x$test_shortpath" = x; then 61233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61234 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61235 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61236 fi 61237 61238 # Call helper function which possibly converts this using DOS-style short mode. 61239 # If so, the updated path is stored in $new_path. 61240 61241 input_path="$new_path" 61242 # Check if we need to convert this using DOS-style short mode. If the path 61243 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61244 # take no chances and rewrite it. 61245 # Note: m4 eats our [], so we need to use [ and ] instead. 61246 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61247 if test "x$has_forbidden_chars" != x; then 61248 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61249 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61250 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61251 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61252 # Going to short mode and back again did indeed matter. Since short mode is 61253 # case insensitive, let's make it lowercase to improve readability. 61254 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61255 # Now convert it back to Unix-style (cygpath) 61256 input_path=`$CYGPATH -u "$shortmode_path"` 61257 new_path="$input_path" 61258 fi 61259 fi 61260 61261 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61262 if test "x$test_cygdrive_prefix" = x; then 61263 # As a simple fix, exclude /usr/bin since it's not a real path. 61264 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61265 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61266 # a path prefixed by /cygdrive for fixpath to work. 61267 new_path="$CYGWIN_ROOT_PATH$input_path" 61268 fi 61269 fi 61270 61271 61272 if test "x$path" != "x$new_path"; then 61273 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61274 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61275 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61276 fi 61277 61278 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61279 61280 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61281 has_colon=`$ECHO $path | $GREP ^.:` 61282 new_path="$path" 61283 if test "x$has_colon" = x; then 61284 # Not in mixed or Windows style, start by that. 61285 new_path=`cmd //c echo $path` 61286 fi 61287 61288 61289 input_path="$new_path" 61290 # Check if we need to convert this using DOS-style short mode. If the path 61291 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61292 # take no chances and rewrite it. 61293 # Note: m4 eats our [], so we need to use [ and ] instead. 61294 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61295 if test "x$has_forbidden_chars" != x; then 61296 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61297 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61298 fi 61299 61300 61301 windows_path="$new_path" 61302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61303 unix_path=`$CYGPATH -u "$windows_path"` 61304 new_path="$unix_path" 61305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61307 new_path="$unix_path" 61308 fi 61309 61310 if test "x$path" != "x$new_path"; then 61311 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61312 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61313 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61314 fi 61315 61316 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61317 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61318 61319 else 61320 # We're on a unix platform. Hooray! :) 61321 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61322 has_space=`$ECHO "$path" | $GREP " "` 61323 if test "x$has_space" != x; then 61324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61325 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61326 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61327 fi 61328 61329 # Use eval to expand a potential ~ 61330 eval path="$path" 61331 if test ! -f "$path" && test ! -d "$path"; then 61332 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61333 fi 61334 61335 if test -d "$path"; then 61336 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61337 else 61338 dir="`$DIRNAME "$path"`" 61339 base="`$BASENAME "$path"`" 61340 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61341 fi 61342 fi 61343 fi 61344 61345 61346 # Only process if variable expands to non-empty 61347 61348 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61350 61351 # Input might be given as Windows format, start by converting to 61352 # unix format. 61353 path="$POTENTIAL_FREETYPE_LIB_PATH" 61354 new_path=`$CYGPATH -u "$path"` 61355 61356 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61357 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61358 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61359 # "foo.exe" is OK but "foo" is an error. 61360 # 61361 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61362 # It is also a way to make sure we got the proper file name for the real test later on. 61363 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61364 if test "x$test_shortpath" = x; then 61365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61366 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61367 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61368 fi 61369 61370 # Call helper function which possibly converts this using DOS-style short mode. 61371 # If so, the updated path is stored in $new_path. 61372 61373 input_path="$new_path" 61374 # Check if we need to convert this using DOS-style short mode. If the path 61375 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61376 # take no chances and rewrite it. 61377 # Note: m4 eats our [], so we need to use [ and ] instead. 61378 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61379 if test "x$has_forbidden_chars" != x; then 61380 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61381 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61382 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61383 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61384 # Going to short mode and back again did indeed matter. Since short mode is 61385 # case insensitive, let's make it lowercase to improve readability. 61386 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61387 # Now convert it back to Unix-style (cygpath) 61388 input_path=`$CYGPATH -u "$shortmode_path"` 61389 new_path="$input_path" 61390 fi 61391 fi 61392 61393 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61394 if test "x$test_cygdrive_prefix" = x; then 61395 # As a simple fix, exclude /usr/bin since it's not a real path. 61396 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61397 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61398 # a path prefixed by /cygdrive for fixpath to work. 61399 new_path="$CYGWIN_ROOT_PATH$input_path" 61400 fi 61401 fi 61402 61403 61404 if test "x$path" != "x$new_path"; then 61405 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61406 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61407 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61408 fi 61409 61410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61411 61412 path="$POTENTIAL_FREETYPE_LIB_PATH" 61413 has_colon=`$ECHO $path | $GREP ^.:` 61414 new_path="$path" 61415 if test "x$has_colon" = x; then 61416 # Not in mixed or Windows style, start by that. 61417 new_path=`cmd //c echo $path` 61418 fi 61419 61420 61421 input_path="$new_path" 61422 # Check if we need to convert this using DOS-style short mode. If the path 61423 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61424 # take no chances and rewrite it. 61425 # Note: m4 eats our [], so we need to use [ and ] instead. 61426 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61427 if test "x$has_forbidden_chars" != x; then 61428 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61429 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61430 fi 61431 61432 61433 windows_path="$new_path" 61434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61435 unix_path=`$CYGPATH -u "$windows_path"` 61436 new_path="$unix_path" 61437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61438 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61439 new_path="$unix_path" 61440 fi 61441 61442 if test "x$path" != "x$new_path"; then 61443 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61444 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61445 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61446 fi 61447 61448 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61449 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61450 61451 else 61452 # We're on a unix platform. Hooray! :) 61453 path="$POTENTIAL_FREETYPE_LIB_PATH" 61454 has_space=`$ECHO "$path" | $GREP " "` 61455 if test "x$has_space" != x; then 61456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61457 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61458 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61459 fi 61460 61461 # Use eval to expand a potential ~ 61462 eval path="$path" 61463 if test ! -f "$path" && test ! -d "$path"; then 61464 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61465 fi 61466 61467 if test -d "$path"; then 61468 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61469 else 61470 dir="`$DIRNAME "$path"`" 61471 base="`$BASENAME "$path"`" 61472 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61473 fi 61474 fi 61475 fi 61476 61477 61478 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61480 $as_echo_n "checking for freetype includes... " >&6; } 61481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61482 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61483 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61485 $as_echo_n "checking for freetype libraries... " >&6; } 61486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61487 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61488 fi 61489 61490 else 61491 61492 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61493 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 61494 METHOD="well-known location" 61495 61496 # Let's start with an optimistic view of the world :-) 61497 FOUND_FREETYPE=yes 61498 61499 # First look for the canonical freetype main include file ft2build.h. 61500 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61501 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61502 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61503 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61504 # Fail. 61505 FOUND_FREETYPE=no 61506 fi 61507 fi 61508 61509 if test "x$FOUND_FREETYPE" = xyes; then 61510 # Include file found, let's continue the sanity check. 61511 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61512 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61513 61514 # Reset to default value 61515 FREETYPE_BASE_NAME=freetype 61516 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61517 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61518 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61519 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61520 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61521 # for the .6 version explicitly. 61522 FREETYPE_BASE_NAME=freetype.6 61523 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61524 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61525 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61526 else 61527 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61528 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61529 FOUND_FREETYPE=no 61530 fi 61531 else 61532 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61533 # On Windows, we will need both .lib and .dll file. 61534 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61535 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61536 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61537 FOUND_FREETYPE=no 61538 fi 61539 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61540 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61541 # Found lib in isa dir, use that instead. 61542 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61543 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61544 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61545 fi 61546 fi 61547 fi 61548 61549 if test "x$FOUND_FREETYPE" = xyes; then 61550 61551 # Only process if variable expands to non-empty 61552 61553 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61555 61556 # Input might be given as Windows format, start by converting to 61557 # unix format. 61558 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61559 new_path=`$CYGPATH -u "$path"` 61560 61561 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61562 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61563 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61564 # "foo.exe" is OK but "foo" is an error. 61565 # 61566 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61567 # It is also a way to make sure we got the proper file name for the real test later on. 61568 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61569 if test "x$test_shortpath" = x; then 61570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61571 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61572 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61573 fi 61574 61575 # Call helper function which possibly converts this using DOS-style short mode. 61576 # If so, the updated path is stored in $new_path. 61577 61578 input_path="$new_path" 61579 # Check if we need to convert this using DOS-style short mode. If the path 61580 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61581 # take no chances and rewrite it. 61582 # Note: m4 eats our [], so we need to use [ and ] instead. 61583 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61584 if test "x$has_forbidden_chars" != x; then 61585 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61586 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61587 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61588 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61589 # Going to short mode and back again did indeed matter. Since short mode is 61590 # case insensitive, let's make it lowercase to improve readability. 61591 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61592 # Now convert it back to Unix-style (cygpath) 61593 input_path=`$CYGPATH -u "$shortmode_path"` 61594 new_path="$input_path" 61595 fi 61596 fi 61597 61598 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61599 if test "x$test_cygdrive_prefix" = x; then 61600 # As a simple fix, exclude /usr/bin since it's not a real path. 61601 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61602 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61603 # a path prefixed by /cygdrive for fixpath to work. 61604 new_path="$CYGWIN_ROOT_PATH$input_path" 61605 fi 61606 fi 61607 61608 61609 if test "x$path" != "x$new_path"; then 61610 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61611 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61612 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61613 fi 61614 61615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61616 61617 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61618 has_colon=`$ECHO $path | $GREP ^.:` 61619 new_path="$path" 61620 if test "x$has_colon" = x; then 61621 # Not in mixed or Windows style, start by that. 61622 new_path=`cmd //c echo $path` 61623 fi 61624 61625 61626 input_path="$new_path" 61627 # Check if we need to convert this using DOS-style short mode. If the path 61628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61629 # take no chances and rewrite it. 61630 # Note: m4 eats our [], so we need to use [ and ] instead. 61631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61632 if test "x$has_forbidden_chars" != x; then 61633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61634 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61635 fi 61636 61637 61638 windows_path="$new_path" 61639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61640 unix_path=`$CYGPATH -u "$windows_path"` 61641 new_path="$unix_path" 61642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61643 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61644 new_path="$unix_path" 61645 fi 61646 61647 if test "x$path" != "x$new_path"; then 61648 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61649 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61650 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61651 fi 61652 61653 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61654 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61655 61656 else 61657 # We're on a unix platform. Hooray! :) 61658 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61659 has_space=`$ECHO "$path" | $GREP " "` 61660 if test "x$has_space" != x; then 61661 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61662 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61663 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61664 fi 61665 61666 # Use eval to expand a potential ~ 61667 eval path="$path" 61668 if test ! -f "$path" && test ! -d "$path"; then 61669 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61670 fi 61671 61672 if test -d "$path"; then 61673 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61674 else 61675 dir="`$DIRNAME "$path"`" 61676 base="`$BASENAME "$path"`" 61677 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61678 fi 61679 fi 61680 fi 61681 61682 61683 # Only process if variable expands to non-empty 61684 61685 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61687 61688 # Input might be given as Windows format, start by converting to 61689 # unix format. 61690 path="$POTENTIAL_FREETYPE_LIB_PATH" 61691 new_path=`$CYGPATH -u "$path"` 61692 61693 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61694 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61695 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61696 # "foo.exe" is OK but "foo" is an error. 61697 # 61698 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61699 # It is also a way to make sure we got the proper file name for the real test later on. 61700 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61701 if test "x$test_shortpath" = x; then 61702 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61703 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61704 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61705 fi 61706 61707 # Call helper function which possibly converts this using DOS-style short mode. 61708 # If so, the updated path is stored in $new_path. 61709 61710 input_path="$new_path" 61711 # Check if we need to convert this using DOS-style short mode. If the path 61712 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61713 # take no chances and rewrite it. 61714 # Note: m4 eats our [], so we need to use [ and ] instead. 61715 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61716 if test "x$has_forbidden_chars" != x; then 61717 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61718 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61719 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61720 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61721 # Going to short mode and back again did indeed matter. Since short mode is 61722 # case insensitive, let's make it lowercase to improve readability. 61723 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61724 # Now convert it back to Unix-style (cygpath) 61725 input_path=`$CYGPATH -u "$shortmode_path"` 61726 new_path="$input_path" 61727 fi 61728 fi 61729 61730 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61731 if test "x$test_cygdrive_prefix" = x; then 61732 # As a simple fix, exclude /usr/bin since it's not a real path. 61733 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61734 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61735 # a path prefixed by /cygdrive for fixpath to work. 61736 new_path="$CYGWIN_ROOT_PATH$input_path" 61737 fi 61738 fi 61739 61740 61741 if test "x$path" != "x$new_path"; then 61742 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61743 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61744 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61745 fi 61746 61747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61748 61749 path="$POTENTIAL_FREETYPE_LIB_PATH" 61750 has_colon=`$ECHO $path | $GREP ^.:` 61751 new_path="$path" 61752 if test "x$has_colon" = x; then 61753 # Not in mixed or Windows style, start by that. 61754 new_path=`cmd //c echo $path` 61755 fi 61756 61757 61758 input_path="$new_path" 61759 # Check if we need to convert this using DOS-style short mode. If the path 61760 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61761 # take no chances and rewrite it. 61762 # Note: m4 eats our [], so we need to use [ and ] instead. 61763 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61764 if test "x$has_forbidden_chars" != x; then 61765 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61766 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61767 fi 61768 61769 61770 windows_path="$new_path" 61771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61772 unix_path=`$CYGPATH -u "$windows_path"` 61773 new_path="$unix_path" 61774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61775 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61776 new_path="$unix_path" 61777 fi 61778 61779 if test "x$path" != "x$new_path"; then 61780 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61781 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61782 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61783 fi 61784 61785 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61786 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61787 61788 else 61789 # We're on a unix platform. Hooray! :) 61790 path="$POTENTIAL_FREETYPE_LIB_PATH" 61791 has_space=`$ECHO "$path" | $GREP " "` 61792 if test "x$has_space" != x; then 61793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61794 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61795 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61796 fi 61797 61798 # Use eval to expand a potential ~ 61799 eval path="$path" 61800 if test ! -f "$path" && test ! -d "$path"; then 61801 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61802 fi 61803 61804 if test -d "$path"; then 61805 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61806 else 61807 dir="`$DIRNAME "$path"`" 61808 base="`$BASENAME "$path"`" 61809 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61810 fi 61811 fi 61812 fi 61813 61814 61815 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61817 $as_echo_n "checking for freetype includes... " >&6; } 61818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61819 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61820 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61822 $as_echo_n "checking for freetype libraries... " >&6; } 61823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61824 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61825 fi 61826 61827 if test "x$FOUND_FREETYPE" != xyes; then 61828 61829 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61830 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61831 METHOD="well-known location" 61832 61833 # Let's start with an optimistic view of the world :-) 61834 FOUND_FREETYPE=yes 61835 61836 # First look for the canonical freetype main include file ft2build.h. 61837 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61838 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61839 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61840 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61841 # Fail. 61842 FOUND_FREETYPE=no 61843 fi 61844 fi 61845 61846 if test "x$FOUND_FREETYPE" = xyes; then 61847 # Include file found, let's continue the sanity check. 61848 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61849 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61850 61851 # Reset to default value 61852 FREETYPE_BASE_NAME=freetype 61853 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61854 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61855 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61856 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61857 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61858 # for the .6 version explicitly. 61859 FREETYPE_BASE_NAME=freetype.6 61860 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61861 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61862 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61863 else 61864 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61865 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61866 FOUND_FREETYPE=no 61867 fi 61868 else 61869 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61870 # On Windows, we will need both .lib and .dll file. 61871 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61872 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61873 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61874 FOUND_FREETYPE=no 61875 fi 61876 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61877 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61878 # Found lib in isa dir, use that instead. 61879 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61880 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61881 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61882 fi 61883 fi 61884 fi 61885 61886 if test "x$FOUND_FREETYPE" = xyes; then 61887 61888 # Only process if variable expands to non-empty 61889 61890 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61892 61893 # Input might be given as Windows format, start by converting to 61894 # unix format. 61895 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61896 new_path=`$CYGPATH -u "$path"` 61897 61898 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61899 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61900 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61901 # "foo.exe" is OK but "foo" is an error. 61902 # 61903 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61904 # It is also a way to make sure we got the proper file name for the real test later on. 61905 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61906 if test "x$test_shortpath" = x; then 61907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61908 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61909 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61910 fi 61911 61912 # Call helper function which possibly converts this using DOS-style short mode. 61913 # If so, the updated path is stored in $new_path. 61914 61915 input_path="$new_path" 61916 # Check if we need to convert this using DOS-style short mode. If the path 61917 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61918 # take no chances and rewrite it. 61919 # Note: m4 eats our [], so we need to use [ and ] instead. 61920 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61921 if test "x$has_forbidden_chars" != x; then 61922 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61923 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61924 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61925 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61926 # Going to short mode and back again did indeed matter. Since short mode is 61927 # case insensitive, let's make it lowercase to improve readability. 61928 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61929 # Now convert it back to Unix-style (cygpath) 61930 input_path=`$CYGPATH -u "$shortmode_path"` 61931 new_path="$input_path" 61932 fi 61933 fi 61934 61935 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61936 if test "x$test_cygdrive_prefix" = x; then 61937 # As a simple fix, exclude /usr/bin since it's not a real path. 61938 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61939 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61940 # a path prefixed by /cygdrive for fixpath to work. 61941 new_path="$CYGWIN_ROOT_PATH$input_path" 61942 fi 61943 fi 61944 61945 61946 if test "x$path" != "x$new_path"; then 61947 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61949 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61950 fi 61951 61952 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61953 61954 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61955 has_colon=`$ECHO $path | $GREP ^.:` 61956 new_path="$path" 61957 if test "x$has_colon" = x; then 61958 # Not in mixed or Windows style, start by that. 61959 new_path=`cmd //c echo $path` 61960 fi 61961 61962 61963 input_path="$new_path" 61964 # Check if we need to convert this using DOS-style short mode. If the path 61965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61966 # take no chances and rewrite it. 61967 # Note: m4 eats our [], so we need to use [ and ] instead. 61968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61969 if test "x$has_forbidden_chars" != x; then 61970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61971 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61972 fi 61973 61974 61975 windows_path="$new_path" 61976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61977 unix_path=`$CYGPATH -u "$windows_path"` 61978 new_path="$unix_path" 61979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61981 new_path="$unix_path" 61982 fi 61983 61984 if test "x$path" != "x$new_path"; then 61985 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61986 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61987 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61988 fi 61989 61990 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61991 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61992 61993 else 61994 # We're on a unix platform. Hooray! :) 61995 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61996 has_space=`$ECHO "$path" | $GREP " "` 61997 if test "x$has_space" != x; then 61998 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61999 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62000 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62001 fi 62002 62003 # Use eval to expand a potential ~ 62004 eval path="$path" 62005 if test ! -f "$path" && test ! -d "$path"; then 62006 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62007 fi 62008 62009 if test -d "$path"; then 62010 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62011 else 62012 dir="`$DIRNAME "$path"`" 62013 base="`$BASENAME "$path"`" 62014 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62015 fi 62016 fi 62017 fi 62018 62019 62020 # Only process if variable expands to non-empty 62021 62022 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62024 62025 # Input might be given as Windows format, start by converting to 62026 # unix format. 62027 path="$POTENTIAL_FREETYPE_LIB_PATH" 62028 new_path=`$CYGPATH -u "$path"` 62029 62030 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62031 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62032 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62033 # "foo.exe" is OK but "foo" is an error. 62034 # 62035 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62036 # It is also a way to make sure we got the proper file name for the real test later on. 62037 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62038 if test "x$test_shortpath" = x; then 62039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62040 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62041 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62042 fi 62043 62044 # Call helper function which possibly converts this using DOS-style short mode. 62045 # If so, the updated path is stored in $new_path. 62046 62047 input_path="$new_path" 62048 # Check if we need to convert this using DOS-style short mode. If the path 62049 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62050 # take no chances and rewrite it. 62051 # Note: m4 eats our [], so we need to use [ and ] instead. 62052 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62053 if test "x$has_forbidden_chars" != x; then 62054 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62055 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62056 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62057 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62058 # Going to short mode and back again did indeed matter. Since short mode is 62059 # case insensitive, let's make it lowercase to improve readability. 62060 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62061 # Now convert it back to Unix-style (cygpath) 62062 input_path=`$CYGPATH -u "$shortmode_path"` 62063 new_path="$input_path" 62064 fi 62065 fi 62066 62067 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62068 if test "x$test_cygdrive_prefix" = x; then 62069 # As a simple fix, exclude /usr/bin since it's not a real path. 62070 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62071 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62072 # a path prefixed by /cygdrive for fixpath to work. 62073 new_path="$CYGWIN_ROOT_PATH$input_path" 62074 fi 62075 fi 62076 62077 62078 if test "x$path" != "x$new_path"; then 62079 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62080 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62081 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62082 fi 62083 62084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62085 62086 path="$POTENTIAL_FREETYPE_LIB_PATH" 62087 has_colon=`$ECHO $path | $GREP ^.:` 62088 new_path="$path" 62089 if test "x$has_colon" = x; then 62090 # Not in mixed or Windows style, start by that. 62091 new_path=`cmd //c echo $path` 62092 fi 62093 62094 62095 input_path="$new_path" 62096 # Check if we need to convert this using DOS-style short mode. If the path 62097 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62098 # take no chances and rewrite it. 62099 # Note: m4 eats our [], so we need to use [ and ] instead. 62100 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62101 if test "x$has_forbidden_chars" != x; then 62102 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62103 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62104 fi 62105 62106 62107 windows_path="$new_path" 62108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62109 unix_path=`$CYGPATH -u "$windows_path"` 62110 new_path="$unix_path" 62111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62112 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62113 new_path="$unix_path" 62114 fi 62115 62116 if test "x$path" != "x$new_path"; then 62117 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62118 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62119 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62120 fi 62121 62122 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62123 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62124 62125 else 62126 # We're on a unix platform. Hooray! :) 62127 path="$POTENTIAL_FREETYPE_LIB_PATH" 62128 has_space=`$ECHO "$path" | $GREP " "` 62129 if test "x$has_space" != x; then 62130 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62131 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62132 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62133 fi 62134 62135 # Use eval to expand a potential ~ 62136 eval path="$path" 62137 if test ! -f "$path" && test ! -d "$path"; then 62138 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62139 fi 62140 62141 if test -d "$path"; then 62142 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62143 else 62144 dir="`$DIRNAME "$path"`" 62145 base="`$BASENAME "$path"`" 62146 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62147 fi 62148 fi 62149 fi 62150 62151 62152 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62154 $as_echo_n "checking for freetype includes... " >&6; } 62155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62156 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62157 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62159 $as_echo_n "checking for freetype libraries... " >&6; } 62160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62161 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62162 fi 62163 62164 fi 62165 fi 62166 fi 62167 fi 62168 fi # end check in well-known locations 62169 62170 if test "x$FOUND_FREETYPE" != xyes; then 62171 62172 # Print a helpful message on how to acquire the necessary build dependency. 62173 # freetype is the help tag: freetype, cups, alsa etc 62174 MISSING_DEPENDENCY=freetype 62175 62176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62177 cygwin_help $MISSING_DEPENDENCY 62178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62179 msys_help $MISSING_DEPENDENCY 62180 else 62181 PKGHANDLER_COMMAND= 62182 62183 case $PKGHANDLER in 62184 apt-get) 62185 apt_help $MISSING_DEPENDENCY ;; 62186 yum) 62187 yum_help $MISSING_DEPENDENCY ;; 62188 port) 62189 port_help $MISSING_DEPENDENCY ;; 62190 pkgutil) 62191 pkgutil_help $MISSING_DEPENDENCY ;; 62192 pkgadd) 62193 pkgadd_help $MISSING_DEPENDENCY ;; 62194 esac 62195 62196 if test "x$PKGHANDLER_COMMAND" != x; then 62197 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62198 fi 62199 fi 62200 62201 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 62202 fi 62203 fi # end user specified settings 62204 62205 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 62206 if test "x$FREETYPE_CFLAGS" = x; then 62207 62208 # Only process if variable expands to non-empty 62209 62210 if test "x$FREETYPE_INCLUDE_PATH" != x; then 62211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62212 62213 # Input might be given as Windows format, start by converting to 62214 # unix format. 62215 path="$FREETYPE_INCLUDE_PATH" 62216 new_path=`$CYGPATH -u "$path"` 62217 62218 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62219 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62220 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62221 # "foo.exe" is OK but "foo" is an error. 62222 # 62223 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62224 # It is also a way to make sure we got the proper file name for the real test later on. 62225 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62226 if test "x$test_shortpath" = x; then 62227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62228 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62229 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 62230 fi 62231 62232 # Call helper function which possibly converts this using DOS-style short mode. 62233 # If so, the updated path is stored in $new_path. 62234 62235 input_path="$new_path" 62236 # Check if we need to convert this using DOS-style short mode. If the path 62237 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62238 # take no chances and rewrite it. 62239 # Note: m4 eats our [], so we need to use [ and ] instead. 62240 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62241 if test "x$has_forbidden_chars" != x; then 62242 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62243 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62244 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62245 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62246 # Going to short mode and back again did indeed matter. Since short mode is 62247 # case insensitive, let's make it lowercase to improve readability. 62248 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62249 # Now convert it back to Unix-style (cygpath) 62250 input_path=`$CYGPATH -u "$shortmode_path"` 62251 new_path="$input_path" 62252 fi 62253 fi 62254 62255 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62256 if test "x$test_cygdrive_prefix" = x; then 62257 # As a simple fix, exclude /usr/bin since it's not a real path. 62258 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62259 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62260 # a path prefixed by /cygdrive for fixpath to work. 62261 new_path="$CYGWIN_ROOT_PATH$input_path" 62262 fi 62263 fi 62264 62265 62266 if test "x$path" != "x$new_path"; then 62267 FREETYPE_INCLUDE_PATH="$new_path" 62268 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62269 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62270 fi 62271 62272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62273 62274 path="$FREETYPE_INCLUDE_PATH" 62275 has_colon=`$ECHO $path | $GREP ^.:` 62276 new_path="$path" 62277 if test "x$has_colon" = x; then 62278 # Not in mixed or Windows style, start by that. 62279 new_path=`cmd //c echo $path` 62280 fi 62281 62282 62283 input_path="$new_path" 62284 # Check if we need to convert this using DOS-style short mode. If the path 62285 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62286 # take no chances and rewrite it. 62287 # Note: m4 eats our [], so we need to use [ and ] instead. 62288 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62289 if test "x$has_forbidden_chars" != x; then 62290 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62291 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62292 fi 62293 62294 62295 windows_path="$new_path" 62296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62297 unix_path=`$CYGPATH -u "$windows_path"` 62298 new_path="$unix_path" 62299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62301 new_path="$unix_path" 62302 fi 62303 62304 if test "x$path" != "x$new_path"; then 62305 FREETYPE_INCLUDE_PATH="$new_path" 62306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62307 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62308 fi 62309 62310 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62311 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62312 62313 else 62314 # We're on a unix platform. Hooray! :) 62315 path="$FREETYPE_INCLUDE_PATH" 62316 has_space=`$ECHO "$path" | $GREP " "` 62317 if test "x$has_space" != x; then 62318 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62319 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62320 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62321 fi 62322 62323 # Use eval to expand a potential ~ 62324 eval path="$path" 62325 if test ! -f "$path" && test ! -d "$path"; then 62326 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62327 fi 62328 62329 if test -d "$path"; then 62330 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62331 else 62332 dir="`$DIRNAME "$path"`" 62333 base="`$BASENAME "$path"`" 62334 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62335 fi 62336 fi 62337 fi 62338 62339 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 62340 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 62341 else 62342 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 62343 fi 62344 fi 62345 62346 if test "x$FREETYPE_LIBS" = x; then 62347 62348 # Only process if variable expands to non-empty 62349 62350 if test "x$FREETYPE_LIB_PATH" != x; then 62351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62352 62353 # Input might be given as Windows format, start by converting to 62354 # unix format. 62355 path="$FREETYPE_LIB_PATH" 62356 new_path=`$CYGPATH -u "$path"` 62357 62358 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62359 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62360 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62361 # "foo.exe" is OK but "foo" is an error. 62362 # 62363 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62364 # It is also a way to make sure we got the proper file name for the real test later on. 62365 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62366 if test "x$test_shortpath" = x; then 62367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62368 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62369 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 62370 fi 62371 62372 # Call helper function which possibly converts this using DOS-style short mode. 62373 # If so, the updated path is stored in $new_path. 62374 62375 input_path="$new_path" 62376 # Check if we need to convert this using DOS-style short mode. If the path 62377 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62378 # take no chances and rewrite it. 62379 # Note: m4 eats our [], so we need to use [ and ] instead. 62380 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62381 if test "x$has_forbidden_chars" != x; then 62382 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62383 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62384 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62385 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62386 # Going to short mode and back again did indeed matter. Since short mode is 62387 # case insensitive, let's make it lowercase to improve readability. 62388 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62389 # Now convert it back to Unix-style (cygpath) 62390 input_path=`$CYGPATH -u "$shortmode_path"` 62391 new_path="$input_path" 62392 fi 62393 fi 62394 62395 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62396 if test "x$test_cygdrive_prefix" = x; then 62397 # As a simple fix, exclude /usr/bin since it's not a real path. 62398 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62399 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62400 # a path prefixed by /cygdrive for fixpath to work. 62401 new_path="$CYGWIN_ROOT_PATH$input_path" 62402 fi 62403 fi 62404 62405 62406 if test "x$path" != "x$new_path"; then 62407 FREETYPE_LIB_PATH="$new_path" 62408 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62409 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62410 fi 62411 62412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62413 62414 path="$FREETYPE_LIB_PATH" 62415 has_colon=`$ECHO $path | $GREP ^.:` 62416 new_path="$path" 62417 if test "x$has_colon" = x; then 62418 # Not in mixed or Windows style, start by that. 62419 new_path=`cmd //c echo $path` 62420 fi 62421 62422 62423 input_path="$new_path" 62424 # Check if we need to convert this using DOS-style short mode. If the path 62425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62426 # take no chances and rewrite it. 62427 # Note: m4 eats our [], so we need to use [ and ] instead. 62428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62429 if test "x$has_forbidden_chars" != x; then 62430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62431 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62432 fi 62433 62434 62435 windows_path="$new_path" 62436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62437 unix_path=`$CYGPATH -u "$windows_path"` 62438 new_path="$unix_path" 62439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62441 new_path="$unix_path" 62442 fi 62443 62444 if test "x$path" != "x$new_path"; then 62445 FREETYPE_LIB_PATH="$new_path" 62446 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 62447 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62448 fi 62449 62450 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62451 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62452 62453 else 62454 # We're on a unix platform. Hooray! :) 62455 path="$FREETYPE_LIB_PATH" 62456 has_space=`$ECHO "$path" | $GREP " "` 62457 if test "x$has_space" != x; then 62458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62459 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62460 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62461 fi 62462 62463 # Use eval to expand a potential ~ 62464 eval path="$path" 62465 if test ! -f "$path" && test ! -d "$path"; then 62466 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62467 fi 62468 62469 if test -d "$path"; then 62470 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62471 else 62472 dir="`$DIRNAME "$path"`" 62473 base="`$BASENAME "$path"`" 62474 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62475 fi 62476 fi 62477 fi 62478 62479 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62480 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 62481 else 62482 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 62483 fi 62484 fi 62485 62486 # Try to compile it 62487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 62488 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 62489 ac_ext=cpp 62490 ac_cpp='$CXXCPP $CPPFLAGS' 62491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62494 62495 PREV_CXXCFLAGS="$CXXFLAGS" 62496 PREV_LIBS="$LIBS" 62497 PREV_CXX="$CXX" 62498 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 62499 LIBS="$LIBS $FREETYPE_LIBS" 62500 CXX="$FIXPATH $CXX" 62501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62502 /* end confdefs.h. */ 62503 62504 #include<ft2build.h> 62505 #include FT_FREETYPE_H 62506 int main () { 62507 FT_Init_FreeType(NULL); 62508 return 0; 62509 } 62510 62511 _ACEOF 62512 if ac_fn_cxx_try_link "$LINENO"; then : 62513 62514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62515 $as_echo "yes" >&6; } 62516 62517 else 62518 62519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62520 $as_echo "no" >&6; } 62521 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 62522 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 62523 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 62524 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 62525 62526 62527 # Print a helpful message on how to acquire the necessary build dependency. 62528 # freetype is the help tag: freetype, cups, alsa etc 62529 MISSING_DEPENDENCY=freetype 62530 62531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62532 cygwin_help $MISSING_DEPENDENCY 62533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62534 msys_help $MISSING_DEPENDENCY 62535 else 62536 PKGHANDLER_COMMAND= 62537 62538 case $PKGHANDLER in 62539 apt-get) 62540 apt_help $MISSING_DEPENDENCY ;; 62541 yum) 62542 yum_help $MISSING_DEPENDENCY ;; 62543 port) 62544 port_help $MISSING_DEPENDENCY ;; 62545 pkgutil) 62546 pkgutil_help $MISSING_DEPENDENCY ;; 62547 pkgadd) 62548 pkgadd_help $MISSING_DEPENDENCY ;; 62549 esac 62550 62551 if test "x$PKGHANDLER_COMMAND" != x; then 62552 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62553 fi 62554 fi 62555 62556 62557 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 62558 62559 62560 fi 62561 rm -f core conftest.err conftest.$ac_objext \ 62562 conftest$ac_exeext conftest.$ac_ext 62563 CXXCFLAGS="$PREV_CXXFLAGS" 62564 LIBS="$PREV_LIBS" 62565 CXX="$PREV_CXX" 62566 ac_ext=cpp 62567 ac_cpp='$CXXCPP $CPPFLAGS' 62568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62571 62572 62573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 62574 $as_echo_n "checking if we should bundle freetype... " >&6; } 62575 if test "x$BUNDLE_FREETYPE" = xyes; then 62576 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 62577 fi 62578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 62579 $as_echo "$BUNDLE_FREETYPE" >&6; } 62580 62581 fi # end freetype needed 62582 62583 62584 62585 62586 62587 62588 62589 # Check whether --with-alsa was given. 62590 if test "${with_alsa+set}" = set; then : 62591 withval=$with_alsa; 62592 fi 62593 62594 62595 # Check whether --with-alsa-include was given. 62596 if test "${with_alsa_include+set}" = set; then : 62597 withval=$with_alsa_include; 62598 fi 62599 62600 62601 # Check whether --with-alsa-lib was given. 62602 if test "${with_alsa_lib+set}" = set; then : 62603 withval=$with_alsa_lib; 62604 fi 62605 62606 62607 if test "x$NEEDS_LIB_ALSA" = xfalse; then 62608 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 62609 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 62610 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 62611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 62612 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 62613 fi 62614 ALSA_CFLAGS= 62615 ALSA_LIBS= 62616 else 62617 ALSA_FOUND=no 62618 62619 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 62620 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 62621 fi 62622 62623 if test "x${with_alsa}" != x; then 62624 ALSA_LIBS="-L${with_alsa}/lib -lasound" 62625 ALSA_CFLAGS="-I${with_alsa}/include" 62626 ALSA_FOUND=yes 62627 fi 62628 if test "x${with_alsa_include}" != x; then 62629 ALSA_CFLAGS="-I${with_alsa_include}" 62630 ALSA_FOUND=yes 62631 fi 62632 if test "x${with_alsa_lib}" != x; then 62633 ALSA_LIBS="-L${with_alsa_lib} -lasound" 62634 ALSA_FOUND=yes 62635 fi 62636 # Do not try pkg-config if we have a sysroot set. 62637 if test "x$SYSROOT" = x; then 62638 if test "x$ALSA_FOUND" = xno; then 62639 62640 pkg_failed=no 62641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 62642 $as_echo_n "checking for ALSA... " >&6; } 62643 62644 if test -n "$ALSA_CFLAGS"; then 62645 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 62646 elif test -n "$PKG_CONFIG"; then 62647 if test -n "$PKG_CONFIG" && \ 62648 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 62649 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 62650 ac_status=$? 62651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62652 test $ac_status = 0; }; then 62653 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 62654 else 62655 pkg_failed=yes 62656 fi 62657 else 62658 pkg_failed=untried 62659 fi 62660 if test -n "$ALSA_LIBS"; then 62661 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 62662 elif test -n "$PKG_CONFIG"; then 62663 if test -n "$PKG_CONFIG" && \ 62664 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 62665 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 62666 ac_status=$? 62667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62668 test $ac_status = 0; }; then 62669 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 62670 else 62671 pkg_failed=yes 62672 fi 62673 else 62674 pkg_failed=untried 62675 fi 62676 62677 62678 62679 if test $pkg_failed = yes; then 62680 62681 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 62682 _pkg_short_errors_supported=yes 62683 else 62684 _pkg_short_errors_supported=no 62685 fi 62686 if test $_pkg_short_errors_supported = yes; then 62687 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 62688 else 62689 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 62690 fi 62691 # Put the nasty error message in config.log where it belongs 62692 echo "$ALSA_PKG_ERRORS" >&5 62693 62694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62695 $as_echo "no" >&6; } 62696 ALSA_FOUND=no 62697 elif test $pkg_failed = untried; then 62698 ALSA_FOUND=no 62699 else 62700 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 62701 ALSA_LIBS=$pkg_cv_ALSA_LIBS 62702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62703 $as_echo "yes" >&6; } 62704 ALSA_FOUND=yes 62705 fi 62706 fi 62707 fi 62708 if test "x$ALSA_FOUND" = xno; then 62709 for ac_header in alsa/asoundlib.h 62710 do : 62711 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 62712 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 62713 cat >>confdefs.h <<_ACEOF 62714 #define HAVE_ALSA_ASOUNDLIB_H 1 62715 _ACEOF 62716 62717 ALSA_FOUND=yes 62718 ALSA_CFLAGS=-Iignoreme 62719 ALSA_LIBS=-lasound 62720 DEFAULT_ALSA=yes 62721 62722 else 62723 ALSA_FOUND=no 62724 62725 fi 62726 62727 done 62728 62729 fi 62730 if test "x$ALSA_FOUND" = xno; then 62731 62732 # Print a helpful message on how to acquire the necessary build dependency. 62733 # alsa is the help tag: freetype, cups, alsa etc 62734 MISSING_DEPENDENCY=alsa 62735 62736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62737 cygwin_help $MISSING_DEPENDENCY 62738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62739 msys_help $MISSING_DEPENDENCY 62740 else 62741 PKGHANDLER_COMMAND= 62742 62743 case $PKGHANDLER in 62744 apt-get) 62745 apt_help $MISSING_DEPENDENCY ;; 62746 yum) 62747 yum_help $MISSING_DEPENDENCY ;; 62748 port) 62749 port_help $MISSING_DEPENDENCY ;; 62750 pkgutil) 62751 pkgutil_help $MISSING_DEPENDENCY ;; 62752 pkgadd) 62753 pkgadd_help $MISSING_DEPENDENCY ;; 62754 esac 62755 62756 if test "x$PKGHANDLER_COMMAND" != x; then 62757 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62758 fi 62759 fi 62760 62761 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 62762 fi 62763 fi 62764 62765 62766 62767 62768 62769 62770 # Check whether --with-libffi was given. 62771 if test "${with_libffi+set}" = set; then : 62772 withval=$with_libffi; 62773 fi 62774 62775 62776 # Check whether --with-libffi-include was given. 62777 if test "${with_libffi_include+set}" = set; then : 62778 withval=$with_libffi_include; 62779 fi 62780 62781 62782 # Check whether --with-libffi-lib was given. 62783 if test "${with_libffi_lib+set}" = set; then : 62784 withval=$with_libffi_lib; 62785 fi 62786 62787 62788 if test "x$NEEDS_LIB_FFI" = xfalse; then 62789 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 62790 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 62791 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 62792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 62793 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 62794 fi 62795 LIBFFI_CFLAGS= 62796 LIBFFI_LIBS= 62797 else 62798 LIBFFI_FOUND=no 62799 62800 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 62801 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 62802 fi 62803 62804 if test "x${with_libffi}" != x; then 62805 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 62806 LIBFFI_CFLAGS="-I${with_libffi}/include" 62807 LIBFFI_FOUND=yes 62808 fi 62809 if test "x${with_libffi_include}" != x; then 62810 LIBFFI_CFLAGS="-I${with_libffi_include}" 62811 LIBFFI_FOUND=yes 62812 fi 62813 if test "x${with_libffi_lib}" != x; then 62814 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 62815 LIBFFI_FOUND=yes 62816 fi 62817 # Do not try pkg-config if we have a sysroot set. 62818 if test "x$SYSROOT" = x; then 62819 if test "x$LIBFFI_FOUND" = xno; then 62820 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 62821 62822 pkg_failed=no 62823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 62824 $as_echo_n "checking for LIBFFI... " >&6; } 62825 62826 if test -n "$LIBFFI_CFLAGS"; then 62827 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 62828 elif test -n "$PKG_CONFIG"; then 62829 if test -n "$PKG_CONFIG" && \ 62830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 62831 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 62832 ac_status=$? 62833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62834 test $ac_status = 0; }; then 62835 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 62836 else 62837 pkg_failed=yes 62838 fi 62839 else 62840 pkg_failed=untried 62841 fi 62842 if test -n "$LIBFFI_LIBS"; then 62843 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 62844 elif test -n "$PKG_CONFIG"; then 62845 if test -n "$PKG_CONFIG" && \ 62846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 62847 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 62848 ac_status=$? 62849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 62850 test $ac_status = 0; }; then 62851 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 62852 else 62853 pkg_failed=yes 62854 fi 62855 else 62856 pkg_failed=untried 62857 fi 62858 62859 62860 62861 if test $pkg_failed = yes; then 62862 62863 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 62864 _pkg_short_errors_supported=yes 62865 else 62866 _pkg_short_errors_supported=no 62867 fi 62868 if test $_pkg_short_errors_supported = yes; then 62869 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 62870 else 62871 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 62872 fi 62873 # Put the nasty error message in config.log where it belongs 62874 echo "$LIBFFI_PKG_ERRORS" >&5 62875 62876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 62877 $as_echo "no" >&6; } 62878 LIBFFI_FOUND=no 62879 elif test $pkg_failed = untried; then 62880 LIBFFI_FOUND=no 62881 else 62882 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 62883 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 62884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 62885 $as_echo "yes" >&6; } 62886 LIBFFI_FOUND=yes 62887 fi 62888 fi 62889 fi 62890 if test "x$LIBFFI_FOUND" = xno; then 62891 for ac_header in ffi.h 62892 do : 62893 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 62894 if test "x$ac_cv_header_ffi_h" = xyes; then : 62895 cat >>confdefs.h <<_ACEOF 62896 #define HAVE_FFI_H 1 62897 _ACEOF 62898 62899 LIBFFI_FOUND=yes 62900 LIBFFI_CFLAGS= 62901 LIBFFI_LIBS=-lffi 62902 62903 else 62904 LIBFFI_FOUND=no 62905 62906 fi 62907 62908 done 62909 62910 fi 62911 if test "x$LIBFFI_FOUND" = xno; then 62912 62913 # Print a helpful message on how to acquire the necessary build dependency. 62914 # ffi is the help tag: freetype, cups, alsa etc 62915 MISSING_DEPENDENCY=ffi 62916 62917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62918 cygwin_help $MISSING_DEPENDENCY 62919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62920 msys_help $MISSING_DEPENDENCY 62921 else 62922 PKGHANDLER_COMMAND= 62923 62924 case $PKGHANDLER in 62925 apt-get) 62926 apt_help $MISSING_DEPENDENCY ;; 62927 yum) 62928 yum_help $MISSING_DEPENDENCY ;; 62929 port) 62930 port_help $MISSING_DEPENDENCY ;; 62931 pkgutil) 62932 pkgutil_help $MISSING_DEPENDENCY ;; 62933 pkgadd) 62934 pkgadd_help $MISSING_DEPENDENCY ;; 62935 esac 62936 62937 if test "x$PKGHANDLER_COMMAND" != x; then 62938 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 62939 fi 62940 fi 62941 62942 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 62943 fi 62944 62945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 62946 $as_echo_n "checking if libffi works... " >&6; } 62947 ac_ext=c 62948 ac_cpp='$CPP $CPPFLAGS' 62949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62951 ac_compiler_gnu=$ac_cv_c_compiler_gnu 62952 62953 OLD_CFLAGS="$CFLAGS" 62954 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 62955 OLD_LIBS="$LIBS" 62956 LIBS="$LIBS $LIBFFI_LIBS" 62957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 62958 /* end confdefs.h. */ 62959 #include <ffi.h> 62960 int 62961 main () 62962 { 62963 62964 ffi_call(NULL, NULL, NULL, NULL); 62965 return 0; 62966 62967 ; 62968 return 0; 62969 } 62970 _ACEOF 62971 if ac_fn_c_try_link "$LINENO"; then : 62972 LIBFFI_WORKS=yes 62973 else 62974 LIBFFI_WORKS=no 62975 62976 fi 62977 rm -f core conftest.err conftest.$ac_objext \ 62978 conftest$ac_exeext conftest.$ac_ext 62979 CFLAGS="$OLD_CFLAGS" 62980 LIBS="$OLD_LIBS" 62981 ac_ext=cpp 62982 ac_cpp='$CXXCPP $CPPFLAGS' 62983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 62984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 62985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 62986 62987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 62988 $as_echo "$LIBFFI_WORKS" >&6; } 62989 62990 if test "x$LIBFFI_WORKS" = xno; then 62991 62992 # Print a helpful message on how to acquire the necessary build dependency. 62993 # ffi is the help tag: freetype, cups, alsa etc 62994 MISSING_DEPENDENCY=ffi 62995 62996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62997 cygwin_help $MISSING_DEPENDENCY 62998 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62999 msys_help $MISSING_DEPENDENCY 63000 else 63001 PKGHANDLER_COMMAND= 63002 63003 case $PKGHANDLER in 63004 apt-get) 63005 apt_help $MISSING_DEPENDENCY ;; 63006 yum) 63007 yum_help $MISSING_DEPENDENCY ;; 63008 port) 63009 port_help $MISSING_DEPENDENCY ;; 63010 pkgutil) 63011 pkgutil_help $MISSING_DEPENDENCY ;; 63012 pkgadd) 63013 pkgadd_help $MISSING_DEPENDENCY ;; 63014 esac 63015 63016 if test "x$PKGHANDLER_COMMAND" != x; then 63017 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 63018 fi 63019 fi 63020 63021 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 63022 fi 63023 fi 63024 63025 63026 63027 63028 63029 if [[ " $JVM_VARIANTS " =~ " zeroshark " ]] ; then 63030 # Extract the first word of "llvm-config", so it can be a program name with args. 63031 set dummy llvm-config; ac_word=$2 63032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 63033 $as_echo_n "checking for $ac_word... " >&6; } 63034 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 63035 $as_echo_n "(cached) " >&6 63036 else 63037 if test -n "$LLVM_CONFIG"; then 63038 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 63039 else 63040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 63041 for as_dir in $PATH 63042 do 63043 IFS=$as_save_IFS 63044 test -z "$as_dir" && as_dir=. 63045 for ac_exec_ext in '' $ac_executable_extensions; do 63046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 63047 ac_cv_prog_LLVM_CONFIG="llvm-config" 63048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 63049 break 2 63050 fi 63051 done 63052 done 63053 IFS=$as_save_IFS 63054 63055 fi 63056 fi 63057 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 63058 if test -n "$LLVM_CONFIG"; then 63059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 63060 $as_echo "$LLVM_CONFIG" >&6; } 63061 else 63062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63063 $as_echo "no" >&6; } 63064 fi 63065 63066 63067 63068 if test "x$LLVM_CONFIG" != xllvm-config; then 63069 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 63070 fi 63071 63072 llvm_components="jit mcjit engine nativecodegen native" 63073 unset LLVM_CFLAGS 63074 for flag in $("$LLVM_CONFIG" --cxxflags); do 63075 if echo "${flag}" | grep -q '^-[ID]'; then 63076 if test "${flag}" != "-D_DEBUG" ; then 63077 if test "${LLVM_CFLAGS}" != "" ; then 63078 LLVM_CFLAGS="${LLVM_CFLAGS} " 63079 fi 63080 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 63081 fi 63082 fi 63083 done 63084 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 63085 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 63086 63087 unset LLVM_LDFLAGS 63088 for flag in $("${LLVM_CONFIG}" --ldflags); do 63089 if echo "${flag}" | grep -q '^-L'; then 63090 if test "${LLVM_LDFLAGS}" != ""; then 63091 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 63092 fi 63093 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 63094 fi 63095 done 63096 63097 unset LLVM_LIBS 63098 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 63099 if echo "${flag}" | grep -q '^-l'; then 63100 if test "${LLVM_LIBS}" != ""; then 63101 LLVM_LIBS="${LLVM_LIBS} " 63102 fi 63103 LLVM_LIBS="${LLVM_LIBS}${flag}" 63104 fi 63105 done 63106 63107 # Due to https://llvm.org/bugs/show_bug.cgi?id=16902, llvm does not 63108 # always properly detect -ltinfo 63109 LLVM_LIBS="${LLVM_LIBS} -ltinfo" 63110 63111 63112 63113 63114 fi 63115 63116 63117 63118 # Check whether --with-libjpeg was given. 63119 if test "${with_libjpeg+set}" = set; then : 63120 withval=$with_libjpeg; 63121 fi 63122 63123 63124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 63125 $as_echo_n "checking for which libjpeg to use... " >&6; } 63126 # default is bundled 63127 DEFAULT_LIBJPEG=bundled 63128 # if user didn't specify, use DEFAULT_LIBJPEG 63129 if test "x${with_libjpeg}" = "x"; then 63130 with_libjpeg=${DEFAULT_LIBJPEG} 63131 fi 63132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 63133 $as_echo "${with_libjpeg}" >&6; } 63134 63135 if test "x${with_libjpeg}" = "xbundled"; then 63136 USE_EXTERNAL_LIBJPEG=false 63137 elif test "x${with_libjpeg}" = "xsystem"; then 63138 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 63139 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 63140 63141 else 63142 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 63143 fi 63144 63145 63146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 63147 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 63148 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 63149 $as_echo_n "(cached) " >&6 63150 else 63151 ac_check_lib_save_LIBS=$LIBS 63152 LIBS="-ljpeg $LIBS" 63153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63154 /* end confdefs.h. */ 63155 63156 /* Override any GCC internal prototype to avoid an error. 63157 Use char because int might match the return type of a GCC 63158 builtin and then its argument prototype would still apply. */ 63159 #ifdef __cplusplus 63160 extern "C" 63161 #endif 63162 char jpeg_CreateDecompress (); 63163 int 63164 main () 63165 { 63166 return jpeg_CreateDecompress (); 63167 ; 63168 return 0; 63169 } 63170 _ACEOF 63171 if ac_fn_cxx_try_link "$LINENO"; then : 63172 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 63173 else 63174 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 63175 fi 63176 rm -f core conftest.err conftest.$ac_objext \ 63177 conftest$ac_exeext conftest.$ac_ext 63178 LIBS=$ac_check_lib_save_LIBS 63179 fi 63180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 63181 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 63182 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 63183 cat >>confdefs.h <<_ACEOF 63184 #define HAVE_LIBJPEG 1 63185 _ACEOF 63186 63187 LIBS="-ljpeg $LIBS" 63188 63189 else 63190 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 63191 fi 63192 63193 63194 USE_EXTERNAL_LIBJPEG=true 63195 else 63196 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 63197 fi 63198 63199 63200 63201 63202 63203 # Check whether --with-giflib was given. 63204 if test "${with_giflib+set}" = set; then : 63205 withval=$with_giflib; 63206 fi 63207 63208 63209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 63210 $as_echo_n "checking for which giflib to use... " >&6; } 63211 # default is bundled 63212 DEFAULT_GIFLIB=bundled 63213 # if user didn't specify, use DEFAULT_GIFLIB 63214 if test "x${with_giflib}" = "x"; then 63215 with_giflib=${DEFAULT_GIFLIB} 63216 fi 63217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 63218 $as_echo "${with_giflib}" >&6; } 63219 63220 if test "x${with_giflib}" = "xbundled"; then 63221 USE_EXTERNAL_LIBGIF=false 63222 elif test "x${with_giflib}" = "xsystem"; then 63223 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 63224 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 63225 63226 else 63227 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 63228 fi 63229 63230 63231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 63232 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 63233 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 63234 $as_echo_n "(cached) " >&6 63235 else 63236 ac_check_lib_save_LIBS=$LIBS 63237 LIBS="-lgif $LIBS" 63238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63239 /* end confdefs.h. */ 63240 63241 /* Override any GCC internal prototype to avoid an error. 63242 Use char because int might match the return type of a GCC 63243 builtin and then its argument prototype would still apply. */ 63244 #ifdef __cplusplus 63245 extern "C" 63246 #endif 63247 char DGifGetCode (); 63248 int 63249 main () 63250 { 63251 return DGifGetCode (); 63252 ; 63253 return 0; 63254 } 63255 _ACEOF 63256 if ac_fn_cxx_try_link "$LINENO"; then : 63257 ac_cv_lib_gif_DGifGetCode=yes 63258 else 63259 ac_cv_lib_gif_DGifGetCode=no 63260 fi 63261 rm -f core conftest.err conftest.$ac_objext \ 63262 conftest$ac_exeext conftest.$ac_ext 63263 LIBS=$ac_check_lib_save_LIBS 63264 fi 63265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 63266 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 63267 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 63268 cat >>confdefs.h <<_ACEOF 63269 #define HAVE_LIBGIF 1 63270 _ACEOF 63271 63272 LIBS="-lgif $LIBS" 63273 63274 else 63275 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 63276 fi 63277 63278 63279 USE_EXTERNAL_LIBGIF=true 63280 else 63281 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 63282 fi 63283 63284 63285 63286 63287 63288 # Check whether --with-libpng was given. 63289 if test "${with_libpng+set}" = set; then : 63290 withval=$with_libpng; 63291 fi 63292 63293 63294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 63295 $as_echo_n "checking for which libpng to use... " >&6; } 63296 63297 # default is bundled 63298 DEFAULT_LIBPNG=bundled 63299 # if user didn't specify, use DEFAULT_LIBPNG 63300 if test "x${with_libpng}" = "x"; then 63301 with_libpng=${DEFAULT_LIBPNG} 63302 fi 63303 63304 if test "x${with_libpng}" = "xbundled"; then 63305 USE_EXTERNAL_LIBPNG=false 63306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63307 $as_echo "bundled" >&6; } 63308 elif test "x${with_libpng}" = "xsystem"; then 63309 63310 pkg_failed=no 63311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 63312 $as_echo_n "checking for PNG... " >&6; } 63313 63314 if test -n "$PNG_CFLAGS"; then 63315 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 63316 elif test -n "$PKG_CONFIG"; then 63317 if test -n "$PKG_CONFIG" && \ 63318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63319 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63320 ac_status=$? 63321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63322 test $ac_status = 0; }; then 63323 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 63324 else 63325 pkg_failed=yes 63326 fi 63327 else 63328 pkg_failed=untried 63329 fi 63330 if test -n "$PNG_LIBS"; then 63331 pkg_cv_PNG_LIBS="$PNG_LIBS" 63332 elif test -n "$PKG_CONFIG"; then 63333 if test -n "$PKG_CONFIG" && \ 63334 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 63335 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 63336 ac_status=$? 63337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63338 test $ac_status = 0; }; then 63339 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 63340 else 63341 pkg_failed=yes 63342 fi 63343 else 63344 pkg_failed=untried 63345 fi 63346 63347 63348 63349 if test $pkg_failed = yes; then 63350 63351 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63352 _pkg_short_errors_supported=yes 63353 else 63354 _pkg_short_errors_supported=no 63355 fi 63356 if test $_pkg_short_errors_supported = yes; then 63357 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 63358 else 63359 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 63360 fi 63361 # Put the nasty error message in config.log where it belongs 63362 echo "$PNG_PKG_ERRORS" >&5 63363 63364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63365 $as_echo "no" >&6; } 63366 LIBPNG_FOUND=no 63367 elif test $pkg_failed = untried; then 63368 LIBPNG_FOUND=no 63369 else 63370 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 63371 PNG_LIBS=$pkg_cv_PNG_LIBS 63372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63373 $as_echo "yes" >&6; } 63374 LIBPNG_FOUND=yes 63375 fi 63376 if test "x${LIBPNG_FOUND}" = "xyes"; then 63377 USE_EXTERNAL_LIBPNG=true 63378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63379 $as_echo "system" >&6; } 63380 else 63381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63382 $as_echo "system not found" >&6; } 63383 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 63384 fi 63385 else 63386 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 63387 fi 63388 63389 63390 63391 63392 63393 # Check whether --with-zlib was given. 63394 if test "${with_zlib+set}" = set; then : 63395 withval=$with_zlib; 63396 fi 63397 63398 63399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 63400 $as_echo_n "checking for compress in -lz... " >&6; } 63401 if ${ac_cv_lib_z_compress+:} false; then : 63402 $as_echo_n "(cached) " >&6 63403 else 63404 ac_check_lib_save_LIBS=$LIBS 63405 LIBS="-lz $LIBS" 63406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63407 /* end confdefs.h. */ 63408 63409 /* Override any GCC internal prototype to avoid an error. 63410 Use char because int might match the return type of a GCC 63411 builtin and then its argument prototype would still apply. */ 63412 #ifdef __cplusplus 63413 extern "C" 63414 #endif 63415 char compress (); 63416 int 63417 main () 63418 { 63419 return compress (); 63420 ; 63421 return 0; 63422 } 63423 _ACEOF 63424 if ac_fn_cxx_try_link "$LINENO"; then : 63425 ac_cv_lib_z_compress=yes 63426 else 63427 ac_cv_lib_z_compress=no 63428 fi 63429 rm -f core conftest.err conftest.$ac_objext \ 63430 conftest$ac_exeext conftest.$ac_ext 63431 LIBS=$ac_check_lib_save_LIBS 63432 fi 63433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 63434 $as_echo "$ac_cv_lib_z_compress" >&6; } 63435 if test "x$ac_cv_lib_z_compress" = xyes; then : 63436 ZLIB_FOUND=yes 63437 else 63438 ZLIB_FOUND=no 63439 fi 63440 63441 63442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 63443 $as_echo_n "checking for which zlib to use... " >&6; } 63444 63445 DEFAULT_ZLIB=system 63446 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63447 # On windows default is bundled...on others default is system 63448 DEFAULT_ZLIB=bundled 63449 fi 63450 63451 if test "x${ZLIB_FOUND}" != "xyes"; then 63452 # If we don't find any system...set default to bundled 63453 DEFAULT_ZLIB=bundled 63454 fi 63455 63456 # If user didn't specify, use DEFAULT_ZLIB 63457 if test "x${with_zlib}" = "x"; then 63458 with_zlib=${DEFAULT_ZLIB} 63459 fi 63460 63461 if test "x${with_zlib}" = "xbundled"; then 63462 USE_EXTERNAL_LIBZ=false 63463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63464 $as_echo "bundled" >&6; } 63465 elif test "x${with_zlib}" = "xsystem"; then 63466 if test "x${ZLIB_FOUND}" = "xyes"; then 63467 USE_EXTERNAL_LIBZ=true 63468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63469 $as_echo "system" >&6; } 63470 else 63471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 63472 $as_echo "system not found" >&6; } 63473 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 63474 fi 63475 else 63476 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 63477 fi 63478 63479 63480 63481 63482 63483 # Check whether --with-lcms was given. 63484 if test "${with_lcms+set}" = set; then : 63485 withval=$with_lcms; 63486 fi 63487 63488 63489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 63490 $as_echo_n "checking for which lcms to use... " >&6; } 63491 63492 DEFAULT_LCMS=bundled 63493 # If user didn't specify, use DEFAULT_LCMS 63494 if test "x${with_lcms}" = "x"; then 63495 with_lcms=${DEFAULT_LCMS} 63496 fi 63497 63498 if test "x${with_lcms}" = "xbundled"; then 63499 USE_EXTERNAL_LCMS=false 63500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 63501 $as_echo "bundled" >&6; } 63502 elif test "x${with_lcms}" = "xsystem"; then 63503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 63504 $as_echo "system" >&6; } 63505 63506 pkg_failed=no 63507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 63508 $as_echo_n "checking for LCMS... " >&6; } 63509 63510 if test -n "$LCMS_CFLAGS"; then 63511 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 63512 elif test -n "$PKG_CONFIG"; then 63513 if test -n "$PKG_CONFIG" && \ 63514 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 63515 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 63516 ac_status=$? 63517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63518 test $ac_status = 0; }; then 63519 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 63520 else 63521 pkg_failed=yes 63522 fi 63523 else 63524 pkg_failed=untried 63525 fi 63526 if test -n "$LCMS_LIBS"; then 63527 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 63528 elif test -n "$PKG_CONFIG"; then 63529 if test -n "$PKG_CONFIG" && \ 63530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 63531 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 63532 ac_status=$? 63533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 63534 test $ac_status = 0; }; then 63535 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 63536 else 63537 pkg_failed=yes 63538 fi 63539 else 63540 pkg_failed=untried 63541 fi 63542 63543 63544 63545 if test $pkg_failed = yes; then 63546 63547 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 63548 _pkg_short_errors_supported=yes 63549 else 63550 _pkg_short_errors_supported=no 63551 fi 63552 if test $_pkg_short_errors_supported = yes; then 63553 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 63554 else 63555 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 63556 fi 63557 # Put the nasty error message in config.log where it belongs 63558 echo "$LCMS_PKG_ERRORS" >&5 63559 63560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 63561 $as_echo "no" >&6; } 63562 LCMS_FOUND=no 63563 elif test $pkg_failed = untried; then 63564 LCMS_FOUND=no 63565 else 63566 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 63567 LCMS_LIBS=$pkg_cv_LCMS_LIBS 63568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 63569 $as_echo "yes" >&6; } 63570 LCMS_FOUND=yes 63571 fi 63572 if test "x${LCMS_FOUND}" = "xyes"; then 63573 USE_EXTERNAL_LCMS=true 63574 else 63575 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 63576 fi 63577 else 63578 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 63579 fi 63580 63581 63582 63583 63584 63585 63586 63587 63588 63589 63590 63591 # Setup libm (the maths library) 63592 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 63593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 63594 $as_echo_n "checking for cos in -lm... " >&6; } 63595 if ${ac_cv_lib_m_cos+:} false; then : 63596 $as_echo_n "(cached) " >&6 63597 else 63598 ac_check_lib_save_LIBS=$LIBS 63599 LIBS="-lm $LIBS" 63600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63601 /* end confdefs.h. */ 63602 63603 /* Override any GCC internal prototype to avoid an error. 63604 Use char because int might match the return type of a GCC 63605 builtin and then its argument prototype would still apply. */ 63606 #ifdef __cplusplus 63607 extern "C" 63608 #endif 63609 char cos (); 63610 int 63611 main () 63612 { 63613 return cos (); 63614 ; 63615 return 0; 63616 } 63617 _ACEOF 63618 if ac_fn_cxx_try_link "$LINENO"; then : 63619 ac_cv_lib_m_cos=yes 63620 else 63621 ac_cv_lib_m_cos=no 63622 fi 63623 rm -f core conftest.err conftest.$ac_objext \ 63624 conftest$ac_exeext conftest.$ac_ext 63625 LIBS=$ac_check_lib_save_LIBS 63626 fi 63627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 63628 $as_echo "$ac_cv_lib_m_cos" >&6; } 63629 if test "x$ac_cv_lib_m_cos" = xyes; then : 63630 cat >>confdefs.h <<_ACEOF 63631 #define HAVE_LIBM 1 63632 _ACEOF 63633 63634 LIBS="-lm $LIBS" 63635 63636 else 63637 63638 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 63639 $as_echo "$as_me: Maths library was not found" >&6;} 63640 63641 fi 63642 63643 LIBM="-lm" 63644 else 63645 LIBM="" 63646 fi 63647 63648 63649 # Setup libdl (for dynamic library loading) 63650 save_LIBS="$LIBS" 63651 LIBS="" 63652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 63653 $as_echo_n "checking for dlopen in -ldl... " >&6; } 63654 if ${ac_cv_lib_dl_dlopen+:} false; then : 63655 $as_echo_n "(cached) " >&6 63656 else 63657 ac_check_lib_save_LIBS=$LIBS 63658 LIBS="-ldl $LIBS" 63659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 63660 /* end confdefs.h. */ 63661 63662 /* Override any GCC internal prototype to avoid an error. 63663 Use char because int might match the return type of a GCC 63664 builtin and then its argument prototype would still apply. */ 63665 #ifdef __cplusplus 63666 extern "C" 63667 #endif 63668 char dlopen (); 63669 int 63670 main () 63671 { 63672 return dlopen (); 63673 ; 63674 return 0; 63675 } 63676 _ACEOF 63677 if ac_fn_cxx_try_link "$LINENO"; then : 63678 ac_cv_lib_dl_dlopen=yes 63679 else 63680 ac_cv_lib_dl_dlopen=no 63681 fi 63682 rm -f core conftest.err conftest.$ac_objext \ 63683 conftest$ac_exeext conftest.$ac_ext 63684 LIBS=$ac_check_lib_save_LIBS 63685 fi 63686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 63687 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 63688 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 63689 cat >>confdefs.h <<_ACEOF 63690 #define HAVE_LIBDL 1 63691 _ACEOF 63692 63693 LIBS="-ldl $LIBS" 63694 63695 fi 63696 63697 LIBDL="$LIBS" 63698 63699 LIBS="$save_LIBS" 63700 63701 # Deprecated libraries, keep the flags for backwards compatibility 63702 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 63703 63704 63705 # Check whether --with-dxsdk was given. 63706 if test "${with_dxsdk+set}" = set; then : 63707 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 63708 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 63709 fi 63710 63711 63712 63713 63714 # Check whether --with-dxsdk-lib was given. 63715 if test "${with_dxsdk_lib+set}" = set; then : 63716 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 63717 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 63718 fi 63719 63720 63721 63722 63723 # Check whether --with-dxsdk-include was given. 63724 if test "${with_dxsdk_include+set}" = set; then : 63725 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 63726 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 63727 fi 63728 63729 63730 fi 63731 63732 # Control if libzip can use mmap. Available for purposes of overriding. 63733 LIBZIP_CAN_USE_MMAP=true 63734 63735 63736 63737 if test "$OPENJDK_TARGET_OS" = "solaris"; then 63738 # Find the root of the Solaris Studio installation from the compiler path 63739 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 63740 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 63741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 63742 $as_echo_n "checking for libstlport.so.1... " >&6; } 63743 if test -f "$STLPORT_LIB"; then 63744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 63745 $as_echo "yes, $STLPORT_LIB" >&6; } 63746 63747 # Only process if variable expands to non-empty 63748 63749 if test "x$STLPORT_LIB" != x; then 63750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63751 63752 # Input might be given as Windows format, start by converting to 63753 # unix format. 63754 path="$STLPORT_LIB" 63755 new_path=`$CYGPATH -u "$path"` 63756 63757 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63758 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63759 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63760 # "foo.exe" is OK but "foo" is an error. 63761 # 63762 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63763 # It is also a way to make sure we got the proper file name for the real test later on. 63764 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63765 if test "x$test_shortpath" = x; then 63766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 63767 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 63768 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 63769 fi 63770 63771 # Call helper function which possibly converts this using DOS-style short mode. 63772 # If so, the updated path is stored in $new_path. 63773 63774 input_path="$new_path" 63775 # Check if we need to convert this using DOS-style short mode. If the path 63776 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63777 # take no chances and rewrite it. 63778 # Note: m4 eats our [], so we need to use [ and ] instead. 63779 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63780 if test "x$has_forbidden_chars" != x; then 63781 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63782 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63783 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63784 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63785 # Going to short mode and back again did indeed matter. Since short mode is 63786 # case insensitive, let's make it lowercase to improve readability. 63787 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63788 # Now convert it back to Unix-style (cygpath) 63789 input_path=`$CYGPATH -u "$shortmode_path"` 63790 new_path="$input_path" 63791 fi 63792 fi 63793 63794 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63795 if test "x$test_cygdrive_prefix" = x; then 63796 # As a simple fix, exclude /usr/bin since it's not a real path. 63797 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63798 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63799 # a path prefixed by /cygdrive for fixpath to work. 63800 new_path="$CYGWIN_ROOT_PATH$input_path" 63801 fi 63802 fi 63803 63804 63805 if test "x$path" != "x$new_path"; then 63806 STLPORT_LIB="$new_path" 63807 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 63808 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 63809 fi 63810 63811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63812 63813 path="$STLPORT_LIB" 63814 has_colon=`$ECHO $path | $GREP ^.:` 63815 new_path="$path" 63816 if test "x$has_colon" = x; then 63817 # Not in mixed or Windows style, start by that. 63818 new_path=`cmd //c echo $path` 63819 fi 63820 63821 63822 input_path="$new_path" 63823 # Check if we need to convert this using DOS-style short mode. If the path 63824 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63825 # take no chances and rewrite it. 63826 # Note: m4 eats our [], so we need to use [ and ] instead. 63827 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63828 if test "x$has_forbidden_chars" != x; then 63829 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63830 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63831 fi 63832 63833 63834 windows_path="$new_path" 63835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63836 unix_path=`$CYGPATH -u "$windows_path"` 63837 new_path="$unix_path" 63838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63839 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63840 new_path="$unix_path" 63841 fi 63842 63843 if test "x$path" != "x$new_path"; then 63844 STLPORT_LIB="$new_path" 63845 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 63846 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 63847 fi 63848 63849 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63850 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63851 63852 else 63853 # We're on a unix platform. Hooray! :) 63854 path="$STLPORT_LIB" 63855 has_space=`$ECHO "$path" | $GREP " "` 63856 if test "x$has_space" != x; then 63857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 63858 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 63859 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63860 fi 63861 63862 # Use eval to expand a potential ~ 63863 eval path="$path" 63864 if test ! -f "$path" && test ! -d "$path"; then 63865 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 63866 fi 63867 63868 if test -d "$path"; then 63869 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 63870 else 63871 dir="`$DIRNAME "$path"`" 63872 base="`$BASENAME "$path"`" 63873 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 63874 fi 63875 fi 63876 fi 63877 63878 else 63879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 63880 $as_echo "no, not found at $STLPORT_LIB" >&6; } 63881 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 63882 fi 63883 63884 fi 63885 63886 63887 63888 63889 63890 63891 63892 63893 63894 63895 63896 63897 63898 63899 ############################################################################### 63900 # 63901 # We need to do some final tweaking, when everything else is done. 63902 # 63903 ############################################################################### 63904 63905 63906 # Check whether --enable-new-hotspot-build was given. 63907 if test "${enable_new_hotspot_build+set}" = set; then : 63908 enableval=$enable_new_hotspot_build; 63909 fi 63910 63911 63912 if test "x$enable_new_hotspot_build" = "x" || test "x$enable_new_hotspot_build" = "xyes"; then 63913 USE_NEW_HOTSPOT_BUILD=true 63914 else 63915 USE_NEW_HOTSPOT_BUILD=false 63916 fi 63917 63918 63919 case $HOTSPOT_DEBUG_LEVEL in 63920 product ) 63921 VARIANT="OPT" 63922 FASTDEBUG="false" 63923 DEBUG_CLASSFILES="false" 63924 ;; 63925 fastdebug ) 63926 VARIANT="DBG" 63927 FASTDEBUG="true" 63928 DEBUG_CLASSFILES="true" 63929 ;; 63930 debug ) 63931 VARIANT="DBG" 63932 FASTDEBUG="false" 63933 DEBUG_CLASSFILES="true" 63934 ;; 63935 optimized ) 63936 VARIANT="OPT" 63937 FASTDEBUG="false" 63938 DEBUG_CLASSFILES="false" 63939 ;; 63940 esac 63941 63942 63943 63944 63945 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 63946 MACOSX_UNIVERSAL="true" 63947 fi 63948 63949 63950 63951 # Make sure JVM_VARIANTS_COMMA use minimal1 for backwards compatibility 63952 JVM_VARIANTS_COMMA=`$ECHO ,$JVM_VARIANTS_OPT, | $SED -e 's/,minimal,/,minimal1,/'` 63953 63954 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS_COMMA" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 63955 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS_COMMA" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 63956 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS_COMMA" | $SED -e '/,minimal1\?,/!s/.*/false/g' -e '/,minimal1\?,/s/.*/true/g'` 63957 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS_COMMA" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 63958 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS_COMMA" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 63959 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS_COMMA" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 63960 JVM_VARIANT_CUSTOM=`$ECHO "$JVM_VARIANTS_COMMA" | $SED -e '/,custom,/!s/.*/false/g' -e '/,custom,/s/.*/true/g'` 63961 63962 ##### 63963 # Generate the legacy makefile targets for hotspot. 63964 HOTSPOT_TARGET="" 63965 63966 if test "x$JVM_VARIANT_SERVER" = xtrue; then 63967 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 63968 fi 63969 63970 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 63971 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 63972 fi 63973 63974 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 63975 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 63976 fi 63977 63978 if test "x$JVM_VARIANT_ZERO" = xtrue; then 63979 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 63980 fi 63981 63982 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 63983 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 63984 fi 63985 63986 if test "x$JVM_VARIANT_CORE" = xtrue; then 63987 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 63988 fi 63989 63990 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_DEBUG_LEVEL" 63991 63992 # On Macosx universal binaries are produced, but they only contain 63993 # 64 bit intel. This invalidates control of which jvms are built 63994 # from configure, but only server is valid anyway. Fix this 63995 # when hotspot makefiles are rewritten. 63996 if test "x$MACOSX_UNIVERSAL" = xtrue; then 63997 HOTSPOT_TARGET=universal_${HOTSPOT_DEBUG_LEVEL} 63998 fi 63999 64000 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 64001 64002 64003 # Control wether Hotspot runs Queens test after build. 64004 # Check whether --enable-hotspot-test-in-build was given. 64005 if test "${enable_hotspot_test_in_build+set}" = set; then : 64006 enableval=$enable_hotspot_test_in_build; 64007 else 64008 enable_hotspot_test_in_build=no 64009 fi 64010 64011 if test "x$enable_hotspot_test_in_build" = "xyes"; then 64012 TEST_IN_BUILD=true 64013 else 64014 TEST_IN_BUILD=false 64015 fi 64016 64017 64018 if test "x$USE_NEW_HOTSPOT_BUILD" = xfalse; then 64019 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 64020 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 64021 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 64022 fi 64023 fi 64024 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 64025 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 64026 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 64027 fi 64028 fi 64029 if test "x$JVM_VARIANT_CUSTOM" = xtrue; then 64030 as_fn_error $? "You cannot build a custom JVM using the old hotspot build system." "$LINENO" 5 64031 fi 64032 fi 64033 64034 64035 64036 64037 64038 64039 64040 64041 64042 64043 64044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 64045 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 64046 64047 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 64048 ENABLE_INTREE_EC=yes 64049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 64050 $as_echo "yes" >&6; } 64051 else 64052 ENABLE_INTREE_EC=no 64053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64054 $as_echo "no" >&6; } 64055 fi 64056 64057 64058 64059 64060 # Check whether --enable-jtreg-failure-handler was given. 64061 if test "${enable_jtreg_failure_handler+set}" = set; then : 64062 enableval=$enable_jtreg_failure_handler; 64063 fi 64064 64065 64066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 64067 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 64068 64069 if test "x$enable_jtreg_failure_handler" = "xyes"; then 64070 if test "x$JT_HOME" = "x"; then 64071 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 64072 else 64073 BUILD_FAILURE_HANDLER=true 64074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 64075 $as_echo "yes, forced" >&6; } 64076 fi 64077 elif test "x$enable_jtreg_failure_handler" = "xno"; then 64078 BUILD_FAILURE_HANDLER=false 64079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 64080 $as_echo "no, forced" >&6; } 64081 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 64082 || test "x$enable_jtreg_failure_handler" = "x"; then 64083 if test "x$JT_HOME" = "x"; then 64084 BUILD_FAILURE_HANDLER=false 64085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 64086 $as_echo "no, missing jtreg" >&6; } 64087 else 64088 BUILD_FAILURE_HANDLER=true 64089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 64090 $as_echo "yes, jtreg present" >&6; } 64091 fi 64092 else 64093 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 64094 fi 64095 64096 64097 64098 64099 ############################################################################### 64100 # 64101 # Configure parts of the build that only affect the build performance, 64102 # not the result. 64103 # 64104 ############################################################################### 64105 64106 64107 # How many cores do we have on this build system? 64108 64109 # Check whether --with-num-cores was given. 64110 if test "${with_num_cores+set}" = set; then : 64111 withval=$with_num_cores; 64112 fi 64113 64114 if test "x$with_num_cores" = x; then 64115 # The number of cores were not specified, try to probe them. 64116 64117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 64118 $as_echo_n "checking for number of cores... " >&6; } 64119 NUM_CORES=1 64120 FOUND_CORES=no 64121 64122 if test -f /proc/cpuinfo; then 64123 # Looks like a Linux (or cygwin) system 64124 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 64125 FOUND_CORES=yes 64126 elif test -x /usr/sbin/psrinfo; then 64127 # Looks like a Solaris system 64128 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 64129 FOUND_CORES=yes 64130 elif test -x /usr/sbin/sysctl; then 64131 # Looks like a MacOSX system 64132 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 64133 FOUND_CORES=yes 64134 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 64135 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 64136 FOUND_CORES=yes 64137 elif test -n "$NUMBER_OF_PROCESSORS"; then 64138 # On windows, look in the env 64139 NUM_CORES=$NUMBER_OF_PROCESSORS 64140 FOUND_CORES=yes 64141 fi 64142 64143 if test "x$FOUND_CORES" = xyes; then 64144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 64145 $as_echo "$NUM_CORES" >&6; } 64146 else 64147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 64148 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 64149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 64150 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 64151 fi 64152 64153 else 64154 NUM_CORES=$with_num_cores 64155 fi 64156 64157 64158 64159 # How much memory do we have on this build system? 64160 64161 # Check whether --with-memory-size was given. 64162 if test "${with_memory_size+set}" = set; then : 64163 withval=$with_memory_size; 64164 fi 64165 64166 if test "x$with_memory_size" = x; then 64167 # The memory size was not specified, try to probe it. 64168 64169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 64170 $as_echo_n "checking for memory size... " >&6; } 64171 # Default to 1024 MB 64172 MEMORY_SIZE=1024 64173 FOUND_MEM=no 64174 64175 if test -f /proc/meminfo; then 64176 # Looks like a Linux (or cygwin) system 64177 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 64178 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 64179 FOUND_MEM=yes 64180 elif test -x /usr/sbin/prtconf; then 64181 # Looks like a Solaris or AIX system 64182 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 64183 FOUND_MEM=yes 64184 elif test -x /usr/sbin/sysctl; then 64185 # Looks like a MacOSX system 64186 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 64187 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64188 FOUND_MEM=yes 64189 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 64190 # Windows, but without cygwin 64191 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 64192 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 64193 FOUND_MEM=yes 64194 fi 64195 64196 if test "x$FOUND_MEM" = xyes; then 64197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 64198 $as_echo "$MEMORY_SIZE MB" >&6; } 64199 else 64200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 64201 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 64202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 64203 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 64204 fi 64205 64206 else 64207 MEMORY_SIZE=$with_memory_size 64208 fi 64209 64210 64211 64212 # Provide a decent default number of parallel jobs for make depending on 64213 # number of cores, amount of memory and machine architecture. 64214 64215 # Check whether --with-jobs was given. 64216 if test "${with_jobs+set}" = set; then : 64217 withval=$with_jobs; 64218 fi 64219 64220 if test "x$with_jobs" = x; then 64221 # Number of jobs was not specified, calculate. 64222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 64223 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 64224 # Approximate memory in GB. 64225 memory_gb=`expr $MEMORY_SIZE / 1024` 64226 # Pick the lowest of memory in gb and number of cores. 64227 if test "$memory_gb" -lt "$NUM_CORES"; then 64228 JOBS="$memory_gb" 64229 else 64230 JOBS="$NUM_CORES" 64231 fi 64232 if test "$JOBS" -eq "0"; then 64233 JOBS=1 64234 fi 64235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 64236 $as_echo "$JOBS" >&6; } 64237 else 64238 JOBS=$with_jobs 64239 fi 64240 64241 64242 64243 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 64244 64245 # Check whether --with-test-jobs was given. 64246 if test "${with_test_jobs+set}" = set; then : 64247 withval=$with_test_jobs; 64248 fi 64249 64250 if test "x$with_test_jobs" = x; then 64251 TEST_JOBS=0 64252 else 64253 TEST_JOBS=$with_test_jobs 64254 fi 64255 64256 64257 64258 # Setup arguments for the boot jdk (after cores and memory have been setup) 64259 64260 ############################################################################## 64261 # 64262 # Specify jvm options for anything that is run with the Boot JDK. 64263 # Not all JVM:s accept the same arguments on the command line. 64264 # 64265 64266 # Check whether --with-boot-jdk-jvmargs was given. 64267 if test "${with_boot_jdk_jvmargs+set}" = set; then : 64268 withval=$with_boot_jdk_jvmargs; 64269 fi 64270 64271 64272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 64273 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 64274 64275 # Disable special log output when a debug build is used as Boot JDK... 64276 64277 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 64278 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 64279 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -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="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 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 # Apply user provided options. 64293 64294 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 64295 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 64296 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 64297 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 64298 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 64299 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64300 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 64301 JVM_ARG_OK=true 64302 else 64303 $ECHO "Arg failed:" >&5 64304 $ECHO "$OUTPUT" >&5 64305 JVM_ARG_OK=false 64306 fi 64307 64308 64309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 64310 $as_echo "$boot_jdk_jvmargs" >&6; } 64311 64312 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 64313 JAVA_FLAGS=$boot_jdk_jvmargs 64314 64315 64316 64317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 64318 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 64319 64320 # Starting amount of heap memory. 64321 64322 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 64323 $ECHO "Command: $JAVA -Xms64M -version" >&5 64324 OUTPUT=`$JAVA -Xms64M -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_big="$boot_jdk_jvmargs_big -Xms64M" 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 # Maximum amount of heap memory. 64338 # Maximum stack size. 64339 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 64340 if test "x$BOOT_JDK_BITS" = "x32"; then 64341 if test "$JVM_MAX_HEAP" -gt "1100"; then 64342 JVM_MAX_HEAP=1100 64343 elif test "$JVM_MAX_HEAP" -lt "512"; then 64344 JVM_MAX_HEAP=512 64345 fi 64346 STACK_SIZE=768 64347 else 64348 # Running a 64 bit JVM allows for and requires a bigger heap 64349 if test "$JVM_MAX_HEAP" -gt "1600"; then 64350 JVM_MAX_HEAP=1600 64351 elif test "$JVM_MAX_HEAP" -lt "512"; then 64352 JVM_MAX_HEAP=512 64353 fi 64354 STACK_SIZE=1536 64355 fi 64356 64357 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 64358 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 64359 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 64360 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 64361 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 64362 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64363 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 64364 JVM_ARG_OK=true 64365 else 64366 $ECHO "Arg failed:" >&5 64367 $ECHO "$OUTPUT" >&5 64368 JVM_ARG_OK=false 64369 fi 64370 64371 64372 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 64373 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 64374 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -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 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 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 64387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 64388 $as_echo "$boot_jdk_jvmargs_big" >&6; } 64389 64390 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 64391 64392 64393 # By default, the main javac compilations use big 64394 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 64395 64396 64397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 64398 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 64399 64400 # Use serial gc for small short lived tools if possible 64401 64402 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 64403 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 64404 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 64405 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 64406 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 64407 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64408 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 64409 JVM_ARG_OK=true 64410 else 64411 $ECHO "Arg failed:" >&5 64412 $ECHO "$OUTPUT" >&5 64413 JVM_ARG_OK=false 64414 fi 64415 64416 64417 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 64418 $ECHO "Command: $JAVA -Xms32M -version" >&5 64419 OUTPUT=`$JAVA -Xms32M -version 2>&1` 64420 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 64421 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 64422 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64423 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 64424 JVM_ARG_OK=true 64425 else 64426 $ECHO "Arg failed:" >&5 64427 $ECHO "$OUTPUT" >&5 64428 JVM_ARG_OK=false 64429 fi 64430 64431 64432 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 64433 $ECHO "Command: $JAVA -Xmx512M -version" >&5 64434 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 64435 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 64436 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 64437 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64438 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 64439 JVM_ARG_OK=true 64440 else 64441 $ECHO "Arg failed:" >&5 64442 $ECHO "$OUTPUT" >&5 64443 JVM_ARG_OK=false 64444 fi 64445 64446 64447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 64448 $as_echo "$boot_jdk_jvmargs_small" >&6; } 64449 64450 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 64451 64452 64453 JAVA_TOOL_FLAGS_SMALL="" 64454 for f in $JAVA_FLAGS_SMALL; do 64455 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 64456 done 64457 64458 64459 64460 # Setup smart javac (after cores and memory have been setup) 64461 64462 64463 # Check whether --with-sjavac-server-java was given. 64464 if test "${with_sjavac_server_java+set}" = set; then : 64465 withval=$with_sjavac_server_java; 64466 fi 64467 64468 64469 if test "x$with_sjavac_server_java" != x; then 64470 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 64471 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 64472 if test "x$FOUND_VERSION" = x; then 64473 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 64474 fi 64475 else 64476 SJAVAC_SERVER_JAVA="$JAVA" 64477 fi 64478 64479 64480 if test "$MEMORY_SIZE" -gt "3000"; then 64481 64482 $ECHO "Check if jvm arg is ok: -d64" >&5 64483 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 64484 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 64485 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 64486 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 64487 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64488 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 64489 JVM_ARG_OK=true 64490 else 64491 $ECHO "Arg failed:" >&5 64492 $ECHO "$OUTPUT" >&5 64493 JVM_ARG_OK=false 64494 fi 64495 64496 if test "$JVM_ARG_OK" = true; then 64497 JVM_64BIT=true 64498 JVM_ARG_OK=false 64499 fi 64500 fi 64501 64502 MX_VALUE=`expr $MEMORY_SIZE / 2` 64503 if test "$JVM_64BIT" = true; then 64504 # Set ms lower than mx since more than one instance of the server might 64505 # get launched at the same time before they figure out which instance won. 64506 MS_VALUE=512 64507 if test "$MX_VALUE" -gt "2048"; then 64508 MX_VALUE=2048 64509 fi 64510 else 64511 MS_VALUE=256 64512 if test "$MX_VALUE" -gt "1500"; then 64513 MX_VALUE=1500 64514 fi 64515 fi 64516 if test "$MX_VALUE" -lt "512"; then 64517 MX_VALUE=512 64518 fi 64519 64520 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 64521 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 64522 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 64523 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 64524 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 64525 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 64526 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 64527 JVM_ARG_OK=true 64528 else 64529 $ECHO "Arg failed:" >&5 64530 $ECHO "$OUTPUT" >&5 64531 JVM_ARG_OK=false 64532 fi 64533 64534 64535 64536 # Check whether --enable-sjavac was given. 64537 if test "${enable_sjavac+set}" = set; then : 64538 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 64539 else 64540 ENABLE_SJAVAC="no" 64541 fi 64542 64543 if test "x$JVM_ARG_OK" = "xfalse"; then 64544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 64545 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 64546 ENABLE_SJAVAC="no" 64547 fi 64548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 64549 $as_echo_n "checking whether to use sjavac... " >&6; } 64550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 64551 $as_echo "$ENABLE_SJAVAC" >&6; } 64552 64553 64554 # Check whether --enable-javac-server was given. 64555 if test "${enable_javac_server+set}" = set; then : 64556 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 64557 else 64558 ENABLE_JAVAC_SERVER="yes" 64559 fi 64560 64561 if test "x$JVM_ARG_OK" = "xfalse"; then 64562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 64563 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 64564 ENABLE_JAVAC_SERVER="no" 64565 fi 64566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 64567 $as_echo_n "checking whether to use javac server... " >&6; } 64568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 64569 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 64570 64571 64572 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 64573 # When using a server javac, the small client instances do not need much 64574 # resources. 64575 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 64576 fi 64577 64578 64579 # Setup use of icecc if requested 64580 64581 # Check whether --enable-icecc was given. 64582 if test "${enable_icecc+set}" = set; then : 64583 enableval=$enable_icecc; 64584 fi 64585 64586 64587 if test "x${enable_icecc}" = "xyes"; then 64588 64589 64590 64591 # Publish this variable in the help. 64592 64593 64594 if [ -z "${ICECC_CMD+x}" ]; then 64595 # The variable is not set by user, try to locate tool using the code snippet 64596 for ac_prog in icecc 64597 do 64598 # Extract the first word of "$ac_prog", so it can be a program name with args. 64599 set dummy $ac_prog; ac_word=$2 64600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64601 $as_echo_n "checking for $ac_word... " >&6; } 64602 if ${ac_cv_path_ICECC_CMD+:} false; then : 64603 $as_echo_n "(cached) " >&6 64604 else 64605 case $ICECC_CMD in 64606 [\\/]* | ?:[\\/]*) 64607 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64608 ;; 64609 *) 64610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64611 for as_dir in $PATH 64612 do 64613 IFS=$as_save_IFS 64614 test -z "$as_dir" && as_dir=. 64615 for ac_exec_ext in '' $ac_executable_extensions; do 64616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64617 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64619 break 2 64620 fi 64621 done 64622 done 64623 IFS=$as_save_IFS 64624 64625 ;; 64626 esac 64627 fi 64628 ICECC_CMD=$ac_cv_path_ICECC_CMD 64629 if test -n "$ICECC_CMD"; then 64630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64631 $as_echo "$ICECC_CMD" >&6; } 64632 else 64633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64634 $as_echo "no" >&6; } 64635 fi 64636 64637 64638 test -n "$ICECC_CMD" && break 64639 done 64640 64641 else 64642 # The variable is set, but is it from the command line or the environment? 64643 64644 # Try to remove the string !ICECC_CMD! from our list. 64645 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 64646 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 64647 # If it failed, the variable was not from the command line. Ignore it, 64648 # but warn the user (except for BASH, which is always set by the calling BASH). 64649 if test "xICECC_CMD" != xBASH; then 64650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 64651 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 64652 fi 64653 # Try to locate tool using the code snippet 64654 for ac_prog in icecc 64655 do 64656 # Extract the first word of "$ac_prog", so it can be a program name with args. 64657 set dummy $ac_prog; ac_word=$2 64658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64659 $as_echo_n "checking for $ac_word... " >&6; } 64660 if ${ac_cv_path_ICECC_CMD+:} false; then : 64661 $as_echo_n "(cached) " >&6 64662 else 64663 case $ICECC_CMD in 64664 [\\/]* | ?:[\\/]*) 64665 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64666 ;; 64667 *) 64668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64669 for as_dir in $PATH 64670 do 64671 IFS=$as_save_IFS 64672 test -z "$as_dir" && as_dir=. 64673 for ac_exec_ext in '' $ac_executable_extensions; do 64674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64675 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64677 break 2 64678 fi 64679 done 64680 done 64681 IFS=$as_save_IFS 64682 64683 ;; 64684 esac 64685 fi 64686 ICECC_CMD=$ac_cv_path_ICECC_CMD 64687 if test -n "$ICECC_CMD"; then 64688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64689 $as_echo "$ICECC_CMD" >&6; } 64690 else 64691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64692 $as_echo "no" >&6; } 64693 fi 64694 64695 64696 test -n "$ICECC_CMD" && break 64697 done 64698 64699 else 64700 # If it succeeded, then it was overridden by the user. We will use it 64701 # for the tool. 64702 64703 # First remove it from the list of overridden variables, so we can test 64704 # for unknown variables in the end. 64705 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 64706 64707 # Check if we try to supply an empty value 64708 if test "x$ICECC_CMD" = x; then 64709 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 64710 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 64711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 64712 $as_echo_n "checking for ICECC_CMD... " >&6; } 64713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 64714 $as_echo "disabled" >&6; } 64715 else 64716 # Check if the provided tool contains a complete path. 64717 tool_specified="$ICECC_CMD" 64718 tool_basename="${tool_specified##*/}" 64719 if test "x$tool_basename" = "x$tool_specified"; then 64720 # A command without a complete path is provided, search $PATH. 64721 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 64722 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 64723 # Extract the first word of "$tool_basename", so it can be a program name with args. 64724 set dummy $tool_basename; ac_word=$2 64725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64726 $as_echo_n "checking for $ac_word... " >&6; } 64727 if ${ac_cv_path_ICECC_CMD+:} false; then : 64728 $as_echo_n "(cached) " >&6 64729 else 64730 case $ICECC_CMD in 64731 [\\/]* | ?:[\\/]*) 64732 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 64733 ;; 64734 *) 64735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64736 for as_dir in $PATH 64737 do 64738 IFS=$as_save_IFS 64739 test -z "$as_dir" && as_dir=. 64740 for ac_exec_ext in '' $ac_executable_extensions; do 64741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64742 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 64743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64744 break 2 64745 fi 64746 done 64747 done 64748 IFS=$as_save_IFS 64749 64750 ;; 64751 esac 64752 fi 64753 ICECC_CMD=$ac_cv_path_ICECC_CMD 64754 if test -n "$ICECC_CMD"; then 64755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 64756 $as_echo "$ICECC_CMD" >&6; } 64757 else 64758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64759 $as_echo "no" >&6; } 64760 fi 64761 64762 64763 if test "x$ICECC_CMD" = x; then 64764 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 64765 fi 64766 else 64767 # Otherwise we believe it is a complete path. Use it as it is. 64768 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 64769 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 64770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 64771 $as_echo_n "checking for ICECC_CMD... " >&6; } 64772 if test ! -x "$tool_specified"; then 64773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 64774 $as_echo "not found" >&6; } 64775 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 64776 fi 64777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 64778 $as_echo "$tool_specified" >&6; } 64779 fi 64780 fi 64781 fi 64782 64783 fi 64784 64785 64786 64787 if test "x$ICECC_CMD" = x; then 64788 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 64789 fi 64790 64791 64792 old_path="$PATH" 64793 64794 # Look for icecc-create-env in some known places 64795 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 64796 64797 64798 64799 # Publish this variable in the help. 64800 64801 64802 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 64803 # The variable is not set by user, try to locate tool using the code snippet 64804 for ac_prog in icecc-create-env 64805 do 64806 # Extract the first word of "$ac_prog", so it can be a program name with args. 64807 set dummy $ac_prog; ac_word=$2 64808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64809 $as_echo_n "checking for $ac_word... " >&6; } 64810 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 64811 $as_echo_n "(cached) " >&6 64812 else 64813 case $ICECC_CREATE_ENV in 64814 [\\/]* | ?:[\\/]*) 64815 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 64816 ;; 64817 *) 64818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64819 for as_dir in $PATH 64820 do 64821 IFS=$as_save_IFS 64822 test -z "$as_dir" && as_dir=. 64823 for ac_exec_ext in '' $ac_executable_extensions; do 64824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64825 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 64826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64827 break 2 64828 fi 64829 done 64830 done 64831 IFS=$as_save_IFS 64832 64833 ;; 64834 esac 64835 fi 64836 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 64837 if test -n "$ICECC_CREATE_ENV"; then 64838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 64839 $as_echo "$ICECC_CREATE_ENV" >&6; } 64840 else 64841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64842 $as_echo "no" >&6; } 64843 fi 64844 64845 64846 test -n "$ICECC_CREATE_ENV" && break 64847 done 64848 64849 else 64850 # The variable is set, but is it from the command line or the environment? 64851 64852 # Try to remove the string !ICECC_CREATE_ENV! from our list. 64853 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 64854 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 64855 # If it failed, the variable was not from the command line. Ignore it, 64856 # but warn the user (except for BASH, which is always set by the calling BASH). 64857 if test "xICECC_CREATE_ENV" != xBASH; then 64858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 64859 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 64860 fi 64861 # Try to locate tool using the code snippet 64862 for ac_prog in icecc-create-env 64863 do 64864 # Extract the first word of "$ac_prog", so it can be a program name with args. 64865 set dummy $ac_prog; ac_word=$2 64866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64867 $as_echo_n "checking for $ac_word... " >&6; } 64868 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 64869 $as_echo_n "(cached) " >&6 64870 else 64871 case $ICECC_CREATE_ENV in 64872 [\\/]* | ?:[\\/]*) 64873 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 64874 ;; 64875 *) 64876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64877 for as_dir in $PATH 64878 do 64879 IFS=$as_save_IFS 64880 test -z "$as_dir" && as_dir=. 64881 for ac_exec_ext in '' $ac_executable_extensions; do 64882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64883 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 64884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64885 break 2 64886 fi 64887 done 64888 done 64889 IFS=$as_save_IFS 64890 64891 ;; 64892 esac 64893 fi 64894 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 64895 if test -n "$ICECC_CREATE_ENV"; then 64896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 64897 $as_echo "$ICECC_CREATE_ENV" >&6; } 64898 else 64899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64900 $as_echo "no" >&6; } 64901 fi 64902 64903 64904 test -n "$ICECC_CREATE_ENV" && break 64905 done 64906 64907 else 64908 # If it succeeded, then it was overridden by the user. We will use it 64909 # for the tool. 64910 64911 # First remove it from the list of overridden variables, so we can test 64912 # for unknown variables in the end. 64913 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 64914 64915 # Check if we try to supply an empty value 64916 if test "x$ICECC_CREATE_ENV" = x; then 64917 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 64918 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 64919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 64920 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 64921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 64922 $as_echo "disabled" >&6; } 64923 else 64924 # Check if the provided tool contains a complete path. 64925 tool_specified="$ICECC_CREATE_ENV" 64926 tool_basename="${tool_specified##*/}" 64927 if test "x$tool_basename" = "x$tool_specified"; then 64928 # A command without a complete path is provided, search $PATH. 64929 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 64930 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 64931 # Extract the first word of "$tool_basename", so it can be a program name with args. 64932 set dummy $tool_basename; ac_word=$2 64933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 64934 $as_echo_n "checking for $ac_word... " >&6; } 64935 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 64936 $as_echo_n "(cached) " >&6 64937 else 64938 case $ICECC_CREATE_ENV in 64939 [\\/]* | ?:[\\/]*) 64940 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 64941 ;; 64942 *) 64943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 64944 for as_dir in $PATH 64945 do 64946 IFS=$as_save_IFS 64947 test -z "$as_dir" && as_dir=. 64948 for ac_exec_ext in '' $ac_executable_extensions; do 64949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 64950 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 64951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 64952 break 2 64953 fi 64954 done 64955 done 64956 IFS=$as_save_IFS 64957 64958 ;; 64959 esac 64960 fi 64961 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 64962 if test -n "$ICECC_CREATE_ENV"; then 64963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 64964 $as_echo "$ICECC_CREATE_ENV" >&6; } 64965 else 64966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 64967 $as_echo "no" >&6; } 64968 fi 64969 64970 64971 if test "x$ICECC_CREATE_ENV" = x; then 64972 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 64973 fi 64974 else 64975 # Otherwise we believe it is a complete path. Use it as it is. 64976 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 64977 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 64978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 64979 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 64980 if test ! -x "$tool_specified"; then 64981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 64982 $as_echo "not found" >&6; } 64983 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 64984 fi 64985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 64986 $as_echo "$tool_specified" >&6; } 64987 fi 64988 fi 64989 fi 64990 64991 fi 64992 64993 64994 64995 if test "x$ICECC_CREATE_ENV" = x; then 64996 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 64997 fi 64998 64999 65000 # Use icecc-create-env to create a minimal compilation environment that can 65001 # be sent to the other hosts in the icecream cluster. 65002 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 65003 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 65004 # Older versions of icecc does not have the --gcc parameter 65005 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 65006 icecc_gcc_arg="--gcc" 65007 fi 65008 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 65009 65010 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65011 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 65012 ${icecc_create_env_log} 2>&1 ) 65013 if test "$?" != "0"; then 65014 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65015 $as_echo "$as_me: icecc-create-env output:" >&6;} 65016 cat \ 65017 ${icecc_create_env_log} 65018 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65019 fi 65020 65021 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 65022 # For clang, the icecc compilerwrapper is needed. It usually resides next 65023 # to icecc-create-env. 65024 65025 65026 65027 # Publish this variable in the help. 65028 65029 65030 if [ -z "${ICECC_WRAPPER+x}" ]; then 65031 # The variable is not set by user, try to locate tool using the code snippet 65032 for ac_prog in compilerwrapper 65033 do 65034 # Extract the first word of "$ac_prog", so it can be a program name with args. 65035 set dummy $ac_prog; ac_word=$2 65036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65037 $as_echo_n "checking for $ac_word... " >&6; } 65038 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65039 $as_echo_n "(cached) " >&6 65040 else 65041 case $ICECC_WRAPPER in 65042 [\\/]* | ?:[\\/]*) 65043 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65044 ;; 65045 *) 65046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65047 for as_dir in $PATH 65048 do 65049 IFS=$as_save_IFS 65050 test -z "$as_dir" && as_dir=. 65051 for ac_exec_ext in '' $ac_executable_extensions; do 65052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65053 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65055 break 2 65056 fi 65057 done 65058 done 65059 IFS=$as_save_IFS 65060 65061 ;; 65062 esac 65063 fi 65064 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65065 if test -n "$ICECC_WRAPPER"; then 65066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65067 $as_echo "$ICECC_WRAPPER" >&6; } 65068 else 65069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65070 $as_echo "no" >&6; } 65071 fi 65072 65073 65074 test -n "$ICECC_WRAPPER" && break 65075 done 65076 65077 else 65078 # The variable is set, but is it from the command line or the environment? 65079 65080 # Try to remove the string !ICECC_WRAPPER! from our list. 65081 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 65082 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65083 # If it failed, the variable was not from the command line. Ignore it, 65084 # but warn the user (except for BASH, which is always set by the calling BASH). 65085 if test "xICECC_WRAPPER" != xBASH; then 65086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 65087 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 65088 fi 65089 # Try to locate tool using the code snippet 65090 for ac_prog in compilerwrapper 65091 do 65092 # Extract the first word of "$ac_prog", so it can be a program name with args. 65093 set dummy $ac_prog; ac_word=$2 65094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65095 $as_echo_n "checking for $ac_word... " >&6; } 65096 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65097 $as_echo_n "(cached) " >&6 65098 else 65099 case $ICECC_WRAPPER in 65100 [\\/]* | ?:[\\/]*) 65101 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65102 ;; 65103 *) 65104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65105 for as_dir in $PATH 65106 do 65107 IFS=$as_save_IFS 65108 test -z "$as_dir" && as_dir=. 65109 for ac_exec_ext in '' $ac_executable_extensions; do 65110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65111 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65113 break 2 65114 fi 65115 done 65116 done 65117 IFS=$as_save_IFS 65118 65119 ;; 65120 esac 65121 fi 65122 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65123 if test -n "$ICECC_WRAPPER"; then 65124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65125 $as_echo "$ICECC_WRAPPER" >&6; } 65126 else 65127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65128 $as_echo "no" >&6; } 65129 fi 65130 65131 65132 test -n "$ICECC_WRAPPER" && break 65133 done 65134 65135 else 65136 # If it succeeded, then it was overridden by the user. We will use it 65137 # for the tool. 65138 65139 # First remove it from the list of overridden variables, so we can test 65140 # for unknown variables in the end. 65141 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65142 65143 # Check if we try to supply an empty value 65144 if test "x$ICECC_WRAPPER" = x; then 65145 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 65146 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 65147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65148 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65150 $as_echo "disabled" >&6; } 65151 else 65152 # Check if the provided tool contains a complete path. 65153 tool_specified="$ICECC_WRAPPER" 65154 tool_basename="${tool_specified##*/}" 65155 if test "x$tool_basename" = "x$tool_specified"; then 65156 # A command without a complete path is provided, search $PATH. 65157 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 65158 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 65159 # Extract the first word of "$tool_basename", so it can be a program name with args. 65160 set dummy $tool_basename; ac_word=$2 65161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65162 $as_echo_n "checking for $ac_word... " >&6; } 65163 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 65164 $as_echo_n "(cached) " >&6 65165 else 65166 case $ICECC_WRAPPER in 65167 [\\/]* | ?:[\\/]*) 65168 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 65169 ;; 65170 *) 65171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65172 for as_dir in $PATH 65173 do 65174 IFS=$as_save_IFS 65175 test -z "$as_dir" && as_dir=. 65176 for ac_exec_ext in '' $ac_executable_extensions; do 65177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65178 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 65179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65180 break 2 65181 fi 65182 done 65183 done 65184 IFS=$as_save_IFS 65185 65186 ;; 65187 esac 65188 fi 65189 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 65190 if test -n "$ICECC_WRAPPER"; then 65191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 65192 $as_echo "$ICECC_WRAPPER" >&6; } 65193 else 65194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65195 $as_echo "no" >&6; } 65196 fi 65197 65198 65199 if test "x$ICECC_WRAPPER" = x; then 65200 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65201 fi 65202 else 65203 # Otherwise we believe it is a complete path. Use it as it is. 65204 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 65205 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 65206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 65207 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 65208 if test ! -x "$tool_specified"; then 65209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65210 $as_echo "not found" >&6; } 65211 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 65212 fi 65213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65214 $as_echo "$tool_specified" >&6; } 65215 fi 65216 fi 65217 fi 65218 65219 fi 65220 65221 65222 65223 if test "x$ICECC_WRAPPER" = x; then 65224 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 65225 fi 65226 65227 65228 65229 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65230 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 65231 if test "$?" != "0"; then 65232 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65233 $as_echo "$as_me: icecc-create-env output:" >&6;} 65234 cat ${icecc_create_env_log} 65235 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65236 fi 65237 65238 else 65239 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 65240 fi 65241 PATH="$old_path" 65242 # The bundle with the compiler gets a name based on checksums. Parse log file 65243 # to find it. 65244 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 65245 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 65246 if test ! -f ${ICECC_ENV_BUNDLE}; then 65247 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 65248 fi 65249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 65250 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 65251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 65252 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 65253 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 65254 65255 if test "x${COMPILE_TYPE}" = "xcross"; then 65256 # If cross compiling, create a separate env package for the build compiler 65257 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 65258 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 65259 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 65260 65261 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65262 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 65263 ${icecc_create_env_log_build} 2>&1 ) 65264 if test "$?" != "0"; then 65265 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65266 $as_echo "$as_me: icecc-create-env output:" >&6;} 65267 cat \ 65268 ${icecc_create_env_log_build} 65269 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65270 fi 65271 65272 elif test "x${BUILD_CC##*/}" = "xclang"; then 65273 65274 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 65275 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 65276 if test "$?" != "0"; then 65277 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 65278 $as_echo "$as_me: icecc-create-env output:" >&6;} 65279 cat ${icecc_create_env_log_build} 65280 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 65281 fi 65282 65283 else 65284 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 65285 fi 65286 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 65287 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 65288 if test ! -f ${ICECC_ENV_BUNDLE}; then 65289 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 65290 fi 65291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 65292 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 65293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 65294 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 65295 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 65296 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 65297 else 65298 BUILD_ICECC="${ICECC}" 65299 fi 65300 65301 65302 fi 65303 65304 65305 # Can the C/C++ compiler use precompiled headers? 65306 65307 65308 ############################################################################### 65309 # 65310 # Can the C/C++ compiler use precompiled headers? 65311 # 65312 # Check whether --enable-precompiled-headers was given. 65313 if test "${enable_precompiled_headers+set}" = set; then : 65314 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 65315 else 65316 ENABLE_PRECOMPH=yes 65317 fi 65318 65319 65320 USE_PRECOMPILED_HEADER=1 65321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 65322 $as_echo_n "checking If precompiled header is enabled... " >&6; } 65323 if test "x$ENABLE_PRECOMPH" = xno; then 65324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65325 $as_echo "no, forced" >&6; } 65326 USE_PRECOMPILED_HEADER=0 65327 elif test "x$ICECC" != "x"; then 65328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 65329 $as_echo "no, does not work effectively with icecc" >&6; } 65330 USE_PRECOMPILED_HEADER=0 65331 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 65332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 65333 $as_echo "no, does not work with Solaris Studio" >&6; } 65334 USE_PRECOMPILED_HEADER=0 65335 else 65336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65337 $as_echo "yes" >&6; } 65338 fi 65339 65340 if test "x$ENABLE_PRECOMPH" = xyes; then 65341 # Check that the compiler actually supports precomp headers. 65342 if test "x$TOOLCHAIN_TYPE" = xgcc; then 65343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 65344 $as_echo_n "checking that precompiled headers work... " >&6; } 65345 echo "int alfa();" > conftest.h 65346 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 65347 if test ! -f conftest.hpp.gch; then 65348 USE_PRECOMPILED_HEADER=0 65349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65350 $as_echo "no" >&6; } 65351 else 65352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65353 $as_echo "yes" >&6; } 65354 fi 65355 rm -f conftest.h conftest.hpp.gch 65356 fi 65357 fi 65358 65359 65360 65361 65362 # Setup use of ccache, if available 65363 65364 # Check whether --enable-ccache was given. 65365 if test "${enable_ccache+set}" = set; then : 65366 enableval=$enable_ccache; 65367 fi 65368 65369 65370 CCACHE= 65371 CCACHE_STATUS= 65372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 65373 $as_echo_n "checking is ccache enabled... " >&6; } 65374 if test "x$enable_ccache" = xyes; then 65375 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 65376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65377 $as_echo "yes" >&6; } 65378 OLD_PATH="$PATH" 65379 if test "x$TOOLCHAIN_PATH" != x; then 65380 PATH=$TOOLCHAIN_PATH:$PATH 65381 fi 65382 65383 65384 65385 # Publish this variable in the help. 65386 65387 65388 if [ -z "${CCACHE+x}" ]; then 65389 # The variable is not set by user, try to locate tool using the code snippet 65390 for ac_prog in ccache 65391 do 65392 # Extract the first word of "$ac_prog", so it can be a program name with args. 65393 set dummy $ac_prog; ac_word=$2 65394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65395 $as_echo_n "checking for $ac_word... " >&6; } 65396 if ${ac_cv_path_CCACHE+:} false; then : 65397 $as_echo_n "(cached) " >&6 65398 else 65399 case $CCACHE in 65400 [\\/]* | ?:[\\/]*) 65401 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65402 ;; 65403 *) 65404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65405 for as_dir in $PATH 65406 do 65407 IFS=$as_save_IFS 65408 test -z "$as_dir" && as_dir=. 65409 for ac_exec_ext in '' $ac_executable_extensions; do 65410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65411 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65413 break 2 65414 fi 65415 done 65416 done 65417 IFS=$as_save_IFS 65418 65419 ;; 65420 esac 65421 fi 65422 CCACHE=$ac_cv_path_CCACHE 65423 if test -n "$CCACHE"; then 65424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65425 $as_echo "$CCACHE" >&6; } 65426 else 65427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65428 $as_echo "no" >&6; } 65429 fi 65430 65431 65432 test -n "$CCACHE" && break 65433 done 65434 65435 else 65436 # The variable is set, but is it from the command line or the environment? 65437 65438 # Try to remove the string !CCACHE! from our list. 65439 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 65440 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 65441 # If it failed, the variable was not from the command line. Ignore it, 65442 # but warn the user (except for BASH, which is always set by the calling BASH). 65443 if test "xCCACHE" != xBASH; then 65444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 65445 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 65446 fi 65447 # Try to locate tool using the code snippet 65448 for ac_prog in ccache 65449 do 65450 # Extract the first word of "$ac_prog", so it can be a program name with args. 65451 set dummy $ac_prog; ac_word=$2 65452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65453 $as_echo_n "checking for $ac_word... " >&6; } 65454 if ${ac_cv_path_CCACHE+:} false; then : 65455 $as_echo_n "(cached) " >&6 65456 else 65457 case $CCACHE in 65458 [\\/]* | ?:[\\/]*) 65459 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65460 ;; 65461 *) 65462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65463 for as_dir in $PATH 65464 do 65465 IFS=$as_save_IFS 65466 test -z "$as_dir" && as_dir=. 65467 for ac_exec_ext in '' $ac_executable_extensions; do 65468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65469 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65471 break 2 65472 fi 65473 done 65474 done 65475 IFS=$as_save_IFS 65476 65477 ;; 65478 esac 65479 fi 65480 CCACHE=$ac_cv_path_CCACHE 65481 if test -n "$CCACHE"; then 65482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65483 $as_echo "$CCACHE" >&6; } 65484 else 65485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65486 $as_echo "no" >&6; } 65487 fi 65488 65489 65490 test -n "$CCACHE" && break 65491 done 65492 65493 else 65494 # If it succeeded, then it was overridden by the user. We will use it 65495 # for the tool. 65496 65497 # First remove it from the list of overridden variables, so we can test 65498 # for unknown variables in the end. 65499 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 65500 65501 # Check if we try to supply an empty value 65502 if test "x$CCACHE" = x; then 65503 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 65504 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 65505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 65506 $as_echo_n "checking for CCACHE... " >&6; } 65507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 65508 $as_echo "disabled" >&6; } 65509 else 65510 # Check if the provided tool contains a complete path. 65511 tool_specified="$CCACHE" 65512 tool_basename="${tool_specified##*/}" 65513 if test "x$tool_basename" = "x$tool_specified"; then 65514 # A command without a complete path is provided, search $PATH. 65515 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 65516 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 65517 # Extract the first word of "$tool_basename", so it can be a program name with args. 65518 set dummy $tool_basename; ac_word=$2 65519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 65520 $as_echo_n "checking for $ac_word... " >&6; } 65521 if ${ac_cv_path_CCACHE+:} false; then : 65522 $as_echo_n "(cached) " >&6 65523 else 65524 case $CCACHE in 65525 [\\/]* | ?:[\\/]*) 65526 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 65527 ;; 65528 *) 65529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 65530 for as_dir in $PATH 65531 do 65532 IFS=$as_save_IFS 65533 test -z "$as_dir" && as_dir=. 65534 for ac_exec_ext in '' $ac_executable_extensions; do 65535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 65536 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 65537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 65538 break 2 65539 fi 65540 done 65541 done 65542 IFS=$as_save_IFS 65543 65544 ;; 65545 esac 65546 fi 65547 CCACHE=$ac_cv_path_CCACHE 65548 if test -n "$CCACHE"; then 65549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 65550 $as_echo "$CCACHE" >&6; } 65551 else 65552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65553 $as_echo "no" >&6; } 65554 fi 65555 65556 65557 if test "x$CCACHE" = x; then 65558 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 65559 fi 65560 else 65561 # Otherwise we believe it is a complete path. Use it as it is. 65562 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 65563 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 65564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 65565 $as_echo_n "checking for CCACHE... " >&6; } 65566 if test ! -x "$tool_specified"; then 65567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 65568 $as_echo "not found" >&6; } 65569 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 65570 fi 65571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 65572 $as_echo "$tool_specified" >&6; } 65573 fi 65574 fi 65575 fi 65576 65577 fi 65578 65579 65580 65581 if test "x$CCACHE" = x; then 65582 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 65583 fi 65584 65585 65586 PATH="$OLD_PATH" 65587 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 65588 CCACHE_STATUS="Active ($CCACHE_VERSION)" 65589 else 65590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65591 $as_echo "no" >&6; } 65592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 65593 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 65594 fi 65595 elif test "x$enable_ccache" = xno; then 65596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 65597 $as_echo "no, explicitly disabled" >&6; } 65598 CCACHE_STATUS="Disabled" 65599 elif test "x$enable_ccache" = x; then 65600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65601 $as_echo "no" >&6; } 65602 else 65603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 65604 $as_echo "unknown" >&6; } 65605 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 65606 fi 65607 65608 65609 65610 # Check whether --with-ccache-dir was given. 65611 if test "${with_ccache_dir+set}" = set; then : 65612 withval=$with_ccache_dir; 65613 fi 65614 65615 65616 if test "x$with_ccache_dir" != x; then 65617 # When using a non home ccache directory, assume the use is to share ccache files 65618 # with other users. Thus change the umask. 65619 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 65620 if test "x$CCACHE" = x; then 65621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 65622 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 65623 fi 65624 fi 65625 65626 if test "x$CCACHE" != x; then 65627 65628 if test "x$CCACHE" != x; then 65629 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 65630 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 65631 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 65632 if test "x$HAS_BAD_CCACHE" != "x"; then 65633 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 65634 fi 65635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 65636 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 65637 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 65638 PUSHED_FLAGS="$CXXFLAGS" 65639 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 65640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65641 /* end confdefs.h. */ 65642 65643 int 65644 main () 65645 { 65646 65647 ; 65648 return 0; 65649 } 65650 _ACEOF 65651 if ac_fn_cxx_try_compile "$LINENO"; then : 65652 CC_KNOWS_CCACHE_TRICK=yes 65653 else 65654 CC_KNOWS_CCACHE_TRICK=no 65655 fi 65656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 65657 CXXFLAGS="$PUSHED_FLAGS" 65658 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 65659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65660 $as_echo "yes" >&6; } 65661 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 65662 65663 CCACHE_SLOPPINESS=pch_defines,time_macros 65664 else 65665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65666 $as_echo "no" >&6; } 65667 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 65668 fi 65669 fi 65670 65671 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 65672 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 65673 65674 if test "x$SET_CCACHE_DIR" != x; then 65675 mkdir -p $CCACHE_DIR > /dev/null 2>&1 65676 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 65677 fi 65678 fi 65679 65680 fi 65681 65682 65683 ############################################################################### 65684 # 65685 # And now the finish... 65686 # 65687 ############################################################################### 65688 65689 # Check for some common pitfalls 65690 65691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65692 file_to_test="$SRC_ROOT/LICENSE" 65693 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 65694 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 65695 fi 65696 fi 65697 65698 65699 # Did user specify any unknown variables? 65700 65701 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 65702 # Replace the separating ! with spaces before presenting for end user. 65703 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 65704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 65705 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 65706 fi 65707 65708 65709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 65710 $as_echo_n "checking if build directory is on local disk... " >&6; } 65711 65712 # df -l lists only local disks; if the given directory is not found then 65713 # a non-zero exit code is given 65714 if test "x$DF" = x; then 65715 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65716 # msys does not have df; use Windows "net use" instead. 65717 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 65718 if test "x$IS_NETWORK_DISK" = x; then 65719 OUTPUT_DIR_IS_LOCAL="yes" 65720 else 65721 OUTPUT_DIR_IS_LOCAL="no" 65722 fi 65723 else 65724 # No df here, say it's local 65725 OUTPUT_DIR_IS_LOCAL="yes" 65726 fi 65727 else 65728 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 65729 OUTPUT_DIR_IS_LOCAL="yes" 65730 else 65731 OUTPUT_DIR_IS_LOCAL="no" 65732 fi 65733 fi 65734 65735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 65736 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 65737 65738 65739 65740 # Check if the user has any old-style ALT_ variables set. 65741 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 65742 65743 # Before generating output files, test if they exist. If they do, this is a reconfigure. 65744 # Since we can't properly handle the dependencies for this, warn the user about the situation 65745 if test -e $OUTPUT_ROOT/spec.gmk; then 65746 IS_RECONFIGURE=yes 65747 else 65748 IS_RECONFIGURE=no 65749 fi 65750 65751 65752 # At the end, call the custom hook. (Dummy macro if no custom sources available) 65753 65754 65755 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 65756 65757 # Keep feature lists sorted and free of duplicates 65758 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 65759 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 65760 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 65761 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 65762 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 65763 JVM_FEATURES_zeroshark="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zeroshark | $SORT -u))" 65764 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 65765 65766 # Validate features 65767 for variant in $JVM_VARIANTS; do 65768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 65769 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 65770 features_var_name=JVM_FEATURES_$variant 65771 JVM_FEATURES_TO_TEST=${!features_var_name} 65772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 65773 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 65774 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 65775 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 65776 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 65777 if test "x$INVALID_FEATURES" != x; then 65778 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 65779 fi 65780 done 65781 65782 65783 # We're messing a bit with internal autoconf variables to put the config.status 65784 # in the output directory instead of the current directory. 65785 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 65786 65787 # Create the actual output files. Now the main work of configure is done. 65788 cat >confcache <<\_ACEOF 65789 # This file is a shell script that caches the results of configure 65790 # tests run on this system so they can be shared between configure 65791 # scripts and configure runs, see configure's option --config-cache. 65792 # It is not useful on other systems. If it contains results you don't 65793 # want to keep, you may remove or edit it. 65794 # 65795 # config.status only pays attention to the cache file if you give it 65796 # the --recheck option to rerun configure. 65797 # 65798 # `ac_cv_env_foo' variables (set or unset) will be overridden when 65799 # loading this file, other *unset* `ac_cv_foo' will be assigned the 65800 # following values. 65801 65802 _ACEOF 65803 65804 # The following way of writing the cache mishandles newlines in values, 65805 # but we know of no workaround that is simple, portable, and efficient. 65806 # So, we kill variables containing newlines. 65807 # Ultrix sh set writes to stderr and can't be redirected directly, 65808 # and sets the high bit in the cache file unless we assign to the vars. 65809 ( 65810 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 65811 eval ac_val=\$$ac_var 65812 case $ac_val in #( 65813 *${as_nl}*) 65814 case $ac_var in #( 65815 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 65816 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 65817 esac 65818 case $ac_var in #( 65819 _ | IFS | as_nl) ;; #( 65820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 65821 *) { eval $ac_var=; unset $ac_var;} ;; 65822 esac ;; 65823 esac 65824 done 65825 65826 (set) 2>&1 | 65827 case $as_nl`(ac_space=' '; set) 2>&1` in #( 65828 *${as_nl}ac_space=\ *) 65829 # `set' does not quote correctly, so add quotes: double-quote 65830 # substitution turns \\\\ into \\, and sed turns \\ into \. 65831 sed -n \ 65832 "s/'/'\\\\''/g; 65833 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 65834 ;; #( 65835 *) 65836 # `set' quotes correctly as required by POSIX, so do not add quotes. 65837 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 65838 ;; 65839 esac | 65840 sort 65841 ) | 65842 sed ' 65843 /^ac_cv_env_/b end 65844 t clear 65845 :clear 65846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 65847 t end 65848 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 65849 :end' >>confcache 65850 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 65851 if test -w "$cache_file"; then 65852 if test "x$cache_file" != "x/dev/null"; then 65853 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 65854 $as_echo "$as_me: updating cache $cache_file" >&6;} 65855 if test ! -f "$cache_file" || test -h "$cache_file"; then 65856 cat confcache >"$cache_file" 65857 else 65858 case $cache_file in #( 65859 */* | ?:*) 65860 mv -f confcache "$cache_file"$$ && 65861 mv -f "$cache_file"$$ "$cache_file" ;; #( 65862 *) 65863 mv -f confcache "$cache_file" ;; 65864 esac 65865 fi 65866 fi 65867 else 65868 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 65869 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 65870 fi 65871 fi 65872 rm -f confcache 65873 65874 test "x$prefix" = xNONE && prefix=$ac_default_prefix 65875 # Let make expand exec_prefix. 65876 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 65877 65878 # Transform confdefs.h into DEFS. 65879 # Protect against shell expansion while executing Makefile rules. 65880 # Protect against Makefile macro expansion. 65881 # 65882 # If the first sed substitution is executed (which looks for macros that 65883 # take arguments), then branch to the quote section. Otherwise, 65884 # look for a macro that doesn't take arguments. 65885 ac_script=' 65886 :mline 65887 /\\$/{ 65888 N 65889 s,\\\n,, 65890 b mline 65891 } 65892 t clear 65893 :clear 65894 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 65895 t quote 65896 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 65897 t quote 65898 b any 65899 :quote 65900 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 65901 s/\[/\\&/g 65902 s/\]/\\&/g 65903 s/\$/$$/g 65904 H 65905 :any 65906 ${ 65907 g 65908 s/^\n// 65909 s/\n/ /g 65910 p 65911 } 65912 ' 65913 DEFS=`sed -n "$ac_script" confdefs.h` 65914 65915 65916 ac_libobjs= 65917 ac_ltlibobjs= 65918 U= 65919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 65920 # 1. Remove the extension, and $U if already installed. 65921 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 65922 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 65923 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 65924 # will be set to the directory where LIBOBJS objects are built. 65925 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 65926 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 65927 done 65928 LIBOBJS=$ac_libobjs 65929 65930 LTLIBOBJS=$ac_ltlibobjs 65931 65932 65933 65934 : "${CONFIG_STATUS=./config.status}" 65935 ac_write_fail=0 65936 ac_clean_files_save=$ac_clean_files 65937 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 65938 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 65939 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 65940 as_write_fail=0 65941 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 65942 #! $SHELL 65943 # Generated by $as_me. 65944 # Run this file to recreate the current configuration. 65945 # Compiler output produced by configure, useful for debugging 65946 # configure, is in config.log if it exists. 65947 65948 debug=false 65949 ac_cs_recheck=false 65950 ac_cs_silent=false 65951 65952 SHELL=\${CONFIG_SHELL-$SHELL} 65953 export SHELL 65954 _ASEOF 65955 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 65956 ## -------------------- ## 65957 ## M4sh Initialization. ## 65958 ## -------------------- ## 65959 65960 # Be more Bourne compatible 65961 DUALCASE=1; export DUALCASE # for MKS sh 65962 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 65963 emulate sh 65964 NULLCMD=: 65965 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 65966 # is contrary to our usage. Disable this feature. 65967 alias -g '${1+"$@"}'='"$@"' 65968 setopt NO_GLOB_SUBST 65969 else 65970 case `(set -o) 2>/dev/null` in #( 65971 *posix*) : 65972 set -o posix ;; #( 65973 *) : 65974 ;; 65975 esac 65976 fi 65977 65978 65979 as_nl=' 65980 ' 65981 export as_nl 65982 # Printing a long string crashes Solaris 7 /usr/bin/printf. 65983 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 65984 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 65985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 65986 # Prefer a ksh shell builtin over an external printf program on Solaris, 65987 # but without wasting forks for bash or zsh. 65988 if test -z "$BASH_VERSION$ZSH_VERSION" \ 65989 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 65990 as_echo='print -r --' 65991 as_echo_n='print -rn --' 65992 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 65993 as_echo='printf %s\n' 65994 as_echo_n='printf %s' 65995 else 65996 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 65997 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 65998 as_echo_n='/usr/ucb/echo -n' 65999 else 66000 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 66001 as_echo_n_body='eval 66002 arg=$1; 66003 case $arg in #( 66004 *"$as_nl"*) 66005 expr "X$arg" : "X\\(.*\\)$as_nl"; 66006 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66007 esac; 66008 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66009 ' 66010 export as_echo_n_body 66011 as_echo_n='sh -c $as_echo_n_body as_echo' 66012 fi 66013 export as_echo_body 66014 as_echo='sh -c $as_echo_body as_echo' 66015 fi 66016 66017 # The user is always right. 66018 if test "${PATH_SEPARATOR+set}" != set; then 66019 PATH_SEPARATOR=: 66020 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 66021 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 66022 PATH_SEPARATOR=';' 66023 } 66024 fi 66025 66026 66027 # IFS 66028 # We need space, tab and new line, in precisely that order. Quoting is 66029 # there to prevent editors from complaining about space-tab. 66030 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 66031 # splitting by setting IFS to empty value.) 66032 IFS=" "" $as_nl" 66033 66034 # Find who we are. Look in the path if we contain no directory separator. 66035 as_myself= 66036 case $0 in #(( 66037 *[\\/]* ) as_myself=$0 ;; 66038 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66039 for as_dir in $PATH 66040 do 66041 IFS=$as_save_IFS 66042 test -z "$as_dir" && as_dir=. 66043 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 66044 done 66045 IFS=$as_save_IFS 66046 66047 ;; 66048 esac 66049 # We did not find ourselves, most probably we were run as `sh COMMAND' 66050 # in which case we are not to be found in the path. 66051 if test "x$as_myself" = x; then 66052 as_myself=$0 66053 fi 66054 if test ! -f "$as_myself"; then 66055 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 66056 exit 1 66057 fi 66058 66059 # Unset variables that we do not need and which cause bugs (e.g. in 66060 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 66061 # suppresses any "Segmentation fault" message there. '((' could 66062 # trigger a bug in pdksh 5.2.14. 66063 for as_var in BASH_ENV ENV MAIL MAILPATH 66064 do eval test x\${$as_var+set} = xset \ 66065 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 66066 done 66067 PS1='$ ' 66068 PS2='> ' 66069 PS4='+ ' 66070 66071 # NLS nuisances. 66072 LC_ALL=C 66073 export LC_ALL 66074 LANGUAGE=C 66075 export LANGUAGE 66076 66077 # CDPATH. 66078 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 66079 66080 66081 # as_fn_error STATUS ERROR [LINENO LOG_FD] 66082 # ---------------------------------------- 66083 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 66084 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 66085 # script with STATUS, using 1 if that was 0. 66086 as_fn_error () 66087 { 66088 as_status=$1; test $as_status -eq 0 && as_status=1 66089 if test "$4"; then 66090 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 66091 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 66092 fi 66093 $as_echo "$as_me: error: $2" >&2 66094 as_fn_exit $as_status 66095 } # as_fn_error 66096 66097 66098 # as_fn_set_status STATUS 66099 # ----------------------- 66100 # Set $? to STATUS, without forking. 66101 as_fn_set_status () 66102 { 66103 return $1 66104 } # as_fn_set_status 66105 66106 # as_fn_exit STATUS 66107 # ----------------- 66108 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 66109 as_fn_exit () 66110 { 66111 set +e 66112 as_fn_set_status $1 66113 exit $1 66114 } # as_fn_exit 66115 66116 # as_fn_unset VAR 66117 # --------------- 66118 # Portably unset VAR. 66119 as_fn_unset () 66120 { 66121 { eval $1=; unset $1;} 66122 } 66123 as_unset=as_fn_unset 66124 # as_fn_append VAR VALUE 66125 # ---------------------- 66126 # Append the text in VALUE to the end of the definition contained in VAR. Take 66127 # advantage of any shell optimizations that allow amortized linear growth over 66128 # repeated appends, instead of the typical quadratic growth present in naive 66129 # implementations. 66130 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 66131 eval 'as_fn_append () 66132 { 66133 eval $1+=\$2 66134 }' 66135 else 66136 as_fn_append () 66137 { 66138 eval $1=\$$1\$2 66139 } 66140 fi # as_fn_append 66141 66142 # as_fn_arith ARG... 66143 # ------------------ 66144 # Perform arithmetic evaluation on the ARGs, and store the result in the 66145 # global $as_val. Take advantage of shells that can avoid forks. The arguments 66146 # must be portable across $(()) and expr. 66147 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 66148 eval 'as_fn_arith () 66149 { 66150 as_val=$(( $* )) 66151 }' 66152 else 66153 as_fn_arith () 66154 { 66155 as_val=`expr "$@" || test $? -eq 1` 66156 } 66157 fi # as_fn_arith 66158 66159 66160 if expr a : '\(a\)' >/dev/null 2>&1 && 66161 test "X`expr 00001 : '.*\(...\)'`" = X001; then 66162 as_expr=expr 66163 else 66164 as_expr=false 66165 fi 66166 66167 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 66168 as_basename=basename 66169 else 66170 as_basename=false 66171 fi 66172 66173 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 66174 as_dirname=dirname 66175 else 66176 as_dirname=false 66177 fi 66178 66179 as_me=`$as_basename -- "$0" || 66180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 66181 X"$0" : 'X\(//\)$' \| \ 66182 X"$0" : 'X\(/\)' \| . 2>/dev/null || 66183 $as_echo X/"$0" | 66184 sed '/^.*\/\([^/][^/]*\)\/*$/{ 66185 s//\1/ 66186 q 66187 } 66188 /^X\/\(\/\/\)$/{ 66189 s//\1/ 66190 q 66191 } 66192 /^X\/\(\/\).*/{ 66193 s//\1/ 66194 q 66195 } 66196 s/.*/./; q'` 66197 66198 # Avoid depending upon Character Ranges. 66199 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 66200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 66201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 66202 as_cr_digits='0123456789' 66203 as_cr_alnum=$as_cr_Letters$as_cr_digits 66204 66205 ECHO_C= ECHO_N= ECHO_T= 66206 case `echo -n x` in #((((( 66207 -n*) 66208 case `echo 'xy\c'` in 66209 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 66210 xy) ECHO_C='\c';; 66211 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 66212 ECHO_T=' ';; 66213 esac;; 66214 *) 66215 ECHO_N='-n';; 66216 esac 66217 66218 rm -f conf$$ conf$$.exe conf$$.file 66219 if test -d conf$$.dir; then 66220 rm -f conf$$.dir/conf$$.file 66221 else 66222 rm -f conf$$.dir 66223 mkdir conf$$.dir 2>/dev/null 66224 fi 66225 if (echo >conf$$.file) 2>/dev/null; then 66226 if ln -s conf$$.file conf$$ 2>/dev/null; then 66227 as_ln_s='ln -s' 66228 # ... but there are two gotchas: 66229 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 66230 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 66231 # In both cases, we have to default to `cp -pR'. 66232 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 66233 as_ln_s='cp -pR' 66234 elif ln conf$$.file conf$$ 2>/dev/null; then 66235 as_ln_s=ln 66236 else 66237 as_ln_s='cp -pR' 66238 fi 66239 else 66240 as_ln_s='cp -pR' 66241 fi 66242 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 66243 rmdir conf$$.dir 2>/dev/null 66244 66245 66246 # as_fn_mkdir_p 66247 # ------------- 66248 # Create "$as_dir" as a directory, including parents if necessary. 66249 as_fn_mkdir_p () 66250 { 66251 66252 case $as_dir in #( 66253 -*) as_dir=./$as_dir;; 66254 esac 66255 test -d "$as_dir" || eval $as_mkdir_p || { 66256 as_dirs= 66257 while :; do 66258 case $as_dir in #( 66259 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 66260 *) as_qdir=$as_dir;; 66261 esac 66262 as_dirs="'$as_qdir' $as_dirs" 66263 as_dir=`$as_dirname -- "$as_dir" || 66264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66265 X"$as_dir" : 'X\(//\)[^/]' \| \ 66266 X"$as_dir" : 'X\(//\)$' \| \ 66267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 66268 $as_echo X"$as_dir" | 66269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 66270 s//\1/ 66271 q 66272 } 66273 /^X\(\/\/\)[^/].*/{ 66274 s//\1/ 66275 q 66276 } 66277 /^X\(\/\/\)$/{ 66278 s//\1/ 66279 q 66280 } 66281 /^X\(\/\).*/{ 66282 s//\1/ 66283 q 66284 } 66285 s/.*/./; q'` 66286 test -d "$as_dir" && break 66287 done 66288 test -z "$as_dirs" || eval "mkdir $as_dirs" 66289 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 66290 66291 66292 } # as_fn_mkdir_p 66293 if mkdir -p . 2>/dev/null; then 66294 as_mkdir_p='mkdir -p "$as_dir"' 66295 else 66296 test -d ./-p && rmdir ./-p 66297 as_mkdir_p=false 66298 fi 66299 66300 66301 # as_fn_executable_p FILE 66302 # ----------------------- 66303 # Test if FILE is an executable regular file. 66304 as_fn_executable_p () 66305 { 66306 test -f "$1" && test -x "$1" 66307 } # as_fn_executable_p 66308 as_test_x='test -x' 66309 as_executable_p=as_fn_executable_p 66310 66311 # Sed expression to map a string onto a valid CPP name. 66312 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 66313 66314 # Sed expression to map a string onto a valid variable name. 66315 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 66316 66317 66318 exec 6>&1 66319 ## ----------------------------------- ## 66320 ## Main body of $CONFIG_STATUS script. ## 66321 ## ----------------------------------- ## 66322 _ASEOF 66323 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 66324 66325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66326 # Save the log message, to keep $0 and so on meaningful, and to 66327 # report actual input values of CONFIG_FILES etc. instead of their 66328 # values after options handling. 66329 ac_log=" 66330 This file was extended by OpenJDK $as_me jdk9, which was 66331 generated by GNU Autoconf 2.69. Invocation command line was 66332 66333 CONFIG_FILES = $CONFIG_FILES 66334 CONFIG_HEADERS = $CONFIG_HEADERS 66335 CONFIG_LINKS = $CONFIG_LINKS 66336 CONFIG_COMMANDS = $CONFIG_COMMANDS 66337 $ $0 $@ 66338 66339 on `(hostname || uname -n) 2>/dev/null | sed 1q` 66340 " 66341 66342 _ACEOF 66343 66344 case $ac_config_files in *" 66345 "*) set x $ac_config_files; shift; ac_config_files=$*;; 66346 esac 66347 66348 66349 66350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66351 # Files that config.status was made for. 66352 config_files="$ac_config_files" 66353 66354 _ACEOF 66355 66356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66357 ac_cs_usage="\ 66358 \`$as_me' instantiates files and other configuration actions 66359 from templates according to the current configuration. Unless the files 66360 and actions are specified as TAGs, all are instantiated by default. 66361 66362 Usage: $0 [OPTION]... [TAG]... 66363 66364 -h, --help print this help, then exit 66365 -V, --version print version number and configuration settings, then exit 66366 --config print configuration, then exit 66367 -q, --quiet, --silent 66368 do not print progress messages 66369 -d, --debug don't remove temporary files 66370 --recheck update $as_me by reconfiguring in the same conditions 66371 --file=FILE[:TEMPLATE] 66372 instantiate the configuration file FILE 66373 66374 Configuration files: 66375 $config_files 66376 66377 Report bugs to <build-dev@openjdk.java.net>. 66378 OpenJDK home page: <http://openjdk.java.net>." 66379 66380 _ACEOF 66381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66382 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 66383 ac_cs_version="\\ 66384 OpenJDK config.status jdk9 66385 configured by $0, generated by GNU Autoconf 2.69, 66386 with options \\"\$ac_cs_config\\" 66387 66388 Copyright (C) 2012 Free Software Foundation, Inc. 66389 This config.status script is free software; the Free Software Foundation 66390 gives unlimited permission to copy, distribute and modify it." 66391 66392 ac_pwd='$ac_pwd' 66393 srcdir='$srcdir' 66394 AWK='$AWK' 66395 test -n "\$AWK" || AWK=awk 66396 _ACEOF 66397 66398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66399 # The default lists apply if the user does not specify any file. 66400 ac_need_defaults=: 66401 while test $# != 0 66402 do 66403 case $1 in 66404 --*=?*) 66405 ac_option=`expr "X$1" : 'X\([^=]*\)='` 66406 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 66407 ac_shift=: 66408 ;; 66409 --*=) 66410 ac_option=`expr "X$1" : 'X\([^=]*\)='` 66411 ac_optarg= 66412 ac_shift=: 66413 ;; 66414 *) 66415 ac_option=$1 66416 ac_optarg=$2 66417 ac_shift=shift 66418 ;; 66419 esac 66420 66421 case $ac_option in 66422 # Handling of the options. 66423 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 66424 ac_cs_recheck=: ;; 66425 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 66426 $as_echo "$ac_cs_version"; exit ;; 66427 --config | --confi | --conf | --con | --co | --c ) 66428 $as_echo "$ac_cs_config"; exit ;; 66429 --debug | --debu | --deb | --de | --d | -d ) 66430 debug=: ;; 66431 --file | --fil | --fi | --f ) 66432 $ac_shift 66433 case $ac_optarg in 66434 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 66435 '') as_fn_error $? "missing file argument" ;; 66436 esac 66437 as_fn_append CONFIG_FILES " '$ac_optarg'" 66438 ac_need_defaults=false;; 66439 --he | --h | --help | --hel | -h ) 66440 $as_echo "$ac_cs_usage"; exit ;; 66441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 66442 | -silent | --silent | --silen | --sile | --sil | --si | --s) 66443 ac_cs_silent=: ;; 66444 66445 # This is an error. 66446 -*) as_fn_error $? "unrecognized option: \`$1' 66447 Try \`$0 --help' for more information." ;; 66448 66449 *) as_fn_append ac_config_targets " $1" 66450 ac_need_defaults=false ;; 66451 66452 esac 66453 shift 66454 done 66455 66456 ac_configure_extra_args= 66457 66458 if $ac_cs_silent; then 66459 exec 6>/dev/null 66460 ac_configure_extra_args="$ac_configure_extra_args --silent" 66461 fi 66462 66463 _ACEOF 66464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66465 if \$ac_cs_recheck; then 66466 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 66467 shift 66468 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 66469 CONFIG_SHELL='$SHELL' 66470 export CONFIG_SHELL 66471 exec "\$@" 66472 fi 66473 66474 _ACEOF 66475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66476 exec 5>>config.log 66477 { 66478 echo 66479 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 66480 ## Running $as_me. ## 66481 _ASBOX 66482 $as_echo "$ac_log" 66483 } >&5 66484 66485 _ACEOF 66486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66487 _ACEOF 66488 66489 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66490 66491 # Handling of arguments. 66492 for ac_config_target in $ac_config_targets 66493 do 66494 case $ac_config_target in 66495 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 66496 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 66497 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 66498 "$OUTPUT_ROOT/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 66499 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 66500 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 66501 66502 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 66503 esac 66504 done 66505 66506 66507 # If the user did not use the arguments to specify the items to instantiate, 66508 # then the envvar interface is used. Set only those that are not. 66509 # We use the long form for the default assignment because of an extremely 66510 # bizarre bug on SunOS 4.1.3. 66511 if $ac_need_defaults; then 66512 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 66513 fi 66514 66515 # Have a temporary directory for convenience. Make it in the build tree 66516 # simply because there is no reason against having it here, and in addition, 66517 # creating and moving files from /tmp can sometimes cause problems. 66518 # Hook for its removal unless debugging. 66519 # Note that there is a small window in which the directory will not be cleaned: 66520 # after its creation but before its name has been assigned to `$tmp'. 66521 $debug || 66522 { 66523 tmp= ac_tmp= 66524 trap 'exit_status=$? 66525 : "${ac_tmp:=$tmp}" 66526 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 66527 ' 0 66528 trap 'as_fn_exit 1' 1 2 13 15 66529 } 66530 # Create a (secure) tmp directory for tmp files. 66531 66532 { 66533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 66534 test -d "$tmp" 66535 } || 66536 { 66537 tmp=./conf$$-$RANDOM 66538 (umask 077 && mkdir "$tmp") 66539 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 66540 ac_tmp=$tmp 66541 66542 # Set up the scripts for CONFIG_FILES section. 66543 # No need to generate them if there are no CONFIG_FILES. 66544 # This happens for instance with `./config.status config.h'. 66545 if test -n "$CONFIG_FILES"; then 66546 66547 66548 ac_cr=`echo X | tr X '\015'` 66549 # On cygwin, bash can eat \r inside `` if the user requested igncr. 66550 # But we know of no other shell where ac_cr would be empty at this 66551 # point, so we can use a bashism as a fallback. 66552 if test "x$ac_cr" = x; then 66553 eval ac_cr=\$\'\\r\' 66554 fi 66555 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 66556 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 66557 ac_cs_awk_cr='\\r' 66558 else 66559 ac_cs_awk_cr=$ac_cr 66560 fi 66561 66562 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 66563 _ACEOF 66564 66565 66566 { 66567 echo "cat >conf$$subs.awk <<_ACEOF" && 66568 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 66569 echo "_ACEOF" 66570 } >conf$$subs.sh || 66571 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66572 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 66573 ac_delim='%!_!# ' 66574 for ac_last_try in false false false false false :; do 66575 . ./conf$$subs.sh || 66576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66577 66578 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 66579 if test $ac_delim_n = $ac_delim_num; then 66580 break 66581 elif $ac_last_try; then 66582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 66583 else 66584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 66585 fi 66586 done 66587 rm -f conf$$subs.sh 66588 66589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66590 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 66591 _ACEOF 66592 sed -n ' 66593 h 66594 s/^/S["/; s/!.*/"]=/ 66595 p 66596 g 66597 s/^[^!]*!// 66598 :repl 66599 t repl 66600 s/'"$ac_delim"'$// 66601 t delim 66602 :nl 66603 h 66604 s/\(.\{148\}\)..*/\1/ 66605 t more1 66606 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 66607 p 66608 n 66609 b repl 66610 :more1 66611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 66612 p 66613 g 66614 s/.\{148\}// 66615 t nl 66616 :delim 66617 h 66618 s/\(.\{148\}\)..*/\1/ 66619 t more2 66620 s/["\\]/\\&/g; s/^/"/; s/$/"/ 66621 p 66622 b 66623 :more2 66624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 66625 p 66626 g 66627 s/.\{148\}// 66628 t delim 66629 ' <conf$$subs.awk | sed ' 66630 /^[^""]/{ 66631 N 66632 s/\n// 66633 } 66634 ' >>$CONFIG_STATUS || ac_write_fail=1 66635 rm -f conf$$subs.awk 66636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66637 _ACAWK 66638 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 66639 for (key in S) S_is_set[key] = 1 66640 FS = "" 66641 66642 } 66643 { 66644 line = $ 0 66645 nfields = split(line, field, "@") 66646 substed = 0 66647 len = length(field[1]) 66648 for (i = 2; i < nfields; i++) { 66649 key = field[i] 66650 keylen = length(key) 66651 if (S_is_set[key]) { 66652 value = S[key] 66653 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 66654 len += length(value) + length(field[++i]) 66655 substed = 1 66656 } else 66657 len += 1 + keylen 66658 } 66659 66660 print line 66661 } 66662 66663 _ACAWK 66664 _ACEOF 66665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66666 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 66667 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 66668 else 66669 cat 66670 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 66671 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 66672 _ACEOF 66673 66674 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 66675 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 66676 # trailing colons and then remove the whole line if VPATH becomes empty 66677 # (actually we leave an empty line to preserve line numbers). 66678 if test "x$srcdir" = x.; then 66679 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 66680 h 66681 s/// 66682 s/^/:/ 66683 s/[ ]*$/:/ 66684 s/:\$(srcdir):/:/g 66685 s/:\${srcdir}:/:/g 66686 s/:@srcdir@:/:/g 66687 s/^:*// 66688 s/:*$// 66689 x 66690 s/\(=[ ]*\).*/\1/ 66691 G 66692 s/\n// 66693 s/^[^=]*=[ ]*$// 66694 }' 66695 fi 66696 66697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66698 fi # test -n "$CONFIG_FILES" 66699 66700 66701 eval set X " :F $CONFIG_FILES " 66702 shift 66703 for ac_tag 66704 do 66705 case $ac_tag in 66706 :[FHLC]) ac_mode=$ac_tag; continue;; 66707 esac 66708 case $ac_mode$ac_tag in 66709 :[FHL]*:*);; 66710 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 66711 :[FH]-) ac_tag=-:-;; 66712 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 66713 esac 66714 ac_save_IFS=$IFS 66715 IFS=: 66716 set x $ac_tag 66717 IFS=$ac_save_IFS 66718 shift 66719 ac_file=$1 66720 shift 66721 66722 case $ac_mode in 66723 :L) ac_source=$1;; 66724 :[FH]) 66725 ac_file_inputs= 66726 for ac_f 66727 do 66728 case $ac_f in 66729 -) ac_f="$ac_tmp/stdin";; 66730 *) # Look for the file first in the build tree, then in the source tree 66731 # (if the path is not absolute). The absolute path cannot be DOS-style, 66732 # because $ac_f cannot contain `:'. 66733 test -f "$ac_f" || 66734 case $ac_f in 66735 [\\/$]*) false;; 66736 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 66737 esac || 66738 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 66739 esac 66740 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 66741 as_fn_append ac_file_inputs " '$ac_f'" 66742 done 66743 66744 # Let's still pretend it is `configure' which instantiates (i.e., don't 66745 # use $as_me), people would be surprised to read: 66746 # /* config.h. Generated by config.status. */ 66747 configure_input='Generated from '` 66748 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 66749 `' by configure.' 66750 if test x"$ac_file" != x-; then 66751 configure_input="$ac_file. $configure_input" 66752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 66753 $as_echo "$as_me: creating $ac_file" >&6;} 66754 fi 66755 # Neutralize special characters interpreted by sed in replacement strings. 66756 case $configure_input in #( 66757 *\&* | *\|* | *\\* ) 66758 ac_sed_conf_input=`$as_echo "$configure_input" | 66759 sed 's/[\\\\&|]/\\\\&/g'`;; #( 66760 *) ac_sed_conf_input=$configure_input;; 66761 esac 66762 66763 case $ac_tag in 66764 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 66765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 66766 esac 66767 ;; 66768 esac 66769 66770 ac_dir=`$as_dirname -- "$ac_file" || 66771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 66772 X"$ac_file" : 'X\(//\)[^/]' \| \ 66773 X"$ac_file" : 'X\(//\)$' \| \ 66774 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 66775 $as_echo X"$ac_file" | 66776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 66777 s//\1/ 66778 q 66779 } 66780 /^X\(\/\/\)[^/].*/{ 66781 s//\1/ 66782 q 66783 } 66784 /^X\(\/\/\)$/{ 66785 s//\1/ 66786 q 66787 } 66788 /^X\(\/\).*/{ 66789 s//\1/ 66790 q 66791 } 66792 s/.*/./; q'` 66793 as_dir="$ac_dir"; as_fn_mkdir_p 66794 ac_builddir=. 66795 66796 case "$ac_dir" in 66797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 66798 *) 66799 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 66800 # A ".." for each directory in $ac_dir_suffix. 66801 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 66802 case $ac_top_builddir_sub in 66803 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 66804 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 66805 esac ;; 66806 esac 66807 ac_abs_top_builddir=$ac_pwd 66808 ac_abs_builddir=$ac_pwd$ac_dir_suffix 66809 # for backward compatibility: 66810 ac_top_builddir=$ac_top_build_prefix 66811 66812 case $srcdir in 66813 .) # We are building in place. 66814 ac_srcdir=. 66815 ac_top_srcdir=$ac_top_builddir_sub 66816 ac_abs_top_srcdir=$ac_pwd ;; 66817 [\\/]* | ?:[\\/]* ) # Absolute name. 66818 ac_srcdir=$srcdir$ac_dir_suffix; 66819 ac_top_srcdir=$srcdir 66820 ac_abs_top_srcdir=$srcdir ;; 66821 *) # Relative name. 66822 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 66823 ac_top_srcdir=$ac_top_build_prefix$srcdir 66824 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 66825 esac 66826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 66827 66828 66829 case $ac_mode in 66830 :F) 66831 # 66832 # CONFIG_FILE 66833 # 66834 66835 _ACEOF 66836 66837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66838 # If the template does not know about datarootdir, expand it. 66839 # FIXME: This hack should be removed a few years after 2.60. 66840 ac_datarootdir_hack=; ac_datarootdir_seen= 66841 ac_sed_dataroot=' 66842 /datarootdir/ { 66843 p 66844 q 66845 } 66846 /@datadir@/p 66847 /@docdir@/p 66848 /@infodir@/p 66849 /@localedir@/p 66850 /@mandir@/p' 66851 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 66852 *datarootdir*) ac_datarootdir_seen=yes;; 66853 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 66854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 66855 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 66856 _ACEOF 66857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66858 ac_datarootdir_hack=' 66859 s&@datadir@&$datadir&g 66860 s&@docdir@&$docdir&g 66861 s&@infodir@&$infodir&g 66862 s&@localedir@&$localedir&g 66863 s&@mandir@&$mandir&g 66864 s&\\\${datarootdir}&$datarootdir&g' ;; 66865 esac 66866 _ACEOF 66867 66868 # Neutralize VPATH when `$srcdir' = `.'. 66869 # Shell code in configure.ac might set extrasub. 66870 # FIXME: do we really want to maintain this feature? 66871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 66872 ac_sed_extra="$ac_vpsub 66873 $extrasub 66874 _ACEOF 66875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 66876 :t 66877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 66878 s|@configure_input@|$ac_sed_conf_input|;t t 66879 s&@top_builddir@&$ac_top_builddir_sub&;t t 66880 s&@top_build_prefix@&$ac_top_build_prefix&;t t 66881 s&@srcdir@&$ac_srcdir&;t t 66882 s&@abs_srcdir@&$ac_abs_srcdir&;t t 66883 s&@top_srcdir@&$ac_top_srcdir&;t t 66884 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 66885 s&@builddir@&$ac_builddir&;t t 66886 s&@abs_builddir@&$ac_abs_builddir&;t t 66887 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 66888 $ac_datarootdir_hack 66889 " 66890 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 66891 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 66892 66893 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 66894 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 66895 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 66896 "$ac_tmp/out"`; test -z "$ac_out"; } && 66897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 66898 which seems to be undefined. Please make sure it is defined" >&5 66899 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 66900 which seems to be undefined. Please make sure it is defined" >&2;} 66901 66902 rm -f "$ac_tmp/stdin" 66903 case $ac_file in 66904 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 66905 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 66906 esac \ 66907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 66908 ;; 66909 66910 66911 66912 esac 66913 66914 done # for ac_tag 66915 66916 66917 as_fn_exit 0 66918 _ACEOF 66919 ac_clean_files=$ac_clean_files_save 66920 66921 test $ac_write_fail = 0 || 66922 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 66923 66924 66925 # configure is writing to config.log, and then calls config.status. 66926 # config.status does its own redirection, appending to config.log. 66927 # Unfortunately, on DOS this fails, as config.log is still kept open 66928 # by configure, so config.status won't be able to write to it; its 66929 # output is simply discarded. So we exec the FD to /dev/null, 66930 # effectively closing config.log, so it can be properly (re)opened and 66931 # appended to by config.status. When coming back to configure, we 66932 # need to make the FD available again. 66933 if test "$no_create" != yes; then 66934 ac_cs_success=: 66935 ac_config_status_args= 66936 test "$silent" = yes && 66937 ac_config_status_args="$ac_config_status_args --quiet" 66938 exec 5>/dev/null 66939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 66940 exec 5>>config.log 66941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 66942 # would make configure fail if this is the last instruction. 66943 $ac_cs_success || as_fn_exit 1 66944 fi 66945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 66946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 66947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 66948 fi 66949 66950 66951 # After AC_OUTPUT, we need to do final work 66952 66953 66954 # Try to move config.log (generated by autoconf) to the configure-support directory. 66955 if test -e ./config.log; then 66956 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 66957 fi 66958 66959 # Rotate our log file (configure.log) 66960 if test -e "$OUTPUT_ROOT/configure.log.old"; then 66961 $RM -f "$OUTPUT_ROOT/configure.log.old" 66962 fi 66963 if test -e "$OUTPUT_ROOT/configure.log"; then 66964 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 66965 fi 66966 66967 # Move configure.log from current directory to the build output root 66968 if test -e ./configure.log; then 66969 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 66970 fi 66971 66972 # Make the compare script executable 66973 $CHMOD +x $OUTPUT_ROOT/compare.sh 66974 66975 66976 # Finally output some useful information to the user 66977 66978 # Finally output some useful information to the user 66979 66980 printf "\n" 66981 printf "====================================================\n" 66982 if test "x$no_create" != "xyes"; then 66983 if test "x$IS_RECONFIGURE" != "xyes"; then 66984 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 66985 else 66986 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 66987 fi 66988 else 66989 if test "x$IS_RECONFIGURE" != "xyes"; then 66990 printf "A configuration has been successfully checked but not created\n" 66991 else 66992 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 66993 fi 66994 fi 66995 if test "x$CONFIGURE_COMMAND_LINE" != x; then 66996 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 66997 else 66998 printf "using default settings.\n" 66999 fi 67000 67001 printf "\n" 67002 printf "Configuration summary:\n" 67003 printf "* Debug level: $DEBUG_LEVEL\n" 67004 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 67005 printf "* JDK variant: $JDK_VARIANT\n" 67006 printf "* JVM variants: $JVM_VARIANTS\n" 67007 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 67008 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 67009 67010 printf "\n" 67011 printf "Tools summary:\n" 67012 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 67013 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 67014 fi 67015 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 67016 if test "x$TOOLCHAIN_VERSION" != "x"; then 67017 print_version=" $TOOLCHAIN_VERSION" 67018 fi 67019 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 67020 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 67021 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 67022 67023 printf "\n" 67024 printf "Build performance summary:\n" 67025 printf "* Cores to use: $JOBS\n" 67026 printf "* Memory limit: $MEMORY_SIZE MB\n" 67027 if test "x$CCACHE_STATUS" != "x"; then 67028 printf "* ccache status: $CCACHE_STATUS\n" 67029 fi 67030 printf "\n" 67031 67032 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 67033 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 67034 printf "will result in longer build times.\n" 67035 printf "\n" 67036 fi 67037 67038 if test "x$FOUND_ALT_VARIABLES" != "x"; then 67039 printf "WARNING: You have old-style ALT_ environment variables set.\n" 67040 printf "These are not respected, and will be ignored. It is recommended\n" 67041 printf "that you clean your environment. The following variables are set:\n" 67042 printf "$FOUND_ALT_VARIABLES\n" 67043 printf "\n" 67044 fi 67045 67046 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 67047 printf "WARNING: Your build output directory is not on a local disk.\n" 67048 printf "This will severely degrade build performance!\n" 67049 printf "It is recommended that you create an output directory on a local disk,\n" 67050 printf "and run the configure script again from that directory.\n" 67051 printf "\n" 67052 fi 67053 67054 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 67055 printf "WARNING: The result of this configuration has overridden an older\n" 67056 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 67057 printf "proper build. Failure to do so might result in strange build problems.\n" 67058 printf "\n" 67059 fi 67060 67061 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 67062 printf "WARNING: The result of this configuration was not saved.\n" 67063 printf "You should run without '--no-create | -n' to create the configuration.\n" 67064 printf "\n" 67065 fi 67066 67067 67068 67069 # Locate config.log. 67070 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 67071 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 67072 elif test -e "./config.log"; then 67073 CONFIG_LOG_PATH="." 67074 fi 67075 67076 if test -e "$CONFIG_LOG_PATH/config.log"; then 67077 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 67078 if test $? -eq 0; then 67079 printf "The following warnings were produced. Repeated here for convenience:\n" 67080 # We must quote sed expression (using []) to stop m4 from eating the []. 67081 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 67082 printf "\n" 67083 fi 67084 fi 67085