1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CFLAGS_CCACHE 633 CCACHE 634 USE_PRECOMPILED_HEADER 635 BUILD_ICECC 636 ICECC 637 ICECC_WRAPPER 638 ICECC_CREATE_ENV 639 ICECC_CMD 640 ENABLE_JAVAC_SERVER 641 ENABLE_SJAVAC 642 SJAVAC_SERVER_JAVA_FLAGS 643 SJAVAC_SERVER_JAVA 644 JAVA_TOOL_FLAGS_SMALL 645 JAVA_FLAGS_SMALL 646 JAVA_FLAGS_JAVAC 647 BOOTCYCLE_JVM_ARGS_BIG 648 JAVA_FLAGS_BIG 649 JAVA_FLAGS 650 TEST_JOBS 651 JOBS 652 MEMORY_SIZE 653 NUM_CORES 654 ENABLE_GENERATE_CLASSLIST 655 BUILD_FAILURE_HANDLER 656 ENABLE_INTREE_EC 657 VALID_JVM_FEATURES 658 JVM_FEATURES_custom 659 JVM_FEATURES_zero 660 JVM_FEATURES_minimal 661 JVM_FEATURES_core 662 JVM_FEATURES_client 663 JVM_FEATURES_server 664 INCLUDE_GRAAL 665 STLPORT_LIB 666 LIBZIP_CAN_USE_MMAP 667 LIBDL 668 LIBM 669 USE_EXTERNAL_LCMS 670 LCMS_LIBS 671 LCMS_CFLAGS 672 USE_EXTERNAL_LIBZ 673 USE_EXTERNAL_LIBPNG 674 PNG_LIBS 675 PNG_CFLAGS 676 USE_EXTERNAL_LIBGIF 677 USE_EXTERNAL_LIBJPEG 678 LIBFFI_LIB_FILE 679 ENABLE_LIBFFI_BUNDLING 680 LIBFFI_LIBS 681 LIBFFI_CFLAGS 682 ALSA_LIBS 683 ALSA_CFLAGS 684 FREETYPE_LICENSE 685 FREETYPE_BUNDLE_LIB_PATH 686 FREETYPE_LIBS 687 FREETYPE_CFLAGS 688 FONTCONFIG_CFLAGS 689 CUPS_CFLAGS 690 X_EXTRA_LIBS 691 X_LIBS 692 X_PRE_LIBS 693 X_CFLAGS 694 XMKMF 695 MSVCP_DLL 696 MSVCR_DLL 697 LIBCXX 698 FIXPATH_DETACH_FLAG 699 FIXPATH 700 BUILD_GTEST 701 ENABLE_CDS 702 ENABLE_AOT 703 ASAN_ENABLED 704 GCOV_ENABLED 705 ZIP_EXTERNAL_DEBUG_SYMBOLS 706 COPY_DEBUG_SYMBOLS 707 COMPILE_WITH_DEBUG_SYMBOLS 708 CFLAGS_WARNINGS_ARE_ERRORS 709 BUILD_CC_DISABLE_WARNING_PREFIX 710 DISABLE_WARNING_PREFIX 711 WARNINGS_AS_ERRORS 712 COMPILER_SUPPORTS_TARGET_BITS_FLAG 713 LDFLAGS_TESTEXE 714 LDFLAGS_TESTLIB 715 CXXFLAGS_TESTEXE 716 CXXFLAGS_TESTLIB 717 CFLAGS_TESTEXE 718 CFLAGS_TESTLIB 719 OPENJDK_BUILD_JVM_LIBS 720 OPENJDK_BUILD_JVM_ASFLAGS 721 OPENJDK_BUILD_JVM_LDFLAGS 722 OPENJDK_BUILD_JVM_CFLAGS 723 OPENJDK_BUILD_LDFLAGS_NO_EXEC_STACK 724 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 725 OPENJDK_BUILD_LDFLAGS_CXX_JDK 726 OPENJDK_BUILD_JDKEXE_LIBS 727 OPENJDK_BUILD_JDKLIB_LIBS 728 OPENJDK_BUILD_LDFLAGS_JDKEXE 729 OPENJDK_BUILD_LDFLAGS_JDKLIB 730 OPENJDK_BUILD_CXXFLAGS_JDKEXE 731 OPENJDK_BUILD_CXXFLAGS_JDKLIB 732 OPENJDK_BUILD_CFLAGS_JDKEXE 733 OPENJDK_BUILD_CFLAGS_JDKLIB 734 OPENJDK_BUILD_CXXSTD_CXXFLAG 735 JVM_LIBS 736 JVM_ASFLAGS 737 JVM_LDFLAGS 738 JVM_CFLAGS 739 LDFLAGS_NO_EXEC_STACK 740 LDFLAGS_HASH_STYLE 741 LDFLAGS_CXX_JDK 742 JDKEXE_LIBS 743 JDKLIB_LIBS 744 LDFLAGS_JDKEXE 745 LDFLAGS_JDKLIB 746 CXXFLAGS_JDKEXE 747 CXXFLAGS_JDKLIB 748 CFLAGS_JDKEXE 749 CFLAGS_JDKLIB 750 MACOSX_VERSION_MAX 751 MACOSX_VERSION_MIN 752 CXXSTD_CXXFLAG 753 JDK_ARCH_ABI_PROP_NAME 754 CXX_O_FLAG_SIZE 755 CXX_O_FLAG_NONE 756 CXX_O_FLAG_DEBUG 757 CXX_O_FLAG_NORM 758 CXX_O_FLAG_HI 759 CXX_O_FLAG_HIGHEST 760 CXX_O_FLAG_HIGHEST_JVM 761 C_O_FLAG_SIZE 762 C_O_FLAG_NONE 763 C_O_FLAG_DEBUG 764 C_O_FLAG_NORM 765 C_O_FLAG_HI 766 C_O_FLAG_HIGHEST 767 C_O_FLAG_HIGHEST_JVM 768 JVM_CFLAGS_SYMBOLS 769 CXXFLAGS_DEBUG_SYMBOLS 770 CFLAGS_DEBUG_SYMBOLS 771 CXX_FLAG_DEPS 772 C_FLAG_DEPS 773 SHARED_LIBRARY_FLAGS 774 SET_SHARED_LIBRARY_MAPFILE 775 SET_SHARED_LIBRARY_NAME 776 SET_SHARED_LIBRARY_ORIGIN 777 SET_EXECUTABLE_ORIGIN 778 CXX_FLAG_REORDER 779 C_FLAG_REORDER 780 JVM_RCFLAGS 781 RC_FLAGS 782 AR_OUT_OPTION 783 LD_OUT_OPTION 784 EXE_OUT_OPTION 785 CC_OUT_OPTION 786 STRIPFLAGS 787 ARFLAGS 788 COMPILER_BINDCMD_FILE_FLAG 789 COMPILER_COMMAND_FILE_FLAG 790 COMPILER_TARGET_BITS_FLAG 791 JIB_JAR 792 JT_HOME 793 JTREGEXE 794 HOTSPOT_TOOLCHAIN_TYPE 795 USING_BROKEN_SUSE_LD 796 PACKAGE_PATH 797 BUILD_AS 798 BUILD_LDCXX 799 BUILD_LD 800 BUILD_STRIP 801 BUILD_OBJCOPY 802 BUILD_AR 803 BUILD_NM 804 BUILD_CXX 805 BUILD_CC 806 BUILD_SYSROOT_LDFLAGS 807 BUILD_SYSROOT_CFLAGS 808 ac_ct_OBJDUMP 809 OBJDUMP 810 ac_ct_OBJCOPY 811 OBJCOPY 812 ac_ct_NM 813 ac_ct_STRIP 814 GNM 815 NM 816 STRIP 817 MSBUILD 818 DUMPBIN 819 RC 820 MT 821 INSTALL_NAME_TOOL 822 OTOOL 823 LIPO 824 ac_ct_AR 825 AR 826 AS 827 LDCXX 828 LD 829 CXXCPP 830 CPP 831 CXX_VERSION_NUMBER 832 CC_VERSION_NUMBER 833 ac_ct_CXX 834 CXXFLAGS 835 CXX 836 TOOLCHAIN_PATH_CXX 837 POTENTIAL_CXX 838 OBJEXT 839 EXEEXT 840 ac_ct_CC 841 CPPFLAGS 842 LDFLAGS 843 CFLAGS 844 CC 845 TOOLCHAIN_PATH_CC 846 POTENTIAL_CC 847 TOOLCHAIN_VERSION 848 VS_LIB 849 VS_INCLUDE 850 VS_PATH 851 CYGWIN_LINK 852 SYSROOT_LDFLAGS 853 SYSROOT_CFLAGS 854 EXTRA_LDFLAGS 855 EXTRA_CXXFLAGS 856 EXTRA_CFLAGS 857 EXE_SUFFIX 858 OBJ_SUFFIX 859 STATIC_LIBRARY 860 SHARED_LIBRARY 861 STATIC_LIBRARY_SUFFIX 862 SHARED_LIBRARY_SUFFIX 863 LIBRARY_PREFIX 864 TOOLCHAIN_TYPE 865 STATIC_BUILD 866 IMPORT_MODULES_MAKE 867 IMPORT_MODULES_SRC 868 IMPORT_MODULES_MAN 869 IMPORT_MODULES_LEGAL 870 IMPORT_MODULES_CONF 871 IMPORT_MODULES_LIBS 872 IMPORT_MODULES_CMDS 873 IMPORT_MODULES_CLASSES 874 EXTERNAL_BUILDJDK 875 BUILD_JDK 876 CREATE_BUILDJDK 877 JLINK 878 JMOD 879 JAVAC_FLAGS 880 BOOT_JDK_SOURCETARGET 881 JARSIGNER 882 JAR 883 JAVADOC 884 JAVAH 885 JAVAC 886 JAVA 887 BOOT_JDK 888 JAVA_CHECK 889 JAVAC_CHECK 890 VENDOR_VERSION_STRING 891 VERSION_DATE 892 VERSION_IS_GA 893 VERSION_SHORT 894 VERSION_STRING 895 VERSION_NUMBER_FOUR_POSITIONS 896 VERSION_NUMBER 897 VERSION_OPT 898 VERSION_BUILD 899 VERSION_PRE 900 VERSION_PATCH 901 VERSION_UPDATE 902 VERSION_INTERIM 903 VERSION_FEATURE 904 MACOSX_BUNDLE_ID_BASE 905 MACOSX_BUNDLE_NAME_BASE 906 HOTSPOT_VM_DISTRO 907 COMPANY_NAME 908 JDK_RC_PLATFORM_NAME 909 PRODUCT_SUFFIX 910 PRODUCT_NAME 911 LAUNCHER_NAME 912 JLINK_KEEP_PACKAGED_MODULES 913 COPYRIGHT_YEAR 914 COMPRESS_JARS 915 INCLUDE_SA 916 UNLIMITED_CRYPTO 917 CACERTS_FILE 918 ENABLE_FULL_DOCS 919 ENABLE_HEADLESS_ONLY 920 DEFAULT_MAKE_TARGET 921 OS_VERSION_MICRO 922 OS_VERSION_MINOR 923 OS_VERSION_MAJOR 924 PKG_CONFIG 925 BASH_ARGS 926 SETFILE 927 CODESIGN 928 XATTR 929 DSYMUTIL 930 IS_GNU_TIME 931 PATCH 932 DTRACE 933 FLOCK 934 TIME 935 STAT 936 HG 937 DOT 938 READELF 939 LDD 940 ZIPEXE 941 UNZIP 942 TAR_SUPPORTS_TRANSFORM 943 TAR_INCLUDE_PARAM 944 TAR_CREATE_EXTRA_PARAM 945 TAR_TYPE 946 FIND_DELETE 947 OUTPUT_SYNC 948 OUTPUT_SYNC_SUPPORTED 949 CHECK_TOOLSDIR_MAKE 950 CHECK_TOOLSDIR_GMAKE 951 CHECK_MAKE 952 CHECK_GMAKE 953 MAKE 954 PKGHANDLER 955 CONFIGURESUPPORT_OUTPUTDIR 956 OUTPUTDIR 957 CONF_NAME 958 SPEC 959 SDKROOT 960 XCODEBUILD 961 DEVKIT_LIB_DIR 962 JVM_VARIANT_MAIN 963 VALID_JVM_VARIANTS 964 JVM_VARIANTS 965 DEBUG_LEVEL 966 HOTSPOT_DEBUG_LEVEL 967 JDK_VARIANT 968 USERNAME 969 TOPDIR 970 PATH_SEP 971 HOTSPOT_BUILD_CPU_DEFINE 972 HOTSPOT_BUILD_CPU_ARCH 973 HOTSPOT_BUILD_CPU 974 HOTSPOT_BUILD_OS_TYPE 975 HOTSPOT_BUILD_OS 976 OPENJDK_BUILD_BUNDLE_PLATFORM 977 OPENJDK_BUILD_CPU_OSARCH 978 OPENJDK_BUILD_CPU_ISADIR 979 OPENJDK_BUILD_CPU_LEGACY_LIB 980 OPENJDK_BUILD_CPU_LEGACY 981 HOTSPOT_TARGET_CPU_DEFINE 982 HOTSPOT_TARGET_CPU_ARCH 983 HOTSPOT_TARGET_CPU 984 HOTSPOT_TARGET_OS_TYPE 985 HOTSPOT_TARGET_OS 986 DEFINE_CROSS_COMPILE_ARCH 987 OPENJDK_TARGET_BUNDLE_PLATFORM 988 OPENJDK_TARGET_CPU_OSARCH 989 OPENJDK_TARGET_CPU_ISADIR 990 OPENJDK_TARGET_CPU_LEGACY_LIB 991 OPENJDK_TARGET_CPU_LEGACY 992 RELEASE_FILE_OS_ARCH 993 RELEASE_FILE_OS_NAME 994 OPENJDK_MODULE_TARGET_PLATFORM 995 COMPILE_TYPE 996 OPENJDK_TARGET_CPU_ENDIAN 997 OPENJDK_TARGET_CPU_BITS 998 OPENJDK_TARGET_CPU_ARCH 999 OPENJDK_TARGET_CPU 1000 OPENJDK_TARGET_OS_ENV 1001 OPENJDK_TARGET_OS_TYPE 1002 OPENJDK_TARGET_OS 1003 OPENJDK_BUILD_CPU_ENDIAN 1004 OPENJDK_BUILD_CPU_BITS 1005 OPENJDK_BUILD_CPU_ARCH 1006 OPENJDK_BUILD_CPU 1007 OPENJDK_BUILD_OS_ENV 1008 OPENJDK_BUILD_OS_TYPE 1009 OPENJDK_BUILD_OS 1010 OPENJDK_BUILD_AUTOCONF_NAME 1011 OPENJDK_TARGET_AUTOCONF_NAME 1012 target_os 1013 target_vendor 1014 target_cpu 1015 target 1016 host_os 1017 host_vendor 1018 host_cpu 1019 host 1020 build_os 1021 build_vendor 1022 build_cpu 1023 build 1024 PANDOC 1025 NICE 1026 CPIO 1027 DF 1028 READLINK 1029 CYGPATH 1030 SED 1031 FGREP 1032 EGREP 1033 GREP 1034 AWK 1035 XARGS 1036 WHICH 1037 WC 1038 UNIQ 1039 UNAME 1040 TR 1041 TOUCH 1042 TEE 1043 TAR 1044 TAIL 1045 SORT 1046 SH 1047 RMDIR 1048 RM 1049 PRINTF 1050 NAWK 1051 MV 1052 MKTEMP 1053 MKDIR 1054 LS 1055 LN 1056 GZIP 1057 GUNZIP 1058 HEAD 1059 FIND 1060 FILE 1061 EXPR 1062 ECHO 1063 DIRNAME 1064 DIFF 1065 DATE 1066 CUT 1067 CP 1068 COMM 1069 CMP 1070 CHMOD 1071 CAT 1072 BASH 1073 BASENAME 1074 DATE_WHEN_CONFIGURED 1075 ORIGINAL_PATH 1076 CONFIGURE_COMMAND_LINE 1077 target_alias 1078 host_alias 1079 build_alias 1080 LIBS 1081 ECHO_T 1082 ECHO_N 1083 ECHO_C 1084 DEFS 1085 mandir 1086 localedir 1087 libdir 1088 psdir 1089 pdfdir 1090 dvidir 1091 htmldir 1092 infodir 1093 docdir 1094 oldincludedir 1095 includedir 1096 runstatedir 1097 localstatedir 1098 sharedstatedir 1099 sysconfdir 1100 datadir 1101 datarootdir 1102 libexecdir 1103 sbindir 1104 bindir 1105 program_transform_name 1106 prefix 1107 exec_prefix 1108 PACKAGE_URL 1109 PACKAGE_BUGREPORT 1110 PACKAGE_STRING 1111 PACKAGE_VERSION 1112 PACKAGE_TARNAME 1113 PACKAGE_NAME 1114 PATH_SEPARATOR 1115 SHELL' 1116 ac_subst_files='' 1117 ac_user_opts=' 1118 enable_option_checking 1119 with_target_bits 1120 enable_openjdk_only 1121 with_custom_make_dir 1122 with_jdk_variant 1123 enable_debug 1124 with_debug_level 1125 with_jvm_variants 1126 with_cpu_port 1127 with_devkit 1128 with_sys_root 1129 with_sysroot 1130 with_tools_dir 1131 with_toolchain_path 1132 with_extra_path 1133 with_sdk_name 1134 with_conf_name 1135 with_output_sync 1136 with_default_make_target 1137 enable_headless_only 1138 enable_full_docs 1139 with_cacerts_file 1140 enable_unlimited_crypto 1141 with_copyright_year 1142 enable_keep_packaged_modules 1143 with_milestone 1144 with_update_version 1145 with_user_release_suffix 1146 with_build_number 1147 with_version_major 1148 with_version_minor 1149 with_version_security 1150 with_version_string 1151 with_version_pre 1152 with_version_opt 1153 with_version_build 1154 with_version_feature 1155 with_version_interim 1156 with_version_update 1157 with_version_patch 1158 with_version_date 1159 with_vendor_version_string 1160 with_boot_jdk 1161 with_build_jdk 1162 with_import_modules 1163 enable_static_build 1164 with_toolchain_type 1165 with_extra_cflags 1166 with_extra_cxxflags 1167 with_extra_ldflags 1168 with_toolchain_version 1169 with_build_devkit 1170 with_jtreg 1171 with_jib 1172 with_abi_profile 1173 with_macosx_version_max 1174 enable_warnings_as_errors 1175 with_native_debug_symbols 1176 enable_debug_symbols 1177 enable_zip_debug_info 1178 enable_native_coverage 1179 enable_asan 1180 enable_dtrace 1181 enable_aot 1182 enable_cds 1183 enable_hotspot_gtest 1184 with_stdc__lib 1185 with_msvcr_dll 1186 with_msvcp_dll 1187 with_x 1188 with_cups 1189 with_cups_include 1190 with_fontconfig 1191 with_fontconfig_include 1192 with_freetype 1193 with_freetype_include 1194 with_freetype_lib 1195 with_freetype_src 1196 enable_freetype_bundling 1197 with_freetype_license 1198 with_alsa 1199 with_alsa_include 1200 with_alsa_lib 1201 with_libffi 1202 with_libffi_include 1203 with_libffi_lib 1204 enable_libffi_bundling 1205 with_libjpeg 1206 with_giflib 1207 with_libpng 1208 with_zlib 1209 with_lcms 1210 with_dxsdk 1211 with_dxsdk_lib 1212 with_dxsdk_include 1213 with_jvm_features 1214 with_jvm_interpreter 1215 enable_jtreg_failure_handler 1216 enable_generate_classlist 1217 with_num_cores 1218 with_memory_size 1219 with_jobs 1220 with_test_jobs 1221 with_boot_jdk_jvmargs 1222 with_sjavac_server_java 1223 enable_sjavac 1224 enable_javac_server 1225 enable_icecc 1226 enable_precompiled_headers 1227 enable_ccache 1228 with_ccache_dir 1229 ' 1230 ac_precious_vars='build_alias 1231 host_alias 1232 target_alias 1233 BASENAME 1234 BASH 1235 CAT 1236 CHMOD 1237 CMP 1238 COMM 1239 CP 1240 CUT 1241 DATE 1242 DIFF 1243 DIRNAME 1244 ECHO 1245 EXPR 1246 FILE 1247 FIND 1248 HEAD 1249 GUNZIP 1250 GZIP 1251 LN 1252 LS 1253 MKDIR 1254 MKTEMP 1255 MV 1256 NAWK 1257 PRINTF 1258 RM 1259 RMDIR 1260 SH 1261 SORT 1262 TAIL 1263 TAR 1264 TEE 1265 TOUCH 1266 TR 1267 UNAME 1268 UNIQ 1269 WC 1270 WHICH 1271 XARGS 1272 AWK 1273 GREP 1274 EGREP 1275 FGREP 1276 SED 1277 CYGPATH 1278 READLINK 1279 DF 1280 CPIO 1281 NICE 1282 PANDOC 1283 MAKE 1284 UNZIP 1285 ZIPEXE 1286 LDD 1287 READELF 1288 DOT 1289 HG 1290 STAT 1291 TIME 1292 FLOCK 1293 DTRACE 1294 PATCH 1295 DSYMUTIL 1296 XATTR 1297 CODESIGN 1298 SETFILE 1299 PKG_CONFIG 1300 JAVA 1301 JAVAC 1302 JAVAH 1303 JAVADOC 1304 JAR 1305 JARSIGNER 1306 CC 1307 CFLAGS 1308 LDFLAGS 1309 LIBS 1310 CPPFLAGS 1311 CXX 1312 CXXFLAGS 1313 CCC 1314 CPP 1315 CXXCPP 1316 AS 1317 AR 1318 LIPO 1319 OTOOL 1320 INSTALL_NAME_TOOL 1321 STRIP 1322 NM 1323 GNM 1324 OBJCOPY 1325 OBJDUMP 1326 BUILD_CC 1327 BUILD_CXX 1328 BUILD_NM 1329 BUILD_AR 1330 BUILD_OBJCOPY 1331 BUILD_STRIP 1332 JTREGEXE 1333 XMKMF 1334 FREETYPE_CFLAGS 1335 FREETYPE_LIBS 1336 ALSA_CFLAGS 1337 ALSA_LIBS 1338 LIBFFI_CFLAGS 1339 LIBFFI_LIBS 1340 PNG_CFLAGS 1341 PNG_LIBS 1342 LCMS_CFLAGS 1343 LCMS_LIBS 1344 ICECC_CMD 1345 ICECC_CREATE_ENV 1346 ICECC_WRAPPER 1347 CCACHE' 1348 1349 1350 # Initialize some variables set by options. 1351 ac_init_help= 1352 ac_init_version=false 1353 ac_unrecognized_opts= 1354 ac_unrecognized_sep= 1355 # The variables have the same names as the options, with 1356 # dashes changed to underlines. 1357 cache_file=/dev/null 1358 exec_prefix=NONE 1359 no_create= 1360 no_recursion= 1361 prefix=NONE 1362 program_prefix=NONE 1363 program_suffix=NONE 1364 program_transform_name=s,x,x, 1365 silent= 1366 site= 1367 srcdir= 1368 verbose= 1369 x_includes=NONE 1370 x_libraries=NONE 1371 1372 # Installation directory options. 1373 # These are left unexpanded so users can "make install exec_prefix=/foo" 1374 # and all the variables that are supposed to be based on exec_prefix 1375 # by default will actually change. 1376 # Use braces instead of parens because sh, perl, etc. also accept them. 1377 # (The list follows the same order as the GNU Coding Standards.) 1378 bindir='${exec_prefix}/bin' 1379 sbindir='${exec_prefix}/sbin' 1380 libexecdir='${exec_prefix}/libexec' 1381 datarootdir='${prefix}/share' 1382 datadir='${datarootdir}' 1383 sysconfdir='${prefix}/etc' 1384 sharedstatedir='${prefix}/com' 1385 localstatedir='${prefix}/var' 1386 runstatedir='${localstatedir}/run' 1387 includedir='${prefix}/include' 1388 oldincludedir='/usr/include' 1389 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1390 infodir='${datarootdir}/info' 1391 htmldir='${docdir}' 1392 dvidir='${docdir}' 1393 pdfdir='${docdir}' 1394 psdir='${docdir}' 1395 libdir='${exec_prefix}/lib' 1396 localedir='${datarootdir}/locale' 1397 mandir='${datarootdir}/man' 1398 1399 ac_prev= 1400 ac_dashdash= 1401 for ac_option 1402 do 1403 # If the previous option needs an argument, assign it. 1404 if test -n "$ac_prev"; then 1405 eval $ac_prev=\$ac_option 1406 ac_prev= 1407 continue 1408 fi 1409 1410 case $ac_option in 1411 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1412 *=) ac_optarg= ;; 1413 *) ac_optarg=yes ;; 1414 esac 1415 1416 # Accept the important Cygnus configure options, so we can diagnose typos. 1417 1418 case $ac_dashdash$ac_option in 1419 --) 1420 ac_dashdash=yes ;; 1421 1422 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1423 ac_prev=bindir ;; 1424 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1425 bindir=$ac_optarg ;; 1426 1427 -build | --build | --buil | --bui | --bu) 1428 ac_prev=build_alias ;; 1429 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1430 build_alias=$ac_optarg ;; 1431 1432 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1433 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1434 ac_prev=cache_file ;; 1435 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1436 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1437 cache_file=$ac_optarg ;; 1438 1439 --config-cache | -C) 1440 cache_file=config.cache ;; 1441 1442 -datadir | --datadir | --datadi | --datad) 1443 ac_prev=datadir ;; 1444 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1445 datadir=$ac_optarg ;; 1446 1447 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1448 | --dataroo | --dataro | --datar) 1449 ac_prev=datarootdir ;; 1450 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1451 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1452 datarootdir=$ac_optarg ;; 1453 1454 -disable-* | --disable-*) 1455 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1456 # Reject names that are not valid shell variable names. 1457 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1458 as_fn_error $? "invalid feature name: $ac_useropt" 1459 ac_useropt_orig=$ac_useropt 1460 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1461 case $ac_user_opts in 1462 *" 1463 "enable_$ac_useropt" 1464 "*) ;; 1465 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1466 ac_unrecognized_sep=', ';; 1467 esac 1468 eval enable_$ac_useropt=no ;; 1469 1470 -docdir | --docdir | --docdi | --doc | --do) 1471 ac_prev=docdir ;; 1472 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1473 docdir=$ac_optarg ;; 1474 1475 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1476 ac_prev=dvidir ;; 1477 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1478 dvidir=$ac_optarg ;; 1479 1480 -enable-* | --enable-*) 1481 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1482 # Reject names that are not valid shell variable names. 1483 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1484 as_fn_error $? "invalid feature name: $ac_useropt" 1485 ac_useropt_orig=$ac_useropt 1486 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1487 case $ac_user_opts in 1488 *" 1489 "enable_$ac_useropt" 1490 "*) ;; 1491 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1492 ac_unrecognized_sep=', ';; 1493 esac 1494 eval enable_$ac_useropt=\$ac_optarg ;; 1495 1496 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1497 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1498 | --exec | --exe | --ex) 1499 ac_prev=exec_prefix ;; 1500 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1501 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1502 | --exec=* | --exe=* | --ex=*) 1503 exec_prefix=$ac_optarg ;; 1504 1505 -gas | --gas | --ga | --g) 1506 # Obsolete; use --with-gas. 1507 with_gas=yes ;; 1508 1509 -help | --help | --hel | --he | -h) 1510 ac_init_help=long ;; 1511 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1512 ac_init_help=recursive ;; 1513 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1514 ac_init_help=short ;; 1515 1516 -host | --host | --hos | --ho) 1517 ac_prev=host_alias ;; 1518 -host=* | --host=* | --hos=* | --ho=*) 1519 host_alias=$ac_optarg ;; 1520 1521 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1522 ac_prev=htmldir ;; 1523 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1524 | --ht=*) 1525 htmldir=$ac_optarg ;; 1526 1527 -includedir | --includedir | --includedi | --included | --include \ 1528 | --includ | --inclu | --incl | --inc) 1529 ac_prev=includedir ;; 1530 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1531 | --includ=* | --inclu=* | --incl=* | --inc=*) 1532 includedir=$ac_optarg ;; 1533 1534 -infodir | --infodir | --infodi | --infod | --info | --inf) 1535 ac_prev=infodir ;; 1536 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1537 infodir=$ac_optarg ;; 1538 1539 -libdir | --libdir | --libdi | --libd) 1540 ac_prev=libdir ;; 1541 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1542 libdir=$ac_optarg ;; 1543 1544 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1545 | --libexe | --libex | --libe) 1546 ac_prev=libexecdir ;; 1547 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1548 | --libexe=* | --libex=* | --libe=*) 1549 libexecdir=$ac_optarg ;; 1550 1551 -localedir | --localedir | --localedi | --localed | --locale) 1552 ac_prev=localedir ;; 1553 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1554 localedir=$ac_optarg ;; 1555 1556 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1557 | --localstate | --localstat | --localsta | --localst | --locals) 1558 ac_prev=localstatedir ;; 1559 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1560 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1561 localstatedir=$ac_optarg ;; 1562 1563 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1564 ac_prev=mandir ;; 1565 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1566 mandir=$ac_optarg ;; 1567 1568 -nfp | --nfp | --nf) 1569 # Obsolete; use --without-fp. 1570 with_fp=no ;; 1571 1572 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1573 | --no-cr | --no-c | -n) 1574 no_create=yes ;; 1575 1576 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1577 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1578 no_recursion=yes ;; 1579 1580 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1581 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1582 | --oldin | --oldi | --old | --ol | --o) 1583 ac_prev=oldincludedir ;; 1584 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1585 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1586 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1587 oldincludedir=$ac_optarg ;; 1588 1589 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1590 ac_prev=prefix ;; 1591 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1592 prefix=$ac_optarg ;; 1593 1594 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1595 | --program-pre | --program-pr | --program-p) 1596 ac_prev=program_prefix ;; 1597 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1598 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1599 program_prefix=$ac_optarg ;; 1600 1601 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1602 | --program-suf | --program-su | --program-s) 1603 ac_prev=program_suffix ;; 1604 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1605 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1606 program_suffix=$ac_optarg ;; 1607 1608 -program-transform-name | --program-transform-name \ 1609 | --program-transform-nam | --program-transform-na \ 1610 | --program-transform-n | --program-transform- \ 1611 | --program-transform | --program-transfor \ 1612 | --program-transfo | --program-transf \ 1613 | --program-trans | --program-tran \ 1614 | --progr-tra | --program-tr | --program-t) 1615 ac_prev=program_transform_name ;; 1616 -program-transform-name=* | --program-transform-name=* \ 1617 | --program-transform-nam=* | --program-transform-na=* \ 1618 | --program-transform-n=* | --program-transform-=* \ 1619 | --program-transform=* | --program-transfor=* \ 1620 | --program-transfo=* | --program-transf=* \ 1621 | --program-trans=* | --program-tran=* \ 1622 | --progr-tra=* | --program-tr=* | --program-t=*) 1623 program_transform_name=$ac_optarg ;; 1624 1625 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1626 ac_prev=pdfdir ;; 1627 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1628 pdfdir=$ac_optarg ;; 1629 1630 -psdir | --psdir | --psdi | --psd | --ps) 1631 ac_prev=psdir ;; 1632 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1633 psdir=$ac_optarg ;; 1634 1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1636 | -silent | --silent | --silen | --sile | --sil) 1637 silent=yes ;; 1638 1639 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1640 | --runstate | --runstat | --runsta | --runst | --runs \ 1641 | --run | --ru | --r) 1642 ac_prev=runstatedir ;; 1643 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1644 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1645 | --run=* | --ru=* | --r=*) 1646 runstatedir=$ac_optarg ;; 1647 1648 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1649 ac_prev=sbindir ;; 1650 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1651 | --sbi=* | --sb=*) 1652 sbindir=$ac_optarg ;; 1653 1654 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1655 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1656 | --sharedst | --shareds | --shared | --share | --shar \ 1657 | --sha | --sh) 1658 ac_prev=sharedstatedir ;; 1659 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1660 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1661 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1662 | --sha=* | --sh=*) 1663 sharedstatedir=$ac_optarg ;; 1664 1665 -site | --site | --sit) 1666 ac_prev=site ;; 1667 -site=* | --site=* | --sit=*) 1668 site=$ac_optarg ;; 1669 1670 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1671 ac_prev=srcdir ;; 1672 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1673 srcdir=$ac_optarg ;; 1674 1675 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1676 | --syscon | --sysco | --sysc | --sys | --sy) 1677 ac_prev=sysconfdir ;; 1678 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1679 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1680 sysconfdir=$ac_optarg ;; 1681 1682 -target | --target | --targe | --targ | --tar | --ta | --t) 1683 ac_prev=target_alias ;; 1684 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1685 target_alias=$ac_optarg ;; 1686 1687 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1688 verbose=yes ;; 1689 1690 -version | --version | --versio | --versi | --vers | -V) 1691 ac_init_version=: ;; 1692 1693 -with-* | --with-*) 1694 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1695 # Reject names that are not valid shell variable names. 1696 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1697 as_fn_error $? "invalid package name: $ac_useropt" 1698 ac_useropt_orig=$ac_useropt 1699 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1700 case $ac_user_opts in 1701 *" 1702 "with_$ac_useropt" 1703 "*) ;; 1704 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1705 ac_unrecognized_sep=', ';; 1706 esac 1707 eval with_$ac_useropt=\$ac_optarg ;; 1708 1709 -without-* | --without-*) 1710 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1711 # Reject names that are not valid shell variable names. 1712 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1713 as_fn_error $? "invalid package name: $ac_useropt" 1714 ac_useropt_orig=$ac_useropt 1715 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1716 case $ac_user_opts in 1717 *" 1718 "with_$ac_useropt" 1719 "*) ;; 1720 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1721 ac_unrecognized_sep=', ';; 1722 esac 1723 eval with_$ac_useropt=no ;; 1724 1725 --x) 1726 # Obsolete; use --with-x. 1727 with_x=yes ;; 1728 1729 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1730 | --x-incl | --x-inc | --x-in | --x-i) 1731 ac_prev=x_includes ;; 1732 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1733 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1734 x_includes=$ac_optarg ;; 1735 1736 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1737 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1738 ac_prev=x_libraries ;; 1739 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1740 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1741 x_libraries=$ac_optarg ;; 1742 1743 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1744 Try \`$0 --help' for more information" 1745 ;; 1746 1747 *=*) 1748 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1749 # Reject names that are not valid shell variable names. 1750 case $ac_envvar in #( 1751 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1752 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1753 esac 1754 eval $ac_envvar=\$ac_optarg 1755 export $ac_envvar ;; 1756 1757 *) 1758 # FIXME: should be removed in autoconf 3.0. 1759 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1760 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1761 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1762 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1763 ;; 1764 1765 esac 1766 done 1767 1768 if test -n "$ac_prev"; then 1769 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1770 as_fn_error $? "missing argument to $ac_option" 1771 fi 1772 1773 if test -n "$ac_unrecognized_opts"; then 1774 case $enable_option_checking in 1775 no) ;; 1776 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1777 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1778 esac 1779 fi 1780 1781 # Check all directory arguments for consistency. 1782 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1783 datadir sysconfdir sharedstatedir localstatedir includedir \ 1784 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1785 libdir localedir mandir runstatedir 1786 do 1787 eval ac_val=\$$ac_var 1788 # Remove trailing slashes. 1789 case $ac_val in 1790 */ ) 1791 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1792 eval $ac_var=\$ac_val;; 1793 esac 1794 # Be sure to have absolute directory names. 1795 case $ac_val in 1796 [\\/$]* | ?:[\\/]* ) continue;; 1797 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1798 esac 1799 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1800 done 1801 1802 # There might be people who depend on the old broken behavior: `$host' 1803 # used to hold the argument of --host etc. 1804 # FIXME: To remove some day. 1805 build=$build_alias 1806 host=$host_alias 1807 target=$target_alias 1808 1809 # FIXME: To remove some day. 1810 if test "x$host_alias" != x; then 1811 if test "x$build_alias" = x; then 1812 cross_compiling=maybe 1813 elif test "x$build_alias" != "x$host_alias"; then 1814 cross_compiling=yes 1815 fi 1816 fi 1817 1818 ac_tool_prefix= 1819 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1820 1821 test "$silent" = yes && exec 6>/dev/null 1822 1823 1824 ac_pwd=`pwd` && test -n "$ac_pwd" && 1825 ac_ls_di=`ls -di .` && 1826 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1827 as_fn_error $? "working directory cannot be determined" 1828 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1829 as_fn_error $? "pwd does not report name of working directory" 1830 1831 1832 # Find the source files, if location was not specified. 1833 if test -z "$srcdir"; then 1834 ac_srcdir_defaulted=yes 1835 # Try the directory containing this script, then the parent directory. 1836 ac_confdir=`$as_dirname -- "$as_myself" || 1837 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1838 X"$as_myself" : 'X\(//\)[^/]' \| \ 1839 X"$as_myself" : 'X\(//\)$' \| \ 1840 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1841 $as_echo X"$as_myself" | 1842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1843 s//\1/ 1844 q 1845 } 1846 /^X\(\/\/\)[^/].*/{ 1847 s//\1/ 1848 q 1849 } 1850 /^X\(\/\/\)$/{ 1851 s//\1/ 1852 q 1853 } 1854 /^X\(\/\).*/{ 1855 s//\1/ 1856 q 1857 } 1858 s/.*/./; q'` 1859 srcdir=$ac_confdir 1860 if test ! -r "$srcdir/$ac_unique_file"; then 1861 srcdir=.. 1862 fi 1863 else 1864 ac_srcdir_defaulted=no 1865 fi 1866 if test ! -r "$srcdir/$ac_unique_file"; then 1867 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1868 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1869 fi 1870 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1871 ac_abs_confdir=`( 1872 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1873 pwd)` 1874 # When building in place, set srcdir=. 1875 if test "$ac_abs_confdir" = "$ac_pwd"; then 1876 srcdir=. 1877 fi 1878 # Remove unnecessary trailing slashes from srcdir. 1879 # Double slashes in file names in object file debugging info 1880 # mess up M-x gdb in Emacs. 1881 case $srcdir in 1882 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1883 esac 1884 for ac_var in $ac_precious_vars; do 1885 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1886 eval ac_env_${ac_var}_value=\$${ac_var} 1887 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1888 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1889 done 1890 1891 # 1892 # Report the --help message. 1893 # 1894 if test "$ac_init_help" = "long"; then 1895 # Omit some internal or obsolete options to make the list less imposing. 1896 # This message is too long to be a string in the A/UX 3.1 sh. 1897 cat <<_ACEOF 1898 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1899 1900 Usage: $0 [OPTION]... [VAR=VALUE]... 1901 1902 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1903 VAR=VALUE. See below for descriptions of some of the useful variables. 1904 1905 Defaults for the options are specified in brackets. 1906 1907 Configuration: 1908 -h, --help display this help and exit 1909 --help=short display options specific to this package 1910 --help=recursive display the short help of all the included packages 1911 -V, --version display version information and exit 1912 -q, --quiet, --silent do not print \`checking ...' messages 1913 --cache-file=FILE cache test results in FILE [disabled] 1914 -C, --config-cache alias for \`--cache-file=config.cache' 1915 -n, --no-create do not create output files 1916 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1917 1918 Installation directories: 1919 --prefix=PREFIX install architecture-independent files in PREFIX 1920 [$ac_default_prefix] 1921 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1922 [PREFIX] 1923 1924 By default, \`make install' will install all the files in 1925 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1926 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1927 for instance \`--prefix=\$HOME'. 1928 1929 For better control, use the options below. 1930 1931 Fine tuning of the installation directories: 1932 --bindir=DIR user executables [EPREFIX/bin] 1933 --sbindir=DIR system admin executables [EPREFIX/sbin] 1934 --libexecdir=DIR program executables [EPREFIX/libexec] 1935 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1936 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1937 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1938 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1939 --libdir=DIR object code libraries [EPREFIX/lib] 1940 --includedir=DIR C header files [PREFIX/include] 1941 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1942 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1943 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1944 --infodir=DIR info documentation [DATAROOTDIR/info] 1945 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1946 --mandir=DIR man documentation [DATAROOTDIR/man] 1947 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1948 --htmldir=DIR html documentation [DOCDIR] 1949 --dvidir=DIR dvi documentation [DOCDIR] 1950 --pdfdir=DIR pdf documentation [DOCDIR] 1951 --psdir=DIR ps documentation [DOCDIR] 1952 _ACEOF 1953 1954 cat <<\_ACEOF 1955 1956 X features: 1957 --x-includes=DIR X include files are in DIR 1958 --x-libraries=DIR X library files are in DIR 1959 1960 System types: 1961 --build=BUILD configure for building on BUILD [guessed] 1962 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1963 --target=TARGET configure for building compilers for TARGET [HOST] 1964 _ACEOF 1965 fi 1966 1967 if test -n "$ac_init_help"; then 1968 case $ac_init_help in 1969 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1970 esac 1971 cat <<\_ACEOF 1972 1973 Optional Features: 1974 --disable-option-checking ignore unrecognized --enable/--with options 1975 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1976 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1977 --enable-openjdk-only suppress building custom source even if present 1978 [disabled] 1979 --enable-debug set the debug level to fastdebug (shorthand for 1980 --with-debug-level=fastdebug) [disabled] 1981 --enable-headless-only only build headless (no GUI) support [disabled] 1982 --enable-full-docs build complete documentation [enabled if all tools 1983 found] 1984 --disable-unlimited-crypto 1985 Disable unlimited crypto policy [enabled] 1986 --disable-keep-packaged-modules 1987 Do not keep packaged modules in jdk image [enable] 1988 --enable-static-build enable static library build [disabled] 1989 --disable-warnings-as-errors 1990 do not consider native warnings to be an error 1991 [enabled] 1992 --enable-debug-symbols Deprecated. Option is kept for backwards 1993 compatibility and is ignored 1994 --enable-zip-debug-info Deprecated. Option is kept for backwards 1995 compatibility and is ignored 1996 --enable-native-coverage 1997 enable native compilation with code coverage 1998 data[disabled] 1999 --enable-asan enable AddressSanitizer if possible [disabled] 2000 --enable-dtrace[=yes/no/auto] 2001 enable dtrace. Default is auto, where dtrace is 2002 enabled if all dependencies are present. 2003 --enable-aot[=yes/no/auto] 2004 enable ahead of time compilation feature. Default is 2005 auto, where aot is enabled if all dependencies are 2006 present. 2007 --enable-cds[=yes/no] enable class data sharing feature in non-minimal VM. 2008 Default is yes. 2009 --disable-hotspot-gtest Disables building of the Hotspot unit tests 2010 [enabled] 2011 --disable-freetype-bundling 2012 disable bundling of the freetype library with the 2013 build result [enabled on Windows or when using 2014 --with-freetype, disabled otherwise] 2015 --enable-libffi-bundling 2016 enable bundling of libffi.so to make the built JDK 2017 runnable on more systems 2018 --enable-jtreg-failure-handler 2019 forces build of the jtreg failure handler to be 2020 enabled, missing dependencies become fatal errors. 2021 Default is auto, where the failure handler is built 2022 if all dependencies are present and otherwise just 2023 disabled. 2024 --disable-generate-classlist 2025 forces enabling or disabling of the generation of a 2026 CDS classlist at build time. Default is to generate 2027 it when either the server or client JVMs are built 2028 and enable-cds is true. 2029 --enable-sjavac use sjavac to do fast incremental compiles 2030 [disabled] 2031 --disable-javac-server disable javac server [enabled] 2032 --enable-icecc enable distribted compilation of native code using 2033 icecc/icecream [disabled] 2034 --disable-precompiled-headers 2035 disable using precompiled headers when compiling C++ 2036 [enabled] 2037 --enable-ccache enable using ccache to speed up recompilations 2038 [disabled] 2039 2040 Optional Packages: 2041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2043 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2044 support it), e.g. --with-target-bits=32 [guessed] 2045 --with-custom-make-dir Deprecated. Option is kept for backwards 2046 compatibility and is ignored 2047 --with-jdk-variant JDK variant to build (normal) [normal] 2048 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2049 optimized) [release] 2050 --with-jvm-variants JVM variants (separated by commas) to build 2051 (server,client,minimal,core,zero,custom) [server] 2052 --with-cpu-port specify sources to use for Hotspot 64-bit ARM port 2053 (arm64,aarch64) [aarch64] 2054 --with-devkit use this devkit for compilers, tools and resources 2055 --with-sys-root alias for --with-sysroot for backwards compatability 2056 --with-sysroot use this directory as sysroot 2057 --with-tools-dir alias for --with-toolchain-path for backwards 2058 compatibility 2059 --with-toolchain-path prepend these directories when searching for 2060 toolchain binaries (compilers etc) 2061 --with-extra-path prepend these directories to the default path 2062 --with-sdk-name use the platform SDK of the given name. [macosx] 2063 --with-conf-name use this as the name of the configuration [generated 2064 from important configuration options] 2065 --with-output-sync set make output sync type if supported by make. 2066 [recurse] 2067 --with-default-make-target 2068 set the default make target [exploded-image] 2069 --with-cacerts-file specify alternative cacerts file 2070 --with-copyright-year Set copyright year value for build [current year] 2071 --with-milestone Deprecated. Option is kept for backwards 2072 compatibility and is ignored 2073 --with-update-version Deprecated. Option is kept for backwards 2074 compatibility and is ignored 2075 --with-user-release-suffix 2076 Deprecated. Option is kept for backwards 2077 compatibility and is ignored 2078 --with-build-number Deprecated. Option is kept for backwards 2079 compatibility and is ignored 2080 --with-version-major Deprecated. Option is kept for backwards 2081 compatibility and is ignored 2082 --with-version-minor Deprecated. Option is kept for backwards 2083 compatibility and is ignored 2084 --with-version-security Deprecated. Option is kept for backwards 2085 compatibility and is ignored 2086 --with-version-string Set version string [calculated] 2087 --with-version-pre Set the base part of the version 'PRE' field 2088 (pre-release identifier) ['internal'] 2089 --with-version-opt Set version 'OPT' field (build metadata) 2090 [<timestamp>.<user>.<dirname>] 2091 --with-version-build Set version 'BUILD' field (build number) [not 2092 specified] 2093 --with-version-feature Set version 'FEATURE' field (first number) [current 2094 source value] 2095 --with-version-interim Set version 'INTERIM' field (second number) [current 2096 source value] 2097 --with-version-update Set version 'UPDATE' field (third number) [current 2098 source value] 2099 --with-version-patch Set version 'PATCH' field (fourth number) [not 2100 specified] 2101 --with-version-date Set version date [current source value] 2102 --with-vendor-version-string 2103 Set vendor version string [not specified] 2104 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2105 --with-build-jdk path to JDK of same version as is being built[the 2106 newly built JDK] 2107 --with-import-modules import a set of prebuilt modules either as a zip 2108 file or an exploded directory 2109 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2110 to show possible values [platform dependent] 2111 --with-extra-cflags extra flags to be used when compiling jdk c-files 2112 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2113 --with-extra-ldflags extra flags to be used when linking jdk 2114 --with-toolchain-version 2115 the version of the toolchain to look for, use 2116 '--help' to show possible values [platform 2117 dependent] 2118 --with-build-devkit Devkit to use for the build platform toolchain 2119 --with-jtreg Regression Test Harness [probed] 2120 --with-jib Jib dependency management tool [not used] 2121 --with-abi-profile specify ABI profile for ARM builds 2122 (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, 2123 armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64) 2124 [toolchain dependent] 2125 --with-macosx-version-max 2126 error on use of newer functionality. [macosx] 2127 --with-native-debug-symbols 2128 set the native debug symbol configuration (none, 2129 internal, external, zipped) [varying] 2130 --with-stdc++lib=<static>,<dynamic>,<default> 2131 force linking of the C++ runtime on Linux to either 2132 static or dynamic, default is static with dynamic as 2133 fallback 2134 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2135 (Windows only) [probed] 2136 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2137 (Windows only) [probed] 2138 --with-x use the X Window System 2139 --with-cups specify prefix directory for the cups package 2140 (expecting the headers under PATH/include) 2141 --with-cups-include specify directory for the cups include files 2142 --with-fontconfig specify prefix directory for the fontconfig package 2143 (expecting the headers under PATH/include) 2144 --with-fontconfig-include 2145 specify directory for the fontconfig include files 2146 --with-freetype specify prefix directory for the freetype package 2147 (expecting the libraries under PATH/lib and the 2148 headers under PATH/include) 2149 --with-freetype-include specify directory for the freetype include files 2150 --with-freetype-lib specify directory for the freetype library 2151 --with-freetype-src specify directory with freetype sources to 2152 automatically build the library (experimental, 2153 Windows-only) 2154 --with-freetype-license if bundling freetype, also bundle this license file 2155 --with-alsa specify prefix directory for the alsa package 2156 (expecting the libraries under PATH/lib and the 2157 headers under PATH/include) 2158 --with-alsa-include specify directory for the alsa include files 2159 --with-alsa-lib specify directory for the alsa library 2160 --with-libffi specify prefix directory for the libffi package 2161 (expecting the libraries under PATH/lib and the 2162 headers under PATH/include) 2163 --with-libffi-include specify directory for the libffi include files 2164 --with-libffi-lib specify directory for the libffi library 2165 --with-libjpeg use libjpeg from build system or OpenJDK source 2166 (system, bundled) [bundled] 2167 --with-giflib use giflib from build system or OpenJDK source 2168 (system, bundled) [bundled] 2169 --with-libpng use libpng from build system or OpenJDK source 2170 (system, bundled) [bundled] 2171 --with-zlib use zlib from build system or OpenJDK source 2172 (system, bundled) [bundled] 2173 --with-lcms use lcms2 from build system or OpenJDK source 2174 (system, bundled) [bundled] 2175 --with-dxsdk Deprecated. Option is kept for backwards 2176 compatibility and is ignored 2177 --with-dxsdk-lib Deprecated. Option is kept for backwards 2178 compatibility and is ignored 2179 --with-dxsdk-include Deprecated. Option is kept for backwards 2180 compatibility and is ignored 2181 --with-jvm-features additional JVM features to enable (separated by 2182 comma), use '--help' to show possible values [none] 2183 --with-jvm-interpreter Deprecated. Option is kept for backwards 2184 compatibility and is ignored 2185 --with-num-cores number of cores in the build system, e.g. 2186 --with-num-cores=8 [probed] 2187 --with-memory-size memory (in MB) available in the build system, e.g. 2188 --with-memory-size=1024 [probed] 2189 --with-jobs number of parallel jobs to let make run [calculated 2190 based on cores and memory] 2191 --with-test-jobs number of parallel tests jobs to run [based on build 2192 jobs] 2193 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2194 invocations of boot JDK, overriding the default 2195 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2196 -enableassertions" 2197 --with-sjavac-server-java 2198 use this java binary for running the sjavac 2199 background server [Boot JDK java] 2200 --with-ccache-dir where to store ccache files [~/.ccache] 2201 2202 Some influential environment variables: 2203 BASENAME Override default value for BASENAME 2204 BASH Override default value for BASH 2205 CAT Override default value for CAT 2206 CHMOD Override default value for CHMOD 2207 CMP Override default value for CMP 2208 COMM Override default value for COMM 2209 CP Override default value for CP 2210 CUT Override default value for CUT 2211 DATE Override default value for DATE 2212 DIFF Override default value for DIFF 2213 DIRNAME Override default value for DIRNAME 2214 ECHO Override default value for ECHO 2215 EXPR Override default value for EXPR 2216 FILE Override default value for FILE 2217 FIND Override default value for FIND 2218 HEAD Override default value for HEAD 2219 GUNZIP Override default value for GUNZIP 2220 GZIP Override default value for GZIP 2221 LN Override default value for LN 2222 LS Override default value for LS 2223 MKDIR Override default value for MKDIR 2224 MKTEMP Override default value for MKTEMP 2225 MV Override default value for MV 2226 NAWK Override default value for NAWK 2227 PRINTF Override default value for PRINTF 2228 RM Override default value for RM 2229 RMDIR Override default value for RMDIR 2230 SH Override default value for SH 2231 SORT Override default value for SORT 2232 TAIL Override default value for TAIL 2233 TAR Override default value for TAR 2234 TEE Override default value for TEE 2235 TOUCH Override default value for TOUCH 2236 TR Override default value for TR 2237 UNAME Override default value for UNAME 2238 UNIQ Override default value for UNIQ 2239 WC Override default value for WC 2240 WHICH Override default value for WHICH 2241 XARGS Override default value for XARGS 2242 AWK Override default value for AWK 2243 GREP Override default value for GREP 2244 EGREP Override default value for EGREP 2245 FGREP Override default value for FGREP 2246 SED Override default value for SED 2247 CYGPATH Override default value for CYGPATH 2248 READLINK Override default value for READLINK 2249 DF Override default value for DF 2250 CPIO Override default value for CPIO 2251 NICE Override default value for NICE 2252 PANDOC Override default value for PANDOC 2253 MAKE Override default value for MAKE 2254 UNZIP Override default value for UNZIP 2255 ZIPEXE Override default value for ZIPEXE 2256 LDD Override default value for LDD 2257 READELF Override default value for READELF 2258 DOT Override default value for DOT 2259 HG Override default value for HG 2260 STAT Override default value for STAT 2261 TIME Override default value for TIME 2262 FLOCK Override default value for FLOCK 2263 DTRACE Override default value for DTRACE 2264 PATCH Override default value for PATCH 2265 DSYMUTIL Override default value for DSYMUTIL 2266 XATTR Override default value for XATTR 2267 CODESIGN Override default value for CODESIGN 2268 SETFILE Override default value for SETFILE 2269 PKG_CONFIG path to pkg-config utility 2270 JAVA Override default value for JAVA 2271 JAVAC Override default value for JAVAC 2272 JAVAH Override default value for JAVAH 2273 JAVADOC Override default value for JAVADOC 2274 JAR Override default value for JAR 2275 JARSIGNER Override default value for JARSIGNER 2276 CC C compiler command 2277 CFLAGS C compiler flags 2278 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2279 nonstandard directory <lib dir> 2280 LIBS libraries to pass to the linker, e.g. -l<library> 2281 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2282 you have headers in a nonstandard directory <include dir> 2283 CXX C++ compiler command 2284 CXXFLAGS C++ compiler flags 2285 CPP C preprocessor 2286 CXXCPP C++ preprocessor 2287 AS Override default value for AS 2288 AR Override default value for AR 2289 LIPO Override default value for LIPO 2290 OTOOL Override default value for OTOOL 2291 INSTALL_NAME_TOOL 2292 Override default value for INSTALL_NAME_TOOL 2293 STRIP Override default value for STRIP 2294 NM Override default value for NM 2295 GNM Override default value for GNM 2296 OBJCOPY Override default value for OBJCOPY 2297 OBJDUMP Override default value for OBJDUMP 2298 BUILD_CC Override default value for BUILD_CC 2299 BUILD_CXX Override default value for BUILD_CXX 2300 BUILD_NM Override default value for BUILD_NM 2301 BUILD_AR Override default value for BUILD_AR 2302 BUILD_OBJCOPY 2303 Override default value for BUILD_OBJCOPY 2304 BUILD_STRIP Override default value for BUILD_STRIP 2305 JTREGEXE Override default value for JTREGEXE 2306 XMKMF Path to xmkmf, Makefile generator for X Window System 2307 FREETYPE_CFLAGS 2308 C compiler flags for FREETYPE, overriding pkg-config 2309 FREETYPE_LIBS 2310 linker flags for FREETYPE, overriding pkg-config 2311 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2312 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2313 LIBFFI_CFLAGS 2314 C compiler flags for LIBFFI, overriding pkg-config 2315 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2316 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2317 PNG_LIBS linker flags for PNG, overriding pkg-config 2318 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2319 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2320 ICECC_CMD Override default value for ICECC_CMD 2321 ICECC_CREATE_ENV 2322 Override default value for ICECC_CREATE_ENV 2323 ICECC_WRAPPER 2324 Override default value for ICECC_WRAPPER 2325 CCACHE Override default value for CCACHE 2326 2327 Use these variables to override the choices made by `configure' or to help 2328 it to find libraries and programs with nonstandard names/locations. 2329 2330 Report bugs to <build-dev@openjdk.java.net>. 2331 OpenJDK home page: <http://openjdk.java.net>. 2332 _ACEOF 2333 ac_status=$? 2334 fi 2335 2336 if test "$ac_init_help" = "recursive"; then 2337 # If there are subdirs, report their specific --help. 2338 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2339 test -d "$ac_dir" || 2340 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2341 continue 2342 ac_builddir=. 2343 2344 case "$ac_dir" in 2345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2346 *) 2347 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2348 # A ".." for each directory in $ac_dir_suffix. 2349 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2350 case $ac_top_builddir_sub in 2351 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2352 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2353 esac ;; 2354 esac 2355 ac_abs_top_builddir=$ac_pwd 2356 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2357 # for backward compatibility: 2358 ac_top_builddir=$ac_top_build_prefix 2359 2360 case $srcdir in 2361 .) # We are building in place. 2362 ac_srcdir=. 2363 ac_top_srcdir=$ac_top_builddir_sub 2364 ac_abs_top_srcdir=$ac_pwd ;; 2365 [\\/]* | ?:[\\/]* ) # Absolute name. 2366 ac_srcdir=$srcdir$ac_dir_suffix; 2367 ac_top_srcdir=$srcdir 2368 ac_abs_top_srcdir=$srcdir ;; 2369 *) # Relative name. 2370 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2371 ac_top_srcdir=$ac_top_build_prefix$srcdir 2372 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2373 esac 2374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2375 2376 cd "$ac_dir" || { ac_status=$?; continue; } 2377 # Check for guested configure. 2378 if test -f "$ac_srcdir/configure.gnu"; then 2379 echo && 2380 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2381 elif test -f "$ac_srcdir/configure"; then 2382 echo && 2383 $SHELL "$ac_srcdir/configure" --help=recursive 2384 else 2385 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2386 fi || ac_status=$? 2387 cd "$ac_pwd" || { ac_status=$?; break; } 2388 done 2389 fi 2390 2391 test -n "$ac_init_help" && exit $ac_status 2392 if $ac_init_version; then 2393 cat <<\_ACEOF 2394 OpenJDK configure jdk9 2395 generated by GNU Autoconf 2.69 2396 2397 Copyright (C) 2012 Free Software Foundation, Inc. 2398 This configure script is free software; the Free Software Foundation 2399 gives unlimited permission to copy, distribute and modify it. 2400 _ACEOF 2401 exit 2402 fi 2403 2404 ## ------------------------ ## 2405 ## Autoconf initialization. ## 2406 ## ------------------------ ## 2407 2408 # ac_fn_c_try_compile LINENO 2409 # -------------------------- 2410 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2411 ac_fn_c_try_compile () 2412 { 2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2414 rm -f conftest.$ac_objext 2415 if { { ac_try="$ac_compile" 2416 case "(($ac_try" in 2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2418 *) ac_try_echo=$ac_try;; 2419 esac 2420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2421 $as_echo "$ac_try_echo"; } >&5 2422 (eval "$ac_compile") 2>conftest.err 2423 ac_status=$? 2424 if test -s conftest.err; then 2425 grep -v '^ *+' conftest.err >conftest.er1 2426 cat conftest.er1 >&5 2427 mv -f conftest.er1 conftest.err 2428 fi 2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2430 test $ac_status = 0; } && { 2431 test -z "$ac_c_werror_flag" || 2432 test ! -s conftest.err 2433 } && test -s conftest.$ac_objext; then : 2434 ac_retval=0 2435 else 2436 $as_echo "$as_me: failed program was:" >&5 2437 sed 's/^/| /' conftest.$ac_ext >&5 2438 2439 ac_retval=1 2440 fi 2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2442 as_fn_set_status $ac_retval 2443 2444 } # ac_fn_c_try_compile 2445 2446 # ac_fn_cxx_try_compile LINENO 2447 # ---------------------------- 2448 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2449 ac_fn_cxx_try_compile () 2450 { 2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2452 rm -f conftest.$ac_objext 2453 if { { ac_try="$ac_compile" 2454 case "(($ac_try" in 2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2456 *) ac_try_echo=$ac_try;; 2457 esac 2458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2459 $as_echo "$ac_try_echo"; } >&5 2460 (eval "$ac_compile") 2>conftest.err 2461 ac_status=$? 2462 if test -s conftest.err; then 2463 grep -v '^ *+' conftest.err >conftest.er1 2464 cat conftest.er1 >&5 2465 mv -f conftest.er1 conftest.err 2466 fi 2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2468 test $ac_status = 0; } && { 2469 test -z "$ac_cxx_werror_flag" || 2470 test ! -s conftest.err 2471 } && test -s conftest.$ac_objext; then : 2472 ac_retval=0 2473 else 2474 $as_echo "$as_me: failed program was:" >&5 2475 sed 's/^/| /' conftest.$ac_ext >&5 2476 2477 ac_retval=1 2478 fi 2479 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2480 as_fn_set_status $ac_retval 2481 2482 } # ac_fn_cxx_try_compile 2483 2484 # ac_fn_c_try_cpp LINENO 2485 # ---------------------- 2486 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2487 ac_fn_c_try_cpp () 2488 { 2489 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2490 if { { ac_try="$ac_cpp conftest.$ac_ext" 2491 case "(($ac_try" in 2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2493 *) ac_try_echo=$ac_try;; 2494 esac 2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2496 $as_echo "$ac_try_echo"; } >&5 2497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2498 ac_status=$? 2499 if test -s conftest.err; then 2500 grep -v '^ *+' conftest.err >conftest.er1 2501 cat conftest.er1 >&5 2502 mv -f conftest.er1 conftest.err 2503 fi 2504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2505 test $ac_status = 0; } > conftest.i && { 2506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2507 test ! -s conftest.err 2508 }; then : 2509 ac_retval=0 2510 else 2511 $as_echo "$as_me: failed program was:" >&5 2512 sed 's/^/| /' conftest.$ac_ext >&5 2513 2514 ac_retval=1 2515 fi 2516 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2517 as_fn_set_status $ac_retval 2518 2519 } # ac_fn_c_try_cpp 2520 2521 # ac_fn_cxx_try_cpp LINENO 2522 # ------------------------ 2523 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2524 ac_fn_cxx_try_cpp () 2525 { 2526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2527 if { { ac_try="$ac_cpp conftest.$ac_ext" 2528 case "(($ac_try" in 2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2530 *) ac_try_echo=$ac_try;; 2531 esac 2532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2533 $as_echo "$ac_try_echo"; } >&5 2534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2535 ac_status=$? 2536 if test -s conftest.err; then 2537 grep -v '^ *+' conftest.err >conftest.er1 2538 cat conftest.er1 >&5 2539 mv -f conftest.er1 conftest.err 2540 fi 2541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2542 test $ac_status = 0; } > conftest.i && { 2543 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2544 test ! -s conftest.err 2545 }; then : 2546 ac_retval=0 2547 else 2548 $as_echo "$as_me: failed program was:" >&5 2549 sed 's/^/| /' conftest.$ac_ext >&5 2550 2551 ac_retval=1 2552 fi 2553 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2554 as_fn_set_status $ac_retval 2555 2556 } # ac_fn_cxx_try_cpp 2557 2558 # ac_fn_c_try_link LINENO 2559 # ----------------------- 2560 # Try to link conftest.$ac_ext, and return whether this succeeded. 2561 ac_fn_c_try_link () 2562 { 2563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2564 rm -f conftest.$ac_objext conftest$ac_exeext 2565 if { { ac_try="$ac_link" 2566 case "(($ac_try" in 2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2568 *) ac_try_echo=$ac_try;; 2569 esac 2570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2571 $as_echo "$ac_try_echo"; } >&5 2572 (eval "$ac_link") 2>conftest.err 2573 ac_status=$? 2574 if test -s conftest.err; then 2575 grep -v '^ *+' conftest.err >conftest.er1 2576 cat conftest.er1 >&5 2577 mv -f conftest.er1 conftest.err 2578 fi 2579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2580 test $ac_status = 0; } && { 2581 test -z "$ac_c_werror_flag" || 2582 test ! -s conftest.err 2583 } && test -s conftest$ac_exeext && { 2584 test "$cross_compiling" = yes || 2585 test -x conftest$ac_exeext 2586 }; then : 2587 ac_retval=0 2588 else 2589 $as_echo "$as_me: failed program was:" >&5 2590 sed 's/^/| /' conftest.$ac_ext >&5 2591 2592 ac_retval=1 2593 fi 2594 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2595 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2596 # interfere with the next link command; also delete a directory that is 2597 # left behind by Apple's compiler. We do this before executing the actions. 2598 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2600 as_fn_set_status $ac_retval 2601 2602 } # ac_fn_c_try_link 2603 2604 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2605 # --------------------------------------------------------- 2606 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2607 # the include files in INCLUDES and setting the cache variable VAR 2608 # accordingly. 2609 ac_fn_cxx_check_header_mongrel () 2610 { 2611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2612 if eval \${$3+:} false; then : 2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2614 $as_echo_n "checking for $2... " >&6; } 2615 if eval \${$3+:} false; then : 2616 $as_echo_n "(cached) " >&6 2617 fi 2618 eval ac_res=\$$3 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2620 $as_echo "$ac_res" >&6; } 2621 else 2622 # Is the header compilable? 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2624 $as_echo_n "checking $2 usability... " >&6; } 2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2626 /* end confdefs.h. */ 2627 $4 2628 #include <$2> 2629 _ACEOF 2630 if ac_fn_cxx_try_compile "$LINENO"; then : 2631 ac_header_compiler=yes 2632 else 2633 ac_header_compiler=no 2634 fi 2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2637 $as_echo "$ac_header_compiler" >&6; } 2638 2639 # Is the header present? 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2641 $as_echo_n "checking $2 presence... " >&6; } 2642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2643 /* end confdefs.h. */ 2644 #include <$2> 2645 _ACEOF 2646 if ac_fn_cxx_try_cpp "$LINENO"; then : 2647 ac_header_preproc=yes 2648 else 2649 ac_header_preproc=no 2650 fi 2651 rm -f conftest.err conftest.i conftest.$ac_ext 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2653 $as_echo "$ac_header_preproc" >&6; } 2654 2655 # So? What about this header? 2656 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2657 yes:no: ) 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2659 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2661 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2662 ;; 2663 no:yes:* ) 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2665 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2667 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2669 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2671 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2673 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2674 ( $as_echo "## ----------------------------------------- ## 2675 ## Report this to build-dev@openjdk.java.net ## 2676 ## ----------------------------------------- ##" 2677 ) | sed "s/^/$as_me: WARNING: /" >&2 2678 ;; 2679 esac 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2681 $as_echo_n "checking for $2... " >&6; } 2682 if eval \${$3+:} false; then : 2683 $as_echo_n "(cached) " >&6 2684 else 2685 eval "$3=\$ac_header_compiler" 2686 fi 2687 eval ac_res=\$$3 2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2689 $as_echo "$ac_res" >&6; } 2690 fi 2691 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2692 2693 } # ac_fn_cxx_check_header_mongrel 2694 2695 # ac_fn_cxx_try_run LINENO 2696 # ------------------------ 2697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2698 # that executables *can* be run. 2699 ac_fn_cxx_try_run () 2700 { 2701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2702 if { { ac_try="$ac_link" 2703 case "(($ac_try" in 2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2705 *) ac_try_echo=$ac_try;; 2706 esac 2707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2708 $as_echo "$ac_try_echo"; } >&5 2709 (eval "$ac_link") 2>&5 2710 ac_status=$? 2711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2713 { { case "(($ac_try" in 2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2715 *) ac_try_echo=$ac_try;; 2716 esac 2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2718 $as_echo "$ac_try_echo"; } >&5 2719 (eval "$ac_try") 2>&5 2720 ac_status=$? 2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2722 test $ac_status = 0; }; }; then : 2723 ac_retval=0 2724 else 2725 $as_echo "$as_me: program exited with status $ac_status" >&5 2726 $as_echo "$as_me: failed program was:" >&5 2727 sed 's/^/| /' conftest.$ac_ext >&5 2728 2729 ac_retval=$ac_status 2730 fi 2731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2733 as_fn_set_status $ac_retval 2734 2735 } # ac_fn_cxx_try_run 2736 2737 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2738 # --------------------------------------------------------- 2739 # Tests whether HEADER exists and can be compiled using the include files in 2740 # INCLUDES, setting the cache variable VAR accordingly. 2741 ac_fn_cxx_check_header_compile () 2742 { 2743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2745 $as_echo_n "checking for $2... " >&6; } 2746 if eval \${$3+:} false; then : 2747 $as_echo_n "(cached) " >&6 2748 else 2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2750 /* end confdefs.h. */ 2751 $4 2752 #include <$2> 2753 _ACEOF 2754 if ac_fn_cxx_try_compile "$LINENO"; then : 2755 eval "$3=yes" 2756 else 2757 eval "$3=no" 2758 fi 2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2760 fi 2761 eval ac_res=\$$3 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2763 $as_echo "$ac_res" >&6; } 2764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2765 2766 } # ac_fn_cxx_check_header_compile 2767 2768 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2769 # ---------------------------------------------- 2770 # Tries to find the compile-time value of EXPR in a program that includes 2771 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2772 # computed 2773 ac_fn_cxx_compute_int () 2774 { 2775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2776 if test "$cross_compiling" = yes; then 2777 # Depending upon the size, compute the lo and hi bounds. 2778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2779 /* end confdefs.h. */ 2780 $4 2781 int 2782 main () 2783 { 2784 static int test_array [1 - 2 * !(($2) >= 0)]; 2785 test_array [0] = 0; 2786 return test_array [0]; 2787 2788 ; 2789 return 0; 2790 } 2791 _ACEOF 2792 if ac_fn_cxx_try_compile "$LINENO"; then : 2793 ac_lo=0 ac_mid=0 2794 while :; do 2795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2796 /* end confdefs.h. */ 2797 $4 2798 int 2799 main () 2800 { 2801 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2802 test_array [0] = 0; 2803 return test_array [0]; 2804 2805 ; 2806 return 0; 2807 } 2808 _ACEOF 2809 if ac_fn_cxx_try_compile "$LINENO"; then : 2810 ac_hi=$ac_mid; break 2811 else 2812 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2813 if test $ac_lo -le $ac_mid; then 2814 ac_lo= ac_hi= 2815 break 2816 fi 2817 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2818 fi 2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2820 done 2821 else 2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2823 /* end confdefs.h. */ 2824 $4 2825 int 2826 main () 2827 { 2828 static int test_array [1 - 2 * !(($2) < 0)]; 2829 test_array [0] = 0; 2830 return test_array [0]; 2831 2832 ; 2833 return 0; 2834 } 2835 _ACEOF 2836 if ac_fn_cxx_try_compile "$LINENO"; then : 2837 ac_hi=-1 ac_mid=-1 2838 while :; do 2839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2840 /* end confdefs.h. */ 2841 $4 2842 int 2843 main () 2844 { 2845 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2846 test_array [0] = 0; 2847 return test_array [0]; 2848 2849 ; 2850 return 0; 2851 } 2852 _ACEOF 2853 if ac_fn_cxx_try_compile "$LINENO"; then : 2854 ac_lo=$ac_mid; break 2855 else 2856 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2857 if test $ac_mid -le $ac_hi; then 2858 ac_lo= ac_hi= 2859 break 2860 fi 2861 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2862 fi 2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2864 done 2865 else 2866 ac_lo= ac_hi= 2867 fi 2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2869 fi 2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2871 # Binary search between lo and hi bounds. 2872 while test "x$ac_lo" != "x$ac_hi"; do 2873 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2875 /* end confdefs.h. */ 2876 $4 2877 int 2878 main () 2879 { 2880 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2881 test_array [0] = 0; 2882 return test_array [0]; 2883 2884 ; 2885 return 0; 2886 } 2887 _ACEOF 2888 if ac_fn_cxx_try_compile "$LINENO"; then : 2889 ac_hi=$ac_mid 2890 else 2891 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2892 fi 2893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2894 done 2895 case $ac_lo in #(( 2896 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2897 '') ac_retval=1 ;; 2898 esac 2899 else 2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2901 /* end confdefs.h. */ 2902 $4 2903 static long int longval () { return $2; } 2904 static unsigned long int ulongval () { return $2; } 2905 #include <stdio.h> 2906 #include <stdlib.h> 2907 int 2908 main () 2909 { 2910 2911 FILE *f = fopen ("conftest.val", "w"); 2912 if (! f) 2913 return 1; 2914 if (($2) < 0) 2915 { 2916 long int i = longval (); 2917 if (i != ($2)) 2918 return 1; 2919 fprintf (f, "%ld", i); 2920 } 2921 else 2922 { 2923 unsigned long int i = ulongval (); 2924 if (i != ($2)) 2925 return 1; 2926 fprintf (f, "%lu", i); 2927 } 2928 /* Do not output a trailing newline, as this causes \r\n confusion 2929 on some platforms. */ 2930 return ferror (f) || fclose (f) != 0; 2931 2932 ; 2933 return 0; 2934 } 2935 _ACEOF 2936 if ac_fn_cxx_try_run "$LINENO"; then : 2937 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2938 else 2939 ac_retval=1 2940 fi 2941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2942 conftest.$ac_objext conftest.beam conftest.$ac_ext 2943 rm -f conftest.val 2944 2945 fi 2946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2947 as_fn_set_status $ac_retval 2948 2949 } # ac_fn_cxx_compute_int 2950 2951 # ac_fn_cxx_try_link LINENO 2952 # ------------------------- 2953 # Try to link conftest.$ac_ext, and return whether this succeeded. 2954 ac_fn_cxx_try_link () 2955 { 2956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2957 rm -f conftest.$ac_objext conftest$ac_exeext 2958 if { { ac_try="$ac_link" 2959 case "(($ac_try" in 2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2961 *) ac_try_echo=$ac_try;; 2962 esac 2963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2964 $as_echo "$ac_try_echo"; } >&5 2965 (eval "$ac_link") 2>conftest.err 2966 ac_status=$? 2967 if test -s conftest.err; then 2968 grep -v '^ *+' conftest.err >conftest.er1 2969 cat conftest.er1 >&5 2970 mv -f conftest.er1 conftest.err 2971 fi 2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2973 test $ac_status = 0; } && { 2974 test -z "$ac_cxx_werror_flag" || 2975 test ! -s conftest.err 2976 } && test -s conftest$ac_exeext && { 2977 test "$cross_compiling" = yes || 2978 test -x conftest$ac_exeext 2979 }; then : 2980 ac_retval=0 2981 else 2982 $as_echo "$as_me: failed program was:" >&5 2983 sed 's/^/| /' conftest.$ac_ext >&5 2984 2985 ac_retval=1 2986 fi 2987 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2988 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2989 # interfere with the next link command; also delete a directory that is 2990 # left behind by Apple's compiler. We do this before executing the actions. 2991 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2993 as_fn_set_status $ac_retval 2994 2995 } # ac_fn_cxx_try_link 2996 2997 # ac_fn_cxx_check_func LINENO FUNC VAR 2998 # ------------------------------------ 2999 # Tests whether FUNC exists, setting the cache variable VAR accordingly 3000 ac_fn_cxx_check_func () 3001 { 3002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3004 $as_echo_n "checking for $2... " >&6; } 3005 if eval \${$3+:} false; then : 3006 $as_echo_n "(cached) " >&6 3007 else 3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3009 /* end confdefs.h. */ 3010 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3011 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3012 #define $2 innocuous_$2 3013 3014 /* System header to define __stub macros and hopefully few prototypes, 3015 which can conflict with char $2 (); below. 3016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3017 <limits.h> exists even on freestanding compilers. */ 3018 3019 #ifdef __STDC__ 3020 # include <limits.h> 3021 #else 3022 # include <assert.h> 3023 #endif 3024 3025 #undef $2 3026 3027 /* Override any GCC internal prototype to avoid an error. 3028 Use char because int might match the return type of a GCC 3029 builtin and then its argument prototype would still apply. */ 3030 #ifdef __cplusplus 3031 extern "C" 3032 #endif 3033 char $2 (); 3034 /* The GNU C library defines this for functions which it implements 3035 to always fail with ENOSYS. Some functions are actually named 3036 something starting with __ and the normal name is an alias. */ 3037 #if defined __stub_$2 || defined __stub___$2 3038 choke me 3039 #endif 3040 3041 int 3042 main () 3043 { 3044 return $2 (); 3045 ; 3046 return 0; 3047 } 3048 _ACEOF 3049 if ac_fn_cxx_try_link "$LINENO"; then : 3050 eval "$3=yes" 3051 else 3052 eval "$3=no" 3053 fi 3054 rm -f core conftest.err conftest.$ac_objext \ 3055 conftest$ac_exeext conftest.$ac_ext 3056 fi 3057 eval ac_res=\$$3 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3059 $as_echo "$ac_res" >&6; } 3060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3061 3062 } # ac_fn_cxx_check_func 3063 3064 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3065 # ------------------------------------------------------- 3066 # Tests whether HEADER exists and can be compiled using the include files in 3067 # INCLUDES, setting the cache variable VAR accordingly. 3068 ac_fn_c_check_header_compile () 3069 { 3070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3072 $as_echo_n "checking for $2... " >&6; } 3073 if eval \${$3+:} false; then : 3074 $as_echo_n "(cached) " >&6 3075 else 3076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3077 /* end confdefs.h. */ 3078 $4 3079 #include <$2> 3080 _ACEOF 3081 if ac_fn_c_try_compile "$LINENO"; then : 3082 eval "$3=yes" 3083 else 3084 eval "$3=no" 3085 fi 3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3087 fi 3088 eval ac_res=\$$3 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3090 $as_echo "$ac_res" >&6; } 3091 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3092 3093 } # ac_fn_c_check_header_compile 3094 cat >config.log <<_ACEOF 3095 This file contains any messages produced by compilers while 3096 running configure, to aid debugging if configure makes a mistake. 3097 3098 It was created by OpenJDK $as_me jdk9, which was 3099 generated by GNU Autoconf 2.69. Invocation command line was 3100 3101 $ $0 $@ 3102 3103 _ACEOF 3104 exec 5>>config.log 3105 { 3106 cat <<_ASUNAME 3107 ## --------- ## 3108 ## Platform. ## 3109 ## --------- ## 3110 3111 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3112 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3113 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3114 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3115 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3116 3117 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3118 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3119 3120 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3121 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3122 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3123 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3124 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3125 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3126 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3127 3128 _ASUNAME 3129 3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3131 for as_dir in $PATH 3132 do 3133 IFS=$as_save_IFS 3134 test -z "$as_dir" && as_dir=. 3135 $as_echo "PATH: $as_dir" 3136 done 3137 IFS=$as_save_IFS 3138 3139 } >&5 3140 3141 cat >&5 <<_ACEOF 3142 3143 3144 ## ----------- ## 3145 ## Core tests. ## 3146 ## ----------- ## 3147 3148 _ACEOF 3149 3150 3151 # Keep a trace of the command line. 3152 # Strip out --no-create and --no-recursion so they do not pile up. 3153 # Strip out --silent because we don't want to record it for future runs. 3154 # Also quote any args containing shell meta-characters. 3155 # Make two passes to allow for proper duplicate-argument suppression. 3156 ac_configure_args= 3157 ac_configure_args0= 3158 ac_configure_args1= 3159 ac_must_keep_next=false 3160 for ac_pass in 1 2 3161 do 3162 for ac_arg 3163 do 3164 case $ac_arg in 3165 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3167 | -silent | --silent | --silen | --sile | --sil) 3168 continue ;; 3169 *\'*) 3170 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3171 esac 3172 case $ac_pass in 3173 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3174 2) 3175 as_fn_append ac_configure_args1 " '$ac_arg'" 3176 if test $ac_must_keep_next = true; then 3177 ac_must_keep_next=false # Got value, back to normal. 3178 else 3179 case $ac_arg in 3180 *=* | --config-cache | -C | -disable-* | --disable-* \ 3181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3183 | -with-* | --with-* | -without-* | --without-* | --x) 3184 case "$ac_configure_args0 " in 3185 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3186 esac 3187 ;; 3188 -* ) ac_must_keep_next=true ;; 3189 esac 3190 fi 3191 as_fn_append ac_configure_args " '$ac_arg'" 3192 ;; 3193 esac 3194 done 3195 done 3196 { ac_configure_args0=; unset ac_configure_args0;} 3197 { ac_configure_args1=; unset ac_configure_args1;} 3198 3199 # When interrupted or exit'd, cleanup temporary files, and complete 3200 # config.log. We remove comments because anyway the quotes in there 3201 # would cause problems or look ugly. 3202 # WARNING: Use '\'' to represent an apostrophe within the trap. 3203 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3204 trap 'exit_status=$? 3205 # Save into config.log some information that might help in debugging. 3206 { 3207 echo 3208 3209 $as_echo "## ---------------- ## 3210 ## Cache variables. ## 3211 ## ---------------- ##" 3212 echo 3213 # The following way of writing the cache mishandles newlines in values, 3214 ( 3215 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3216 eval ac_val=\$$ac_var 3217 case $ac_val in #( 3218 *${as_nl}*) 3219 case $ac_var in #( 3220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3221 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3222 esac 3223 case $ac_var in #( 3224 _ | IFS | as_nl) ;; #( 3225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3226 *) { eval $ac_var=; unset $ac_var;} ;; 3227 esac ;; 3228 esac 3229 done 3230 (set) 2>&1 | 3231 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3232 *${as_nl}ac_space=\ *) 3233 sed -n \ 3234 "s/'\''/'\''\\\\'\'''\''/g; 3235 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3236 ;; #( 3237 *) 3238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3239 ;; 3240 esac | 3241 sort 3242 ) 3243 echo 3244 3245 $as_echo "## ----------------- ## 3246 ## Output variables. ## 3247 ## ----------------- ##" 3248 echo 3249 for ac_var in $ac_subst_vars 3250 do 3251 eval ac_val=\$$ac_var 3252 case $ac_val in 3253 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3254 esac 3255 $as_echo "$ac_var='\''$ac_val'\''" 3256 done | sort 3257 echo 3258 3259 if test -n "$ac_subst_files"; then 3260 $as_echo "## ------------------- ## 3261 ## File substitutions. ## 3262 ## ------------------- ##" 3263 echo 3264 for ac_var in $ac_subst_files 3265 do 3266 eval ac_val=\$$ac_var 3267 case $ac_val in 3268 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3269 esac 3270 $as_echo "$ac_var='\''$ac_val'\''" 3271 done | sort 3272 echo 3273 fi 3274 3275 if test -s confdefs.h; then 3276 $as_echo "## ----------- ## 3277 ## confdefs.h. ## 3278 ## ----------- ##" 3279 echo 3280 cat confdefs.h 3281 echo 3282 fi 3283 test "$ac_signal" != 0 && 3284 $as_echo "$as_me: caught signal $ac_signal" 3285 $as_echo "$as_me: exit $exit_status" 3286 } >&5 3287 rm -f core *.core core.conftest.* && 3288 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3289 exit $exit_status 3290 ' 0 3291 for ac_signal in 1 2 13 15; do 3292 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3293 done 3294 ac_signal=0 3295 3296 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3297 rm -f -r conftest* confdefs.h 3298 3299 $as_echo "/* confdefs.h */" > confdefs.h 3300 3301 # Predefined preprocessor variables. 3302 3303 cat >>confdefs.h <<_ACEOF 3304 #define PACKAGE_NAME "$PACKAGE_NAME" 3305 _ACEOF 3306 3307 cat >>confdefs.h <<_ACEOF 3308 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3309 _ACEOF 3310 3311 cat >>confdefs.h <<_ACEOF 3312 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3313 _ACEOF 3314 3315 cat >>confdefs.h <<_ACEOF 3316 #define PACKAGE_STRING "$PACKAGE_STRING" 3317 _ACEOF 3318 3319 cat >>confdefs.h <<_ACEOF 3320 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3321 _ACEOF 3322 3323 cat >>confdefs.h <<_ACEOF 3324 #define PACKAGE_URL "$PACKAGE_URL" 3325 _ACEOF 3326 3327 3328 # Let the site file select an alternate cache file if it wants to. 3329 # Prefer an explicitly selected file to automatically selected ones. 3330 ac_site_file1=NONE 3331 ac_site_file2=NONE 3332 if test -n "$CONFIG_SITE"; then 3333 # We do not want a PATH search for config.site. 3334 case $CONFIG_SITE in #(( 3335 -*) ac_site_file1=./$CONFIG_SITE;; 3336 */*) ac_site_file1=$CONFIG_SITE;; 3337 *) ac_site_file1=./$CONFIG_SITE;; 3338 esac 3339 elif test "x$prefix" != xNONE; then 3340 ac_site_file1=$prefix/share/config.site 3341 ac_site_file2=$prefix/etc/config.site 3342 else 3343 ac_site_file1=$ac_default_prefix/share/config.site 3344 ac_site_file2=$ac_default_prefix/etc/config.site 3345 fi 3346 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3347 do 3348 test "x$ac_site_file" = xNONE && continue 3349 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3351 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3352 sed 's/^/| /' "$ac_site_file" >&5 3353 . "$ac_site_file" \ 3354 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3355 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3356 as_fn_error $? "failed to load site script $ac_site_file 3357 See \`config.log' for more details" "$LINENO" 5; } 3358 fi 3359 done 3360 3361 if test -r "$cache_file"; then 3362 # Some versions of bash will fail to source /dev/null (special files 3363 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3366 $as_echo "$as_me: loading cache $cache_file" >&6;} 3367 case $cache_file in 3368 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3369 *) . "./$cache_file";; 3370 esac 3371 fi 3372 else 3373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3374 $as_echo "$as_me: creating cache $cache_file" >&6;} 3375 >$cache_file 3376 fi 3377 3378 # Check that the precious variables saved in the cache have kept the same 3379 # value. 3380 ac_cache_corrupted=false 3381 for ac_var in $ac_precious_vars; do 3382 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3383 eval ac_new_set=\$ac_env_${ac_var}_set 3384 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3385 eval ac_new_val=\$ac_env_${ac_var}_value 3386 case $ac_old_set,$ac_new_set in 3387 set,) 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3389 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3390 ac_cache_corrupted=: ;; 3391 ,set) 3392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3393 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3394 ac_cache_corrupted=: ;; 3395 ,);; 3396 *) 3397 if test "x$ac_old_val" != "x$ac_new_val"; then 3398 # differences in whitespace do not lead to failure. 3399 ac_old_val_w=`echo x $ac_old_val` 3400 ac_new_val_w=`echo x $ac_new_val` 3401 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3403 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3404 ac_cache_corrupted=: 3405 else 3406 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3407 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3408 eval $ac_var=\$ac_old_val 3409 fi 3410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3411 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3413 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3414 fi;; 3415 esac 3416 # Pass precious variables to config.status. 3417 if test "$ac_new_set" = set; then 3418 case $ac_new_val in 3419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3420 *) ac_arg=$ac_var=$ac_new_val ;; 3421 esac 3422 case " $ac_configure_args " in 3423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3424 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3425 esac 3426 fi 3427 done 3428 if $ac_cache_corrupted; then 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3432 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3433 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3434 fi 3435 ## -------------------- ## 3436 ## Main body of script. ## 3437 ## -------------------- ## 3438 3439 ac_ext=c 3440 ac_cpp='$CPP $CPPFLAGS' 3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3444 3445 3446 3447 ac_aux_dir= 3448 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do 3449 if test -f "$ac_dir/install-sh"; then 3450 ac_aux_dir=$ac_dir 3451 ac_install_sh="$ac_aux_dir/install-sh -c" 3452 break 3453 elif test -f "$ac_dir/install.sh"; then 3454 ac_aux_dir=$ac_dir 3455 ac_install_sh="$ac_aux_dir/install.sh -c" 3456 break 3457 elif test -f "$ac_dir/shtool"; then 3458 ac_aux_dir=$ac_dir 3459 ac_install_sh="$ac_aux_dir/shtool install -c" 3460 break 3461 fi 3462 done 3463 if test -z "$ac_aux_dir"; then 3464 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/make/autoconf/build-aux \"$srcdir\"/$TOPDIR/make/autoconf/build-aux" "$LINENO" 5 3465 fi 3466 3467 # These three variables are undocumented and unsupported, 3468 # and are intended to be withdrawn in a future Autoconf release. 3469 # They can cause serious problems if a builder's source tree is in a directory 3470 # whose full name contains unusual characters. 3471 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3472 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3473 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3474 3475 3476 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3477 3478 # 3479 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3480 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3481 # 3482 # This code is free software; you can redistribute it and/or modify it 3483 # under the terms of the GNU General Public License version 2 only, as 3484 # published by the Free Software Foundation. Oracle designates this 3485 # particular file as subject to the "Classpath" exception as provided 3486 # by Oracle in the LICENSE file that accompanied this code. 3487 # 3488 # This code is distributed in the hope that it will be useful, but WITHOUT 3489 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3490 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3491 # version 2 for more details (a copy is included in the LICENSE file that 3492 # accompanied this code). 3493 # 3494 # You should have received a copy of the GNU General Public License version 3495 # 2 along with this work; if not, write to the Free Software Foundation, 3496 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3497 # 3498 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3499 # or visit www.oracle.com if you need additional information or have any 3500 # questions. 3501 # 3502 3503 # 3504 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3505 # 3506 # This program is free software; you can redistribute it and/or modify 3507 # it under the terms of the GNU General Public License as published by 3508 # the Free Software Foundation; either version 2 of the License, or 3509 # (at your option) any later version. 3510 # 3511 # This program is distributed in the hope that it will be useful, but 3512 # WITHOUT ANY WARRANTY; without even the implied warranty of 3513 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3514 # General Public License for more details. 3515 # 3516 # You should have received a copy of the GNU General Public License 3517 # along with this program; if not, write to the Free Software 3518 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3519 # 3520 # As a special exception to the GNU General Public License, if you 3521 # distribute this file as part of a program that contains a 3522 # configuration script generated by Autoconf, you may include it under 3523 # the same distribution terms that you use for the rest of that program. 3524 3525 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3526 # ---------------------------------- 3527 # PKG_PROG_PKG_CONFIG 3528 3529 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3530 # 3531 # Check to see whether a particular set of modules exists. Similar 3532 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3533 # 3534 # 3535 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3536 # this or PKG_CHECK_MODULES is called, or make sure to call 3537 # PKG_CHECK_EXISTS manually 3538 # -------------------------------------------------------------- 3539 3540 3541 3542 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3543 # --------------------------------------------- 3544 # _PKG_CONFIG 3545 3546 # _PKG_SHORT_ERRORS_SUPPORTED 3547 # ----------------------------- 3548 # _PKG_SHORT_ERRORS_SUPPORTED 3549 3550 3551 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3552 # [ACTION-IF-NOT-FOUND]) 3553 # 3554 # 3555 # Note that if there is a possibility the first call to 3556 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3557 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3558 # 3559 # 3560 # -------------------------------------------------------------- 3561 # PKG_CHECK_MODULES 3562 3563 3564 # Include these first... 3565 # 3566 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3567 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3568 # 3569 # This code is free software; you can redistribute it and/or modify it 3570 # under the terms of the GNU General Public License version 2 only, as 3571 # published by the Free Software Foundation. Oracle designates this 3572 # particular file as subject to the "Classpath" exception as provided 3573 # by Oracle in the LICENSE file that accompanied this code. 3574 # 3575 # This code is distributed in the hope that it will be useful, but WITHOUT 3576 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3577 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3578 # version 2 for more details (a copy is included in the LICENSE file that 3579 # accompanied this code). 3580 # 3581 # You should have received a copy of the GNU General Public License version 3582 # 2 along with this work; if not, write to the Free Software Foundation, 3583 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3584 # 3585 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3586 # or visit www.oracle.com if you need additional information or have any 3587 # questions. 3588 # 3589 3590 # Create a function/macro that takes a series of named arguments. The call is 3591 # similar to AC_DEFUN, but the setup of the function looks like this: 3592 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3593 # ... do something 3594 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3595 # ]) 3596 # A star (*) in front of a named argument means that it is required and it's 3597 # presence will be verified. To pass e.g. the first value as a normal indexed 3598 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3599 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3600 # "ARG_FOO". 3601 # 3602 # The generated function can be called like this: 3603 # MYFUNC(FOO: [foo-val], 3604 # BAR: [ 3605 # $ECHO hello world 3606 # ]) 3607 # Note that the argument value must start on the same line as the argument name. 3608 # 3609 # Argument 1: Name of the function to define 3610 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3611 # Argument 3: Argument array to treat as named, typically $@ 3612 # Argument 4: The main function body 3613 3614 3615 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3616 # If so, then append $1 to $2 \ 3617 # Also set JVM_ARG_OK to true/false depending on outcome. 3618 3619 3620 # Appends a string to a path variable, only adding the : when needed. 3621 3622 3623 # Prepends a string to a path variable, only adding the : when needed. 3624 3625 3626 # This will make sure the given variable points to a full and proper 3627 # path. This means: 3628 # 1) There will be no spaces in the path. On unix platforms, 3629 # spaces in the path will result in an error. On Windows, 3630 # the path will be rewritten using short-style to be space-free. 3631 # 2) The path will be absolute, and it will be in unix-style (on 3632 # cygwin). 3633 # $1: The name of the variable to fix 3634 3635 3636 # This will make sure the given variable points to a executable 3637 # with a full and proper path. This means: 3638 # 1) There will be no spaces in the path. On unix platforms, 3639 # spaces in the path will result in an error. On Windows, 3640 # the path will be rewritten using short-style to be space-free. 3641 # 2) The path will be absolute, and it will be in unix-style (on 3642 # cygwin). 3643 # Any arguments given to the executable is preserved. 3644 # If the input variable does not have a directory specification, then 3645 # it need to be in the PATH. 3646 # $1: The name of the variable to fix 3647 3648 3649 3650 3651 # Register a --with argument but mark it as deprecated 3652 # $1: The name of the with argument to deprecate, not including --with- 3653 3654 3655 # Register a --enable argument but mark it as deprecated 3656 # $1: The name of the with argument to deprecate, not including --enable- 3657 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3658 # $3: Messages to user. 3659 3660 3661 3662 3663 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3664 # $1: variable to check 3665 3666 3667 # Check that there are no unprocessed overridden variables left. 3668 # If so, they are an incorrect argument and we will exit with an error. 3669 3670 3671 # Setup a tool for the given variable. If correctly specified by the user, 3672 # use that value, otherwise search for the tool using the supplied code snippet. 3673 # $1: variable to set 3674 # $2: code snippet to call to look for the tool 3675 # $3: code snippet to call if variable was used to find tool 3676 3677 3678 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3679 # $1: variable to set 3680 # $2: executable name (or list of names) to look for 3681 # $3: [path] 3682 3683 3684 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3685 # $1: variable to set 3686 # $2: executable name (or list of names) to look for 3687 3688 3689 # Like BASIC_PATH_PROGS but fails if no tool was found. 3690 # $1: variable to set 3691 # $2: executable name (or list of names) to look for 3692 # $3: [path] 3693 3694 3695 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3696 # $1: variable to set 3697 # $2: autoconf macro to call to look for the special tool 3698 3699 3700 # Setup the most fundamental tools that relies on not much else to set up, 3701 # but is used by much of the early bootstrap code. 3702 3703 3704 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3705 3706 3707 # Evaluates platform specific overrides for devkit variables. 3708 # $1: Name of variable 3709 3710 3711 3712 3713 3714 3715 #%%% Simple tools %%% 3716 3717 # Check if we have found a usable version of make 3718 # $1: the path to a potential make binary (or empty) 3719 # $2: the description on how we found this 3720 3721 3722 3723 3724 # Goes looking for a usable version of GNU make. 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 # Check if build directory is on local disk. If not possible to determine, 3736 # we prefer to claim it's local. 3737 # Argument 1: directory to test 3738 # Argument 2: what to do if it is on local disk 3739 # Argument 3: what to do otherwise (remote disk or failure) 3740 3741 3742 # Check that source files have basic read permissions set. This might 3743 # not be the case in cygwin in certain conditions. 3744 3745 3746 3747 3748 # Check for support for specific options in bash 3749 3750 3751 ################################################################################ 3752 # 3753 # Default make target 3754 # 3755 3756 3757 # Code to run after AC_OUTPUT 3758 3759 3760 # 3761 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3762 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3763 # 3764 # This code is free software; you can redistribute it and/or modify it 3765 # under the terms of the GNU General Public License version 2 only, as 3766 # published by the Free Software Foundation. Oracle designates this 3767 # particular file as subject to the "Classpath" exception as provided 3768 # by Oracle in the LICENSE file that accompanied this code. 3769 # 3770 # This code is distributed in the hope that it will be useful, but WITHOUT 3771 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3772 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3773 # version 2 for more details (a copy is included in the LICENSE file that 3774 # accompanied this code). 3775 # 3776 # You should have received a copy of the GNU General Public License version 3777 # 2 along with this work; if not, write to the Free Software Foundation, 3778 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3779 # 3780 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3781 # or visit www.oracle.com if you need additional information or have any 3782 # questions. 3783 # 3784 3785 3786 3787 3788 3789 # Helper function which possibly converts a path using DOS-style short mode. 3790 # If so, the updated path is stored in $new_path. 3791 # $1: The path to check 3792 3793 3794 # Helper function which possibly converts a path using DOS-style short mode. 3795 # If so, the updated path is stored in $new_path. 3796 # $1: The path to check 3797 3798 3799 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3800 # and could probably be heavily simplified. However, all changes in this 3801 # area tend to need lot of testing in different scenarios, and in lack of 3802 # proper unit testing, cleaning this up has not been deemed worth the effort 3803 # at the moment. 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3814 3815 3816 3817 3818 # ... then the rest 3819 # 3820 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3821 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3822 # 3823 # This code is free software; you can redistribute it and/or modify it 3824 # under the terms of the GNU General Public License version 2 only, as 3825 # published by the Free Software Foundation. Oracle designates this 3826 # particular file as subject to the "Classpath" exception as provided 3827 # by Oracle in the LICENSE file that accompanied this code. 3828 # 3829 # This code is distributed in the hope that it will be useful, but WITHOUT 3830 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3831 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3832 # version 2 for more details (a copy is included in the LICENSE file that 3833 # accompanied this code). 3834 # 3835 # You should have received a copy of the GNU General Public License version 3836 # 2 along with this work; if not, write to the Free Software Foundation, 3837 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3838 # 3839 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3840 # or visit www.oracle.com if you need additional information or have any 3841 # questions. 3842 # 3843 3844 ######################################################################## 3845 # This file handles detection of the Boot JDK. The Boot JDK detection 3846 # process has been developed as a response to solve a complex real-world 3847 # problem. Initially, it was simple, but it has grown as platform after 3848 # platform, idiosyncracy after idiosyncracy has been supported. 3849 # 3850 # The basic idea is this: 3851 # 1) You need an acceptable *) JDK to use as a Boot JDK 3852 # 2) There are several ways to locate a JDK, that are mostly platform 3853 # dependent **) 3854 # 3) You can have multiple JDKs installed 3855 # 4) If possible, configure should try to dig out an acceptable JDK 3856 # automatically, without having to resort to command-line options 3857 # 3858 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3859 # javac) and not a JRE, etc. 3860 # 3861 # **) On Windows we typically use a well-known path. 3862 # On MacOSX we typically use the tool java_home. 3863 # On Linux we typically find javac in the $PATH, and then follow a 3864 # chain of symlinks that often ends up in a real JDK. 3865 # 3866 # This leads to the code where we check in different ways to locate a 3867 # JDK, and if one is found, check if it is acceptable. If not, we print 3868 # our reasons for rejecting it (useful when debugging non-working 3869 # configure situations) and continue checking the next one. 3870 ######################################################################## 3871 3872 # Execute the check given as argument, and verify the result 3873 # If the Boot JDK was previously found, do nothing 3874 # $1 A command line (typically autoconf macro) to execute 3875 3876 3877 # Test: Is bootjdk explicitly set by command line arguments? 3878 3879 3880 # Test: Is $JAVA_HOME set? 3881 3882 3883 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3884 3885 3886 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3887 # $1: Argument to the java_home binary (optional) 3888 3889 3890 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3891 3892 3893 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3894 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3895 # $1 = Path to directory containing jdk installations. 3896 # $2 = String to append to the found JDK directory to get the proper JDK home 3897 3898 3899 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3900 # environmental variable as base for where to look. 3901 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3902 3903 3904 # Test: Is there a JDK installed in default, well-known locations? 3905 3906 3907 # Check that a command-line tool in the Boot JDK is correct 3908 # $1 = name of variable to assign 3909 # $2 = name of binary 3910 3911 3912 ############################################################################### 3913 # 3914 # We need a Boot JDK to bootstrap the build. 3915 # 3916 3917 3918 3919 3920 3921 # BUILD_JDK: the location of the latest JDK that can run 3922 # on the host system and supports the target class file version 3923 # generated in this JDK build. This variable should only be 3924 # used after the launchers are built. 3925 # 3926 3927 # Execute the check given as argument, and verify the result. 3928 # If the JDK was previously found, do nothing. 3929 # $1 A command line (typically autoconf macro) to execute 3930 3931 3932 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3933 # is different than the host system doing the build (e.g. cross-compilation), 3934 # a special BUILD_JDK is built as part of the build process. An external 3935 # prebuilt BUILD_JDK can also be supplied. 3936 3937 3938 # 3939 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3940 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3941 # 3942 # This code is free software; you can redistribute it and/or modify it 3943 # under the terms of the GNU General Public License version 2 only, as 3944 # published by the Free Software Foundation. Oracle designates this 3945 # particular file as subject to the "Classpath" exception as provided 3946 # by Oracle in the LICENSE file that accompanied this code. 3947 # 3948 # This code is distributed in the hope that it will be useful, but WITHOUT 3949 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3950 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3951 # version 2 for more details (a copy is included in the LICENSE file that 3952 # accompanied this code). 3953 # 3954 # You should have received a copy of the GNU General Public License version 3955 # 2 along with this work; if not, write to the Free Software Foundation, 3956 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3957 # 3958 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3959 # or visit www.oracle.com if you need additional information or have any 3960 # questions. 3961 # 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 ################################################################################ 3980 # 3981 # Runs icecc-create-env once and prints the error if it fails 3982 # 3983 # $1: arguments to icecc-create-env 3984 # $2: log file 3985 # 3986 3987 3988 ################################################################################ 3989 # 3990 # Optionally enable distributed compilation of native code using icecc/icecream 3991 # 3992 3993 3994 3995 3996 3997 3998 3999 # 4000 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4001 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4002 # 4003 # This code is free software; you can redistribute it and/or modify it 4004 # under the terms of the GNU General Public License version 2 only, as 4005 # published by the Free Software Foundation. Oracle designates this 4006 # particular file as subject to the "Classpath" exception as provided 4007 # by Oracle in the LICENSE file that accompanied this code. 4008 # 4009 # This code is distributed in the hope that it will be useful, but WITHOUT 4010 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4011 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4012 # version 2 for more details (a copy is included in the LICENSE file that 4013 # accompanied this code). 4014 # 4015 # You should have received a copy of the GNU General Public License version 4016 # 2 along with this work; if not, write to the Free Software Foundation, 4017 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4018 # 4019 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4020 # or visit www.oracle.com if you need additional information or have any 4021 # questions. 4022 # 4023 4024 ################################################################################ 4025 # 4026 # Setup ABI profile (for arm) 4027 # 4028 4029 4030 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4031 # corresponding configure arguments instead 4032 4033 4034 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4035 # that configure can use them while detecting compilers. 4036 # TOOLCHAIN_TYPE is available here. 4037 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4038 4039 4040 4041 4042 4043 4044 # Documentation on common flags used for solstudio in HIGHEST. 4045 # 4046 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4047 # done with care, there are some assumptions below that need to 4048 # be understood about the use of pointers, and IEEE behavior. 4049 # 4050 # -fns: Use non-standard floating point mode (not IEEE 754) 4051 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4052 # -fsingle: Use single precision floating point with 'float' 4053 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4054 # (Source with excessing pointer casting and data access with mixed 4055 # pointer types are not recommended) 4056 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4057 # (If you expect perfect errno behavior, do not use this) 4058 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4059 # -xrestrict: Pointer parameters to functions do not overlap 4060 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4061 # If you pass in multiple pointers to the same data, do not use this) 4062 # -xlibmil: Inline some library routines 4063 # (If you expect perfect errno behavior, do not use this) 4064 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4065 # (If you expect perfect errno behavior, do not use this) 4066 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4067 4068 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4069 # Bug? 4070 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4071 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4072 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4073 #fi 4074 4075 4076 4077 4078 4079 4080 ################################################################################ 4081 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4082 # conditionals against. 4083 # $2 - Optional prefix for each variable defined. 4084 4085 4086 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4087 # IF_FALSE: [RUN-IF-FALSE]) 4088 # ------------------------------------------------------------ 4089 # Check that the C compiler supports an argument 4090 4091 4092 4093 4094 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4095 # IF_FALSE: [RUN-IF-FALSE]) 4096 # ------------------------------------------------------------ 4097 # Check that the C++ compiler supports an argument 4098 4099 4100 4101 4102 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4103 # IF_FALSE: [RUN-IF-FALSE]) 4104 # ------------------------------------------------------------ 4105 # Check that the C and C++ compilers support an argument 4106 4107 4108 4109 4110 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4111 # IF_FALSE: [RUN-IF-FALSE]) 4112 # ------------------------------------------------------------ 4113 # Check that the linker support an argument 4114 4115 4116 4117 4118 4119 4120 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4121 # Arguments: 4122 # $1 - Optional prefix for each variable defined. 4123 4124 4125 # 4126 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4127 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4128 # 4129 # This code is free software; you can redistribute it and/or modify it 4130 # under the terms of the GNU General Public License version 2 only, as 4131 # published by the Free Software Foundation. Oracle designates this 4132 # particular file as subject to the "Classpath" exception as provided 4133 # by Oracle in the LICENSE file that accompanied this code. 4134 # 4135 # This code is distributed in the hope that it will be useful, but WITHOUT 4136 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4137 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4138 # version 2 for more details (a copy is included in the LICENSE file that 4139 # accompanied this code). 4140 # 4141 # You should have received a copy of the GNU General Public License version 4142 # 2 along with this work; if not, write to the Free Software Foundation, 4143 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4144 # 4145 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4146 # or visit www.oracle.com if you need additional information or have any 4147 # questions. 4148 # 4149 4150 4151 4152 4153 4154 cygwin_help() { 4155 case $1 in 4156 unzip) 4157 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4158 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4159 ;; 4160 zip) 4161 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4162 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4163 ;; 4164 make) 4165 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4166 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4167 ;; 4168 freetype) 4169 HELP_MSG=" 4170 The freetype library can now be build during the configure process. 4171 Download the freetype sources and unpack them into an arbitrary directory: 4172 4173 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4174 tar -xzf freetype-2.5.3.tar.gz 4175 4176 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4177 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4178 builds or into '<freetype_src>/lib32' for 32-bit builds. 4179 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4180 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4181 4182 Alternatively you can unpack the sources like this to use the default directory: 4183 4184 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4185 ;; 4186 esac 4187 } 4188 4189 msys_help() { 4190 PKGHANDLER_COMMAND="" 4191 } 4192 4193 apt_help() { 4194 case $1 in 4195 reduced) 4196 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4197 devkit) 4198 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4199 openjdk) 4200 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4201 alsa) 4202 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4203 cups) 4204 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4205 fontconfig) 4206 PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;; 4207 freetype) 4208 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4209 ffi) 4210 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4211 x11) 4212 PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4213 ccache) 4214 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4215 dtrace) 4216 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4217 esac 4218 } 4219 4220 yum_help() { 4221 case $1 in 4222 devkit) 4223 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4224 openjdk) 4225 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4226 alsa) 4227 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4228 cups) 4229 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4230 fontconfig) 4231 PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;; 4232 freetype) 4233 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4234 x11) 4235 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4236 ccache) 4237 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4238 esac 4239 } 4240 4241 brew_help() { 4242 case $1 in 4243 openjdk) 4244 PKGHANDLER_COMMAND="brew cask install java" ;; 4245 freetype) 4246 PKGHANDLER_COMMAND="brew install freetype" ;; 4247 ccache) 4248 PKGHANDLER_COMMAND="brew install ccache" ;; 4249 esac 4250 } 4251 4252 port_help() { 4253 PKGHANDLER_COMMAND="" 4254 } 4255 4256 pkgutil_help() { 4257 PKGHANDLER_COMMAND="" 4258 } 4259 4260 pkgadd_help() { 4261 PKGHANDLER_COMMAND="" 4262 } 4263 4264 # This function will check if we're called from the "configure" wrapper while 4265 # printing --help. If so, we will print out additional information that can 4266 # only be extracted within the autoconf script, and then exit. This must be 4267 # called at the very beginning in configure.ac. 4268 4269 4270 4271 4272 4273 4274 # 4275 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4276 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4277 # 4278 # This code is free software; you can redistribute it and/or modify it 4279 # under the terms of the GNU General Public License version 2 only, as 4280 # published by the Free Software Foundation. Oracle designates this 4281 # particular file as subject to the "Classpath" exception as provided 4282 # by Oracle in the LICENSE file that accompanied this code. 4283 # 4284 # This code is distributed in the hope that it will be useful, but WITHOUT 4285 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4286 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4287 # version 2 for more details (a copy is included in the LICENSE file that 4288 # accompanied this code). 4289 # 4290 # You should have received a copy of the GNU General Public License version 4291 # 2 along with this work; if not, write to the Free Software Foundation, 4292 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4293 # 4294 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4295 # or visit www.oracle.com if you need additional information or have any 4296 # questions. 4297 # 4298 4299 # All valid JVM features, regardless of platform 4300 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \ 4301 graal vm-structs jni-check services management all-gcs nmt cds \ 4302 static-build link-time-opt aot" 4303 4304 # All valid JVM variants 4305 VALID_JVM_VARIANTS="server client minimal core zero custom" 4306 4307 ############################################################################### 4308 # Check if the specified JVM variant should be built. To be used in shell if 4309 # constructs, like this: 4310 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4311 # 4312 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4313 4314 # Definition kept in one line to allow inlining in if statements. 4315 # Additional [] needed to keep m4 from mangling shell constructs. 4316 4317 4318 ############################################################################### 4319 # Check if the specified JVM features are explicitly enabled. To be used in 4320 # shell if constructs, like this: 4321 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4322 # 4323 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4324 4325 # Definition kept in one line to allow inlining in if statements. 4326 # Additional [] needed to keep m4 from mangling shell constructs. 4327 4328 4329 ############################################################################### 4330 # Check which variants of the JVM that we want to build. Available variants are: 4331 # server: normal interpreter, and a tiered C1/C2 compiler 4332 # client: normal interpreter, and C1 (no C2 compiler) 4333 # minimal: reduced form of client with optional features stripped out 4334 # core: normal interpreter only, no compiler 4335 # zero: C++ based interpreter only, no compiler 4336 # custom: baseline JVM with no default features 4337 # 4338 4339 4340 ############################################################################### 4341 # Check if dtrace should be enabled and has all prerequisites present. 4342 # 4343 4344 4345 ################################################################################ 4346 # Check if AOT should be enabled 4347 # 4348 4349 4350 ################################################################################ 4351 # Allow to disable CDS 4352 # 4353 4354 4355 ############################################################################### 4356 # Set up all JVM features for each JVM variant. 4357 # 4358 4359 4360 ############################################################################### 4361 # Validate JVM features once all setup is complete, including custom setup. 4362 # 4363 4364 4365 ################################################################################ 4366 # 4367 # Specify which sources will be used to build the 64-bit ARM port 4368 # 4369 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm 4370 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64 4371 # 4372 4373 4374 4375 ################################################################################ 4376 # Check if gtest should be built 4377 # 4378 4379 4380 # 4381 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4382 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4383 # 4384 # This code is free software; you can redistribute it and/or modify it 4385 # under the terms of the GNU General Public License version 2 only, as 4386 # published by the Free Software Foundation. Oracle designates this 4387 # particular file as subject to the "Classpath" exception as provided 4388 # by Oracle in the LICENSE file that accompanied this code. 4389 # 4390 # This code is distributed in the hope that it will be useful, but WITHOUT 4391 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4392 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4393 # version 2 for more details (a copy is included in the LICENSE file that 4394 # accompanied this code). 4395 # 4396 # You should have received a copy of the GNU General Public License version 4397 # 2 along with this work; if not, write to the Free Software Foundation, 4398 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4399 # 4400 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4401 # or visit www.oracle.com if you need additional information or have any 4402 # questions. 4403 # 4404 4405 ############################################################################### 4406 # Check which variant of the JDK that we want to build. 4407 # Currently we have: 4408 # normal: standard edition 4409 # but the custom make system may add other variants 4410 # 4411 # Effectively the JDK variant gives a name to a specific set of 4412 # modules to compile into the JDK. 4413 4414 4415 ############################################################################### 4416 # Set the debug level 4417 # release: no debug information, all optimizations, no asserts. 4418 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4419 # fastdebug: debug information (-g), all optimizations, all asserts 4420 # slowdebug: debug information (-g), no optimizations, all asserts 4421 4422 4423 ############################################################################### 4424 # 4425 # Should we build only OpenJDK even if closed sources are present? 4426 # 4427 4428 4429 4430 4431 ############################################################################### 4432 # 4433 # Enable or disable the elliptic curve crypto implementation 4434 # 4435 4436 4437 4438 4439 ################################################################################ 4440 # 4441 # Gcov coverage data for hotspot 4442 # 4443 4444 4445 ############################################################################### 4446 # 4447 # AddressSanitizer 4448 # 4449 4450 4451 ################################################################################ 4452 # 4453 # Static build support. When enabled will generate static 4454 # libraries instead of shared libraries for all JDK libs. 4455 # 4456 4457 4458 ################################################################################ 4459 # 4460 # jlink options. 4461 # We always keep packaged modules in JDK image. 4462 # 4463 4464 4465 ################################################################################ 4466 # 4467 # Check if building of the jtreg failure handler should be enabled. 4468 # 4469 4470 4471 ################################################################################ 4472 # 4473 # Enable or disable generation of the classlist at build time 4474 # 4475 4476 4477 # 4478 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. 4479 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4480 # 4481 # This code is free software; you can redistribute it and/or modify it 4482 # under the terms of the GNU General Public License version 2 only, as 4483 # published by the Free Software Foundation. Oracle designates this 4484 # particular file as subject to the "Classpath" exception as provided 4485 # by Oracle in the LICENSE file that accompanied this code. 4486 # 4487 # This code is distributed in the hope that it will be useful, but WITHOUT 4488 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4489 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4490 # version 2 for more details (a copy is included in the LICENSE file that 4491 # accompanied this code). 4492 # 4493 # You should have received a copy of the GNU General Public License version 4494 # 2 along with this work; if not, write to the Free Software Foundation, 4495 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4496 # 4497 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4498 # or visit www.oracle.com if you need additional information or have any 4499 # questions. 4500 # 4501 4502 ############################################################################### 4503 # 4504 # Setup version numbers 4505 # 4506 4507 # Verify that a given string represents a valid version number, and assign it 4508 # to a variable. 4509 4510 # Argument 1: the variable to assign to 4511 # Argument 2: the value given by the user 4512 4513 4514 4515 4516 # 4517 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4518 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4519 # 4520 # This code is free software; you can redistribute it and/or modify it 4521 # under the terms of the GNU General Public License version 2 only, as 4522 # published by the Free Software Foundation. Oracle designates this 4523 # particular file as subject to the "Classpath" exception as provided 4524 # by Oracle in the LICENSE file that accompanied this code. 4525 # 4526 # This code is distributed in the hope that it will be useful, but WITHOUT 4527 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4528 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4529 # version 2 for more details (a copy is included in the LICENSE file that 4530 # accompanied this code). 4531 # 4532 # You should have received a copy of the GNU General Public License version 4533 # 2 along with this work; if not, write to the Free Software Foundation, 4534 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4535 # 4536 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4537 # or visit www.oracle.com if you need additional information or have any 4538 # questions. 4539 # 4540 4541 # Major library component reside in separate files. 4542 # 4543 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4544 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4545 # 4546 # This code is free software; you can redistribute it and/or modify it 4547 # under the terms of the GNU General Public License version 2 only, as 4548 # published by the Free Software Foundation. Oracle designates this 4549 # particular file as subject to the "Classpath" exception as provided 4550 # by Oracle in the LICENSE file that accompanied this code. 4551 # 4552 # This code is distributed in the hope that it will be useful, but WITHOUT 4553 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4554 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4555 # version 2 for more details (a copy is included in the LICENSE file that 4556 # accompanied this code). 4557 # 4558 # You should have received a copy of the GNU General Public License version 4559 # 2 along with this work; if not, write to the Free Software Foundation, 4560 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4561 # 4562 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4563 # or visit www.oracle.com if you need additional information or have any 4564 # questions. 4565 # 4566 4567 ################################################################################ 4568 # Setup alsa (Advanced Linux Sound Architecture) 4569 ################################################################################ 4570 4571 4572 # 4573 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4574 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4575 # 4576 # This code is free software; you can redistribute it and/or modify it 4577 # under the terms of the GNU General Public License version 2 only, as 4578 # published by the Free Software Foundation. Oracle designates this 4579 # particular file as subject to the "Classpath" exception as provided 4580 # by Oracle in the LICENSE file that accompanied this code. 4581 # 4582 # This code is distributed in the hope that it will be useful, but WITHOUT 4583 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4584 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4585 # version 2 for more details (a copy is included in the LICENSE file that 4586 # accompanied this code). 4587 # 4588 # You should have received a copy of the GNU General Public License version 4589 # 2 along with this work; if not, write to the Free Software Foundation, 4590 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4591 # 4592 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4593 # or visit www.oracle.com if you need additional information or have any 4594 # questions. 4595 # 4596 4597 ################################################################################ 4598 # Setup bundled libraries. 4599 # 4600 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4601 # OpenJDK repository. Default is to use these libraries as bundled, but they 4602 # might be replaced by en external version by the user. 4603 ################################################################################ 4604 4605 4606 ################################################################################ 4607 # Setup libjpeg 4608 ################################################################################ 4609 4610 4611 ################################################################################ 4612 # Setup giflib 4613 ################################################################################ 4614 4615 4616 ################################################################################ 4617 # Setup libpng 4618 ################################################################################ 4619 4620 4621 ################################################################################ 4622 # Setup zlib 4623 ################################################################################ 4624 4625 4626 ################################################################################ 4627 # Setup lcms (Little CMS) 4628 ################################################################################ 4629 4630 4631 # 4632 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4633 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4634 # 4635 # This code is free software; you can redistribute it and/or modify it 4636 # under the terms of the GNU General Public License version 2 only, as 4637 # published by the Free Software Foundation. Oracle designates this 4638 # particular file as subject to the "Classpath" exception as provided 4639 # by Oracle in the LICENSE file that accompanied this code. 4640 # 4641 # This code is distributed in the hope that it will be useful, but WITHOUT 4642 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4643 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4644 # version 2 for more details (a copy is included in the LICENSE file that 4645 # accompanied this code). 4646 # 4647 # You should have received a copy of the GNU General Public License version 4648 # 2 along with this work; if not, write to the Free Software Foundation, 4649 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4650 # 4651 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4652 # or visit www.oracle.com if you need additional information or have any 4653 # questions. 4654 # 4655 4656 ################################################################################ 4657 # Setup cups (Common Unix Printing System) 4658 ################################################################################ 4659 4660 4661 # 4662 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4663 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4664 # 4665 # This code is free software; you can redistribute it and/or modify it 4666 # under the terms of the GNU General Public License version 2 only, as 4667 # published by the Free Software Foundation. Oracle designates this 4668 # particular file as subject to the "Classpath" exception as provided 4669 # by Oracle in the LICENSE file that accompanied this code. 4670 # 4671 # This code is distributed in the hope that it will be useful, but WITHOUT 4672 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4673 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4674 # version 2 for more details (a copy is included in the LICENSE file that 4675 # accompanied this code). 4676 # 4677 # You should have received a copy of the GNU General Public License version 4678 # 2 along with this work; if not, write to the Free Software Foundation, 4679 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4680 # 4681 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4682 # or visit www.oracle.com if you need additional information or have any 4683 # questions. 4684 # 4685 4686 ################################################################################ 4687 # Setup libffi (Foreign Function Interface) 4688 ################################################################################ 4689 4690 4691 # 4692 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4693 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4694 # 4695 # This code is free software; you can redistribute it and/or modify it 4696 # under the terms of the GNU General Public License version 2 only, as 4697 # published by the Free Software Foundation. Oracle designates this 4698 # particular file as subject to the "Classpath" exception as provided 4699 # by Oracle in the LICENSE file that accompanied this code. 4700 # 4701 # This code is distributed in the hope that it will be useful, but WITHOUT 4702 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4703 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4704 # version 2 for more details (a copy is included in the LICENSE file that 4705 # accompanied this code). 4706 # 4707 # You should have received a copy of the GNU General Public License version 4708 # 2 along with this work; if not, write to the Free Software Foundation, 4709 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4710 # 4711 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4712 # or visit www.oracle.com if you need additional information or have any 4713 # questions. 4714 # 4715 4716 ################################################################################ 4717 # Build the freetype lib from source 4718 ################################################################################ 4719 4720 4721 ################################################################################ 4722 # Check if a potential freeype library match is correct and usable 4723 ################################################################################ 4724 4725 4726 ################################################################################ 4727 # Setup freetype (The FreeType2 font rendering library) 4728 ################################################################################ 4729 4730 4731 # 4732 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4733 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4734 # 4735 # This code is free software; you can redistribute it and/or modify it 4736 # under the terms of the GNU General Public License version 2 only, as 4737 # published by the Free Software Foundation. Oracle designates this 4738 # particular file as subject to the "Classpath" exception as provided 4739 # by Oracle in the LICENSE file that accompanied this code. 4740 # 4741 # This code is distributed in the hope that it will be useful, but WITHOUT 4742 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4743 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4744 # version 2 for more details (a copy is included in the LICENSE file that 4745 # accompanied this code). 4746 # 4747 # You should have received a copy of the GNU General Public License version 4748 # 2 along with this work; if not, write to the Free Software Foundation, 4749 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4750 # 4751 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4752 # or visit www.oracle.com if you need additional information or have any 4753 # questions. 4754 # 4755 4756 ################################################################################ 4757 # Setup the standard C/C++ runtime libraries. 4758 # 4759 # Most importantly, determine if stdc++ should be linked statically or 4760 # dynamically. 4761 ################################################################################ 4762 4763 4764 # 4765 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4766 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4767 # 4768 # This code is free software; you can redistribute it and/or modify it 4769 # under the terms of the GNU General Public License version 2 only, as 4770 # published by the Free Software Foundation. Oracle designates this 4771 # particular file as subject to the "Classpath" exception as provided 4772 # by Oracle in the LICENSE file that accompanied this code. 4773 # 4774 # This code is distributed in the hope that it will be useful, but WITHOUT 4775 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4776 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4777 # version 2 for more details (a copy is included in the LICENSE file that 4778 # accompanied this code). 4779 # 4780 # You should have received a copy of the GNU General Public License version 4781 # 2 along with this work; if not, write to the Free Software Foundation, 4782 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4783 # 4784 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4785 # or visit www.oracle.com if you need additional information or have any 4786 # questions. 4787 # 4788 4789 ################################################################################ 4790 # Setup X11 Windows system 4791 ################################################################################ 4792 4793 4794 # 4795 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. 4796 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4797 # 4798 # This code is free software; you can redistribute it and/or modify it 4799 # under the terms of the GNU General Public License version 2 only, as 4800 # published by the Free Software Foundation. Oracle designates this 4801 # particular file as subject to the "Classpath" exception as provided 4802 # by Oracle in the LICENSE file that accompanied this code. 4803 # 4804 # This code is distributed in the hope that it will be useful, but WITHOUT 4805 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4806 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4807 # version 2 for more details (a copy is included in the LICENSE file that 4808 # accompanied this code). 4809 # 4810 # You should have received a copy of the GNU General Public License version 4811 # 2 along with this work; if not, write to the Free Software Foundation, 4812 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4813 # 4814 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4815 # or visit www.oracle.com if you need additional information or have any 4816 # questions. 4817 # 4818 4819 ################################################################################ 4820 # Setup fontconfig 4821 ################################################################################ 4822 4823 4824 4825 ################################################################################ 4826 # Determine which libraries are needed for this configuration 4827 ################################################################################ 4828 4829 4830 ################################################################################ 4831 # Parse library options, and setup needed libraries 4832 ################################################################################ 4833 4834 4835 ################################################################################ 4836 # Setup various libraries, typically small system libraries 4837 ################################################################################ 4838 4839 4840 ################################################################################ 4841 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4842 # redistribute it in the test image. 4843 ################################################################################ 4844 4845 4846 4847 # 4848 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4849 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4850 # 4851 # This code is free software; you can redistribute it and/or modify it 4852 # under the terms of the GNU General Public License version 2 only, as 4853 # published by the Free Software Foundation. Oracle designates this 4854 # particular file as subject to the "Classpath" exception as provided 4855 # by Oracle in the LICENSE file that accompanied this code. 4856 # 4857 # This code is distributed in the hope that it will be useful, but WITHOUT 4858 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4859 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4860 # version 2 for more details (a copy is included in the LICENSE file that 4861 # accompanied this code). 4862 # 4863 # You should have received a copy of the GNU General Public License version 4864 # 2 along with this work; if not, write to the Free Software Foundation, 4865 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4866 # 4867 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4868 # or visit www.oracle.com if you need additional information or have any 4869 # questions. 4870 # 4871 4872 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4873 # Converts autoconf style CPU name to OpenJDK style, into 4874 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4875 4876 4877 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4878 # Converts autoconf style OS name to OpenJDK style, into 4879 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4880 4881 4882 # Expects $host_os $host_cpu $build_os and $build_cpu 4883 # and $with_target_bits to have been setup! 4884 # 4885 # Translate the standard triplet(quadruplet) definition 4886 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4887 # OPENJDK_BUILD_OS, etc. 4888 4889 4890 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4891 # accordingly. Must be done after setting up build and target system, but before 4892 # doing anything else with these values. 4893 4894 4895 # Setup the legacy variables, for controlling the old makefiles. 4896 # 4897 4898 4899 # $1 - Either TARGET or BUILD to setup the variables for. 4900 4901 4902 4903 4904 4905 4906 #%%% Build and target systems %%% 4907 4908 4909 4910 4911 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4912 # Add -mX to various FLAGS variables. 4913 4914 4915 4916 4917 4918 4919 # 4920 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4921 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4922 # 4923 # This code is free software; you can redistribute it and/or modify it 4924 # under the terms of the GNU General Public License version 2 only, as 4925 # published by the Free Software Foundation. Oracle designates this 4926 # particular file as subject to the "Classpath" exception as provided 4927 # by Oracle in the LICENSE file that accompanied this code. 4928 # 4929 # This code is distributed in the hope that it will be useful, but WITHOUT 4930 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4931 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4932 # version 2 for more details (a copy is included in the LICENSE file that 4933 # accompanied this code). 4934 # 4935 # You should have received a copy of the GNU General Public License version 4936 # 2 along with this work; if not, write to the Free Software Foundation, 4937 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4938 # 4939 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4940 # or visit www.oracle.com if you need additional information or have any 4941 # questions. 4942 # 4943 4944 4945 4946 ################################################################################ 4947 # Define a mechanism for importing extra prebuilt modules 4948 # 4949 4950 4951 4952 # 4953 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4954 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4955 # 4956 # This code is free software; you can redistribute it and/or modify it 4957 # under the terms of the GNU General Public License version 2 only, as 4958 # published by the Free Software Foundation. Oracle designates this 4959 # particular file as subject to the "Classpath" exception as provided 4960 # by Oracle in the LICENSE file that accompanied this code. 4961 # 4962 # This code is distributed in the hope that it will be useful, but WITHOUT 4963 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4964 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4965 # version 2 for more details (a copy is included in the LICENSE file that 4966 # accompanied this code). 4967 # 4968 # You should have received a copy of the GNU General Public License version 4969 # 2 along with this work; if not, write to the Free Software Foundation, 4970 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4971 # 4972 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4973 # or visit www.oracle.com if you need additional information or have any 4974 # questions. 4975 # 4976 4977 ######################################################################## 4978 # This file is responsible for detecting, verifying and setting up the 4979 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4980 # proper paths to the binaries, but it will not setup any flags. 4981 # 4982 # The binaries used is determined by the toolchain type, which is the family of 4983 # compilers and related tools that are used. 4984 ######################################################################## 4985 4986 4987 # All valid toolchains, regardless of platform (used by help.m4) 4988 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4989 4990 # These toolchains are valid on different platforms 4991 VALID_TOOLCHAINS_linux="gcc clang" 4992 VALID_TOOLCHAINS_solaris="solstudio" 4993 VALID_TOOLCHAINS_macosx="gcc clang" 4994 VALID_TOOLCHAINS_aix="xlc" 4995 VALID_TOOLCHAINS_windows="microsoft" 4996 4997 # Toolchain descriptions 4998 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4999 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 5000 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 5001 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 5002 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 5003 5004 # Minimum supported versions, empty means unspecified 5005 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 5006 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7" 5007 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010 5008 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 5009 TOOLCHAIN_MINIMUM_VERSION_xlc="" 5010 5011 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 5012 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 5013 # $1 - optional variable prefix for compiler and version variables (BUILD_) 5014 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 5015 5016 5017 # Check if the configured compiler (C and C++) is of a specific version or 5018 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 5019 # 5020 # Arguments: 5021 # VERSION: The version string to check against the found version 5022 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 5023 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 5024 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 5025 5026 5027 5028 5029 # Setup a number of variables describing how native output files are 5030 # named on this platform/toolchain. 5031 5032 5033 # Determine which toolchain type to use, and make sure it is valid for this 5034 # platform. Setup various information about the selected toolchain. 5035 5036 5037 # Before we start detecting the toolchain executables, we might need some 5038 # special setup, e.g. additional paths etc. 5039 5040 5041 # Restore path, etc 5042 5043 5044 # Check if a compiler is of the toolchain type we expect, and save the version 5045 # information from it. If the compiler does not match the expected type, 5046 # this function will abort using AC_MSG_ERROR. If it matches, the version will 5047 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 5048 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 5049 # 5050 # $1 = compiler to test (CC or CXX) 5051 # $2 = human readable name of compiler (C or C++) 5052 5053 5054 # Try to locate the given C or C++ compiler in the path, or otherwise. 5055 # 5056 # $1 = compiler to test (CC or CXX) 5057 # $2 = human readable name of compiler (C or C++) 5058 # $3 = compiler name to search for 5059 5060 5061 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 5062 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 5063 # archiver (AR). Verify that the compilers are correct according to the 5064 # toolchain type. 5065 5066 5067 # Setup additional tools that is considered a part of the toolchain, but not the 5068 # core part. Many of these are highly platform-specific and do not exist, 5069 # and/or are not needed on all platforms. 5070 5071 5072 # Setup the build tools (i.e, the compiler and linker used to build programs 5073 # that should be run on the build platform, not the target platform, as a build 5074 # helper). Since the non-cross-compile case uses the normal, target compilers 5075 # for this, we can only do this after these have been setup. 5076 5077 5078 # Do some additional checks on the detected tools. 5079 5080 5081 # Setup the JTReg Regression Test Harness. 5082 5083 5084 # Setup the JIB dependency resolver 5085 5086 5087 # 5088 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5089 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5090 # 5091 # This code is free software; you can redistribute it and/or modify it 5092 # under the terms of the GNU General Public License version 2 only, as 5093 # published by the Free Software Foundation. Oracle designates this 5094 # particular file as subject to the "Classpath" exception as provided 5095 # by Oracle in the LICENSE file that accompanied this code. 5096 # 5097 # This code is distributed in the hope that it will be useful, but WITHOUT 5098 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5099 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5100 # version 2 for more details (a copy is included in the LICENSE file that 5101 # accompanied this code). 5102 # 5103 # You should have received a copy of the GNU General Public License version 5104 # 2 along with this work; if not, write to the Free Software Foundation, 5105 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5106 # 5107 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5108 # or visit www.oracle.com if you need additional information or have any 5109 # questions. 5110 # 5111 5112 ################################################################################ 5113 # The order of these defines the priority by which we try to find them. 5114 VALID_VS_VERSIONS="2013 2012 2010" 5115 5116 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5117 VS_VERSION_INTERNAL_2010=100 5118 VS_MSVCR_2010=msvcr100.dll 5119 # We don't use msvcp on Visual Studio 2010 5120 #VS_MSVCP_2010=msvcp100.dll 5121 VS_ENVVAR_2010="VS100COMNTOOLS" 5122 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5123 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5124 VS_VS_PLATFORM_NAME_2010="v100" 5125 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5126 5127 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5128 VS_VERSION_INTERNAL_2012=110 5129 VS_MSVCR_2012=msvcr110.dll 5130 VS_MSVCP_2012=msvcp110.dll 5131 VS_ENVVAR_2012="VS110COMNTOOLS" 5132 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5133 VS_SDK_INSTALLDIR_2012= 5134 VS_VS_PLATFORM_NAME_2012="v110" 5135 VS_SDK_PLATFORM_NAME_2012= 5136 5137 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5138 VS_VERSION_INTERNAL_2013=120 5139 VS_MSVCR_2013=msvcr120.dll 5140 VS_MSVCP_2013=msvcp120.dll 5141 VS_ENVVAR_2013="VS120COMNTOOLS" 5142 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5143 VS_SDK_INSTALLDIR_2013= 5144 VS_VS_PLATFORM_NAME_2013="v120" 5145 VS_SDK_PLATFORM_NAME_2013= 5146 5147 ################################################################################ 5148 5149 5150 5151 ################################################################################ 5152 5153 5154 5155 ################################################################################ 5156 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5157 # build environment and assigns it to VS_ENV_CMD 5158 5159 5160 ################################################################################ 5161 5162 5163 5164 ################################################################################ 5165 # Check if the VS env variables were setup prior to running configure. 5166 # If not, then find vcvarsall.bat and run it automatically, and integrate 5167 # the set env variables into the spec file. 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 # This line needs to be here, verbatim, after all includes and the dummy hook 5183 # definitions. It is replaced with custom functionality when building 5184 # custom sources. 5185 #CUSTOM_AUTOCONF_INCLUDE 5186 5187 # Do not change or remove the following line, it is needed for consistency checks: 5188 DATE_WHEN_GENERATED=1513206608 5189 5190 ############################################################################### 5191 # 5192 # Initialization / Boot-strapping 5193 # 5194 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5195 # thus it jumps back and forth, each time gaining something needed later on. 5196 # 5197 ############################################################################### 5198 5199 # If we are requested to print additional help, do that and then exit. 5200 # This must be the very first call. 5201 5202 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5203 5204 # Print available toolchains 5205 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5206 $PRINTF "Which are valid to use depends on the build platform.\n" 5207 for toolchain in $VALID_TOOLCHAINS_all; do 5208 # Use indirect variable referencing 5209 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5210 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5211 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5212 done 5213 $PRINTF "\n" 5214 5215 # Print available jvm features 5216 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5217 $PRINTF "Which are valid to use depends on the target platform.\n " 5218 $PRINTF "%s " $VALID_JVM_FEATURES 5219 $PRINTF "\n" 5220 5221 # And now exit directly 5222 exit 0 5223 fi 5224 5225 5226 # Basic initialization that must happen first of all in the normal process. 5227 5228 # Save the original command line. This is passed to us by the wrapper configure script. 5229 5230 # Save the path variable before it gets changed 5231 ORIGINAL_PATH="$PATH" 5232 5233 DATE_WHEN_CONFIGURED=`LANG=C date` 5234 5235 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5236 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5238 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5239 5240 5241 # Start with tools that do not need have cross compilation support 5242 # and can be expected to be found in the default PATH. These tools are 5243 # used by configure. 5244 5245 # First are all the simple required tools. 5246 5247 5248 5249 # Publish this variable in the help. 5250 5251 5252 if [ -z "${BASENAME+x}" ]; then 5253 # The variable is not set by user, try to locate tool using the code snippet 5254 for ac_prog in basename 5255 do 5256 # Extract the first word of "$ac_prog", so it can be a program name with args. 5257 set dummy $ac_prog; ac_word=$2 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5259 $as_echo_n "checking for $ac_word... " >&6; } 5260 if ${ac_cv_path_BASENAME+:} false; then : 5261 $as_echo_n "(cached) " >&6 5262 else 5263 case $BASENAME in 5264 [\\/]* | ?:[\\/]*) 5265 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5266 ;; 5267 *) 5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5269 for as_dir in $PATH 5270 do 5271 IFS=$as_save_IFS 5272 test -z "$as_dir" && as_dir=. 5273 for ac_exec_ext in '' $ac_executable_extensions; do 5274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5275 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5277 break 2 5278 fi 5279 done 5280 done 5281 IFS=$as_save_IFS 5282 5283 ;; 5284 esac 5285 fi 5286 BASENAME=$ac_cv_path_BASENAME 5287 if test -n "$BASENAME"; then 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5289 $as_echo "$BASENAME" >&6; } 5290 else 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5292 $as_echo "no" >&6; } 5293 fi 5294 5295 5296 test -n "$BASENAME" && break 5297 done 5298 5299 else 5300 # The variable is set, but is it from the command line or the environment? 5301 5302 # Try to remove the string !BASENAME! from our list. 5303 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5304 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5305 # If it failed, the variable was not from the command line. Ignore it, 5306 # but warn the user (except for BASH, which is always set by the calling BASH). 5307 if test "xBASENAME" != xBASH; then 5308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5309 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5310 fi 5311 # Try to locate tool using the code snippet 5312 for ac_prog in basename 5313 do 5314 # Extract the first word of "$ac_prog", so it can be a program name with args. 5315 set dummy $ac_prog; ac_word=$2 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5317 $as_echo_n "checking for $ac_word... " >&6; } 5318 if ${ac_cv_path_BASENAME+:} false; then : 5319 $as_echo_n "(cached) " >&6 5320 else 5321 case $BASENAME in 5322 [\\/]* | ?:[\\/]*) 5323 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5324 ;; 5325 *) 5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5327 for as_dir in $PATH 5328 do 5329 IFS=$as_save_IFS 5330 test -z "$as_dir" && as_dir=. 5331 for ac_exec_ext in '' $ac_executable_extensions; do 5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5333 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5335 break 2 5336 fi 5337 done 5338 done 5339 IFS=$as_save_IFS 5340 5341 ;; 5342 esac 5343 fi 5344 BASENAME=$ac_cv_path_BASENAME 5345 if test -n "$BASENAME"; then 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5347 $as_echo "$BASENAME" >&6; } 5348 else 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5350 $as_echo "no" >&6; } 5351 fi 5352 5353 5354 test -n "$BASENAME" && break 5355 done 5356 5357 else 5358 # If it succeeded, then it was overridden by the user. We will use it 5359 # for the tool. 5360 5361 # First remove it from the list of overridden variables, so we can test 5362 # for unknown variables in the end. 5363 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5364 5365 # Check if we try to supply an empty value 5366 if test "x$BASENAME" = x; then 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5368 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5370 $as_echo_n "checking for BASENAME... " >&6; } 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5372 $as_echo "disabled" >&6; } 5373 else 5374 # Check if the provided tool contains a complete path. 5375 tool_specified="$BASENAME" 5376 tool_basename="${tool_specified##*/}" 5377 if test "x$tool_basename" = "x$tool_specified"; then 5378 # A command without a complete path is provided, search $PATH. 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5380 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5381 # Extract the first word of "$tool_basename", so it can be a program name with args. 5382 set dummy $tool_basename; ac_word=$2 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5384 $as_echo_n "checking for $ac_word... " >&6; } 5385 if ${ac_cv_path_BASENAME+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387 else 5388 case $BASENAME in 5389 [\\/]* | ?:[\\/]*) 5390 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5391 ;; 5392 *) 5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5394 for as_dir in $PATH 5395 do 5396 IFS=$as_save_IFS 5397 test -z "$as_dir" && as_dir=. 5398 for ac_exec_ext in '' $ac_executable_extensions; do 5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5400 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5402 break 2 5403 fi 5404 done 5405 done 5406 IFS=$as_save_IFS 5407 5408 ;; 5409 esac 5410 fi 5411 BASENAME=$ac_cv_path_BASENAME 5412 if test -n "$BASENAME"; then 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5414 $as_echo "$BASENAME" >&6; } 5415 else 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5417 $as_echo "no" >&6; } 5418 fi 5419 5420 5421 if test "x$BASENAME" = x; then 5422 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5423 fi 5424 else 5425 # Otherwise we believe it is a complete path. Use it as it is. 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5427 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5429 $as_echo_n "checking for BASENAME... " >&6; } 5430 if test ! -x "$tool_specified"; then 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5432 $as_echo "not found" >&6; } 5433 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5434 fi 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5436 $as_echo "$tool_specified" >&6; } 5437 fi 5438 fi 5439 fi 5440 5441 fi 5442 5443 5444 5445 if test "x$BASENAME" = x; then 5446 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5447 fi 5448 5449 5450 5451 5452 5453 # Publish this variable in the help. 5454 5455 5456 if [ -z "${BASH+x}" ]; then 5457 # The variable is not set by user, try to locate tool using the code snippet 5458 for ac_prog in bash 5459 do 5460 # Extract the first word of "$ac_prog", so it can be a program name with args. 5461 set dummy $ac_prog; ac_word=$2 5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5463 $as_echo_n "checking for $ac_word... " >&6; } 5464 if ${ac_cv_path_BASH+:} false; then : 5465 $as_echo_n "(cached) " >&6 5466 else 5467 case $BASH in 5468 [\\/]* | ?:[\\/]*) 5469 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5470 ;; 5471 *) 5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5473 for as_dir in $PATH 5474 do 5475 IFS=$as_save_IFS 5476 test -z "$as_dir" && as_dir=. 5477 for ac_exec_ext in '' $ac_executable_extensions; do 5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5479 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5481 break 2 5482 fi 5483 done 5484 done 5485 IFS=$as_save_IFS 5486 5487 ;; 5488 esac 5489 fi 5490 BASH=$ac_cv_path_BASH 5491 if test -n "$BASH"; then 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5493 $as_echo "$BASH" >&6; } 5494 else 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5496 $as_echo "no" >&6; } 5497 fi 5498 5499 5500 test -n "$BASH" && break 5501 done 5502 5503 else 5504 # The variable is set, but is it from the command line or the environment? 5505 5506 # Try to remove the string !BASH! from our list. 5507 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5508 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5509 # If it failed, the variable was not from the command line. Ignore it, 5510 # but warn the user (except for BASH, which is always set by the calling BASH). 5511 if test "xBASH" != xBASH; then 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5513 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5514 fi 5515 # Try to locate tool using the code snippet 5516 for ac_prog in bash 5517 do 5518 # Extract the first word of "$ac_prog", so it can be a program name with args. 5519 set dummy $ac_prog; ac_word=$2 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5521 $as_echo_n "checking for $ac_word... " >&6; } 5522 if ${ac_cv_path_BASH+:} false; then : 5523 $as_echo_n "(cached) " >&6 5524 else 5525 case $BASH in 5526 [\\/]* | ?:[\\/]*) 5527 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5528 ;; 5529 *) 5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5531 for as_dir in $PATH 5532 do 5533 IFS=$as_save_IFS 5534 test -z "$as_dir" && as_dir=. 5535 for ac_exec_ext in '' $ac_executable_extensions; do 5536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5537 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5539 break 2 5540 fi 5541 done 5542 done 5543 IFS=$as_save_IFS 5544 5545 ;; 5546 esac 5547 fi 5548 BASH=$ac_cv_path_BASH 5549 if test -n "$BASH"; then 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5551 $as_echo "$BASH" >&6; } 5552 else 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5554 $as_echo "no" >&6; } 5555 fi 5556 5557 5558 test -n "$BASH" && break 5559 done 5560 5561 else 5562 # If it succeeded, then it was overridden by the user. We will use it 5563 # for the tool. 5564 5565 # First remove it from the list of overridden variables, so we can test 5566 # for unknown variables in the end. 5567 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5568 5569 # Check if we try to supply an empty value 5570 if test "x$BASH" = x; then 5571 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5572 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5574 $as_echo_n "checking for BASH... " >&6; } 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5576 $as_echo "disabled" >&6; } 5577 else 5578 # Check if the provided tool contains a complete path. 5579 tool_specified="$BASH" 5580 tool_basename="${tool_specified##*/}" 5581 if test "x$tool_basename" = "x$tool_specified"; then 5582 # A command without a complete path is provided, search $PATH. 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5584 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5585 # Extract the first word of "$tool_basename", so it can be a program name with args. 5586 set dummy $tool_basename; ac_word=$2 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5588 $as_echo_n "checking for $ac_word... " >&6; } 5589 if ${ac_cv_path_BASH+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591 else 5592 case $BASH in 5593 [\\/]* | ?:[\\/]*) 5594 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5595 ;; 5596 *) 5597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5598 for as_dir in $PATH 5599 do 5600 IFS=$as_save_IFS 5601 test -z "$as_dir" && as_dir=. 5602 for ac_exec_ext in '' $ac_executable_extensions; do 5603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5604 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5606 break 2 5607 fi 5608 done 5609 done 5610 IFS=$as_save_IFS 5611 5612 ;; 5613 esac 5614 fi 5615 BASH=$ac_cv_path_BASH 5616 if test -n "$BASH"; then 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5618 $as_echo "$BASH" >&6; } 5619 else 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5621 $as_echo "no" >&6; } 5622 fi 5623 5624 5625 if test "x$BASH" = x; then 5626 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5627 fi 5628 else 5629 # Otherwise we believe it is a complete path. Use it as it is. 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5631 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5633 $as_echo_n "checking for BASH... " >&6; } 5634 if test ! -x "$tool_specified"; then 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5636 $as_echo "not found" >&6; } 5637 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5638 fi 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5640 $as_echo "$tool_specified" >&6; } 5641 fi 5642 fi 5643 fi 5644 5645 fi 5646 5647 5648 5649 if test "x$BASH" = x; then 5650 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5651 fi 5652 5653 5654 5655 5656 5657 # Publish this variable in the help. 5658 5659 5660 if [ -z "${CAT+x}" ]; then 5661 # The variable is not set by user, try to locate tool using the code snippet 5662 for ac_prog in cat 5663 do 5664 # Extract the first word of "$ac_prog", so it can be a program name with args. 5665 set dummy $ac_prog; ac_word=$2 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5667 $as_echo_n "checking for $ac_word... " >&6; } 5668 if ${ac_cv_path_CAT+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670 else 5671 case $CAT in 5672 [\\/]* | ?:[\\/]*) 5673 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5674 ;; 5675 *) 5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5677 for as_dir in $PATH 5678 do 5679 IFS=$as_save_IFS 5680 test -z "$as_dir" && as_dir=. 5681 for ac_exec_ext in '' $ac_executable_extensions; do 5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5683 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5685 break 2 5686 fi 5687 done 5688 done 5689 IFS=$as_save_IFS 5690 5691 ;; 5692 esac 5693 fi 5694 CAT=$ac_cv_path_CAT 5695 if test -n "$CAT"; then 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5697 $as_echo "$CAT" >&6; } 5698 else 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5700 $as_echo "no" >&6; } 5701 fi 5702 5703 5704 test -n "$CAT" && break 5705 done 5706 5707 else 5708 # The variable is set, but is it from the command line or the environment? 5709 5710 # Try to remove the string !CAT! from our list. 5711 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5712 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5713 # If it failed, the variable was not from the command line. Ignore it, 5714 # but warn the user (except for BASH, which is always set by the calling BASH). 5715 if test "xCAT" != xBASH; then 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5717 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5718 fi 5719 # Try to locate tool using the code snippet 5720 for ac_prog in cat 5721 do 5722 # Extract the first word of "$ac_prog", so it can be a program name with args. 5723 set dummy $ac_prog; ac_word=$2 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5725 $as_echo_n "checking for $ac_word... " >&6; } 5726 if ${ac_cv_path_CAT+:} false; then : 5727 $as_echo_n "(cached) " >&6 5728 else 5729 case $CAT in 5730 [\\/]* | ?:[\\/]*) 5731 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5732 ;; 5733 *) 5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5735 for as_dir in $PATH 5736 do 5737 IFS=$as_save_IFS 5738 test -z "$as_dir" && as_dir=. 5739 for ac_exec_ext in '' $ac_executable_extensions; do 5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5741 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5743 break 2 5744 fi 5745 done 5746 done 5747 IFS=$as_save_IFS 5748 5749 ;; 5750 esac 5751 fi 5752 CAT=$ac_cv_path_CAT 5753 if test -n "$CAT"; then 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5755 $as_echo "$CAT" >&6; } 5756 else 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5758 $as_echo "no" >&6; } 5759 fi 5760 5761 5762 test -n "$CAT" && break 5763 done 5764 5765 else 5766 # If it succeeded, then it was overridden by the user. We will use it 5767 # for the tool. 5768 5769 # First remove it from the list of overridden variables, so we can test 5770 # for unknown variables in the end. 5771 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5772 5773 # Check if we try to supply an empty value 5774 if test "x$CAT" = x; then 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5776 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5778 $as_echo_n "checking for CAT... " >&6; } 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5780 $as_echo "disabled" >&6; } 5781 else 5782 # Check if the provided tool contains a complete path. 5783 tool_specified="$CAT" 5784 tool_basename="${tool_specified##*/}" 5785 if test "x$tool_basename" = "x$tool_specified"; then 5786 # A command without a complete path is provided, search $PATH. 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5788 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5789 # Extract the first word of "$tool_basename", so it can be a program name with args. 5790 set dummy $tool_basename; ac_word=$2 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5792 $as_echo_n "checking for $ac_word... " >&6; } 5793 if ${ac_cv_path_CAT+:} false; then : 5794 $as_echo_n "(cached) " >&6 5795 else 5796 case $CAT in 5797 [\\/]* | ?:[\\/]*) 5798 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5799 ;; 5800 *) 5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5802 for as_dir in $PATH 5803 do 5804 IFS=$as_save_IFS 5805 test -z "$as_dir" && as_dir=. 5806 for ac_exec_ext in '' $ac_executable_extensions; do 5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5808 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5810 break 2 5811 fi 5812 done 5813 done 5814 IFS=$as_save_IFS 5815 5816 ;; 5817 esac 5818 fi 5819 CAT=$ac_cv_path_CAT 5820 if test -n "$CAT"; then 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5822 $as_echo "$CAT" >&6; } 5823 else 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5825 $as_echo "no" >&6; } 5826 fi 5827 5828 5829 if test "x$CAT" = x; then 5830 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5831 fi 5832 else 5833 # Otherwise we believe it is a complete path. Use it as it is. 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5835 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5837 $as_echo_n "checking for CAT... " >&6; } 5838 if test ! -x "$tool_specified"; then 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5840 $as_echo "not found" >&6; } 5841 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5842 fi 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5844 $as_echo "$tool_specified" >&6; } 5845 fi 5846 fi 5847 fi 5848 5849 fi 5850 5851 5852 5853 if test "x$CAT" = x; then 5854 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5855 fi 5856 5857 5858 5859 5860 5861 # Publish this variable in the help. 5862 5863 5864 if [ -z "${CHMOD+x}" ]; then 5865 # The variable is not set by user, try to locate tool using the code snippet 5866 for ac_prog in chmod 5867 do 5868 # Extract the first word of "$ac_prog", so it can be a program name with args. 5869 set dummy $ac_prog; ac_word=$2 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5871 $as_echo_n "checking for $ac_word... " >&6; } 5872 if ${ac_cv_path_CHMOD+:} false; then : 5873 $as_echo_n "(cached) " >&6 5874 else 5875 case $CHMOD in 5876 [\\/]* | ?:[\\/]*) 5877 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5878 ;; 5879 *) 5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5881 for as_dir in $PATH 5882 do 5883 IFS=$as_save_IFS 5884 test -z "$as_dir" && as_dir=. 5885 for ac_exec_ext in '' $ac_executable_extensions; do 5886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5887 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5889 break 2 5890 fi 5891 done 5892 done 5893 IFS=$as_save_IFS 5894 5895 ;; 5896 esac 5897 fi 5898 CHMOD=$ac_cv_path_CHMOD 5899 if test -n "$CHMOD"; then 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5901 $as_echo "$CHMOD" >&6; } 5902 else 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5904 $as_echo "no" >&6; } 5905 fi 5906 5907 5908 test -n "$CHMOD" && break 5909 done 5910 5911 else 5912 # The variable is set, but is it from the command line or the environment? 5913 5914 # Try to remove the string !CHMOD! from our list. 5915 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5916 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5917 # If it failed, the variable was not from the command line. Ignore it, 5918 # but warn the user (except for BASH, which is always set by the calling BASH). 5919 if test "xCHMOD" != xBASH; then 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5921 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5922 fi 5923 # Try to locate tool using the code snippet 5924 for ac_prog in chmod 5925 do 5926 # Extract the first word of "$ac_prog", so it can be a program name with args. 5927 set dummy $ac_prog; ac_word=$2 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5929 $as_echo_n "checking for $ac_word... " >&6; } 5930 if ${ac_cv_path_CHMOD+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932 else 5933 case $CHMOD in 5934 [\\/]* | ?:[\\/]*) 5935 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5936 ;; 5937 *) 5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5939 for as_dir in $PATH 5940 do 5941 IFS=$as_save_IFS 5942 test -z "$as_dir" && as_dir=. 5943 for ac_exec_ext in '' $ac_executable_extensions; do 5944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5945 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5947 break 2 5948 fi 5949 done 5950 done 5951 IFS=$as_save_IFS 5952 5953 ;; 5954 esac 5955 fi 5956 CHMOD=$ac_cv_path_CHMOD 5957 if test -n "$CHMOD"; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5959 $as_echo "$CHMOD" >&6; } 5960 else 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5962 $as_echo "no" >&6; } 5963 fi 5964 5965 5966 test -n "$CHMOD" && break 5967 done 5968 5969 else 5970 # If it succeeded, then it was overridden by the user. We will use it 5971 # for the tool. 5972 5973 # First remove it from the list of overridden variables, so we can test 5974 # for unknown variables in the end. 5975 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5976 5977 # Check if we try to supply an empty value 5978 if test "x$CHMOD" = x; then 5979 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5980 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5982 $as_echo_n "checking for CHMOD... " >&6; } 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5984 $as_echo "disabled" >&6; } 5985 else 5986 # Check if the provided tool contains a complete path. 5987 tool_specified="$CHMOD" 5988 tool_basename="${tool_specified##*/}" 5989 if test "x$tool_basename" = "x$tool_specified"; then 5990 # A command without a complete path is provided, search $PATH. 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5992 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5993 # Extract the first word of "$tool_basename", so it can be a program name with args. 5994 set dummy $tool_basename; ac_word=$2 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5996 $as_echo_n "checking for $ac_word... " >&6; } 5997 if ${ac_cv_path_CHMOD+:} false; then : 5998 $as_echo_n "(cached) " >&6 5999 else 6000 case $CHMOD in 6001 [\\/]* | ?:[\\/]*) 6002 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 6003 ;; 6004 *) 6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6006 for as_dir in $PATH 6007 do 6008 IFS=$as_save_IFS 6009 test -z "$as_dir" && as_dir=. 6010 for ac_exec_ext in '' $ac_executable_extensions; do 6011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6012 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6014 break 2 6015 fi 6016 done 6017 done 6018 IFS=$as_save_IFS 6019 6020 ;; 6021 esac 6022 fi 6023 CHMOD=$ac_cv_path_CHMOD 6024 if test -n "$CHMOD"; then 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 6026 $as_echo "$CHMOD" >&6; } 6027 else 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6029 $as_echo "no" >&6; } 6030 fi 6031 6032 6033 if test "x$CHMOD" = x; then 6034 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6035 fi 6036 else 6037 # Otherwise we believe it is a complete path. Use it as it is. 6038 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 6039 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 6041 $as_echo_n "checking for CHMOD... " >&6; } 6042 if test ! -x "$tool_specified"; then 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6044 $as_echo "not found" >&6; } 6045 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 6046 fi 6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6048 $as_echo "$tool_specified" >&6; } 6049 fi 6050 fi 6051 fi 6052 6053 fi 6054 6055 6056 6057 if test "x$CHMOD" = x; then 6058 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 6059 fi 6060 6061 6062 6063 6064 6065 # Publish this variable in the help. 6066 6067 6068 if [ -z "${CMP+x}" ]; then 6069 # The variable is not set by user, try to locate tool using the code snippet 6070 for ac_prog in cmp 6071 do 6072 # Extract the first word of "$ac_prog", so it can be a program name with args. 6073 set dummy $ac_prog; ac_word=$2 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6075 $as_echo_n "checking for $ac_word... " >&6; } 6076 if ${ac_cv_path_CMP+:} false; then : 6077 $as_echo_n "(cached) " >&6 6078 else 6079 case $CMP in 6080 [\\/]* | ?:[\\/]*) 6081 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6082 ;; 6083 *) 6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6085 for as_dir in $PATH 6086 do 6087 IFS=$as_save_IFS 6088 test -z "$as_dir" && as_dir=. 6089 for ac_exec_ext in '' $ac_executable_extensions; do 6090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6091 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6093 break 2 6094 fi 6095 done 6096 done 6097 IFS=$as_save_IFS 6098 6099 ;; 6100 esac 6101 fi 6102 CMP=$ac_cv_path_CMP 6103 if test -n "$CMP"; then 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6105 $as_echo "$CMP" >&6; } 6106 else 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6108 $as_echo "no" >&6; } 6109 fi 6110 6111 6112 test -n "$CMP" && break 6113 done 6114 6115 else 6116 # The variable is set, but is it from the command line or the environment? 6117 6118 # Try to remove the string !CMP! from our list. 6119 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6120 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6121 # If it failed, the variable was not from the command line. Ignore it, 6122 # but warn the user (except for BASH, which is always set by the calling BASH). 6123 if test "xCMP" != xBASH; then 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6125 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6126 fi 6127 # Try to locate tool using the code snippet 6128 for ac_prog in cmp 6129 do 6130 # Extract the first word of "$ac_prog", so it can be a program name with args. 6131 set dummy $ac_prog; ac_word=$2 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6133 $as_echo_n "checking for $ac_word... " >&6; } 6134 if ${ac_cv_path_CMP+:} false; then : 6135 $as_echo_n "(cached) " >&6 6136 else 6137 case $CMP in 6138 [\\/]* | ?:[\\/]*) 6139 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6140 ;; 6141 *) 6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6143 for as_dir in $PATH 6144 do 6145 IFS=$as_save_IFS 6146 test -z "$as_dir" && as_dir=. 6147 for ac_exec_ext in '' $ac_executable_extensions; do 6148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6149 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6151 break 2 6152 fi 6153 done 6154 done 6155 IFS=$as_save_IFS 6156 6157 ;; 6158 esac 6159 fi 6160 CMP=$ac_cv_path_CMP 6161 if test -n "$CMP"; then 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6163 $as_echo "$CMP" >&6; } 6164 else 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6166 $as_echo "no" >&6; } 6167 fi 6168 6169 6170 test -n "$CMP" && break 6171 done 6172 6173 else 6174 # If it succeeded, then it was overridden by the user. We will use it 6175 # for the tool. 6176 6177 # First remove it from the list of overridden variables, so we can test 6178 # for unknown variables in the end. 6179 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6180 6181 # Check if we try to supply an empty value 6182 if test "x$CMP" = x; then 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6184 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6186 $as_echo_n "checking for CMP... " >&6; } 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6188 $as_echo "disabled" >&6; } 6189 else 6190 # Check if the provided tool contains a complete path. 6191 tool_specified="$CMP" 6192 tool_basename="${tool_specified##*/}" 6193 if test "x$tool_basename" = "x$tool_specified"; then 6194 # A command without a complete path is provided, search $PATH. 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6196 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6197 # Extract the first word of "$tool_basename", so it can be a program name with args. 6198 set dummy $tool_basename; ac_word=$2 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6200 $as_echo_n "checking for $ac_word... " >&6; } 6201 if ${ac_cv_path_CMP+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203 else 6204 case $CMP in 6205 [\\/]* | ?:[\\/]*) 6206 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6207 ;; 6208 *) 6209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6210 for as_dir in $PATH 6211 do 6212 IFS=$as_save_IFS 6213 test -z "$as_dir" && as_dir=. 6214 for ac_exec_ext in '' $ac_executable_extensions; do 6215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6216 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6218 break 2 6219 fi 6220 done 6221 done 6222 IFS=$as_save_IFS 6223 6224 ;; 6225 esac 6226 fi 6227 CMP=$ac_cv_path_CMP 6228 if test -n "$CMP"; then 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6230 $as_echo "$CMP" >&6; } 6231 else 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6233 $as_echo "no" >&6; } 6234 fi 6235 6236 6237 if test "x$CMP" = x; then 6238 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6239 fi 6240 else 6241 # Otherwise we believe it is a complete path. Use it as it is. 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6243 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6245 $as_echo_n "checking for CMP... " >&6; } 6246 if test ! -x "$tool_specified"; then 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6248 $as_echo "not found" >&6; } 6249 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6250 fi 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6252 $as_echo "$tool_specified" >&6; } 6253 fi 6254 fi 6255 fi 6256 6257 fi 6258 6259 6260 6261 if test "x$CMP" = x; then 6262 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6263 fi 6264 6265 6266 6267 6268 6269 # Publish this variable in the help. 6270 6271 6272 if [ -z "${COMM+x}" ]; then 6273 # The variable is not set by user, try to locate tool using the code snippet 6274 for ac_prog in comm 6275 do 6276 # Extract the first word of "$ac_prog", so it can be a program name with args. 6277 set dummy $ac_prog; ac_word=$2 6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6279 $as_echo_n "checking for $ac_word... " >&6; } 6280 if ${ac_cv_path_COMM+:} false; then : 6281 $as_echo_n "(cached) " >&6 6282 else 6283 case $COMM in 6284 [\\/]* | ?:[\\/]*) 6285 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6286 ;; 6287 *) 6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6289 for as_dir in $PATH 6290 do 6291 IFS=$as_save_IFS 6292 test -z "$as_dir" && as_dir=. 6293 for ac_exec_ext in '' $ac_executable_extensions; do 6294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6295 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6297 break 2 6298 fi 6299 done 6300 done 6301 IFS=$as_save_IFS 6302 6303 ;; 6304 esac 6305 fi 6306 COMM=$ac_cv_path_COMM 6307 if test -n "$COMM"; then 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6309 $as_echo "$COMM" >&6; } 6310 else 6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6312 $as_echo "no" >&6; } 6313 fi 6314 6315 6316 test -n "$COMM" && break 6317 done 6318 6319 else 6320 # The variable is set, but is it from the command line or the environment? 6321 6322 # Try to remove the string !COMM! from our list. 6323 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6324 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6325 # If it failed, the variable was not from the command line. Ignore it, 6326 # but warn the user (except for BASH, which is always set by the calling BASH). 6327 if test "xCOMM" != xBASH; then 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6329 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6330 fi 6331 # Try to locate tool using the code snippet 6332 for ac_prog in comm 6333 do 6334 # Extract the first word of "$ac_prog", so it can be a program name with args. 6335 set dummy $ac_prog; ac_word=$2 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6337 $as_echo_n "checking for $ac_word... " >&6; } 6338 if ${ac_cv_path_COMM+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340 else 6341 case $COMM in 6342 [\\/]* | ?:[\\/]*) 6343 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6344 ;; 6345 *) 6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6347 for as_dir in $PATH 6348 do 6349 IFS=$as_save_IFS 6350 test -z "$as_dir" && as_dir=. 6351 for ac_exec_ext in '' $ac_executable_extensions; do 6352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6353 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6355 break 2 6356 fi 6357 done 6358 done 6359 IFS=$as_save_IFS 6360 6361 ;; 6362 esac 6363 fi 6364 COMM=$ac_cv_path_COMM 6365 if test -n "$COMM"; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6367 $as_echo "$COMM" >&6; } 6368 else 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6370 $as_echo "no" >&6; } 6371 fi 6372 6373 6374 test -n "$COMM" && break 6375 done 6376 6377 else 6378 # If it succeeded, then it was overridden by the user. We will use it 6379 # for the tool. 6380 6381 # First remove it from the list of overridden variables, so we can test 6382 # for unknown variables in the end. 6383 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6384 6385 # Check if we try to supply an empty value 6386 if test "x$COMM" = x; then 6387 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6388 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6390 $as_echo_n "checking for COMM... " >&6; } 6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6392 $as_echo "disabled" >&6; } 6393 else 6394 # Check if the provided tool contains a complete path. 6395 tool_specified="$COMM" 6396 tool_basename="${tool_specified##*/}" 6397 if test "x$tool_basename" = "x$tool_specified"; then 6398 # A command without a complete path is provided, search $PATH. 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6400 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6401 # Extract the first word of "$tool_basename", so it can be a program name with args. 6402 set dummy $tool_basename; ac_word=$2 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6404 $as_echo_n "checking for $ac_word... " >&6; } 6405 if ${ac_cv_path_COMM+:} false; then : 6406 $as_echo_n "(cached) " >&6 6407 else 6408 case $COMM in 6409 [\\/]* | ?:[\\/]*) 6410 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6411 ;; 6412 *) 6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6414 for as_dir in $PATH 6415 do 6416 IFS=$as_save_IFS 6417 test -z "$as_dir" && as_dir=. 6418 for ac_exec_ext in '' $ac_executable_extensions; do 6419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6420 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6422 break 2 6423 fi 6424 done 6425 done 6426 IFS=$as_save_IFS 6427 6428 ;; 6429 esac 6430 fi 6431 COMM=$ac_cv_path_COMM 6432 if test -n "$COMM"; then 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6434 $as_echo "$COMM" >&6; } 6435 else 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6437 $as_echo "no" >&6; } 6438 fi 6439 6440 6441 if test "x$COMM" = x; then 6442 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6443 fi 6444 else 6445 # Otherwise we believe it is a complete path. Use it as it is. 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6447 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6449 $as_echo_n "checking for COMM... " >&6; } 6450 if test ! -x "$tool_specified"; then 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6452 $as_echo "not found" >&6; } 6453 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6454 fi 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6456 $as_echo "$tool_specified" >&6; } 6457 fi 6458 fi 6459 fi 6460 6461 fi 6462 6463 6464 6465 if test "x$COMM" = x; then 6466 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6467 fi 6468 6469 6470 6471 6472 6473 # Publish this variable in the help. 6474 6475 6476 if [ -z "${CP+x}" ]; then 6477 # The variable is not set by user, try to locate tool using the code snippet 6478 for ac_prog in cp 6479 do 6480 # Extract the first word of "$ac_prog", so it can be a program name with args. 6481 set dummy $ac_prog; ac_word=$2 6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6483 $as_echo_n "checking for $ac_word... " >&6; } 6484 if ${ac_cv_path_CP+:} false; then : 6485 $as_echo_n "(cached) " >&6 6486 else 6487 case $CP in 6488 [\\/]* | ?:[\\/]*) 6489 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6490 ;; 6491 *) 6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6493 for as_dir in $PATH 6494 do 6495 IFS=$as_save_IFS 6496 test -z "$as_dir" && as_dir=. 6497 for ac_exec_ext in '' $ac_executable_extensions; do 6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6499 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6501 break 2 6502 fi 6503 done 6504 done 6505 IFS=$as_save_IFS 6506 6507 ;; 6508 esac 6509 fi 6510 CP=$ac_cv_path_CP 6511 if test -n "$CP"; then 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6513 $as_echo "$CP" >&6; } 6514 else 6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6516 $as_echo "no" >&6; } 6517 fi 6518 6519 6520 test -n "$CP" && break 6521 done 6522 6523 else 6524 # The variable is set, but is it from the command line or the environment? 6525 6526 # Try to remove the string !CP! from our list. 6527 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6528 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6529 # If it failed, the variable was not from the command line. Ignore it, 6530 # but warn the user (except for BASH, which is always set by the calling BASH). 6531 if test "xCP" != xBASH; then 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6533 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6534 fi 6535 # Try to locate tool using the code snippet 6536 for ac_prog in cp 6537 do 6538 # Extract the first word of "$ac_prog", so it can be a program name with args. 6539 set dummy $ac_prog; ac_word=$2 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6541 $as_echo_n "checking for $ac_word... " >&6; } 6542 if ${ac_cv_path_CP+:} false; then : 6543 $as_echo_n "(cached) " >&6 6544 else 6545 case $CP in 6546 [\\/]* | ?:[\\/]*) 6547 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6548 ;; 6549 *) 6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6551 for as_dir in $PATH 6552 do 6553 IFS=$as_save_IFS 6554 test -z "$as_dir" && as_dir=. 6555 for ac_exec_ext in '' $ac_executable_extensions; do 6556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6557 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6559 break 2 6560 fi 6561 done 6562 done 6563 IFS=$as_save_IFS 6564 6565 ;; 6566 esac 6567 fi 6568 CP=$ac_cv_path_CP 6569 if test -n "$CP"; then 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6571 $as_echo "$CP" >&6; } 6572 else 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6574 $as_echo "no" >&6; } 6575 fi 6576 6577 6578 test -n "$CP" && break 6579 done 6580 6581 else 6582 # If it succeeded, then it was overridden by the user. We will use it 6583 # for the tool. 6584 6585 # First remove it from the list of overridden variables, so we can test 6586 # for unknown variables in the end. 6587 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6588 6589 # Check if we try to supply an empty value 6590 if test "x$CP" = x; then 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6592 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6594 $as_echo_n "checking for CP... " >&6; } 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6596 $as_echo "disabled" >&6; } 6597 else 6598 # Check if the provided tool contains a complete path. 6599 tool_specified="$CP" 6600 tool_basename="${tool_specified##*/}" 6601 if test "x$tool_basename" = "x$tool_specified"; then 6602 # A command without a complete path is provided, search $PATH. 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6604 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6605 # Extract the first word of "$tool_basename", so it can be a program name with args. 6606 set dummy $tool_basename; ac_word=$2 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6608 $as_echo_n "checking for $ac_word... " >&6; } 6609 if ${ac_cv_path_CP+:} false; then : 6610 $as_echo_n "(cached) " >&6 6611 else 6612 case $CP in 6613 [\\/]* | ?:[\\/]*) 6614 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6615 ;; 6616 *) 6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6618 for as_dir in $PATH 6619 do 6620 IFS=$as_save_IFS 6621 test -z "$as_dir" && as_dir=. 6622 for ac_exec_ext in '' $ac_executable_extensions; do 6623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6624 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6626 break 2 6627 fi 6628 done 6629 done 6630 IFS=$as_save_IFS 6631 6632 ;; 6633 esac 6634 fi 6635 CP=$ac_cv_path_CP 6636 if test -n "$CP"; then 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6638 $as_echo "$CP" >&6; } 6639 else 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6641 $as_echo "no" >&6; } 6642 fi 6643 6644 6645 if test "x$CP" = x; then 6646 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6647 fi 6648 else 6649 # Otherwise we believe it is a complete path. Use it as it is. 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6651 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6653 $as_echo_n "checking for CP... " >&6; } 6654 if test ! -x "$tool_specified"; then 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6656 $as_echo "not found" >&6; } 6657 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6658 fi 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6660 $as_echo "$tool_specified" >&6; } 6661 fi 6662 fi 6663 fi 6664 6665 fi 6666 6667 6668 6669 if test "x$CP" = x; then 6670 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6671 fi 6672 6673 6674 6675 6676 6677 # Publish this variable in the help. 6678 6679 6680 if [ -z "${CUT+x}" ]; then 6681 # The variable is not set by user, try to locate tool using the code snippet 6682 for ac_prog in cut 6683 do 6684 # Extract the first word of "$ac_prog", so it can be a program name with args. 6685 set dummy $ac_prog; ac_word=$2 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6687 $as_echo_n "checking for $ac_word... " >&6; } 6688 if ${ac_cv_path_CUT+:} false; then : 6689 $as_echo_n "(cached) " >&6 6690 else 6691 case $CUT in 6692 [\\/]* | ?:[\\/]*) 6693 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6694 ;; 6695 *) 6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6697 for as_dir in $PATH 6698 do 6699 IFS=$as_save_IFS 6700 test -z "$as_dir" && as_dir=. 6701 for ac_exec_ext in '' $ac_executable_extensions; do 6702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6703 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6705 break 2 6706 fi 6707 done 6708 done 6709 IFS=$as_save_IFS 6710 6711 ;; 6712 esac 6713 fi 6714 CUT=$ac_cv_path_CUT 6715 if test -n "$CUT"; then 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6717 $as_echo "$CUT" >&6; } 6718 else 6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6720 $as_echo "no" >&6; } 6721 fi 6722 6723 6724 test -n "$CUT" && break 6725 done 6726 6727 else 6728 # The variable is set, but is it from the command line or the environment? 6729 6730 # Try to remove the string !CUT! from our list. 6731 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6732 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6733 # If it failed, the variable was not from the command line. Ignore it, 6734 # but warn the user (except for BASH, which is always set by the calling BASH). 6735 if test "xCUT" != xBASH; then 6736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6737 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6738 fi 6739 # Try to locate tool using the code snippet 6740 for ac_prog in cut 6741 do 6742 # Extract the first word of "$ac_prog", so it can be a program name with args. 6743 set dummy $ac_prog; ac_word=$2 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6745 $as_echo_n "checking for $ac_word... " >&6; } 6746 if ${ac_cv_path_CUT+:} false; then : 6747 $as_echo_n "(cached) " >&6 6748 else 6749 case $CUT in 6750 [\\/]* | ?:[\\/]*) 6751 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6752 ;; 6753 *) 6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6755 for as_dir in $PATH 6756 do 6757 IFS=$as_save_IFS 6758 test -z "$as_dir" && as_dir=. 6759 for ac_exec_ext in '' $ac_executable_extensions; do 6760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6761 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6763 break 2 6764 fi 6765 done 6766 done 6767 IFS=$as_save_IFS 6768 6769 ;; 6770 esac 6771 fi 6772 CUT=$ac_cv_path_CUT 6773 if test -n "$CUT"; then 6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6775 $as_echo "$CUT" >&6; } 6776 else 6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6778 $as_echo "no" >&6; } 6779 fi 6780 6781 6782 test -n "$CUT" && break 6783 done 6784 6785 else 6786 # If it succeeded, then it was overridden by the user. We will use it 6787 # for the tool. 6788 6789 # First remove it from the list of overridden variables, so we can test 6790 # for unknown variables in the end. 6791 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6792 6793 # Check if we try to supply an empty value 6794 if test "x$CUT" = x; then 6795 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6796 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6798 $as_echo_n "checking for CUT... " >&6; } 6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6800 $as_echo "disabled" >&6; } 6801 else 6802 # Check if the provided tool contains a complete path. 6803 tool_specified="$CUT" 6804 tool_basename="${tool_specified##*/}" 6805 if test "x$tool_basename" = "x$tool_specified"; then 6806 # A command without a complete path is provided, search $PATH. 6807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6808 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6809 # Extract the first word of "$tool_basename", so it can be a program name with args. 6810 set dummy $tool_basename; ac_word=$2 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6812 $as_echo_n "checking for $ac_word... " >&6; } 6813 if ${ac_cv_path_CUT+:} false; then : 6814 $as_echo_n "(cached) " >&6 6815 else 6816 case $CUT in 6817 [\\/]* | ?:[\\/]*) 6818 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6819 ;; 6820 *) 6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6822 for as_dir in $PATH 6823 do 6824 IFS=$as_save_IFS 6825 test -z "$as_dir" && as_dir=. 6826 for ac_exec_ext in '' $ac_executable_extensions; do 6827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6828 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6830 break 2 6831 fi 6832 done 6833 done 6834 IFS=$as_save_IFS 6835 6836 ;; 6837 esac 6838 fi 6839 CUT=$ac_cv_path_CUT 6840 if test -n "$CUT"; then 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6842 $as_echo "$CUT" >&6; } 6843 else 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6845 $as_echo "no" >&6; } 6846 fi 6847 6848 6849 if test "x$CUT" = x; then 6850 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6851 fi 6852 else 6853 # Otherwise we believe it is a complete path. Use it as it is. 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6855 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6857 $as_echo_n "checking for CUT... " >&6; } 6858 if test ! -x "$tool_specified"; then 6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6860 $as_echo "not found" >&6; } 6861 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6862 fi 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6864 $as_echo "$tool_specified" >&6; } 6865 fi 6866 fi 6867 fi 6868 6869 fi 6870 6871 6872 6873 if test "x$CUT" = x; then 6874 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6875 fi 6876 6877 6878 6879 6880 6881 # Publish this variable in the help. 6882 6883 6884 if [ -z "${DATE+x}" ]; then 6885 # The variable is not set by user, try to locate tool using the code snippet 6886 for ac_prog in date 6887 do 6888 # Extract the first word of "$ac_prog", so it can be a program name with args. 6889 set dummy $ac_prog; ac_word=$2 6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6891 $as_echo_n "checking for $ac_word... " >&6; } 6892 if ${ac_cv_path_DATE+:} false; then : 6893 $as_echo_n "(cached) " >&6 6894 else 6895 case $DATE in 6896 [\\/]* | ?:[\\/]*) 6897 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6898 ;; 6899 *) 6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6901 for as_dir in $PATH 6902 do 6903 IFS=$as_save_IFS 6904 test -z "$as_dir" && as_dir=. 6905 for ac_exec_ext in '' $ac_executable_extensions; do 6906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6907 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6909 break 2 6910 fi 6911 done 6912 done 6913 IFS=$as_save_IFS 6914 6915 ;; 6916 esac 6917 fi 6918 DATE=$ac_cv_path_DATE 6919 if test -n "$DATE"; then 6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6921 $as_echo "$DATE" >&6; } 6922 else 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6924 $as_echo "no" >&6; } 6925 fi 6926 6927 6928 test -n "$DATE" && break 6929 done 6930 6931 else 6932 # The variable is set, but is it from the command line or the environment? 6933 6934 # Try to remove the string !DATE! from our list. 6935 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6936 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6937 # If it failed, the variable was not from the command line. Ignore it, 6938 # but warn the user (except for BASH, which is always set by the calling BASH). 6939 if test "xDATE" != xBASH; then 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6941 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6942 fi 6943 # Try to locate tool using the code snippet 6944 for ac_prog in date 6945 do 6946 # Extract the first word of "$ac_prog", so it can be a program name with args. 6947 set dummy $ac_prog; ac_word=$2 6948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6949 $as_echo_n "checking for $ac_word... " >&6; } 6950 if ${ac_cv_path_DATE+:} false; then : 6951 $as_echo_n "(cached) " >&6 6952 else 6953 case $DATE in 6954 [\\/]* | ?:[\\/]*) 6955 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6956 ;; 6957 *) 6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6959 for as_dir in $PATH 6960 do 6961 IFS=$as_save_IFS 6962 test -z "$as_dir" && as_dir=. 6963 for ac_exec_ext in '' $ac_executable_extensions; do 6964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6965 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6967 break 2 6968 fi 6969 done 6970 done 6971 IFS=$as_save_IFS 6972 6973 ;; 6974 esac 6975 fi 6976 DATE=$ac_cv_path_DATE 6977 if test -n "$DATE"; then 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6979 $as_echo "$DATE" >&6; } 6980 else 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6982 $as_echo "no" >&6; } 6983 fi 6984 6985 6986 test -n "$DATE" && break 6987 done 6988 6989 else 6990 # If it succeeded, then it was overridden by the user. We will use it 6991 # for the tool. 6992 6993 # First remove it from the list of overridden variables, so we can test 6994 # for unknown variables in the end. 6995 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6996 6997 # Check if we try to supply an empty value 6998 if test "x$DATE" = x; then 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 7000 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7002 $as_echo_n "checking for DATE... " >&6; } 7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7004 $as_echo "disabled" >&6; } 7005 else 7006 # Check if the provided tool contains a complete path. 7007 tool_specified="$DATE" 7008 tool_basename="${tool_specified##*/}" 7009 if test "x$tool_basename" = "x$tool_specified"; then 7010 # A command without a complete path is provided, search $PATH. 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 7012 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 7013 # Extract the first word of "$tool_basename", so it can be a program name with args. 7014 set dummy $tool_basename; ac_word=$2 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7016 $as_echo_n "checking for $ac_word... " >&6; } 7017 if ${ac_cv_path_DATE+:} false; then : 7018 $as_echo_n "(cached) " >&6 7019 else 7020 case $DATE in 7021 [\\/]* | ?:[\\/]*) 7022 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 7023 ;; 7024 *) 7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7026 for as_dir in $PATH 7027 do 7028 IFS=$as_save_IFS 7029 test -z "$as_dir" && as_dir=. 7030 for ac_exec_ext in '' $ac_executable_extensions; do 7031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7032 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7034 break 2 7035 fi 7036 done 7037 done 7038 IFS=$as_save_IFS 7039 7040 ;; 7041 esac 7042 fi 7043 DATE=$ac_cv_path_DATE 7044 if test -n "$DATE"; then 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 7046 $as_echo "$DATE" >&6; } 7047 else 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7049 $as_echo "no" >&6; } 7050 fi 7051 7052 7053 if test "x$DATE" = x; then 7054 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7055 fi 7056 else 7057 # Otherwise we believe it is a complete path. Use it as it is. 7058 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 7059 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7061 $as_echo_n "checking for DATE... " >&6; } 7062 if test ! -x "$tool_specified"; then 7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7064 $as_echo "not found" >&6; } 7065 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 7066 fi 7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7068 $as_echo "$tool_specified" >&6; } 7069 fi 7070 fi 7071 fi 7072 7073 fi 7074 7075 7076 7077 if test "x$DATE" = x; then 7078 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 7079 fi 7080 7081 7082 7083 7084 7085 # Publish this variable in the help. 7086 7087 7088 if [ -z "${DIFF+x}" ]; then 7089 # The variable is not set by user, try to locate tool using the code snippet 7090 for ac_prog in gdiff diff 7091 do 7092 # Extract the first word of "$ac_prog", so it can be a program name with args. 7093 set dummy $ac_prog; ac_word=$2 7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7095 $as_echo_n "checking for $ac_word... " >&6; } 7096 if ${ac_cv_path_DIFF+:} false; then : 7097 $as_echo_n "(cached) " >&6 7098 else 7099 case $DIFF in 7100 [\\/]* | ?:[\\/]*) 7101 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7102 ;; 7103 *) 7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7105 for as_dir in $PATH 7106 do 7107 IFS=$as_save_IFS 7108 test -z "$as_dir" && as_dir=. 7109 for ac_exec_ext in '' $ac_executable_extensions; do 7110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7111 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7113 break 2 7114 fi 7115 done 7116 done 7117 IFS=$as_save_IFS 7118 7119 ;; 7120 esac 7121 fi 7122 DIFF=$ac_cv_path_DIFF 7123 if test -n "$DIFF"; then 7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7125 $as_echo "$DIFF" >&6; } 7126 else 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7128 $as_echo "no" >&6; } 7129 fi 7130 7131 7132 test -n "$DIFF" && break 7133 done 7134 7135 else 7136 # The variable is set, but is it from the command line or the environment? 7137 7138 # Try to remove the string !DIFF! from our list. 7139 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7140 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7141 # If it failed, the variable was not from the command line. Ignore it, 7142 # but warn the user (except for BASH, which is always set by the calling BASH). 7143 if test "xDIFF" != xBASH; then 7144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7145 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7146 fi 7147 # Try to locate tool using the code snippet 7148 for ac_prog in gdiff diff 7149 do 7150 # Extract the first word of "$ac_prog", so it can be a program name with args. 7151 set dummy $ac_prog; ac_word=$2 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7153 $as_echo_n "checking for $ac_word... " >&6; } 7154 if ${ac_cv_path_DIFF+:} false; then : 7155 $as_echo_n "(cached) " >&6 7156 else 7157 case $DIFF in 7158 [\\/]* | ?:[\\/]*) 7159 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7160 ;; 7161 *) 7162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7163 for as_dir in $PATH 7164 do 7165 IFS=$as_save_IFS 7166 test -z "$as_dir" && as_dir=. 7167 for ac_exec_ext in '' $ac_executable_extensions; do 7168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7169 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7171 break 2 7172 fi 7173 done 7174 done 7175 IFS=$as_save_IFS 7176 7177 ;; 7178 esac 7179 fi 7180 DIFF=$ac_cv_path_DIFF 7181 if test -n "$DIFF"; then 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7183 $as_echo "$DIFF" >&6; } 7184 else 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7186 $as_echo "no" >&6; } 7187 fi 7188 7189 7190 test -n "$DIFF" && break 7191 done 7192 7193 else 7194 # If it succeeded, then it was overridden by the user. We will use it 7195 # for the tool. 7196 7197 # First remove it from the list of overridden variables, so we can test 7198 # for unknown variables in the end. 7199 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7200 7201 # Check if we try to supply an empty value 7202 if test "x$DIFF" = x; then 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7204 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7206 $as_echo_n "checking for DIFF... " >&6; } 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7208 $as_echo "disabled" >&6; } 7209 else 7210 # Check if the provided tool contains a complete path. 7211 tool_specified="$DIFF" 7212 tool_basename="${tool_specified##*/}" 7213 if test "x$tool_basename" = "x$tool_specified"; then 7214 # A command without a complete path is provided, search $PATH. 7215 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7216 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7217 # Extract the first word of "$tool_basename", so it can be a program name with args. 7218 set dummy $tool_basename; ac_word=$2 7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7220 $as_echo_n "checking for $ac_word... " >&6; } 7221 if ${ac_cv_path_DIFF+:} false; then : 7222 $as_echo_n "(cached) " >&6 7223 else 7224 case $DIFF in 7225 [\\/]* | ?:[\\/]*) 7226 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7227 ;; 7228 *) 7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7230 for as_dir in $PATH 7231 do 7232 IFS=$as_save_IFS 7233 test -z "$as_dir" && as_dir=. 7234 for ac_exec_ext in '' $ac_executable_extensions; do 7235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7236 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7238 break 2 7239 fi 7240 done 7241 done 7242 IFS=$as_save_IFS 7243 7244 ;; 7245 esac 7246 fi 7247 DIFF=$ac_cv_path_DIFF 7248 if test -n "$DIFF"; then 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7250 $as_echo "$DIFF" >&6; } 7251 else 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7253 $as_echo "no" >&6; } 7254 fi 7255 7256 7257 if test "x$DIFF" = x; then 7258 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7259 fi 7260 else 7261 # Otherwise we believe it is a complete path. Use it as it is. 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7263 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7265 $as_echo_n "checking for DIFF... " >&6; } 7266 if test ! -x "$tool_specified"; then 7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7268 $as_echo "not found" >&6; } 7269 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7270 fi 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7272 $as_echo "$tool_specified" >&6; } 7273 fi 7274 fi 7275 fi 7276 7277 fi 7278 7279 7280 7281 if test "x$DIFF" = x; then 7282 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7283 fi 7284 7285 7286 7287 7288 7289 # Publish this variable in the help. 7290 7291 7292 if [ -z "${DIRNAME+x}" ]; then 7293 # The variable is not set by user, try to locate tool using the code snippet 7294 for ac_prog in dirname 7295 do 7296 # Extract the first word of "$ac_prog", so it can be a program name with args. 7297 set dummy $ac_prog; ac_word=$2 7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7299 $as_echo_n "checking for $ac_word... " >&6; } 7300 if ${ac_cv_path_DIRNAME+:} false; then : 7301 $as_echo_n "(cached) " >&6 7302 else 7303 case $DIRNAME in 7304 [\\/]* | ?:[\\/]*) 7305 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7306 ;; 7307 *) 7308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7309 for as_dir in $PATH 7310 do 7311 IFS=$as_save_IFS 7312 test -z "$as_dir" && as_dir=. 7313 for ac_exec_ext in '' $ac_executable_extensions; do 7314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7315 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7317 break 2 7318 fi 7319 done 7320 done 7321 IFS=$as_save_IFS 7322 7323 ;; 7324 esac 7325 fi 7326 DIRNAME=$ac_cv_path_DIRNAME 7327 if test -n "$DIRNAME"; then 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7329 $as_echo "$DIRNAME" >&6; } 7330 else 7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7332 $as_echo "no" >&6; } 7333 fi 7334 7335 7336 test -n "$DIRNAME" && break 7337 done 7338 7339 else 7340 # The variable is set, but is it from the command line or the environment? 7341 7342 # Try to remove the string !DIRNAME! from our list. 7343 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7344 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7345 # If it failed, the variable was not from the command line. Ignore it, 7346 # but warn the user (except for BASH, which is always set by the calling BASH). 7347 if test "xDIRNAME" != xBASH; then 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7349 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7350 fi 7351 # Try to locate tool using the code snippet 7352 for ac_prog in dirname 7353 do 7354 # Extract the first word of "$ac_prog", so it can be a program name with args. 7355 set dummy $ac_prog; ac_word=$2 7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7357 $as_echo_n "checking for $ac_word... " >&6; } 7358 if ${ac_cv_path_DIRNAME+:} false; then : 7359 $as_echo_n "(cached) " >&6 7360 else 7361 case $DIRNAME in 7362 [\\/]* | ?:[\\/]*) 7363 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7364 ;; 7365 *) 7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7367 for as_dir in $PATH 7368 do 7369 IFS=$as_save_IFS 7370 test -z "$as_dir" && as_dir=. 7371 for ac_exec_ext in '' $ac_executable_extensions; do 7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7373 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7375 break 2 7376 fi 7377 done 7378 done 7379 IFS=$as_save_IFS 7380 7381 ;; 7382 esac 7383 fi 7384 DIRNAME=$ac_cv_path_DIRNAME 7385 if test -n "$DIRNAME"; then 7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7387 $as_echo "$DIRNAME" >&6; } 7388 else 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7390 $as_echo "no" >&6; } 7391 fi 7392 7393 7394 test -n "$DIRNAME" && break 7395 done 7396 7397 else 7398 # If it succeeded, then it was overridden by the user. We will use it 7399 # for the tool. 7400 7401 # First remove it from the list of overridden variables, so we can test 7402 # for unknown variables in the end. 7403 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7404 7405 # Check if we try to supply an empty value 7406 if test "x$DIRNAME" = x; then 7407 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7408 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7410 $as_echo_n "checking for DIRNAME... " >&6; } 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7412 $as_echo "disabled" >&6; } 7413 else 7414 # Check if the provided tool contains a complete path. 7415 tool_specified="$DIRNAME" 7416 tool_basename="${tool_specified##*/}" 7417 if test "x$tool_basename" = "x$tool_specified"; then 7418 # A command without a complete path is provided, search $PATH. 7419 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7420 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7421 # Extract the first word of "$tool_basename", so it can be a program name with args. 7422 set dummy $tool_basename; ac_word=$2 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7424 $as_echo_n "checking for $ac_word... " >&6; } 7425 if ${ac_cv_path_DIRNAME+:} false; then : 7426 $as_echo_n "(cached) " >&6 7427 else 7428 case $DIRNAME in 7429 [\\/]* | ?:[\\/]*) 7430 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7431 ;; 7432 *) 7433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7434 for as_dir in $PATH 7435 do 7436 IFS=$as_save_IFS 7437 test -z "$as_dir" && as_dir=. 7438 for ac_exec_ext in '' $ac_executable_extensions; do 7439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7440 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7442 break 2 7443 fi 7444 done 7445 done 7446 IFS=$as_save_IFS 7447 7448 ;; 7449 esac 7450 fi 7451 DIRNAME=$ac_cv_path_DIRNAME 7452 if test -n "$DIRNAME"; then 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7454 $as_echo "$DIRNAME" >&6; } 7455 else 7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7457 $as_echo "no" >&6; } 7458 fi 7459 7460 7461 if test "x$DIRNAME" = x; then 7462 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7463 fi 7464 else 7465 # Otherwise we believe it is a complete path. Use it as it is. 7466 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7467 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7469 $as_echo_n "checking for DIRNAME... " >&6; } 7470 if test ! -x "$tool_specified"; then 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7472 $as_echo "not found" >&6; } 7473 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7474 fi 7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7476 $as_echo "$tool_specified" >&6; } 7477 fi 7478 fi 7479 fi 7480 7481 fi 7482 7483 7484 7485 if test "x$DIRNAME" = x; then 7486 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7487 fi 7488 7489 7490 7491 7492 7493 # Publish this variable in the help. 7494 7495 7496 if [ -z "${ECHO+x}" ]; then 7497 # The variable is not set by user, try to locate tool using the code snippet 7498 for ac_prog in echo 7499 do 7500 # Extract the first word of "$ac_prog", so it can be a program name with args. 7501 set dummy $ac_prog; ac_word=$2 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7503 $as_echo_n "checking for $ac_word... " >&6; } 7504 if ${ac_cv_path_ECHO+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506 else 7507 case $ECHO in 7508 [\\/]* | ?:[\\/]*) 7509 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7510 ;; 7511 *) 7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7513 for as_dir in $PATH 7514 do 7515 IFS=$as_save_IFS 7516 test -z "$as_dir" && as_dir=. 7517 for ac_exec_ext in '' $ac_executable_extensions; do 7518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7519 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7521 break 2 7522 fi 7523 done 7524 done 7525 IFS=$as_save_IFS 7526 7527 ;; 7528 esac 7529 fi 7530 ECHO=$ac_cv_path_ECHO 7531 if test -n "$ECHO"; then 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7533 $as_echo "$ECHO" >&6; } 7534 else 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7536 $as_echo "no" >&6; } 7537 fi 7538 7539 7540 test -n "$ECHO" && break 7541 done 7542 7543 else 7544 # The variable is set, but is it from the command line or the environment? 7545 7546 # Try to remove the string !ECHO! from our list. 7547 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7548 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7549 # If it failed, the variable was not from the command line. Ignore it, 7550 # but warn the user (except for BASH, which is always set by the calling BASH). 7551 if test "xECHO" != xBASH; then 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7553 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7554 fi 7555 # Try to locate tool using the code snippet 7556 for ac_prog in echo 7557 do 7558 # Extract the first word of "$ac_prog", so it can be a program name with args. 7559 set dummy $ac_prog; ac_word=$2 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7561 $as_echo_n "checking for $ac_word... " >&6; } 7562 if ${ac_cv_path_ECHO+:} false; then : 7563 $as_echo_n "(cached) " >&6 7564 else 7565 case $ECHO in 7566 [\\/]* | ?:[\\/]*) 7567 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7568 ;; 7569 *) 7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7571 for as_dir in $PATH 7572 do 7573 IFS=$as_save_IFS 7574 test -z "$as_dir" && as_dir=. 7575 for ac_exec_ext in '' $ac_executable_extensions; do 7576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7577 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7579 break 2 7580 fi 7581 done 7582 done 7583 IFS=$as_save_IFS 7584 7585 ;; 7586 esac 7587 fi 7588 ECHO=$ac_cv_path_ECHO 7589 if test -n "$ECHO"; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7591 $as_echo "$ECHO" >&6; } 7592 else 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7594 $as_echo "no" >&6; } 7595 fi 7596 7597 7598 test -n "$ECHO" && break 7599 done 7600 7601 else 7602 # If it succeeded, then it was overridden by the user. We will use it 7603 # for the tool. 7604 7605 # First remove it from the list of overridden variables, so we can test 7606 # for unknown variables in the end. 7607 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7608 7609 # Check if we try to supply an empty value 7610 if test "x$ECHO" = x; then 7611 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7612 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7614 $as_echo_n "checking for ECHO... " >&6; } 7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7616 $as_echo "disabled" >&6; } 7617 else 7618 # Check if the provided tool contains a complete path. 7619 tool_specified="$ECHO" 7620 tool_basename="${tool_specified##*/}" 7621 if test "x$tool_basename" = "x$tool_specified"; then 7622 # A command without a complete path is provided, search $PATH. 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7624 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7625 # Extract the first word of "$tool_basename", so it can be a program name with args. 7626 set dummy $tool_basename; ac_word=$2 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7628 $as_echo_n "checking for $ac_word... " >&6; } 7629 if ${ac_cv_path_ECHO+:} false; then : 7630 $as_echo_n "(cached) " >&6 7631 else 7632 case $ECHO in 7633 [\\/]* | ?:[\\/]*) 7634 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7635 ;; 7636 *) 7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7638 for as_dir in $PATH 7639 do 7640 IFS=$as_save_IFS 7641 test -z "$as_dir" && as_dir=. 7642 for ac_exec_ext in '' $ac_executable_extensions; do 7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7644 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7646 break 2 7647 fi 7648 done 7649 done 7650 IFS=$as_save_IFS 7651 7652 ;; 7653 esac 7654 fi 7655 ECHO=$ac_cv_path_ECHO 7656 if test -n "$ECHO"; then 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7658 $as_echo "$ECHO" >&6; } 7659 else 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7661 $as_echo "no" >&6; } 7662 fi 7663 7664 7665 if test "x$ECHO" = x; then 7666 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7667 fi 7668 else 7669 # Otherwise we believe it is a complete path. Use it as it is. 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7671 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7673 $as_echo_n "checking for ECHO... " >&6; } 7674 if test ! -x "$tool_specified"; then 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7676 $as_echo "not found" >&6; } 7677 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7678 fi 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7680 $as_echo "$tool_specified" >&6; } 7681 fi 7682 fi 7683 fi 7684 7685 fi 7686 7687 7688 7689 if test "x$ECHO" = x; then 7690 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7691 fi 7692 7693 7694 7695 7696 7697 # Publish this variable in the help. 7698 7699 7700 if [ -z "${EXPR+x}" ]; then 7701 # The variable is not set by user, try to locate tool using the code snippet 7702 for ac_prog in expr 7703 do 7704 # Extract the first word of "$ac_prog", so it can be a program name with args. 7705 set dummy $ac_prog; ac_word=$2 7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7707 $as_echo_n "checking for $ac_word... " >&6; } 7708 if ${ac_cv_path_EXPR+:} false; then : 7709 $as_echo_n "(cached) " >&6 7710 else 7711 case $EXPR in 7712 [\\/]* | ?:[\\/]*) 7713 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7714 ;; 7715 *) 7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7717 for as_dir in $PATH 7718 do 7719 IFS=$as_save_IFS 7720 test -z "$as_dir" && as_dir=. 7721 for ac_exec_ext in '' $ac_executable_extensions; do 7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7723 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7725 break 2 7726 fi 7727 done 7728 done 7729 IFS=$as_save_IFS 7730 7731 ;; 7732 esac 7733 fi 7734 EXPR=$ac_cv_path_EXPR 7735 if test -n "$EXPR"; then 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7737 $as_echo "$EXPR" >&6; } 7738 else 7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7740 $as_echo "no" >&6; } 7741 fi 7742 7743 7744 test -n "$EXPR" && break 7745 done 7746 7747 else 7748 # The variable is set, but is it from the command line or the environment? 7749 7750 # Try to remove the string !EXPR! from our list. 7751 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7752 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7753 # If it failed, the variable was not from the command line. Ignore it, 7754 # but warn the user (except for BASH, which is always set by the calling BASH). 7755 if test "xEXPR" != xBASH; then 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7757 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7758 fi 7759 # Try to locate tool using the code snippet 7760 for ac_prog in expr 7761 do 7762 # Extract the first word of "$ac_prog", so it can be a program name with args. 7763 set dummy $ac_prog; ac_word=$2 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7765 $as_echo_n "checking for $ac_word... " >&6; } 7766 if ${ac_cv_path_EXPR+:} false; then : 7767 $as_echo_n "(cached) " >&6 7768 else 7769 case $EXPR in 7770 [\\/]* | ?:[\\/]*) 7771 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7772 ;; 7773 *) 7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7775 for as_dir in $PATH 7776 do 7777 IFS=$as_save_IFS 7778 test -z "$as_dir" && as_dir=. 7779 for ac_exec_ext in '' $ac_executable_extensions; do 7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7781 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7783 break 2 7784 fi 7785 done 7786 done 7787 IFS=$as_save_IFS 7788 7789 ;; 7790 esac 7791 fi 7792 EXPR=$ac_cv_path_EXPR 7793 if test -n "$EXPR"; then 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7795 $as_echo "$EXPR" >&6; } 7796 else 7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7798 $as_echo "no" >&6; } 7799 fi 7800 7801 7802 test -n "$EXPR" && break 7803 done 7804 7805 else 7806 # If it succeeded, then it was overridden by the user. We will use it 7807 # for the tool. 7808 7809 # First remove it from the list of overridden variables, so we can test 7810 # for unknown variables in the end. 7811 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7812 7813 # Check if we try to supply an empty value 7814 if test "x$EXPR" = x; then 7815 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7816 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7818 $as_echo_n "checking for EXPR... " >&6; } 7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7820 $as_echo "disabled" >&6; } 7821 else 7822 # Check if the provided tool contains a complete path. 7823 tool_specified="$EXPR" 7824 tool_basename="${tool_specified##*/}" 7825 if test "x$tool_basename" = "x$tool_specified"; then 7826 # A command without a complete path is provided, search $PATH. 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7828 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7829 # Extract the first word of "$tool_basename", so it can be a program name with args. 7830 set dummy $tool_basename; ac_word=$2 7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7832 $as_echo_n "checking for $ac_word... " >&6; } 7833 if ${ac_cv_path_EXPR+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835 else 7836 case $EXPR in 7837 [\\/]* | ?:[\\/]*) 7838 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7839 ;; 7840 *) 7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7842 for as_dir in $PATH 7843 do 7844 IFS=$as_save_IFS 7845 test -z "$as_dir" && as_dir=. 7846 for ac_exec_ext in '' $ac_executable_extensions; do 7847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7848 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7850 break 2 7851 fi 7852 done 7853 done 7854 IFS=$as_save_IFS 7855 7856 ;; 7857 esac 7858 fi 7859 EXPR=$ac_cv_path_EXPR 7860 if test -n "$EXPR"; then 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7862 $as_echo "$EXPR" >&6; } 7863 else 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7865 $as_echo "no" >&6; } 7866 fi 7867 7868 7869 if test "x$EXPR" = x; then 7870 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7871 fi 7872 else 7873 # Otherwise we believe it is a complete path. Use it as it is. 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7875 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7877 $as_echo_n "checking for EXPR... " >&6; } 7878 if test ! -x "$tool_specified"; then 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7880 $as_echo "not found" >&6; } 7881 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7882 fi 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7884 $as_echo "$tool_specified" >&6; } 7885 fi 7886 fi 7887 fi 7888 7889 fi 7890 7891 7892 7893 if test "x$EXPR" = x; then 7894 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7895 fi 7896 7897 7898 7899 7900 7901 # Publish this variable in the help. 7902 7903 7904 if [ -z "${FILE+x}" ]; then 7905 # The variable is not set by user, try to locate tool using the code snippet 7906 for ac_prog in file 7907 do 7908 # Extract the first word of "$ac_prog", so it can be a program name with args. 7909 set dummy $ac_prog; ac_word=$2 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7911 $as_echo_n "checking for $ac_word... " >&6; } 7912 if ${ac_cv_path_FILE+:} false; then : 7913 $as_echo_n "(cached) " >&6 7914 else 7915 case $FILE in 7916 [\\/]* | ?:[\\/]*) 7917 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7918 ;; 7919 *) 7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7921 for as_dir in $PATH 7922 do 7923 IFS=$as_save_IFS 7924 test -z "$as_dir" && as_dir=. 7925 for ac_exec_ext in '' $ac_executable_extensions; do 7926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7927 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7929 break 2 7930 fi 7931 done 7932 done 7933 IFS=$as_save_IFS 7934 7935 ;; 7936 esac 7937 fi 7938 FILE=$ac_cv_path_FILE 7939 if test -n "$FILE"; then 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7941 $as_echo "$FILE" >&6; } 7942 else 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7944 $as_echo "no" >&6; } 7945 fi 7946 7947 7948 test -n "$FILE" && break 7949 done 7950 7951 else 7952 # The variable is set, but is it from the command line or the environment? 7953 7954 # Try to remove the string !FILE! from our list. 7955 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7956 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7957 # If it failed, the variable was not from the command line. Ignore it, 7958 # but warn the user (except for BASH, which is always set by the calling BASH). 7959 if test "xFILE" != xBASH; then 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7961 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7962 fi 7963 # Try to locate tool using the code snippet 7964 for ac_prog in file 7965 do 7966 # Extract the first word of "$ac_prog", so it can be a program name with args. 7967 set dummy $ac_prog; ac_word=$2 7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7969 $as_echo_n "checking for $ac_word... " >&6; } 7970 if ${ac_cv_path_FILE+:} false; then : 7971 $as_echo_n "(cached) " >&6 7972 else 7973 case $FILE in 7974 [\\/]* | ?:[\\/]*) 7975 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7976 ;; 7977 *) 7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7979 for as_dir in $PATH 7980 do 7981 IFS=$as_save_IFS 7982 test -z "$as_dir" && as_dir=. 7983 for ac_exec_ext in '' $ac_executable_extensions; do 7984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7985 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7987 break 2 7988 fi 7989 done 7990 done 7991 IFS=$as_save_IFS 7992 7993 ;; 7994 esac 7995 fi 7996 FILE=$ac_cv_path_FILE 7997 if test -n "$FILE"; then 7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7999 $as_echo "$FILE" >&6; } 8000 else 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8002 $as_echo "no" >&6; } 8003 fi 8004 8005 8006 test -n "$FILE" && break 8007 done 8008 8009 else 8010 # If it succeeded, then it was overridden by the user. We will use it 8011 # for the tool. 8012 8013 # First remove it from the list of overridden variables, so we can test 8014 # for unknown variables in the end. 8015 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8016 8017 # Check if we try to supply an empty value 8018 if test "x$FILE" = x; then 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 8020 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8022 $as_echo_n "checking for FILE... " >&6; } 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8024 $as_echo "disabled" >&6; } 8025 else 8026 # Check if the provided tool contains a complete path. 8027 tool_specified="$FILE" 8028 tool_basename="${tool_specified##*/}" 8029 if test "x$tool_basename" = "x$tool_specified"; then 8030 # A command without a complete path is provided, search $PATH. 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 8032 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 8033 # Extract the first word of "$tool_basename", so it can be a program name with args. 8034 set dummy $tool_basename; ac_word=$2 8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8036 $as_echo_n "checking for $ac_word... " >&6; } 8037 if ${ac_cv_path_FILE+:} false; then : 8038 $as_echo_n "(cached) " >&6 8039 else 8040 case $FILE in 8041 [\\/]* | ?:[\\/]*) 8042 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 8043 ;; 8044 *) 8045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8046 for as_dir in $PATH 8047 do 8048 IFS=$as_save_IFS 8049 test -z "$as_dir" && as_dir=. 8050 for ac_exec_ext in '' $ac_executable_extensions; do 8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8052 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8054 break 2 8055 fi 8056 done 8057 done 8058 IFS=$as_save_IFS 8059 8060 ;; 8061 esac 8062 fi 8063 FILE=$ac_cv_path_FILE 8064 if test -n "$FILE"; then 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8066 $as_echo "$FILE" >&6; } 8067 else 8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8069 $as_echo "no" >&6; } 8070 fi 8071 8072 8073 if test "x$FILE" = x; then 8074 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8075 fi 8076 else 8077 # Otherwise we believe it is a complete path. Use it as it is. 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 8079 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8081 $as_echo_n "checking for FILE... " >&6; } 8082 if test ! -x "$tool_specified"; then 8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8084 $as_echo "not found" >&6; } 8085 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8086 fi 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8088 $as_echo "$tool_specified" >&6; } 8089 fi 8090 fi 8091 fi 8092 8093 fi 8094 8095 8096 8097 if test "x$FILE" = x; then 8098 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8099 fi 8100 8101 8102 8103 8104 8105 # Publish this variable in the help. 8106 8107 8108 if [ -z "${FIND+x}" ]; then 8109 # The variable is not set by user, try to locate tool using the code snippet 8110 for ac_prog in find 8111 do 8112 # Extract the first word of "$ac_prog", so it can be a program name with args. 8113 set dummy $ac_prog; ac_word=$2 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8115 $as_echo_n "checking for $ac_word... " >&6; } 8116 if ${ac_cv_path_FIND+:} false; then : 8117 $as_echo_n "(cached) " >&6 8118 else 8119 case $FIND in 8120 [\\/]* | ?:[\\/]*) 8121 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8122 ;; 8123 *) 8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8125 for as_dir in $PATH 8126 do 8127 IFS=$as_save_IFS 8128 test -z "$as_dir" && as_dir=. 8129 for ac_exec_ext in '' $ac_executable_extensions; do 8130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8131 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8133 break 2 8134 fi 8135 done 8136 done 8137 IFS=$as_save_IFS 8138 8139 ;; 8140 esac 8141 fi 8142 FIND=$ac_cv_path_FIND 8143 if test -n "$FIND"; then 8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8145 $as_echo "$FIND" >&6; } 8146 else 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8148 $as_echo "no" >&6; } 8149 fi 8150 8151 8152 test -n "$FIND" && break 8153 done 8154 8155 else 8156 # The variable is set, but is it from the command line or the environment? 8157 8158 # Try to remove the string !FIND! from our list. 8159 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8160 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8161 # If it failed, the variable was not from the command line. Ignore it, 8162 # but warn the user (except for BASH, which is always set by the calling BASH). 8163 if test "xFIND" != xBASH; then 8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8165 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8166 fi 8167 # Try to locate tool using the code snippet 8168 for ac_prog in find 8169 do 8170 # Extract the first word of "$ac_prog", so it can be a program name with args. 8171 set dummy $ac_prog; ac_word=$2 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8173 $as_echo_n "checking for $ac_word... " >&6; } 8174 if ${ac_cv_path_FIND+:} false; then : 8175 $as_echo_n "(cached) " >&6 8176 else 8177 case $FIND in 8178 [\\/]* | ?:[\\/]*) 8179 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8180 ;; 8181 *) 8182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8183 for as_dir in $PATH 8184 do 8185 IFS=$as_save_IFS 8186 test -z "$as_dir" && as_dir=. 8187 for ac_exec_ext in '' $ac_executable_extensions; do 8188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8189 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8191 break 2 8192 fi 8193 done 8194 done 8195 IFS=$as_save_IFS 8196 8197 ;; 8198 esac 8199 fi 8200 FIND=$ac_cv_path_FIND 8201 if test -n "$FIND"; then 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8203 $as_echo "$FIND" >&6; } 8204 else 8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8206 $as_echo "no" >&6; } 8207 fi 8208 8209 8210 test -n "$FIND" && break 8211 done 8212 8213 else 8214 # If it succeeded, then it was overridden by the user. We will use it 8215 # for the tool. 8216 8217 # First remove it from the list of overridden variables, so we can test 8218 # for unknown variables in the end. 8219 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8220 8221 # Check if we try to supply an empty value 8222 if test "x$FIND" = x; then 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8224 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8226 $as_echo_n "checking for FIND... " >&6; } 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8228 $as_echo "disabled" >&6; } 8229 else 8230 # Check if the provided tool contains a complete path. 8231 tool_specified="$FIND" 8232 tool_basename="${tool_specified##*/}" 8233 if test "x$tool_basename" = "x$tool_specified"; then 8234 # A command without a complete path is provided, search $PATH. 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8236 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8237 # Extract the first word of "$tool_basename", so it can be a program name with args. 8238 set dummy $tool_basename; ac_word=$2 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8240 $as_echo_n "checking for $ac_word... " >&6; } 8241 if ${ac_cv_path_FIND+:} false; then : 8242 $as_echo_n "(cached) " >&6 8243 else 8244 case $FIND in 8245 [\\/]* | ?:[\\/]*) 8246 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8247 ;; 8248 *) 8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8250 for as_dir in $PATH 8251 do 8252 IFS=$as_save_IFS 8253 test -z "$as_dir" && as_dir=. 8254 for ac_exec_ext in '' $ac_executable_extensions; do 8255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8256 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8258 break 2 8259 fi 8260 done 8261 done 8262 IFS=$as_save_IFS 8263 8264 ;; 8265 esac 8266 fi 8267 FIND=$ac_cv_path_FIND 8268 if test -n "$FIND"; then 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8270 $as_echo "$FIND" >&6; } 8271 else 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8273 $as_echo "no" >&6; } 8274 fi 8275 8276 8277 if test "x$FIND" = x; then 8278 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8279 fi 8280 else 8281 # Otherwise we believe it is a complete path. Use it as it is. 8282 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8283 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8285 $as_echo_n "checking for FIND... " >&6; } 8286 if test ! -x "$tool_specified"; then 8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8288 $as_echo "not found" >&6; } 8289 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8290 fi 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8292 $as_echo "$tool_specified" >&6; } 8293 fi 8294 fi 8295 fi 8296 8297 fi 8298 8299 8300 8301 if test "x$FIND" = x; then 8302 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8303 fi 8304 8305 8306 8307 8308 8309 # Publish this variable in the help. 8310 8311 8312 if [ -z "${HEAD+x}" ]; then 8313 # The variable is not set by user, try to locate tool using the code snippet 8314 for ac_prog in head 8315 do 8316 # Extract the first word of "$ac_prog", so it can be a program name with args. 8317 set dummy $ac_prog; ac_word=$2 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8319 $as_echo_n "checking for $ac_word... " >&6; } 8320 if ${ac_cv_path_HEAD+:} false; then : 8321 $as_echo_n "(cached) " >&6 8322 else 8323 case $HEAD in 8324 [\\/]* | ?:[\\/]*) 8325 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8326 ;; 8327 *) 8328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8329 for as_dir in $PATH 8330 do 8331 IFS=$as_save_IFS 8332 test -z "$as_dir" && as_dir=. 8333 for ac_exec_ext in '' $ac_executable_extensions; do 8334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8335 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8337 break 2 8338 fi 8339 done 8340 done 8341 IFS=$as_save_IFS 8342 8343 ;; 8344 esac 8345 fi 8346 HEAD=$ac_cv_path_HEAD 8347 if test -n "$HEAD"; then 8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8349 $as_echo "$HEAD" >&6; } 8350 else 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8352 $as_echo "no" >&6; } 8353 fi 8354 8355 8356 test -n "$HEAD" && break 8357 done 8358 8359 else 8360 # The variable is set, but is it from the command line or the environment? 8361 8362 # Try to remove the string !HEAD! from our list. 8363 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8364 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8365 # If it failed, the variable was not from the command line. Ignore it, 8366 # but warn the user (except for BASH, which is always set by the calling BASH). 8367 if test "xHEAD" != xBASH; then 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8369 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8370 fi 8371 # Try to locate tool using the code snippet 8372 for ac_prog in head 8373 do 8374 # Extract the first word of "$ac_prog", so it can be a program name with args. 8375 set dummy $ac_prog; ac_word=$2 8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8377 $as_echo_n "checking for $ac_word... " >&6; } 8378 if ${ac_cv_path_HEAD+:} false; then : 8379 $as_echo_n "(cached) " >&6 8380 else 8381 case $HEAD in 8382 [\\/]* | ?:[\\/]*) 8383 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8384 ;; 8385 *) 8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8387 for as_dir in $PATH 8388 do 8389 IFS=$as_save_IFS 8390 test -z "$as_dir" && as_dir=. 8391 for ac_exec_ext in '' $ac_executable_extensions; do 8392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8393 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8395 break 2 8396 fi 8397 done 8398 done 8399 IFS=$as_save_IFS 8400 8401 ;; 8402 esac 8403 fi 8404 HEAD=$ac_cv_path_HEAD 8405 if test -n "$HEAD"; then 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8407 $as_echo "$HEAD" >&6; } 8408 else 8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8410 $as_echo "no" >&6; } 8411 fi 8412 8413 8414 test -n "$HEAD" && break 8415 done 8416 8417 else 8418 # If it succeeded, then it was overridden by the user. We will use it 8419 # for the tool. 8420 8421 # First remove it from the list of overridden variables, so we can test 8422 # for unknown variables in the end. 8423 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8424 8425 # Check if we try to supply an empty value 8426 if test "x$HEAD" = x; then 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8428 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8430 $as_echo_n "checking for HEAD... " >&6; } 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8432 $as_echo "disabled" >&6; } 8433 else 8434 # Check if the provided tool contains a complete path. 8435 tool_specified="$HEAD" 8436 tool_basename="${tool_specified##*/}" 8437 if test "x$tool_basename" = "x$tool_specified"; then 8438 # A command without a complete path is provided, search $PATH. 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8440 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8441 # Extract the first word of "$tool_basename", so it can be a program name with args. 8442 set dummy $tool_basename; ac_word=$2 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8444 $as_echo_n "checking for $ac_word... " >&6; } 8445 if ${ac_cv_path_HEAD+:} false; then : 8446 $as_echo_n "(cached) " >&6 8447 else 8448 case $HEAD in 8449 [\\/]* | ?:[\\/]*) 8450 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8451 ;; 8452 *) 8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8454 for as_dir in $PATH 8455 do 8456 IFS=$as_save_IFS 8457 test -z "$as_dir" && as_dir=. 8458 for ac_exec_ext in '' $ac_executable_extensions; do 8459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8460 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8462 break 2 8463 fi 8464 done 8465 done 8466 IFS=$as_save_IFS 8467 8468 ;; 8469 esac 8470 fi 8471 HEAD=$ac_cv_path_HEAD 8472 if test -n "$HEAD"; then 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8474 $as_echo "$HEAD" >&6; } 8475 else 8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8477 $as_echo "no" >&6; } 8478 fi 8479 8480 8481 if test "x$HEAD" = x; then 8482 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8483 fi 8484 else 8485 # Otherwise we believe it is a complete path. Use it as it is. 8486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8487 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8489 $as_echo_n "checking for HEAD... " >&6; } 8490 if test ! -x "$tool_specified"; then 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8492 $as_echo "not found" >&6; } 8493 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8494 fi 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8496 $as_echo "$tool_specified" >&6; } 8497 fi 8498 fi 8499 fi 8500 8501 fi 8502 8503 8504 8505 if test "x$HEAD" = x; then 8506 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8507 fi 8508 8509 8510 8511 8512 8513 # Publish this variable in the help. 8514 8515 8516 if [ -z "${GUNZIP+x}" ]; then 8517 # The variable is not set by user, try to locate tool using the code snippet 8518 for ac_prog in gunzip 8519 do 8520 # Extract the first word of "$ac_prog", so it can be a program name with args. 8521 set dummy $ac_prog; ac_word=$2 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8523 $as_echo_n "checking for $ac_word... " >&6; } 8524 if ${ac_cv_path_GUNZIP+:} false; then : 8525 $as_echo_n "(cached) " >&6 8526 else 8527 case $GUNZIP in 8528 [\\/]* | ?:[\\/]*) 8529 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8530 ;; 8531 *) 8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8533 for as_dir in $PATH 8534 do 8535 IFS=$as_save_IFS 8536 test -z "$as_dir" && as_dir=. 8537 for ac_exec_ext in '' $ac_executable_extensions; do 8538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8539 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8541 break 2 8542 fi 8543 done 8544 done 8545 IFS=$as_save_IFS 8546 8547 ;; 8548 esac 8549 fi 8550 GUNZIP=$ac_cv_path_GUNZIP 8551 if test -n "$GUNZIP"; then 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8553 $as_echo "$GUNZIP" >&6; } 8554 else 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8556 $as_echo "no" >&6; } 8557 fi 8558 8559 8560 test -n "$GUNZIP" && break 8561 done 8562 8563 else 8564 # The variable is set, but is it from the command line or the environment? 8565 8566 # Try to remove the string !GUNZIP! from our list. 8567 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8568 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8569 # If it failed, the variable was not from the command line. Ignore it, 8570 # but warn the user (except for BASH, which is always set by the calling BASH). 8571 if test "xGUNZIP" != xBASH; then 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8573 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8574 fi 8575 # Try to locate tool using the code snippet 8576 for ac_prog in gunzip 8577 do 8578 # Extract the first word of "$ac_prog", so it can be a program name with args. 8579 set dummy $ac_prog; ac_word=$2 8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8581 $as_echo_n "checking for $ac_word... " >&6; } 8582 if ${ac_cv_path_GUNZIP+:} false; then : 8583 $as_echo_n "(cached) " >&6 8584 else 8585 case $GUNZIP in 8586 [\\/]* | ?:[\\/]*) 8587 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8588 ;; 8589 *) 8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8591 for as_dir in $PATH 8592 do 8593 IFS=$as_save_IFS 8594 test -z "$as_dir" && as_dir=. 8595 for ac_exec_ext in '' $ac_executable_extensions; do 8596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8597 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8599 break 2 8600 fi 8601 done 8602 done 8603 IFS=$as_save_IFS 8604 8605 ;; 8606 esac 8607 fi 8608 GUNZIP=$ac_cv_path_GUNZIP 8609 if test -n "$GUNZIP"; then 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8611 $as_echo "$GUNZIP" >&6; } 8612 else 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8614 $as_echo "no" >&6; } 8615 fi 8616 8617 8618 test -n "$GUNZIP" && break 8619 done 8620 8621 else 8622 # If it succeeded, then it was overridden by the user. We will use it 8623 # for the tool. 8624 8625 # First remove it from the list of overridden variables, so we can test 8626 # for unknown variables in the end. 8627 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8628 8629 # Check if we try to supply an empty value 8630 if test "x$GUNZIP" = x; then 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8632 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8634 $as_echo_n "checking for GUNZIP... " >&6; } 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8636 $as_echo "disabled" >&6; } 8637 else 8638 # Check if the provided tool contains a complete path. 8639 tool_specified="$GUNZIP" 8640 tool_basename="${tool_specified##*/}" 8641 if test "x$tool_basename" = "x$tool_specified"; then 8642 # A command without a complete path is provided, search $PATH. 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8644 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8645 # Extract the first word of "$tool_basename", so it can be a program name with args. 8646 set dummy $tool_basename; ac_word=$2 8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8648 $as_echo_n "checking for $ac_word... " >&6; } 8649 if ${ac_cv_path_GUNZIP+:} false; then : 8650 $as_echo_n "(cached) " >&6 8651 else 8652 case $GUNZIP in 8653 [\\/]* | ?:[\\/]*) 8654 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8655 ;; 8656 *) 8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8658 for as_dir in $PATH 8659 do 8660 IFS=$as_save_IFS 8661 test -z "$as_dir" && as_dir=. 8662 for ac_exec_ext in '' $ac_executable_extensions; do 8663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8664 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8666 break 2 8667 fi 8668 done 8669 done 8670 IFS=$as_save_IFS 8671 8672 ;; 8673 esac 8674 fi 8675 GUNZIP=$ac_cv_path_GUNZIP 8676 if test -n "$GUNZIP"; then 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8678 $as_echo "$GUNZIP" >&6; } 8679 else 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8681 $as_echo "no" >&6; } 8682 fi 8683 8684 8685 if test "x$GUNZIP" = x; then 8686 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8687 fi 8688 else 8689 # Otherwise we believe it is a complete path. Use it as it is. 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8691 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8693 $as_echo_n "checking for GUNZIP... " >&6; } 8694 if test ! -x "$tool_specified"; then 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8696 $as_echo "not found" >&6; } 8697 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8698 fi 8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8700 $as_echo "$tool_specified" >&6; } 8701 fi 8702 fi 8703 fi 8704 8705 fi 8706 8707 8708 8709 if test "x$GUNZIP" = x; then 8710 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8711 fi 8712 8713 8714 8715 8716 8717 # Publish this variable in the help. 8718 8719 8720 if [ -z "${GZIP+x}" ]; then 8721 # The variable is not set by user, try to locate tool using the code snippet 8722 for ac_prog in pigz gzip 8723 do 8724 # Extract the first word of "$ac_prog", so it can be a program name with args. 8725 set dummy $ac_prog; ac_word=$2 8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8727 $as_echo_n "checking for $ac_word... " >&6; } 8728 if ${ac_cv_path_GZIP+:} false; then : 8729 $as_echo_n "(cached) " >&6 8730 else 8731 case $GZIP in 8732 [\\/]* | ?:[\\/]*) 8733 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8734 ;; 8735 *) 8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8737 for as_dir in $PATH 8738 do 8739 IFS=$as_save_IFS 8740 test -z "$as_dir" && as_dir=. 8741 for ac_exec_ext in '' $ac_executable_extensions; do 8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8743 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8745 break 2 8746 fi 8747 done 8748 done 8749 IFS=$as_save_IFS 8750 8751 ;; 8752 esac 8753 fi 8754 GZIP=$ac_cv_path_GZIP 8755 if test -n "$GZIP"; then 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8757 $as_echo "$GZIP" >&6; } 8758 else 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8760 $as_echo "no" >&6; } 8761 fi 8762 8763 8764 test -n "$GZIP" && break 8765 done 8766 8767 else 8768 # The variable is set, but is it from the command line or the environment? 8769 8770 # Try to remove the string !GZIP! from our list. 8771 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8772 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8773 # If it failed, the variable was not from the command line. Ignore it, 8774 # but warn the user (except for BASH, which is always set by the calling BASH). 8775 if test "xGZIP" != xBASH; then 8776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8777 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8778 fi 8779 # Try to locate tool using the code snippet 8780 for ac_prog in pigz gzip 8781 do 8782 # Extract the first word of "$ac_prog", so it can be a program name with args. 8783 set dummy $ac_prog; ac_word=$2 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8785 $as_echo_n "checking for $ac_word... " >&6; } 8786 if ${ac_cv_path_GZIP+:} false; then : 8787 $as_echo_n "(cached) " >&6 8788 else 8789 case $GZIP in 8790 [\\/]* | ?:[\\/]*) 8791 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8792 ;; 8793 *) 8794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8795 for as_dir in $PATH 8796 do 8797 IFS=$as_save_IFS 8798 test -z "$as_dir" && as_dir=. 8799 for ac_exec_ext in '' $ac_executable_extensions; do 8800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8801 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8803 break 2 8804 fi 8805 done 8806 done 8807 IFS=$as_save_IFS 8808 8809 ;; 8810 esac 8811 fi 8812 GZIP=$ac_cv_path_GZIP 8813 if test -n "$GZIP"; then 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8815 $as_echo "$GZIP" >&6; } 8816 else 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8818 $as_echo "no" >&6; } 8819 fi 8820 8821 8822 test -n "$GZIP" && break 8823 done 8824 8825 else 8826 # If it succeeded, then it was overridden by the user. We will use it 8827 # for the tool. 8828 8829 # First remove it from the list of overridden variables, so we can test 8830 # for unknown variables in the end. 8831 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8832 8833 # Check if we try to supply an empty value 8834 if test "x$GZIP" = x; then 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8836 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8838 $as_echo_n "checking for GZIP... " >&6; } 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8840 $as_echo "disabled" >&6; } 8841 else 8842 # Check if the provided tool contains a complete path. 8843 tool_specified="$GZIP" 8844 tool_basename="${tool_specified##*/}" 8845 if test "x$tool_basename" = "x$tool_specified"; then 8846 # A command without a complete path is provided, search $PATH. 8847 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8848 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8849 # Extract the first word of "$tool_basename", so it can be a program name with args. 8850 set dummy $tool_basename; ac_word=$2 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8852 $as_echo_n "checking for $ac_word... " >&6; } 8853 if ${ac_cv_path_GZIP+:} false; then : 8854 $as_echo_n "(cached) " >&6 8855 else 8856 case $GZIP in 8857 [\\/]* | ?:[\\/]*) 8858 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8859 ;; 8860 *) 8861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8862 for as_dir in $PATH 8863 do 8864 IFS=$as_save_IFS 8865 test -z "$as_dir" && as_dir=. 8866 for ac_exec_ext in '' $ac_executable_extensions; do 8867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8868 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8870 break 2 8871 fi 8872 done 8873 done 8874 IFS=$as_save_IFS 8875 8876 ;; 8877 esac 8878 fi 8879 GZIP=$ac_cv_path_GZIP 8880 if test -n "$GZIP"; then 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8882 $as_echo "$GZIP" >&6; } 8883 else 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8885 $as_echo "no" >&6; } 8886 fi 8887 8888 8889 if test "x$GZIP" = x; then 8890 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8891 fi 8892 else 8893 # Otherwise we believe it is a complete path. Use it as it is. 8894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8895 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8897 $as_echo_n "checking for GZIP... " >&6; } 8898 if test ! -x "$tool_specified"; then 8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8900 $as_echo "not found" >&6; } 8901 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8902 fi 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8904 $as_echo "$tool_specified" >&6; } 8905 fi 8906 fi 8907 fi 8908 8909 fi 8910 8911 8912 8913 if test "x$GZIP" = x; then 8914 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8915 fi 8916 8917 8918 8919 8920 8921 # Publish this variable in the help. 8922 8923 8924 if [ -z "${LN+x}" ]; then 8925 # The variable is not set by user, try to locate tool using the code snippet 8926 for ac_prog in ln 8927 do 8928 # Extract the first word of "$ac_prog", so it can be a program name with args. 8929 set dummy $ac_prog; ac_word=$2 8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8931 $as_echo_n "checking for $ac_word... " >&6; } 8932 if ${ac_cv_path_LN+:} false; then : 8933 $as_echo_n "(cached) " >&6 8934 else 8935 case $LN in 8936 [\\/]* | ?:[\\/]*) 8937 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8938 ;; 8939 *) 8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8941 for as_dir in $PATH 8942 do 8943 IFS=$as_save_IFS 8944 test -z "$as_dir" && as_dir=. 8945 for ac_exec_ext in '' $ac_executable_extensions; do 8946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8947 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8949 break 2 8950 fi 8951 done 8952 done 8953 IFS=$as_save_IFS 8954 8955 ;; 8956 esac 8957 fi 8958 LN=$ac_cv_path_LN 8959 if test -n "$LN"; then 8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8961 $as_echo "$LN" >&6; } 8962 else 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8964 $as_echo "no" >&6; } 8965 fi 8966 8967 8968 test -n "$LN" && break 8969 done 8970 8971 else 8972 # The variable is set, but is it from the command line or the environment? 8973 8974 # Try to remove the string !LN! from our list. 8975 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8976 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8977 # If it failed, the variable was not from the command line. Ignore it, 8978 # but warn the user (except for BASH, which is always set by the calling BASH). 8979 if test "xLN" != xBASH; then 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8981 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8982 fi 8983 # Try to locate tool using the code snippet 8984 for ac_prog in ln 8985 do 8986 # Extract the first word of "$ac_prog", so it can be a program name with args. 8987 set dummy $ac_prog; ac_word=$2 8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8989 $as_echo_n "checking for $ac_word... " >&6; } 8990 if ${ac_cv_path_LN+:} false; then : 8991 $as_echo_n "(cached) " >&6 8992 else 8993 case $LN in 8994 [\\/]* | ?:[\\/]*) 8995 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8996 ;; 8997 *) 8998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8999 for as_dir in $PATH 9000 do 9001 IFS=$as_save_IFS 9002 test -z "$as_dir" && as_dir=. 9003 for ac_exec_ext in '' $ac_executable_extensions; do 9004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9005 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9007 break 2 9008 fi 9009 done 9010 done 9011 IFS=$as_save_IFS 9012 9013 ;; 9014 esac 9015 fi 9016 LN=$ac_cv_path_LN 9017 if test -n "$LN"; then 9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9019 $as_echo "$LN" >&6; } 9020 else 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9022 $as_echo "no" >&6; } 9023 fi 9024 9025 9026 test -n "$LN" && break 9027 done 9028 9029 else 9030 # If it succeeded, then it was overridden by the user. We will use it 9031 # for the tool. 9032 9033 # First remove it from the list of overridden variables, so we can test 9034 # for unknown variables in the end. 9035 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9036 9037 # Check if we try to supply an empty value 9038 if test "x$LN" = x; then 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 9040 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9042 $as_echo_n "checking for LN... " >&6; } 9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9044 $as_echo "disabled" >&6; } 9045 else 9046 # Check if the provided tool contains a complete path. 9047 tool_specified="$LN" 9048 tool_basename="${tool_specified##*/}" 9049 if test "x$tool_basename" = "x$tool_specified"; then 9050 # A command without a complete path is provided, search $PATH. 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 9052 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 9053 # Extract the first word of "$tool_basename", so it can be a program name with args. 9054 set dummy $tool_basename; ac_word=$2 9055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9056 $as_echo_n "checking for $ac_word... " >&6; } 9057 if ${ac_cv_path_LN+:} false; then : 9058 $as_echo_n "(cached) " >&6 9059 else 9060 case $LN in 9061 [\\/]* | ?:[\\/]*) 9062 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9063 ;; 9064 *) 9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9066 for as_dir in $PATH 9067 do 9068 IFS=$as_save_IFS 9069 test -z "$as_dir" && as_dir=. 9070 for ac_exec_ext in '' $ac_executable_extensions; do 9071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9072 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9074 break 2 9075 fi 9076 done 9077 done 9078 IFS=$as_save_IFS 9079 9080 ;; 9081 esac 9082 fi 9083 LN=$ac_cv_path_LN 9084 if test -n "$LN"; then 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9086 $as_echo "$LN" >&6; } 9087 else 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9089 $as_echo "no" >&6; } 9090 fi 9091 9092 9093 if test "x$LN" = x; then 9094 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9095 fi 9096 else 9097 # Otherwise we believe it is a complete path. Use it as it is. 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9099 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9101 $as_echo_n "checking for LN... " >&6; } 9102 if test ! -x "$tool_specified"; then 9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9104 $as_echo "not found" >&6; } 9105 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9106 fi 9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9108 $as_echo "$tool_specified" >&6; } 9109 fi 9110 fi 9111 fi 9112 9113 fi 9114 9115 9116 9117 if test "x$LN" = x; then 9118 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9119 fi 9120 9121 9122 9123 9124 9125 # Publish this variable in the help. 9126 9127 9128 if [ -z "${LS+x}" ]; then 9129 # The variable is not set by user, try to locate tool using the code snippet 9130 for ac_prog in ls 9131 do 9132 # Extract the first word of "$ac_prog", so it can be a program name with args. 9133 set dummy $ac_prog; ac_word=$2 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9135 $as_echo_n "checking for $ac_word... " >&6; } 9136 if ${ac_cv_path_LS+:} false; then : 9137 $as_echo_n "(cached) " >&6 9138 else 9139 case $LS in 9140 [\\/]* | ?:[\\/]*) 9141 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9142 ;; 9143 *) 9144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9145 for as_dir in $PATH 9146 do 9147 IFS=$as_save_IFS 9148 test -z "$as_dir" && as_dir=. 9149 for ac_exec_ext in '' $ac_executable_extensions; do 9150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9151 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9153 break 2 9154 fi 9155 done 9156 done 9157 IFS=$as_save_IFS 9158 9159 ;; 9160 esac 9161 fi 9162 LS=$ac_cv_path_LS 9163 if test -n "$LS"; then 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9165 $as_echo "$LS" >&6; } 9166 else 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9168 $as_echo "no" >&6; } 9169 fi 9170 9171 9172 test -n "$LS" && break 9173 done 9174 9175 else 9176 # The variable is set, but is it from the command line or the environment? 9177 9178 # Try to remove the string !LS! from our list. 9179 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9180 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9181 # If it failed, the variable was not from the command line. Ignore it, 9182 # but warn the user (except for BASH, which is always set by the calling BASH). 9183 if test "xLS" != xBASH; then 9184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9185 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9186 fi 9187 # Try to locate tool using the code snippet 9188 for ac_prog in ls 9189 do 9190 # Extract the first word of "$ac_prog", so it can be a program name with args. 9191 set dummy $ac_prog; ac_word=$2 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9193 $as_echo_n "checking for $ac_word... " >&6; } 9194 if ${ac_cv_path_LS+:} false; then : 9195 $as_echo_n "(cached) " >&6 9196 else 9197 case $LS in 9198 [\\/]* | ?:[\\/]*) 9199 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9200 ;; 9201 *) 9202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9203 for as_dir in $PATH 9204 do 9205 IFS=$as_save_IFS 9206 test -z "$as_dir" && as_dir=. 9207 for ac_exec_ext in '' $ac_executable_extensions; do 9208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9209 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9211 break 2 9212 fi 9213 done 9214 done 9215 IFS=$as_save_IFS 9216 9217 ;; 9218 esac 9219 fi 9220 LS=$ac_cv_path_LS 9221 if test -n "$LS"; then 9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9223 $as_echo "$LS" >&6; } 9224 else 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9226 $as_echo "no" >&6; } 9227 fi 9228 9229 9230 test -n "$LS" && break 9231 done 9232 9233 else 9234 # If it succeeded, then it was overridden by the user. We will use it 9235 # for the tool. 9236 9237 # First remove it from the list of overridden variables, so we can test 9238 # for unknown variables in the end. 9239 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9240 9241 # Check if we try to supply an empty value 9242 if test "x$LS" = x; then 9243 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9244 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9246 $as_echo_n "checking for LS... " >&6; } 9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9248 $as_echo "disabled" >&6; } 9249 else 9250 # Check if the provided tool contains a complete path. 9251 tool_specified="$LS" 9252 tool_basename="${tool_specified##*/}" 9253 if test "x$tool_basename" = "x$tool_specified"; then 9254 # A command without a complete path is provided, search $PATH. 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9256 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9257 # Extract the first word of "$tool_basename", so it can be a program name with args. 9258 set dummy $tool_basename; ac_word=$2 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9260 $as_echo_n "checking for $ac_word... " >&6; } 9261 if ${ac_cv_path_LS+:} false; then : 9262 $as_echo_n "(cached) " >&6 9263 else 9264 case $LS in 9265 [\\/]* | ?:[\\/]*) 9266 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9267 ;; 9268 *) 9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9270 for as_dir in $PATH 9271 do 9272 IFS=$as_save_IFS 9273 test -z "$as_dir" && as_dir=. 9274 for ac_exec_ext in '' $ac_executable_extensions; do 9275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9276 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9278 break 2 9279 fi 9280 done 9281 done 9282 IFS=$as_save_IFS 9283 9284 ;; 9285 esac 9286 fi 9287 LS=$ac_cv_path_LS 9288 if test -n "$LS"; then 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9290 $as_echo "$LS" >&6; } 9291 else 9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9293 $as_echo "no" >&6; } 9294 fi 9295 9296 9297 if test "x$LS" = x; then 9298 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9299 fi 9300 else 9301 # Otherwise we believe it is a complete path. Use it as it is. 9302 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9303 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9305 $as_echo_n "checking for LS... " >&6; } 9306 if test ! -x "$tool_specified"; then 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9308 $as_echo "not found" >&6; } 9309 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9310 fi 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9312 $as_echo "$tool_specified" >&6; } 9313 fi 9314 fi 9315 fi 9316 9317 fi 9318 9319 9320 9321 if test "x$LS" = x; then 9322 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9323 fi 9324 9325 9326 9327 9328 9329 # Publish this variable in the help. 9330 9331 9332 if [ -z "${MKDIR+x}" ]; then 9333 # The variable is not set by user, try to locate tool using the code snippet 9334 for ac_prog in mkdir 9335 do 9336 # Extract the first word of "$ac_prog", so it can be a program name with args. 9337 set dummy $ac_prog; ac_word=$2 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9339 $as_echo_n "checking for $ac_word... " >&6; } 9340 if ${ac_cv_path_MKDIR+:} false; then : 9341 $as_echo_n "(cached) " >&6 9342 else 9343 case $MKDIR in 9344 [\\/]* | ?:[\\/]*) 9345 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9346 ;; 9347 *) 9348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9349 for as_dir in $PATH 9350 do 9351 IFS=$as_save_IFS 9352 test -z "$as_dir" && as_dir=. 9353 for ac_exec_ext in '' $ac_executable_extensions; do 9354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9355 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9357 break 2 9358 fi 9359 done 9360 done 9361 IFS=$as_save_IFS 9362 9363 ;; 9364 esac 9365 fi 9366 MKDIR=$ac_cv_path_MKDIR 9367 if test -n "$MKDIR"; then 9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9369 $as_echo "$MKDIR" >&6; } 9370 else 9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9372 $as_echo "no" >&6; } 9373 fi 9374 9375 9376 test -n "$MKDIR" && break 9377 done 9378 9379 else 9380 # The variable is set, but is it from the command line or the environment? 9381 9382 # Try to remove the string !MKDIR! from our list. 9383 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9384 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9385 # If it failed, the variable was not from the command line. Ignore it, 9386 # but warn the user (except for BASH, which is always set by the calling BASH). 9387 if test "xMKDIR" != xBASH; then 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9389 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9390 fi 9391 # Try to locate tool using the code snippet 9392 for ac_prog in mkdir 9393 do 9394 # Extract the first word of "$ac_prog", so it can be a program name with args. 9395 set dummy $ac_prog; ac_word=$2 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9397 $as_echo_n "checking for $ac_word... " >&6; } 9398 if ${ac_cv_path_MKDIR+:} false; then : 9399 $as_echo_n "(cached) " >&6 9400 else 9401 case $MKDIR in 9402 [\\/]* | ?:[\\/]*) 9403 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9404 ;; 9405 *) 9406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9407 for as_dir in $PATH 9408 do 9409 IFS=$as_save_IFS 9410 test -z "$as_dir" && as_dir=. 9411 for ac_exec_ext in '' $ac_executable_extensions; do 9412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9413 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9415 break 2 9416 fi 9417 done 9418 done 9419 IFS=$as_save_IFS 9420 9421 ;; 9422 esac 9423 fi 9424 MKDIR=$ac_cv_path_MKDIR 9425 if test -n "$MKDIR"; then 9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9427 $as_echo "$MKDIR" >&6; } 9428 else 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9430 $as_echo "no" >&6; } 9431 fi 9432 9433 9434 test -n "$MKDIR" && break 9435 done 9436 9437 else 9438 # If it succeeded, then it was overridden by the user. We will use it 9439 # for the tool. 9440 9441 # First remove it from the list of overridden variables, so we can test 9442 # for unknown variables in the end. 9443 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9444 9445 # Check if we try to supply an empty value 9446 if test "x$MKDIR" = x; then 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9448 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9450 $as_echo_n "checking for MKDIR... " >&6; } 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9452 $as_echo "disabled" >&6; } 9453 else 9454 # Check if the provided tool contains a complete path. 9455 tool_specified="$MKDIR" 9456 tool_basename="${tool_specified##*/}" 9457 if test "x$tool_basename" = "x$tool_specified"; then 9458 # A command without a complete path is provided, search $PATH. 9459 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9460 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9461 # Extract the first word of "$tool_basename", so it can be a program name with args. 9462 set dummy $tool_basename; ac_word=$2 9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9464 $as_echo_n "checking for $ac_word... " >&6; } 9465 if ${ac_cv_path_MKDIR+:} false; then : 9466 $as_echo_n "(cached) " >&6 9467 else 9468 case $MKDIR in 9469 [\\/]* | ?:[\\/]*) 9470 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9471 ;; 9472 *) 9473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9474 for as_dir in $PATH 9475 do 9476 IFS=$as_save_IFS 9477 test -z "$as_dir" && as_dir=. 9478 for ac_exec_ext in '' $ac_executable_extensions; do 9479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9480 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9482 break 2 9483 fi 9484 done 9485 done 9486 IFS=$as_save_IFS 9487 9488 ;; 9489 esac 9490 fi 9491 MKDIR=$ac_cv_path_MKDIR 9492 if test -n "$MKDIR"; then 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9494 $as_echo "$MKDIR" >&6; } 9495 else 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9497 $as_echo "no" >&6; } 9498 fi 9499 9500 9501 if test "x$MKDIR" = x; then 9502 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9503 fi 9504 else 9505 # Otherwise we believe it is a complete path. Use it as it is. 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9507 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9509 $as_echo_n "checking for MKDIR... " >&6; } 9510 if test ! -x "$tool_specified"; then 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9512 $as_echo "not found" >&6; } 9513 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9514 fi 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9516 $as_echo "$tool_specified" >&6; } 9517 fi 9518 fi 9519 fi 9520 9521 fi 9522 9523 9524 9525 if test "x$MKDIR" = x; then 9526 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9527 fi 9528 9529 9530 9531 9532 9533 # Publish this variable in the help. 9534 9535 9536 if [ -z "${MKTEMP+x}" ]; then 9537 # The variable is not set by user, try to locate tool using the code snippet 9538 for ac_prog in mktemp 9539 do 9540 # Extract the first word of "$ac_prog", so it can be a program name with args. 9541 set dummy $ac_prog; ac_word=$2 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9543 $as_echo_n "checking for $ac_word... " >&6; } 9544 if ${ac_cv_path_MKTEMP+:} false; then : 9545 $as_echo_n "(cached) " >&6 9546 else 9547 case $MKTEMP in 9548 [\\/]* | ?:[\\/]*) 9549 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9550 ;; 9551 *) 9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9553 for as_dir in $PATH 9554 do 9555 IFS=$as_save_IFS 9556 test -z "$as_dir" && as_dir=. 9557 for ac_exec_ext in '' $ac_executable_extensions; do 9558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9559 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9561 break 2 9562 fi 9563 done 9564 done 9565 IFS=$as_save_IFS 9566 9567 ;; 9568 esac 9569 fi 9570 MKTEMP=$ac_cv_path_MKTEMP 9571 if test -n "$MKTEMP"; then 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9573 $as_echo "$MKTEMP" >&6; } 9574 else 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9576 $as_echo "no" >&6; } 9577 fi 9578 9579 9580 test -n "$MKTEMP" && break 9581 done 9582 9583 else 9584 # The variable is set, but is it from the command line or the environment? 9585 9586 # Try to remove the string !MKTEMP! from our list. 9587 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9588 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9589 # If it failed, the variable was not from the command line. Ignore it, 9590 # but warn the user (except for BASH, which is always set by the calling BASH). 9591 if test "xMKTEMP" != xBASH; then 9592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9593 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9594 fi 9595 # Try to locate tool using the code snippet 9596 for ac_prog in mktemp 9597 do 9598 # Extract the first word of "$ac_prog", so it can be a program name with args. 9599 set dummy $ac_prog; ac_word=$2 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9601 $as_echo_n "checking for $ac_word... " >&6; } 9602 if ${ac_cv_path_MKTEMP+:} false; then : 9603 $as_echo_n "(cached) " >&6 9604 else 9605 case $MKTEMP in 9606 [\\/]* | ?:[\\/]*) 9607 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9608 ;; 9609 *) 9610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9611 for as_dir in $PATH 9612 do 9613 IFS=$as_save_IFS 9614 test -z "$as_dir" && as_dir=. 9615 for ac_exec_ext in '' $ac_executable_extensions; do 9616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9617 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9619 break 2 9620 fi 9621 done 9622 done 9623 IFS=$as_save_IFS 9624 9625 ;; 9626 esac 9627 fi 9628 MKTEMP=$ac_cv_path_MKTEMP 9629 if test -n "$MKTEMP"; then 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9631 $as_echo "$MKTEMP" >&6; } 9632 else 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9634 $as_echo "no" >&6; } 9635 fi 9636 9637 9638 test -n "$MKTEMP" && break 9639 done 9640 9641 else 9642 # If it succeeded, then it was overridden by the user. We will use it 9643 # for the tool. 9644 9645 # First remove it from the list of overridden variables, so we can test 9646 # for unknown variables in the end. 9647 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9648 9649 # Check if we try to supply an empty value 9650 if test "x$MKTEMP" = x; then 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9652 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9654 $as_echo_n "checking for MKTEMP... " >&6; } 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9656 $as_echo "disabled" >&6; } 9657 else 9658 # Check if the provided tool contains a complete path. 9659 tool_specified="$MKTEMP" 9660 tool_basename="${tool_specified##*/}" 9661 if test "x$tool_basename" = "x$tool_specified"; then 9662 # A command without a complete path is provided, search $PATH. 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9664 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9665 # Extract the first word of "$tool_basename", so it can be a program name with args. 9666 set dummy $tool_basename; ac_word=$2 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9668 $as_echo_n "checking for $ac_word... " >&6; } 9669 if ${ac_cv_path_MKTEMP+:} false; then : 9670 $as_echo_n "(cached) " >&6 9671 else 9672 case $MKTEMP in 9673 [\\/]* | ?:[\\/]*) 9674 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9675 ;; 9676 *) 9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9678 for as_dir in $PATH 9679 do 9680 IFS=$as_save_IFS 9681 test -z "$as_dir" && as_dir=. 9682 for ac_exec_ext in '' $ac_executable_extensions; do 9683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9684 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9686 break 2 9687 fi 9688 done 9689 done 9690 IFS=$as_save_IFS 9691 9692 ;; 9693 esac 9694 fi 9695 MKTEMP=$ac_cv_path_MKTEMP 9696 if test -n "$MKTEMP"; then 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9698 $as_echo "$MKTEMP" >&6; } 9699 else 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9701 $as_echo "no" >&6; } 9702 fi 9703 9704 9705 if test "x$MKTEMP" = x; then 9706 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9707 fi 9708 else 9709 # Otherwise we believe it is a complete path. Use it as it is. 9710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9711 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9713 $as_echo_n "checking for MKTEMP... " >&6; } 9714 if test ! -x "$tool_specified"; then 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9716 $as_echo "not found" >&6; } 9717 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9718 fi 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9720 $as_echo "$tool_specified" >&6; } 9721 fi 9722 fi 9723 fi 9724 9725 fi 9726 9727 9728 9729 if test "x$MKTEMP" = x; then 9730 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9731 fi 9732 9733 9734 9735 9736 9737 # Publish this variable in the help. 9738 9739 9740 if [ -z "${MV+x}" ]; then 9741 # The variable is not set by user, try to locate tool using the code snippet 9742 for ac_prog in mv 9743 do 9744 # Extract the first word of "$ac_prog", so it can be a program name with args. 9745 set dummy $ac_prog; ac_word=$2 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9747 $as_echo_n "checking for $ac_word... " >&6; } 9748 if ${ac_cv_path_MV+:} false; then : 9749 $as_echo_n "(cached) " >&6 9750 else 9751 case $MV in 9752 [\\/]* | ?:[\\/]*) 9753 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9754 ;; 9755 *) 9756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9757 for as_dir in $PATH 9758 do 9759 IFS=$as_save_IFS 9760 test -z "$as_dir" && as_dir=. 9761 for ac_exec_ext in '' $ac_executable_extensions; do 9762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9763 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9765 break 2 9766 fi 9767 done 9768 done 9769 IFS=$as_save_IFS 9770 9771 ;; 9772 esac 9773 fi 9774 MV=$ac_cv_path_MV 9775 if test -n "$MV"; then 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9777 $as_echo "$MV" >&6; } 9778 else 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9780 $as_echo "no" >&6; } 9781 fi 9782 9783 9784 test -n "$MV" && break 9785 done 9786 9787 else 9788 # The variable is set, but is it from the command line or the environment? 9789 9790 # Try to remove the string !MV! from our list. 9791 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9792 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9793 # If it failed, the variable was not from the command line. Ignore it, 9794 # but warn the user (except for BASH, which is always set by the calling BASH). 9795 if test "xMV" != xBASH; then 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9797 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9798 fi 9799 # Try to locate tool using the code snippet 9800 for ac_prog in mv 9801 do 9802 # Extract the first word of "$ac_prog", so it can be a program name with args. 9803 set dummy $ac_prog; ac_word=$2 9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9805 $as_echo_n "checking for $ac_word... " >&6; } 9806 if ${ac_cv_path_MV+:} false; then : 9807 $as_echo_n "(cached) " >&6 9808 else 9809 case $MV in 9810 [\\/]* | ?:[\\/]*) 9811 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9812 ;; 9813 *) 9814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9815 for as_dir in $PATH 9816 do 9817 IFS=$as_save_IFS 9818 test -z "$as_dir" && as_dir=. 9819 for ac_exec_ext in '' $ac_executable_extensions; do 9820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9821 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9823 break 2 9824 fi 9825 done 9826 done 9827 IFS=$as_save_IFS 9828 9829 ;; 9830 esac 9831 fi 9832 MV=$ac_cv_path_MV 9833 if test -n "$MV"; then 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9835 $as_echo "$MV" >&6; } 9836 else 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9838 $as_echo "no" >&6; } 9839 fi 9840 9841 9842 test -n "$MV" && break 9843 done 9844 9845 else 9846 # If it succeeded, then it was overridden by the user. We will use it 9847 # for the tool. 9848 9849 # First remove it from the list of overridden variables, so we can test 9850 # for unknown variables in the end. 9851 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9852 9853 # Check if we try to supply an empty value 9854 if test "x$MV" = x; then 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9856 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9858 $as_echo_n "checking for MV... " >&6; } 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9860 $as_echo "disabled" >&6; } 9861 else 9862 # Check if the provided tool contains a complete path. 9863 tool_specified="$MV" 9864 tool_basename="${tool_specified##*/}" 9865 if test "x$tool_basename" = "x$tool_specified"; then 9866 # A command without a complete path is provided, search $PATH. 9867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9868 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9869 # Extract the first word of "$tool_basename", so it can be a program name with args. 9870 set dummy $tool_basename; ac_word=$2 9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9872 $as_echo_n "checking for $ac_word... " >&6; } 9873 if ${ac_cv_path_MV+:} false; then : 9874 $as_echo_n "(cached) " >&6 9875 else 9876 case $MV in 9877 [\\/]* | ?:[\\/]*) 9878 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9879 ;; 9880 *) 9881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9882 for as_dir in $PATH 9883 do 9884 IFS=$as_save_IFS 9885 test -z "$as_dir" && as_dir=. 9886 for ac_exec_ext in '' $ac_executable_extensions; do 9887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9888 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9890 break 2 9891 fi 9892 done 9893 done 9894 IFS=$as_save_IFS 9895 9896 ;; 9897 esac 9898 fi 9899 MV=$ac_cv_path_MV 9900 if test -n "$MV"; then 9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9902 $as_echo "$MV" >&6; } 9903 else 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9905 $as_echo "no" >&6; } 9906 fi 9907 9908 9909 if test "x$MV" = x; then 9910 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9911 fi 9912 else 9913 # Otherwise we believe it is a complete path. Use it as it is. 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9915 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9917 $as_echo_n "checking for MV... " >&6; } 9918 if test ! -x "$tool_specified"; then 9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9920 $as_echo "not found" >&6; } 9921 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9922 fi 9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9924 $as_echo "$tool_specified" >&6; } 9925 fi 9926 fi 9927 fi 9928 9929 fi 9930 9931 9932 9933 if test "x$MV" = x; then 9934 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9935 fi 9936 9937 9938 9939 9940 9941 # Publish this variable in the help. 9942 9943 9944 if [ -z "${NAWK+x}" ]; then 9945 # The variable is not set by user, try to locate tool using the code snippet 9946 for ac_prog in nawk gawk awk 9947 do 9948 # Extract the first word of "$ac_prog", so it can be a program name with args. 9949 set dummy $ac_prog; ac_word=$2 9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9951 $as_echo_n "checking for $ac_word... " >&6; } 9952 if ${ac_cv_path_NAWK+:} false; then : 9953 $as_echo_n "(cached) " >&6 9954 else 9955 case $NAWK in 9956 [\\/]* | ?:[\\/]*) 9957 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9958 ;; 9959 *) 9960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9961 for as_dir in $PATH 9962 do 9963 IFS=$as_save_IFS 9964 test -z "$as_dir" && as_dir=. 9965 for ac_exec_ext in '' $ac_executable_extensions; do 9966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9967 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9969 break 2 9970 fi 9971 done 9972 done 9973 IFS=$as_save_IFS 9974 9975 ;; 9976 esac 9977 fi 9978 NAWK=$ac_cv_path_NAWK 9979 if test -n "$NAWK"; then 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9981 $as_echo "$NAWK" >&6; } 9982 else 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9984 $as_echo "no" >&6; } 9985 fi 9986 9987 9988 test -n "$NAWK" && break 9989 done 9990 9991 else 9992 # The variable is set, but is it from the command line or the environment? 9993 9994 # Try to remove the string !NAWK! from our list. 9995 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9996 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9997 # If it failed, the variable was not from the command line. Ignore it, 9998 # but warn the user (except for BASH, which is always set by the calling BASH). 9999 if test "xNAWK" != xBASH; then 10000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 10001 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 10002 fi 10003 # Try to locate tool using the code snippet 10004 for ac_prog in nawk gawk awk 10005 do 10006 # Extract the first word of "$ac_prog", so it can be a program name with args. 10007 set dummy $ac_prog; ac_word=$2 10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10009 $as_echo_n "checking for $ac_word... " >&6; } 10010 if ${ac_cv_path_NAWK+:} false; then : 10011 $as_echo_n "(cached) " >&6 10012 else 10013 case $NAWK in 10014 [\\/]* | ?:[\\/]*) 10015 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10016 ;; 10017 *) 10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10019 for as_dir in $PATH 10020 do 10021 IFS=$as_save_IFS 10022 test -z "$as_dir" && as_dir=. 10023 for ac_exec_ext in '' $ac_executable_extensions; do 10024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10025 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10027 break 2 10028 fi 10029 done 10030 done 10031 IFS=$as_save_IFS 10032 10033 ;; 10034 esac 10035 fi 10036 NAWK=$ac_cv_path_NAWK 10037 if test -n "$NAWK"; then 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10039 $as_echo "$NAWK" >&6; } 10040 else 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10042 $as_echo "no" >&6; } 10043 fi 10044 10045 10046 test -n "$NAWK" && break 10047 done 10048 10049 else 10050 # If it succeeded, then it was overridden by the user. We will use it 10051 # for the tool. 10052 10053 # First remove it from the list of overridden variables, so we can test 10054 # for unknown variables in the end. 10055 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10056 10057 # Check if we try to supply an empty value 10058 if test "x$NAWK" = x; then 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 10060 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10062 $as_echo_n "checking for NAWK... " >&6; } 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10064 $as_echo "disabled" >&6; } 10065 else 10066 # Check if the provided tool contains a complete path. 10067 tool_specified="$NAWK" 10068 tool_basename="${tool_specified##*/}" 10069 if test "x$tool_basename" = "x$tool_specified"; then 10070 # A command without a complete path is provided, search $PATH. 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 10072 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 10073 # Extract the first word of "$tool_basename", so it can be a program name with args. 10074 set dummy $tool_basename; ac_word=$2 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10076 $as_echo_n "checking for $ac_word... " >&6; } 10077 if ${ac_cv_path_NAWK+:} false; then : 10078 $as_echo_n "(cached) " >&6 10079 else 10080 case $NAWK in 10081 [\\/]* | ?:[\\/]*) 10082 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10083 ;; 10084 *) 10085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10086 for as_dir in $PATH 10087 do 10088 IFS=$as_save_IFS 10089 test -z "$as_dir" && as_dir=. 10090 for ac_exec_ext in '' $ac_executable_extensions; do 10091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10092 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10094 break 2 10095 fi 10096 done 10097 done 10098 IFS=$as_save_IFS 10099 10100 ;; 10101 esac 10102 fi 10103 NAWK=$ac_cv_path_NAWK 10104 if test -n "$NAWK"; then 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10106 $as_echo "$NAWK" >&6; } 10107 else 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10109 $as_echo "no" >&6; } 10110 fi 10111 10112 10113 if test "x$NAWK" = x; then 10114 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10115 fi 10116 else 10117 # Otherwise we believe it is a complete path. Use it as it is. 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10119 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10121 $as_echo_n "checking for NAWK... " >&6; } 10122 if test ! -x "$tool_specified"; then 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10124 $as_echo "not found" >&6; } 10125 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10126 fi 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10128 $as_echo "$tool_specified" >&6; } 10129 fi 10130 fi 10131 fi 10132 10133 fi 10134 10135 10136 10137 if test "x$NAWK" = x; then 10138 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10139 fi 10140 10141 10142 10143 10144 10145 # Publish this variable in the help. 10146 10147 10148 if [ -z "${PRINTF+x}" ]; then 10149 # The variable is not set by user, try to locate tool using the code snippet 10150 for ac_prog in printf 10151 do 10152 # Extract the first word of "$ac_prog", so it can be a program name with args. 10153 set dummy $ac_prog; ac_word=$2 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10155 $as_echo_n "checking for $ac_word... " >&6; } 10156 if ${ac_cv_path_PRINTF+:} false; then : 10157 $as_echo_n "(cached) " >&6 10158 else 10159 case $PRINTF in 10160 [\\/]* | ?:[\\/]*) 10161 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10162 ;; 10163 *) 10164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10165 for as_dir in $PATH 10166 do 10167 IFS=$as_save_IFS 10168 test -z "$as_dir" && as_dir=. 10169 for ac_exec_ext in '' $ac_executable_extensions; do 10170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10171 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10173 break 2 10174 fi 10175 done 10176 done 10177 IFS=$as_save_IFS 10178 10179 ;; 10180 esac 10181 fi 10182 PRINTF=$ac_cv_path_PRINTF 10183 if test -n "$PRINTF"; then 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10185 $as_echo "$PRINTF" >&6; } 10186 else 10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10188 $as_echo "no" >&6; } 10189 fi 10190 10191 10192 test -n "$PRINTF" && break 10193 done 10194 10195 else 10196 # The variable is set, but is it from the command line or the environment? 10197 10198 # Try to remove the string !PRINTF! from our list. 10199 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10200 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10201 # If it failed, the variable was not from the command line. Ignore it, 10202 # but warn the user (except for BASH, which is always set by the calling BASH). 10203 if test "xPRINTF" != xBASH; then 10204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10205 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10206 fi 10207 # Try to locate tool using the code snippet 10208 for ac_prog in printf 10209 do 10210 # Extract the first word of "$ac_prog", so it can be a program name with args. 10211 set dummy $ac_prog; ac_word=$2 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10213 $as_echo_n "checking for $ac_word... " >&6; } 10214 if ${ac_cv_path_PRINTF+:} false; then : 10215 $as_echo_n "(cached) " >&6 10216 else 10217 case $PRINTF in 10218 [\\/]* | ?:[\\/]*) 10219 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10220 ;; 10221 *) 10222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10223 for as_dir in $PATH 10224 do 10225 IFS=$as_save_IFS 10226 test -z "$as_dir" && as_dir=. 10227 for ac_exec_ext in '' $ac_executable_extensions; do 10228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10229 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10231 break 2 10232 fi 10233 done 10234 done 10235 IFS=$as_save_IFS 10236 10237 ;; 10238 esac 10239 fi 10240 PRINTF=$ac_cv_path_PRINTF 10241 if test -n "$PRINTF"; then 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10243 $as_echo "$PRINTF" >&6; } 10244 else 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10246 $as_echo "no" >&6; } 10247 fi 10248 10249 10250 test -n "$PRINTF" && break 10251 done 10252 10253 else 10254 # If it succeeded, then it was overridden by the user. We will use it 10255 # for the tool. 10256 10257 # First remove it from the list of overridden variables, so we can test 10258 # for unknown variables in the end. 10259 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10260 10261 # Check if we try to supply an empty value 10262 if test "x$PRINTF" = x; then 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10264 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10266 $as_echo_n "checking for PRINTF... " >&6; } 10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10268 $as_echo "disabled" >&6; } 10269 else 10270 # Check if the provided tool contains a complete path. 10271 tool_specified="$PRINTF" 10272 tool_basename="${tool_specified##*/}" 10273 if test "x$tool_basename" = "x$tool_specified"; then 10274 # A command without a complete path is provided, search $PATH. 10275 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10276 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10277 # Extract the first word of "$tool_basename", so it can be a program name with args. 10278 set dummy $tool_basename; ac_word=$2 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10280 $as_echo_n "checking for $ac_word... " >&6; } 10281 if ${ac_cv_path_PRINTF+:} false; then : 10282 $as_echo_n "(cached) " >&6 10283 else 10284 case $PRINTF in 10285 [\\/]* | ?:[\\/]*) 10286 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10287 ;; 10288 *) 10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10290 for as_dir in $PATH 10291 do 10292 IFS=$as_save_IFS 10293 test -z "$as_dir" && as_dir=. 10294 for ac_exec_ext in '' $ac_executable_extensions; do 10295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10296 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10298 break 2 10299 fi 10300 done 10301 done 10302 IFS=$as_save_IFS 10303 10304 ;; 10305 esac 10306 fi 10307 PRINTF=$ac_cv_path_PRINTF 10308 if test -n "$PRINTF"; then 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10310 $as_echo "$PRINTF" >&6; } 10311 else 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10313 $as_echo "no" >&6; } 10314 fi 10315 10316 10317 if test "x$PRINTF" = x; then 10318 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10319 fi 10320 else 10321 # Otherwise we believe it is a complete path. Use it as it is. 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10323 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10325 $as_echo_n "checking for PRINTF... " >&6; } 10326 if test ! -x "$tool_specified"; then 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10328 $as_echo "not found" >&6; } 10329 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10330 fi 10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10332 $as_echo "$tool_specified" >&6; } 10333 fi 10334 fi 10335 fi 10336 10337 fi 10338 10339 10340 10341 if test "x$PRINTF" = x; then 10342 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10343 fi 10344 10345 10346 10347 10348 10349 # Publish this variable in the help. 10350 10351 10352 if [ -z "${RM+x}" ]; then 10353 # The variable is not set by user, try to locate tool using the code snippet 10354 for ac_prog in rm 10355 do 10356 # Extract the first word of "$ac_prog", so it can be a program name with args. 10357 set dummy $ac_prog; ac_word=$2 10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10359 $as_echo_n "checking for $ac_word... " >&6; } 10360 if ${ac_cv_path_RM+:} false; then : 10361 $as_echo_n "(cached) " >&6 10362 else 10363 case $RM in 10364 [\\/]* | ?:[\\/]*) 10365 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10366 ;; 10367 *) 10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10369 for as_dir in $PATH 10370 do 10371 IFS=$as_save_IFS 10372 test -z "$as_dir" && as_dir=. 10373 for ac_exec_ext in '' $ac_executable_extensions; do 10374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10375 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10377 break 2 10378 fi 10379 done 10380 done 10381 IFS=$as_save_IFS 10382 10383 ;; 10384 esac 10385 fi 10386 RM=$ac_cv_path_RM 10387 if test -n "$RM"; then 10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10389 $as_echo "$RM" >&6; } 10390 else 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10392 $as_echo "no" >&6; } 10393 fi 10394 10395 10396 test -n "$RM" && break 10397 done 10398 10399 else 10400 # The variable is set, but is it from the command line or the environment? 10401 10402 # Try to remove the string !RM! from our list. 10403 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10404 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10405 # If it failed, the variable was not from the command line. Ignore it, 10406 # but warn the user (except for BASH, which is always set by the calling BASH). 10407 if test "xRM" != xBASH; then 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10409 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10410 fi 10411 # Try to locate tool using the code snippet 10412 for ac_prog in rm 10413 do 10414 # Extract the first word of "$ac_prog", so it can be a program name with args. 10415 set dummy $ac_prog; ac_word=$2 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10417 $as_echo_n "checking for $ac_word... " >&6; } 10418 if ${ac_cv_path_RM+:} false; then : 10419 $as_echo_n "(cached) " >&6 10420 else 10421 case $RM in 10422 [\\/]* | ?:[\\/]*) 10423 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10424 ;; 10425 *) 10426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10427 for as_dir in $PATH 10428 do 10429 IFS=$as_save_IFS 10430 test -z "$as_dir" && as_dir=. 10431 for ac_exec_ext in '' $ac_executable_extensions; do 10432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10433 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10435 break 2 10436 fi 10437 done 10438 done 10439 IFS=$as_save_IFS 10440 10441 ;; 10442 esac 10443 fi 10444 RM=$ac_cv_path_RM 10445 if test -n "$RM"; then 10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10447 $as_echo "$RM" >&6; } 10448 else 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10450 $as_echo "no" >&6; } 10451 fi 10452 10453 10454 test -n "$RM" && break 10455 done 10456 10457 else 10458 # If it succeeded, then it was overridden by the user. We will use it 10459 # for the tool. 10460 10461 # First remove it from the list of overridden variables, so we can test 10462 # for unknown variables in the end. 10463 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10464 10465 # Check if we try to supply an empty value 10466 if test "x$RM" = x; then 10467 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10468 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10470 $as_echo_n "checking for RM... " >&6; } 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10472 $as_echo "disabled" >&6; } 10473 else 10474 # Check if the provided tool contains a complete path. 10475 tool_specified="$RM" 10476 tool_basename="${tool_specified##*/}" 10477 if test "x$tool_basename" = "x$tool_specified"; then 10478 # A command without a complete path is provided, search $PATH. 10479 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10480 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10481 # Extract the first word of "$tool_basename", so it can be a program name with args. 10482 set dummy $tool_basename; ac_word=$2 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10484 $as_echo_n "checking for $ac_word... " >&6; } 10485 if ${ac_cv_path_RM+:} false; then : 10486 $as_echo_n "(cached) " >&6 10487 else 10488 case $RM in 10489 [\\/]* | ?:[\\/]*) 10490 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10491 ;; 10492 *) 10493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10494 for as_dir in $PATH 10495 do 10496 IFS=$as_save_IFS 10497 test -z "$as_dir" && as_dir=. 10498 for ac_exec_ext in '' $ac_executable_extensions; do 10499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10500 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10502 break 2 10503 fi 10504 done 10505 done 10506 IFS=$as_save_IFS 10507 10508 ;; 10509 esac 10510 fi 10511 RM=$ac_cv_path_RM 10512 if test -n "$RM"; then 10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10514 $as_echo "$RM" >&6; } 10515 else 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10517 $as_echo "no" >&6; } 10518 fi 10519 10520 10521 if test "x$RM" = x; then 10522 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10523 fi 10524 else 10525 # Otherwise we believe it is a complete path. Use it as it is. 10526 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10527 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10529 $as_echo_n "checking for RM... " >&6; } 10530 if test ! -x "$tool_specified"; then 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10532 $as_echo "not found" >&6; } 10533 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10534 fi 10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10536 $as_echo "$tool_specified" >&6; } 10537 fi 10538 fi 10539 fi 10540 10541 fi 10542 10543 10544 10545 if test "x$RM" = x; then 10546 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10547 fi 10548 10549 10550 10551 10552 10553 # Publish this variable in the help. 10554 10555 10556 if [ -z "${RMDIR+x}" ]; then 10557 # The variable is not set by user, try to locate tool using the code snippet 10558 for ac_prog in rmdir 10559 do 10560 # Extract the first word of "$ac_prog", so it can be a program name with args. 10561 set dummy $ac_prog; ac_word=$2 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10563 $as_echo_n "checking for $ac_word... " >&6; } 10564 if ${ac_cv_path_RMDIR+:} false; then : 10565 $as_echo_n "(cached) " >&6 10566 else 10567 case $RMDIR in 10568 [\\/]* | ?:[\\/]*) 10569 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10570 ;; 10571 *) 10572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10573 for as_dir in $PATH 10574 do 10575 IFS=$as_save_IFS 10576 test -z "$as_dir" && as_dir=. 10577 for ac_exec_ext in '' $ac_executable_extensions; do 10578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10579 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10581 break 2 10582 fi 10583 done 10584 done 10585 IFS=$as_save_IFS 10586 10587 ;; 10588 esac 10589 fi 10590 RMDIR=$ac_cv_path_RMDIR 10591 if test -n "$RMDIR"; then 10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10593 $as_echo "$RMDIR" >&6; } 10594 else 10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10596 $as_echo "no" >&6; } 10597 fi 10598 10599 10600 test -n "$RMDIR" && break 10601 done 10602 10603 else 10604 # The variable is set, but is it from the command line or the environment? 10605 10606 # Try to remove the string !RMDIR! from our list. 10607 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10608 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10609 # If it failed, the variable was not from the command line. Ignore it, 10610 # but warn the user (except for BASH, which is always set by the calling BASH). 10611 if test "xRMDIR" != xBASH; then 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10613 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10614 fi 10615 # Try to locate tool using the code snippet 10616 for ac_prog in rmdir 10617 do 10618 # Extract the first word of "$ac_prog", so it can be a program name with args. 10619 set dummy $ac_prog; ac_word=$2 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10621 $as_echo_n "checking for $ac_word... " >&6; } 10622 if ${ac_cv_path_RMDIR+:} false; then : 10623 $as_echo_n "(cached) " >&6 10624 else 10625 case $RMDIR in 10626 [\\/]* | ?:[\\/]*) 10627 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10628 ;; 10629 *) 10630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10631 for as_dir in $PATH 10632 do 10633 IFS=$as_save_IFS 10634 test -z "$as_dir" && as_dir=. 10635 for ac_exec_ext in '' $ac_executable_extensions; do 10636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10637 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10639 break 2 10640 fi 10641 done 10642 done 10643 IFS=$as_save_IFS 10644 10645 ;; 10646 esac 10647 fi 10648 RMDIR=$ac_cv_path_RMDIR 10649 if test -n "$RMDIR"; then 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10651 $as_echo "$RMDIR" >&6; } 10652 else 10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10654 $as_echo "no" >&6; } 10655 fi 10656 10657 10658 test -n "$RMDIR" && break 10659 done 10660 10661 else 10662 # If it succeeded, then it was overridden by the user. We will use it 10663 # for the tool. 10664 10665 # First remove it from the list of overridden variables, so we can test 10666 # for unknown variables in the end. 10667 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10668 10669 # Check if we try to supply an empty value 10670 if test "x$RMDIR" = x; then 10671 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10672 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10674 $as_echo_n "checking for RMDIR... " >&6; } 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10676 $as_echo "disabled" >&6; } 10677 else 10678 # Check if the provided tool contains a complete path. 10679 tool_specified="$RMDIR" 10680 tool_basename="${tool_specified##*/}" 10681 if test "x$tool_basename" = "x$tool_specified"; then 10682 # A command without a complete path is provided, search $PATH. 10683 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10684 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10685 # Extract the first word of "$tool_basename", so it can be a program name with args. 10686 set dummy $tool_basename; ac_word=$2 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10688 $as_echo_n "checking for $ac_word... " >&6; } 10689 if ${ac_cv_path_RMDIR+:} false; then : 10690 $as_echo_n "(cached) " >&6 10691 else 10692 case $RMDIR in 10693 [\\/]* | ?:[\\/]*) 10694 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10695 ;; 10696 *) 10697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10698 for as_dir in $PATH 10699 do 10700 IFS=$as_save_IFS 10701 test -z "$as_dir" && as_dir=. 10702 for ac_exec_ext in '' $ac_executable_extensions; do 10703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10704 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10706 break 2 10707 fi 10708 done 10709 done 10710 IFS=$as_save_IFS 10711 10712 ;; 10713 esac 10714 fi 10715 RMDIR=$ac_cv_path_RMDIR 10716 if test -n "$RMDIR"; then 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10718 $as_echo "$RMDIR" >&6; } 10719 else 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10721 $as_echo "no" >&6; } 10722 fi 10723 10724 10725 if test "x$RMDIR" = x; then 10726 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10727 fi 10728 else 10729 # Otherwise we believe it is a complete path. Use it as it is. 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10731 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10733 $as_echo_n "checking for RMDIR... " >&6; } 10734 if test ! -x "$tool_specified"; then 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10736 $as_echo "not found" >&6; } 10737 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10738 fi 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10740 $as_echo "$tool_specified" >&6; } 10741 fi 10742 fi 10743 fi 10744 10745 fi 10746 10747 10748 10749 if test "x$RMDIR" = x; then 10750 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10751 fi 10752 10753 10754 10755 10756 10757 # Publish this variable in the help. 10758 10759 10760 if [ -z "${SH+x}" ]; then 10761 # The variable is not set by user, try to locate tool using the code snippet 10762 for ac_prog in sh 10763 do 10764 # Extract the first word of "$ac_prog", so it can be a program name with args. 10765 set dummy $ac_prog; ac_word=$2 10766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10767 $as_echo_n "checking for $ac_word... " >&6; } 10768 if ${ac_cv_path_SH+:} false; then : 10769 $as_echo_n "(cached) " >&6 10770 else 10771 case $SH in 10772 [\\/]* | ?:[\\/]*) 10773 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10774 ;; 10775 *) 10776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10777 for as_dir in $PATH 10778 do 10779 IFS=$as_save_IFS 10780 test -z "$as_dir" && as_dir=. 10781 for ac_exec_ext in '' $ac_executable_extensions; do 10782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10783 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10785 break 2 10786 fi 10787 done 10788 done 10789 IFS=$as_save_IFS 10790 10791 ;; 10792 esac 10793 fi 10794 SH=$ac_cv_path_SH 10795 if test -n "$SH"; then 10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10797 $as_echo "$SH" >&6; } 10798 else 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10800 $as_echo "no" >&6; } 10801 fi 10802 10803 10804 test -n "$SH" && break 10805 done 10806 10807 else 10808 # The variable is set, but is it from the command line or the environment? 10809 10810 # Try to remove the string !SH! from our list. 10811 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10812 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10813 # If it failed, the variable was not from the command line. Ignore it, 10814 # but warn the user (except for BASH, which is always set by the calling BASH). 10815 if test "xSH" != xBASH; then 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10817 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10818 fi 10819 # Try to locate tool using the code snippet 10820 for ac_prog in sh 10821 do 10822 # Extract the first word of "$ac_prog", so it can be a program name with args. 10823 set dummy $ac_prog; ac_word=$2 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10825 $as_echo_n "checking for $ac_word... " >&6; } 10826 if ${ac_cv_path_SH+:} false; then : 10827 $as_echo_n "(cached) " >&6 10828 else 10829 case $SH in 10830 [\\/]* | ?:[\\/]*) 10831 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10832 ;; 10833 *) 10834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10835 for as_dir in $PATH 10836 do 10837 IFS=$as_save_IFS 10838 test -z "$as_dir" && as_dir=. 10839 for ac_exec_ext in '' $ac_executable_extensions; do 10840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10841 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10843 break 2 10844 fi 10845 done 10846 done 10847 IFS=$as_save_IFS 10848 10849 ;; 10850 esac 10851 fi 10852 SH=$ac_cv_path_SH 10853 if test -n "$SH"; then 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10855 $as_echo "$SH" >&6; } 10856 else 10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10858 $as_echo "no" >&6; } 10859 fi 10860 10861 10862 test -n "$SH" && break 10863 done 10864 10865 else 10866 # If it succeeded, then it was overridden by the user. We will use it 10867 # for the tool. 10868 10869 # First remove it from the list of overridden variables, so we can test 10870 # for unknown variables in the end. 10871 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10872 10873 # Check if we try to supply an empty value 10874 if test "x$SH" = x; then 10875 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10876 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10878 $as_echo_n "checking for SH... " >&6; } 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10880 $as_echo "disabled" >&6; } 10881 else 10882 # Check if the provided tool contains a complete path. 10883 tool_specified="$SH" 10884 tool_basename="${tool_specified##*/}" 10885 if test "x$tool_basename" = "x$tool_specified"; then 10886 # A command without a complete path is provided, search $PATH. 10887 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10888 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10889 # Extract the first word of "$tool_basename", so it can be a program name with args. 10890 set dummy $tool_basename; ac_word=$2 10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10892 $as_echo_n "checking for $ac_word... " >&6; } 10893 if ${ac_cv_path_SH+:} false; then : 10894 $as_echo_n "(cached) " >&6 10895 else 10896 case $SH in 10897 [\\/]* | ?:[\\/]*) 10898 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10899 ;; 10900 *) 10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10902 for as_dir in $PATH 10903 do 10904 IFS=$as_save_IFS 10905 test -z "$as_dir" && as_dir=. 10906 for ac_exec_ext in '' $ac_executable_extensions; do 10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10908 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10910 break 2 10911 fi 10912 done 10913 done 10914 IFS=$as_save_IFS 10915 10916 ;; 10917 esac 10918 fi 10919 SH=$ac_cv_path_SH 10920 if test -n "$SH"; then 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10922 $as_echo "$SH" >&6; } 10923 else 10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10925 $as_echo "no" >&6; } 10926 fi 10927 10928 10929 if test "x$SH" = x; then 10930 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10931 fi 10932 else 10933 # Otherwise we believe it is a complete path. Use it as it is. 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10935 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10937 $as_echo_n "checking for SH... " >&6; } 10938 if test ! -x "$tool_specified"; then 10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10940 $as_echo "not found" >&6; } 10941 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10942 fi 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10944 $as_echo "$tool_specified" >&6; } 10945 fi 10946 fi 10947 fi 10948 10949 fi 10950 10951 10952 10953 if test "x$SH" = x; then 10954 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10955 fi 10956 10957 10958 10959 10960 10961 # Publish this variable in the help. 10962 10963 10964 if [ -z "${SORT+x}" ]; then 10965 # The variable is not set by user, try to locate tool using the code snippet 10966 for ac_prog in sort 10967 do 10968 # Extract the first word of "$ac_prog", so it can be a program name with args. 10969 set dummy $ac_prog; ac_word=$2 10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10971 $as_echo_n "checking for $ac_word... " >&6; } 10972 if ${ac_cv_path_SORT+:} false; then : 10973 $as_echo_n "(cached) " >&6 10974 else 10975 case $SORT in 10976 [\\/]* | ?:[\\/]*) 10977 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10978 ;; 10979 *) 10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10981 for as_dir in $PATH 10982 do 10983 IFS=$as_save_IFS 10984 test -z "$as_dir" && as_dir=. 10985 for ac_exec_ext in '' $ac_executable_extensions; do 10986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10987 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10989 break 2 10990 fi 10991 done 10992 done 10993 IFS=$as_save_IFS 10994 10995 ;; 10996 esac 10997 fi 10998 SORT=$ac_cv_path_SORT 10999 if test -n "$SORT"; then 11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11001 $as_echo "$SORT" >&6; } 11002 else 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11004 $as_echo "no" >&6; } 11005 fi 11006 11007 11008 test -n "$SORT" && break 11009 done 11010 11011 else 11012 # The variable is set, but is it from the command line or the environment? 11013 11014 # Try to remove the string !SORT! from our list. 11015 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 11016 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11017 # If it failed, the variable was not from the command line. Ignore it, 11018 # but warn the user (except for BASH, which is always set by the calling BASH). 11019 if test "xSORT" != xBASH; then 11020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 11021 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 11022 fi 11023 # Try to locate tool using the code snippet 11024 for ac_prog in sort 11025 do 11026 # Extract the first word of "$ac_prog", so it can be a program name with args. 11027 set dummy $ac_prog; ac_word=$2 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11029 $as_echo_n "checking for $ac_word... " >&6; } 11030 if ${ac_cv_path_SORT+:} false; then : 11031 $as_echo_n "(cached) " >&6 11032 else 11033 case $SORT in 11034 [\\/]* | ?:[\\/]*) 11035 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11036 ;; 11037 *) 11038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11039 for as_dir in $PATH 11040 do 11041 IFS=$as_save_IFS 11042 test -z "$as_dir" && as_dir=. 11043 for ac_exec_ext in '' $ac_executable_extensions; do 11044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11045 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11047 break 2 11048 fi 11049 done 11050 done 11051 IFS=$as_save_IFS 11052 11053 ;; 11054 esac 11055 fi 11056 SORT=$ac_cv_path_SORT 11057 if test -n "$SORT"; then 11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11059 $as_echo "$SORT" >&6; } 11060 else 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11062 $as_echo "no" >&6; } 11063 fi 11064 11065 11066 test -n "$SORT" && break 11067 done 11068 11069 else 11070 # If it succeeded, then it was overridden by the user. We will use it 11071 # for the tool. 11072 11073 # First remove it from the list of overridden variables, so we can test 11074 # for unknown variables in the end. 11075 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11076 11077 # Check if we try to supply an empty value 11078 if test "x$SORT" = x; then 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11080 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11082 $as_echo_n "checking for SORT... " >&6; } 11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11084 $as_echo "disabled" >&6; } 11085 else 11086 # Check if the provided tool contains a complete path. 11087 tool_specified="$SORT" 11088 tool_basename="${tool_specified##*/}" 11089 if test "x$tool_basename" = "x$tool_specified"; then 11090 # A command without a complete path is provided, search $PATH. 11091 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11092 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11093 # Extract the first word of "$tool_basename", so it can be a program name with args. 11094 set dummy $tool_basename; ac_word=$2 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11096 $as_echo_n "checking for $ac_word... " >&6; } 11097 if ${ac_cv_path_SORT+:} false; then : 11098 $as_echo_n "(cached) " >&6 11099 else 11100 case $SORT in 11101 [\\/]* | ?:[\\/]*) 11102 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11103 ;; 11104 *) 11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11106 for as_dir in $PATH 11107 do 11108 IFS=$as_save_IFS 11109 test -z "$as_dir" && as_dir=. 11110 for ac_exec_ext in '' $ac_executable_extensions; do 11111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11112 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11114 break 2 11115 fi 11116 done 11117 done 11118 IFS=$as_save_IFS 11119 11120 ;; 11121 esac 11122 fi 11123 SORT=$ac_cv_path_SORT 11124 if test -n "$SORT"; then 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11126 $as_echo "$SORT" >&6; } 11127 else 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11129 $as_echo "no" >&6; } 11130 fi 11131 11132 11133 if test "x$SORT" = x; then 11134 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11135 fi 11136 else 11137 # Otherwise we believe it is a complete path. Use it as it is. 11138 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11139 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11141 $as_echo_n "checking for SORT... " >&6; } 11142 if test ! -x "$tool_specified"; then 11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11144 $as_echo "not found" >&6; } 11145 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11146 fi 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11148 $as_echo "$tool_specified" >&6; } 11149 fi 11150 fi 11151 fi 11152 11153 fi 11154 11155 11156 11157 if test "x$SORT" = x; then 11158 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11159 fi 11160 11161 11162 11163 11164 11165 # Publish this variable in the help. 11166 11167 11168 if [ -z "${TAIL+x}" ]; then 11169 # The variable is not set by user, try to locate tool using the code snippet 11170 for ac_prog in tail 11171 do 11172 # Extract the first word of "$ac_prog", so it can be a program name with args. 11173 set dummy $ac_prog; ac_word=$2 11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11175 $as_echo_n "checking for $ac_word... " >&6; } 11176 if ${ac_cv_path_TAIL+:} false; then : 11177 $as_echo_n "(cached) " >&6 11178 else 11179 case $TAIL in 11180 [\\/]* | ?:[\\/]*) 11181 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11182 ;; 11183 *) 11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11185 for as_dir in $PATH 11186 do 11187 IFS=$as_save_IFS 11188 test -z "$as_dir" && as_dir=. 11189 for ac_exec_ext in '' $ac_executable_extensions; do 11190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11191 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11193 break 2 11194 fi 11195 done 11196 done 11197 IFS=$as_save_IFS 11198 11199 ;; 11200 esac 11201 fi 11202 TAIL=$ac_cv_path_TAIL 11203 if test -n "$TAIL"; then 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11205 $as_echo "$TAIL" >&6; } 11206 else 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11208 $as_echo "no" >&6; } 11209 fi 11210 11211 11212 test -n "$TAIL" && break 11213 done 11214 11215 else 11216 # The variable is set, but is it from the command line or the environment? 11217 11218 # Try to remove the string !TAIL! from our list. 11219 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11220 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11221 # If it failed, the variable was not from the command line. Ignore it, 11222 # but warn the user (except for BASH, which is always set by the calling BASH). 11223 if test "xTAIL" != xBASH; then 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11225 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11226 fi 11227 # Try to locate tool using the code snippet 11228 for ac_prog in tail 11229 do 11230 # Extract the first word of "$ac_prog", so it can be a program name with args. 11231 set dummy $ac_prog; ac_word=$2 11232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11233 $as_echo_n "checking for $ac_word... " >&6; } 11234 if ${ac_cv_path_TAIL+:} false; then : 11235 $as_echo_n "(cached) " >&6 11236 else 11237 case $TAIL in 11238 [\\/]* | ?:[\\/]*) 11239 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11240 ;; 11241 *) 11242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11243 for as_dir in $PATH 11244 do 11245 IFS=$as_save_IFS 11246 test -z "$as_dir" && as_dir=. 11247 for ac_exec_ext in '' $ac_executable_extensions; do 11248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11249 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11251 break 2 11252 fi 11253 done 11254 done 11255 IFS=$as_save_IFS 11256 11257 ;; 11258 esac 11259 fi 11260 TAIL=$ac_cv_path_TAIL 11261 if test -n "$TAIL"; then 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11263 $as_echo "$TAIL" >&6; } 11264 else 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11266 $as_echo "no" >&6; } 11267 fi 11268 11269 11270 test -n "$TAIL" && break 11271 done 11272 11273 else 11274 # If it succeeded, then it was overridden by the user. We will use it 11275 # for the tool. 11276 11277 # First remove it from the list of overridden variables, so we can test 11278 # for unknown variables in the end. 11279 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11280 11281 # Check if we try to supply an empty value 11282 if test "x$TAIL" = x; then 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11284 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11286 $as_echo_n "checking for TAIL... " >&6; } 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11288 $as_echo "disabled" >&6; } 11289 else 11290 # Check if the provided tool contains a complete path. 11291 tool_specified="$TAIL" 11292 tool_basename="${tool_specified##*/}" 11293 if test "x$tool_basename" = "x$tool_specified"; then 11294 # A command without a complete path is provided, search $PATH. 11295 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11296 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11297 # Extract the first word of "$tool_basename", so it can be a program name with args. 11298 set dummy $tool_basename; ac_word=$2 11299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11300 $as_echo_n "checking for $ac_word... " >&6; } 11301 if ${ac_cv_path_TAIL+:} false; then : 11302 $as_echo_n "(cached) " >&6 11303 else 11304 case $TAIL in 11305 [\\/]* | ?:[\\/]*) 11306 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11307 ;; 11308 *) 11309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11310 for as_dir in $PATH 11311 do 11312 IFS=$as_save_IFS 11313 test -z "$as_dir" && as_dir=. 11314 for ac_exec_ext in '' $ac_executable_extensions; do 11315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11316 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11318 break 2 11319 fi 11320 done 11321 done 11322 IFS=$as_save_IFS 11323 11324 ;; 11325 esac 11326 fi 11327 TAIL=$ac_cv_path_TAIL 11328 if test -n "$TAIL"; then 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11330 $as_echo "$TAIL" >&6; } 11331 else 11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11333 $as_echo "no" >&6; } 11334 fi 11335 11336 11337 if test "x$TAIL" = x; then 11338 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11339 fi 11340 else 11341 # Otherwise we believe it is a complete path. Use it as it is. 11342 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11343 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11345 $as_echo_n "checking for TAIL... " >&6; } 11346 if test ! -x "$tool_specified"; then 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11348 $as_echo "not found" >&6; } 11349 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11350 fi 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11352 $as_echo "$tool_specified" >&6; } 11353 fi 11354 fi 11355 fi 11356 11357 fi 11358 11359 11360 11361 if test "x$TAIL" = x; then 11362 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11363 fi 11364 11365 11366 11367 11368 11369 # Publish this variable in the help. 11370 11371 11372 if [ -z "${TAR+x}" ]; then 11373 # The variable is not set by user, try to locate tool using the code snippet 11374 for ac_prog in gtar tar 11375 do 11376 # Extract the first word of "$ac_prog", so it can be a program name with args. 11377 set dummy $ac_prog; ac_word=$2 11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11379 $as_echo_n "checking for $ac_word... " >&6; } 11380 if ${ac_cv_path_TAR+:} false; then : 11381 $as_echo_n "(cached) " >&6 11382 else 11383 case $TAR in 11384 [\\/]* | ?:[\\/]*) 11385 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11386 ;; 11387 *) 11388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11389 for as_dir in $PATH 11390 do 11391 IFS=$as_save_IFS 11392 test -z "$as_dir" && as_dir=. 11393 for ac_exec_ext in '' $ac_executable_extensions; do 11394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11395 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11397 break 2 11398 fi 11399 done 11400 done 11401 IFS=$as_save_IFS 11402 11403 ;; 11404 esac 11405 fi 11406 TAR=$ac_cv_path_TAR 11407 if test -n "$TAR"; then 11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11409 $as_echo "$TAR" >&6; } 11410 else 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11412 $as_echo "no" >&6; } 11413 fi 11414 11415 11416 test -n "$TAR" && break 11417 done 11418 11419 else 11420 # The variable is set, but is it from the command line or the environment? 11421 11422 # Try to remove the string !TAR! from our list. 11423 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11424 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11425 # If it failed, the variable was not from the command line. Ignore it, 11426 # but warn the user (except for BASH, which is always set by the calling BASH). 11427 if test "xTAR" != xBASH; then 11428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11429 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11430 fi 11431 # Try to locate tool using the code snippet 11432 for ac_prog in gtar tar 11433 do 11434 # Extract the first word of "$ac_prog", so it can be a program name with args. 11435 set dummy $ac_prog; ac_word=$2 11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11437 $as_echo_n "checking for $ac_word... " >&6; } 11438 if ${ac_cv_path_TAR+:} false; then : 11439 $as_echo_n "(cached) " >&6 11440 else 11441 case $TAR in 11442 [\\/]* | ?:[\\/]*) 11443 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11444 ;; 11445 *) 11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11447 for as_dir in $PATH 11448 do 11449 IFS=$as_save_IFS 11450 test -z "$as_dir" && as_dir=. 11451 for ac_exec_ext in '' $ac_executable_extensions; do 11452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11453 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11455 break 2 11456 fi 11457 done 11458 done 11459 IFS=$as_save_IFS 11460 11461 ;; 11462 esac 11463 fi 11464 TAR=$ac_cv_path_TAR 11465 if test -n "$TAR"; then 11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11467 $as_echo "$TAR" >&6; } 11468 else 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11470 $as_echo "no" >&6; } 11471 fi 11472 11473 11474 test -n "$TAR" && break 11475 done 11476 11477 else 11478 # If it succeeded, then it was overridden by the user. We will use it 11479 # for the tool. 11480 11481 # First remove it from the list of overridden variables, so we can test 11482 # for unknown variables in the end. 11483 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11484 11485 # Check if we try to supply an empty value 11486 if test "x$TAR" = x; then 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11488 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11490 $as_echo_n "checking for TAR... " >&6; } 11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11492 $as_echo "disabled" >&6; } 11493 else 11494 # Check if the provided tool contains a complete path. 11495 tool_specified="$TAR" 11496 tool_basename="${tool_specified##*/}" 11497 if test "x$tool_basename" = "x$tool_specified"; then 11498 # A command without a complete path is provided, search $PATH. 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11500 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11501 # Extract the first word of "$tool_basename", so it can be a program name with args. 11502 set dummy $tool_basename; ac_word=$2 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11504 $as_echo_n "checking for $ac_word... " >&6; } 11505 if ${ac_cv_path_TAR+:} false; then : 11506 $as_echo_n "(cached) " >&6 11507 else 11508 case $TAR in 11509 [\\/]* | ?:[\\/]*) 11510 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11511 ;; 11512 *) 11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11514 for as_dir in $PATH 11515 do 11516 IFS=$as_save_IFS 11517 test -z "$as_dir" && as_dir=. 11518 for ac_exec_ext in '' $ac_executable_extensions; do 11519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11520 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11522 break 2 11523 fi 11524 done 11525 done 11526 IFS=$as_save_IFS 11527 11528 ;; 11529 esac 11530 fi 11531 TAR=$ac_cv_path_TAR 11532 if test -n "$TAR"; then 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11534 $as_echo "$TAR" >&6; } 11535 else 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11537 $as_echo "no" >&6; } 11538 fi 11539 11540 11541 if test "x$TAR" = x; then 11542 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11543 fi 11544 else 11545 # Otherwise we believe it is a complete path. Use it as it is. 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11547 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11549 $as_echo_n "checking for TAR... " >&6; } 11550 if test ! -x "$tool_specified"; then 11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11552 $as_echo "not found" >&6; } 11553 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11554 fi 11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11556 $as_echo "$tool_specified" >&6; } 11557 fi 11558 fi 11559 fi 11560 11561 fi 11562 11563 11564 11565 if test "x$TAR" = x; then 11566 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11567 fi 11568 11569 11570 11571 11572 11573 # Publish this variable in the help. 11574 11575 11576 if [ -z "${TEE+x}" ]; then 11577 # The variable is not set by user, try to locate tool using the code snippet 11578 for ac_prog in tee 11579 do 11580 # Extract the first word of "$ac_prog", so it can be a program name with args. 11581 set dummy $ac_prog; ac_word=$2 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11583 $as_echo_n "checking for $ac_word... " >&6; } 11584 if ${ac_cv_path_TEE+:} false; then : 11585 $as_echo_n "(cached) " >&6 11586 else 11587 case $TEE in 11588 [\\/]* | ?:[\\/]*) 11589 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11590 ;; 11591 *) 11592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11593 for as_dir in $PATH 11594 do 11595 IFS=$as_save_IFS 11596 test -z "$as_dir" && as_dir=. 11597 for ac_exec_ext in '' $ac_executable_extensions; do 11598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11599 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11601 break 2 11602 fi 11603 done 11604 done 11605 IFS=$as_save_IFS 11606 11607 ;; 11608 esac 11609 fi 11610 TEE=$ac_cv_path_TEE 11611 if test -n "$TEE"; then 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11613 $as_echo "$TEE" >&6; } 11614 else 11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11616 $as_echo "no" >&6; } 11617 fi 11618 11619 11620 test -n "$TEE" && break 11621 done 11622 11623 else 11624 # The variable is set, but is it from the command line or the environment? 11625 11626 # Try to remove the string !TEE! from our list. 11627 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11628 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11629 # If it failed, the variable was not from the command line. Ignore it, 11630 # but warn the user (except for BASH, which is always set by the calling BASH). 11631 if test "xTEE" != xBASH; then 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11633 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11634 fi 11635 # Try to locate tool using the code snippet 11636 for ac_prog in tee 11637 do 11638 # Extract the first word of "$ac_prog", so it can be a program name with args. 11639 set dummy $ac_prog; ac_word=$2 11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11641 $as_echo_n "checking for $ac_word... " >&6; } 11642 if ${ac_cv_path_TEE+:} false; then : 11643 $as_echo_n "(cached) " >&6 11644 else 11645 case $TEE in 11646 [\\/]* | ?:[\\/]*) 11647 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11648 ;; 11649 *) 11650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11651 for as_dir in $PATH 11652 do 11653 IFS=$as_save_IFS 11654 test -z "$as_dir" && as_dir=. 11655 for ac_exec_ext in '' $ac_executable_extensions; do 11656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11657 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11659 break 2 11660 fi 11661 done 11662 done 11663 IFS=$as_save_IFS 11664 11665 ;; 11666 esac 11667 fi 11668 TEE=$ac_cv_path_TEE 11669 if test -n "$TEE"; then 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11671 $as_echo "$TEE" >&6; } 11672 else 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11674 $as_echo "no" >&6; } 11675 fi 11676 11677 11678 test -n "$TEE" && break 11679 done 11680 11681 else 11682 # If it succeeded, then it was overridden by the user. We will use it 11683 # for the tool. 11684 11685 # First remove it from the list of overridden variables, so we can test 11686 # for unknown variables in the end. 11687 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11688 11689 # Check if we try to supply an empty value 11690 if test "x$TEE" = x; then 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11692 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11694 $as_echo_n "checking for TEE... " >&6; } 11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11696 $as_echo "disabled" >&6; } 11697 else 11698 # Check if the provided tool contains a complete path. 11699 tool_specified="$TEE" 11700 tool_basename="${tool_specified##*/}" 11701 if test "x$tool_basename" = "x$tool_specified"; then 11702 # A command without a complete path is provided, search $PATH. 11703 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11704 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11705 # Extract the first word of "$tool_basename", so it can be a program name with args. 11706 set dummy $tool_basename; ac_word=$2 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11708 $as_echo_n "checking for $ac_word... " >&6; } 11709 if ${ac_cv_path_TEE+:} false; then : 11710 $as_echo_n "(cached) " >&6 11711 else 11712 case $TEE in 11713 [\\/]* | ?:[\\/]*) 11714 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11715 ;; 11716 *) 11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11718 for as_dir in $PATH 11719 do 11720 IFS=$as_save_IFS 11721 test -z "$as_dir" && as_dir=. 11722 for ac_exec_ext in '' $ac_executable_extensions; do 11723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11724 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11726 break 2 11727 fi 11728 done 11729 done 11730 IFS=$as_save_IFS 11731 11732 ;; 11733 esac 11734 fi 11735 TEE=$ac_cv_path_TEE 11736 if test -n "$TEE"; then 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11738 $as_echo "$TEE" >&6; } 11739 else 11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11741 $as_echo "no" >&6; } 11742 fi 11743 11744 11745 if test "x$TEE" = x; then 11746 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11747 fi 11748 else 11749 # Otherwise we believe it is a complete path. Use it as it is. 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11751 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11753 $as_echo_n "checking for TEE... " >&6; } 11754 if test ! -x "$tool_specified"; then 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11756 $as_echo "not found" >&6; } 11757 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11758 fi 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11760 $as_echo "$tool_specified" >&6; } 11761 fi 11762 fi 11763 fi 11764 11765 fi 11766 11767 11768 11769 if test "x$TEE" = x; then 11770 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11771 fi 11772 11773 11774 11775 11776 11777 # Publish this variable in the help. 11778 11779 11780 if [ -z "${TOUCH+x}" ]; then 11781 # The variable is not set by user, try to locate tool using the code snippet 11782 for ac_prog in touch 11783 do 11784 # Extract the first word of "$ac_prog", so it can be a program name with args. 11785 set dummy $ac_prog; ac_word=$2 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11787 $as_echo_n "checking for $ac_word... " >&6; } 11788 if ${ac_cv_path_TOUCH+:} false; then : 11789 $as_echo_n "(cached) " >&6 11790 else 11791 case $TOUCH in 11792 [\\/]* | ?:[\\/]*) 11793 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11794 ;; 11795 *) 11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11797 for as_dir in $PATH 11798 do 11799 IFS=$as_save_IFS 11800 test -z "$as_dir" && as_dir=. 11801 for ac_exec_ext in '' $ac_executable_extensions; do 11802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11803 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11805 break 2 11806 fi 11807 done 11808 done 11809 IFS=$as_save_IFS 11810 11811 ;; 11812 esac 11813 fi 11814 TOUCH=$ac_cv_path_TOUCH 11815 if test -n "$TOUCH"; then 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11817 $as_echo "$TOUCH" >&6; } 11818 else 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11820 $as_echo "no" >&6; } 11821 fi 11822 11823 11824 test -n "$TOUCH" && break 11825 done 11826 11827 else 11828 # The variable is set, but is it from the command line or the environment? 11829 11830 # Try to remove the string !TOUCH! from our list. 11831 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11832 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11833 # If it failed, the variable was not from the command line. Ignore it, 11834 # but warn the user (except for BASH, which is always set by the calling BASH). 11835 if test "xTOUCH" != xBASH; then 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11837 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11838 fi 11839 # Try to locate tool using the code snippet 11840 for ac_prog in touch 11841 do 11842 # Extract the first word of "$ac_prog", so it can be a program name with args. 11843 set dummy $ac_prog; ac_word=$2 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11845 $as_echo_n "checking for $ac_word... " >&6; } 11846 if ${ac_cv_path_TOUCH+:} false; then : 11847 $as_echo_n "(cached) " >&6 11848 else 11849 case $TOUCH in 11850 [\\/]* | ?:[\\/]*) 11851 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11852 ;; 11853 *) 11854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11855 for as_dir in $PATH 11856 do 11857 IFS=$as_save_IFS 11858 test -z "$as_dir" && as_dir=. 11859 for ac_exec_ext in '' $ac_executable_extensions; do 11860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11861 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11863 break 2 11864 fi 11865 done 11866 done 11867 IFS=$as_save_IFS 11868 11869 ;; 11870 esac 11871 fi 11872 TOUCH=$ac_cv_path_TOUCH 11873 if test -n "$TOUCH"; then 11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11875 $as_echo "$TOUCH" >&6; } 11876 else 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11878 $as_echo "no" >&6; } 11879 fi 11880 11881 11882 test -n "$TOUCH" && break 11883 done 11884 11885 else 11886 # If it succeeded, then it was overridden by the user. We will use it 11887 # for the tool. 11888 11889 # First remove it from the list of overridden variables, so we can test 11890 # for unknown variables in the end. 11891 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11892 11893 # Check if we try to supply an empty value 11894 if test "x$TOUCH" = x; then 11895 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11896 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11898 $as_echo_n "checking for TOUCH... " >&6; } 11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11900 $as_echo "disabled" >&6; } 11901 else 11902 # Check if the provided tool contains a complete path. 11903 tool_specified="$TOUCH" 11904 tool_basename="${tool_specified##*/}" 11905 if test "x$tool_basename" = "x$tool_specified"; then 11906 # A command without a complete path is provided, search $PATH. 11907 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11908 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11909 # Extract the first word of "$tool_basename", so it can be a program name with args. 11910 set dummy $tool_basename; ac_word=$2 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11912 $as_echo_n "checking for $ac_word... " >&6; } 11913 if ${ac_cv_path_TOUCH+:} false; then : 11914 $as_echo_n "(cached) " >&6 11915 else 11916 case $TOUCH in 11917 [\\/]* | ?:[\\/]*) 11918 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11919 ;; 11920 *) 11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11922 for as_dir in $PATH 11923 do 11924 IFS=$as_save_IFS 11925 test -z "$as_dir" && as_dir=. 11926 for ac_exec_ext in '' $ac_executable_extensions; do 11927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11928 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11930 break 2 11931 fi 11932 done 11933 done 11934 IFS=$as_save_IFS 11935 11936 ;; 11937 esac 11938 fi 11939 TOUCH=$ac_cv_path_TOUCH 11940 if test -n "$TOUCH"; then 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11942 $as_echo "$TOUCH" >&6; } 11943 else 11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11945 $as_echo "no" >&6; } 11946 fi 11947 11948 11949 if test "x$TOUCH" = x; then 11950 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11951 fi 11952 else 11953 # Otherwise we believe it is a complete path. Use it as it is. 11954 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11955 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11957 $as_echo_n "checking for TOUCH... " >&6; } 11958 if test ! -x "$tool_specified"; then 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11960 $as_echo "not found" >&6; } 11961 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11962 fi 11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11964 $as_echo "$tool_specified" >&6; } 11965 fi 11966 fi 11967 fi 11968 11969 fi 11970 11971 11972 11973 if test "x$TOUCH" = x; then 11974 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11975 fi 11976 11977 11978 11979 11980 11981 # Publish this variable in the help. 11982 11983 11984 if [ -z "${TR+x}" ]; then 11985 # The variable is not set by user, try to locate tool using the code snippet 11986 for ac_prog in tr 11987 do 11988 # Extract the first word of "$ac_prog", so it can be a program name with args. 11989 set dummy $ac_prog; ac_word=$2 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11991 $as_echo_n "checking for $ac_word... " >&6; } 11992 if ${ac_cv_path_TR+:} false; then : 11993 $as_echo_n "(cached) " >&6 11994 else 11995 case $TR in 11996 [\\/]* | ?:[\\/]*) 11997 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11998 ;; 11999 *) 12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12001 for as_dir in $PATH 12002 do 12003 IFS=$as_save_IFS 12004 test -z "$as_dir" && as_dir=. 12005 for ac_exec_ext in '' $ac_executable_extensions; do 12006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12007 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12009 break 2 12010 fi 12011 done 12012 done 12013 IFS=$as_save_IFS 12014 12015 ;; 12016 esac 12017 fi 12018 TR=$ac_cv_path_TR 12019 if test -n "$TR"; then 12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12021 $as_echo "$TR" >&6; } 12022 else 12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12024 $as_echo "no" >&6; } 12025 fi 12026 12027 12028 test -n "$TR" && break 12029 done 12030 12031 else 12032 # The variable is set, but is it from the command line or the environment? 12033 12034 # Try to remove the string !TR! from our list. 12035 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 12036 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12037 # If it failed, the variable was not from the command line. Ignore it, 12038 # but warn the user (except for BASH, which is always set by the calling BASH). 12039 if test "xTR" != xBASH; then 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 12041 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 12042 fi 12043 # Try to locate tool using the code snippet 12044 for ac_prog in tr 12045 do 12046 # Extract the first word of "$ac_prog", so it can be a program name with args. 12047 set dummy $ac_prog; ac_word=$2 12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12049 $as_echo_n "checking for $ac_word... " >&6; } 12050 if ${ac_cv_path_TR+:} false; then : 12051 $as_echo_n "(cached) " >&6 12052 else 12053 case $TR in 12054 [\\/]* | ?:[\\/]*) 12055 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12056 ;; 12057 *) 12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12059 for as_dir in $PATH 12060 do 12061 IFS=$as_save_IFS 12062 test -z "$as_dir" && as_dir=. 12063 for ac_exec_ext in '' $ac_executable_extensions; do 12064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12065 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12067 break 2 12068 fi 12069 done 12070 done 12071 IFS=$as_save_IFS 12072 12073 ;; 12074 esac 12075 fi 12076 TR=$ac_cv_path_TR 12077 if test -n "$TR"; then 12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12079 $as_echo "$TR" >&6; } 12080 else 12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12082 $as_echo "no" >&6; } 12083 fi 12084 12085 12086 test -n "$TR" && break 12087 done 12088 12089 else 12090 # If it succeeded, then it was overridden by the user. We will use it 12091 # for the tool. 12092 12093 # First remove it from the list of overridden variables, so we can test 12094 # for unknown variables in the end. 12095 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12096 12097 # Check if we try to supply an empty value 12098 if test "x$TR" = x; then 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12100 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12102 $as_echo_n "checking for TR... " >&6; } 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12104 $as_echo "disabled" >&6; } 12105 else 12106 # Check if the provided tool contains a complete path. 12107 tool_specified="$TR" 12108 tool_basename="${tool_specified##*/}" 12109 if test "x$tool_basename" = "x$tool_specified"; then 12110 # A command without a complete path is provided, search $PATH. 12111 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12112 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12113 # Extract the first word of "$tool_basename", so it can be a program name with args. 12114 set dummy $tool_basename; ac_word=$2 12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12116 $as_echo_n "checking for $ac_word... " >&6; } 12117 if ${ac_cv_path_TR+:} false; then : 12118 $as_echo_n "(cached) " >&6 12119 else 12120 case $TR in 12121 [\\/]* | ?:[\\/]*) 12122 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12123 ;; 12124 *) 12125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12126 for as_dir in $PATH 12127 do 12128 IFS=$as_save_IFS 12129 test -z "$as_dir" && as_dir=. 12130 for ac_exec_ext in '' $ac_executable_extensions; do 12131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12132 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12134 break 2 12135 fi 12136 done 12137 done 12138 IFS=$as_save_IFS 12139 12140 ;; 12141 esac 12142 fi 12143 TR=$ac_cv_path_TR 12144 if test -n "$TR"; then 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12146 $as_echo "$TR" >&6; } 12147 else 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12149 $as_echo "no" >&6; } 12150 fi 12151 12152 12153 if test "x$TR" = x; then 12154 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12155 fi 12156 else 12157 # Otherwise we believe it is a complete path. Use it as it is. 12158 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12159 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12161 $as_echo_n "checking for TR... " >&6; } 12162 if test ! -x "$tool_specified"; then 12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12164 $as_echo "not found" >&6; } 12165 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12166 fi 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12168 $as_echo "$tool_specified" >&6; } 12169 fi 12170 fi 12171 fi 12172 12173 fi 12174 12175 12176 12177 if test "x$TR" = x; then 12178 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12179 fi 12180 12181 12182 12183 12184 12185 # Publish this variable in the help. 12186 12187 12188 if [ -z "${UNAME+x}" ]; then 12189 # The variable is not set by user, try to locate tool using the code snippet 12190 for ac_prog in uname 12191 do 12192 # Extract the first word of "$ac_prog", so it can be a program name with args. 12193 set dummy $ac_prog; ac_word=$2 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12195 $as_echo_n "checking for $ac_word... " >&6; } 12196 if ${ac_cv_path_UNAME+:} false; then : 12197 $as_echo_n "(cached) " >&6 12198 else 12199 case $UNAME in 12200 [\\/]* | ?:[\\/]*) 12201 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12202 ;; 12203 *) 12204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12205 for as_dir in $PATH 12206 do 12207 IFS=$as_save_IFS 12208 test -z "$as_dir" && as_dir=. 12209 for ac_exec_ext in '' $ac_executable_extensions; do 12210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12211 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12213 break 2 12214 fi 12215 done 12216 done 12217 IFS=$as_save_IFS 12218 12219 ;; 12220 esac 12221 fi 12222 UNAME=$ac_cv_path_UNAME 12223 if test -n "$UNAME"; then 12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12225 $as_echo "$UNAME" >&6; } 12226 else 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12228 $as_echo "no" >&6; } 12229 fi 12230 12231 12232 test -n "$UNAME" && break 12233 done 12234 12235 else 12236 # The variable is set, but is it from the command line or the environment? 12237 12238 # Try to remove the string !UNAME! from our list. 12239 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12240 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12241 # If it failed, the variable was not from the command line. Ignore it, 12242 # but warn the user (except for BASH, which is always set by the calling BASH). 12243 if test "xUNAME" != xBASH; then 12244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12245 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12246 fi 12247 # Try to locate tool using the code snippet 12248 for ac_prog in uname 12249 do 12250 # Extract the first word of "$ac_prog", so it can be a program name with args. 12251 set dummy $ac_prog; ac_word=$2 12252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12253 $as_echo_n "checking for $ac_word... " >&6; } 12254 if ${ac_cv_path_UNAME+:} false; then : 12255 $as_echo_n "(cached) " >&6 12256 else 12257 case $UNAME in 12258 [\\/]* | ?:[\\/]*) 12259 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12260 ;; 12261 *) 12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12263 for as_dir in $PATH 12264 do 12265 IFS=$as_save_IFS 12266 test -z "$as_dir" && as_dir=. 12267 for ac_exec_ext in '' $ac_executable_extensions; do 12268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12269 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12271 break 2 12272 fi 12273 done 12274 done 12275 IFS=$as_save_IFS 12276 12277 ;; 12278 esac 12279 fi 12280 UNAME=$ac_cv_path_UNAME 12281 if test -n "$UNAME"; then 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12283 $as_echo "$UNAME" >&6; } 12284 else 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12286 $as_echo "no" >&6; } 12287 fi 12288 12289 12290 test -n "$UNAME" && break 12291 done 12292 12293 else 12294 # If it succeeded, then it was overridden by the user. We will use it 12295 # for the tool. 12296 12297 # First remove it from the list of overridden variables, so we can test 12298 # for unknown variables in the end. 12299 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12300 12301 # Check if we try to supply an empty value 12302 if test "x$UNAME" = x; then 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12304 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12306 $as_echo_n "checking for UNAME... " >&6; } 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12308 $as_echo "disabled" >&6; } 12309 else 12310 # Check if the provided tool contains a complete path. 12311 tool_specified="$UNAME" 12312 tool_basename="${tool_specified##*/}" 12313 if test "x$tool_basename" = "x$tool_specified"; then 12314 # A command without a complete path is provided, search $PATH. 12315 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12316 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12317 # Extract the first word of "$tool_basename", so it can be a program name with args. 12318 set dummy $tool_basename; ac_word=$2 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12320 $as_echo_n "checking for $ac_word... " >&6; } 12321 if ${ac_cv_path_UNAME+:} false; then : 12322 $as_echo_n "(cached) " >&6 12323 else 12324 case $UNAME in 12325 [\\/]* | ?:[\\/]*) 12326 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12327 ;; 12328 *) 12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12330 for as_dir in $PATH 12331 do 12332 IFS=$as_save_IFS 12333 test -z "$as_dir" && as_dir=. 12334 for ac_exec_ext in '' $ac_executable_extensions; do 12335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12336 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12338 break 2 12339 fi 12340 done 12341 done 12342 IFS=$as_save_IFS 12343 12344 ;; 12345 esac 12346 fi 12347 UNAME=$ac_cv_path_UNAME 12348 if test -n "$UNAME"; then 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12350 $as_echo "$UNAME" >&6; } 12351 else 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12353 $as_echo "no" >&6; } 12354 fi 12355 12356 12357 if test "x$UNAME" = x; then 12358 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12359 fi 12360 else 12361 # Otherwise we believe it is a complete path. Use it as it is. 12362 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12363 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12365 $as_echo_n "checking for UNAME... " >&6; } 12366 if test ! -x "$tool_specified"; then 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12368 $as_echo "not found" >&6; } 12369 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12370 fi 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12372 $as_echo "$tool_specified" >&6; } 12373 fi 12374 fi 12375 fi 12376 12377 fi 12378 12379 12380 12381 if test "x$UNAME" = x; then 12382 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12383 fi 12384 12385 12386 12387 12388 12389 # Publish this variable in the help. 12390 12391 12392 if [ -z "${UNIQ+x}" ]; then 12393 # The variable is not set by user, try to locate tool using the code snippet 12394 for ac_prog in uniq 12395 do 12396 # Extract the first word of "$ac_prog", so it can be a program name with args. 12397 set dummy $ac_prog; ac_word=$2 12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12399 $as_echo_n "checking for $ac_word... " >&6; } 12400 if ${ac_cv_path_UNIQ+:} false; then : 12401 $as_echo_n "(cached) " >&6 12402 else 12403 case $UNIQ in 12404 [\\/]* | ?:[\\/]*) 12405 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12406 ;; 12407 *) 12408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12409 for as_dir in $PATH 12410 do 12411 IFS=$as_save_IFS 12412 test -z "$as_dir" && as_dir=. 12413 for ac_exec_ext in '' $ac_executable_extensions; do 12414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12415 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12417 break 2 12418 fi 12419 done 12420 done 12421 IFS=$as_save_IFS 12422 12423 ;; 12424 esac 12425 fi 12426 UNIQ=$ac_cv_path_UNIQ 12427 if test -n "$UNIQ"; then 12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12429 $as_echo "$UNIQ" >&6; } 12430 else 12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12432 $as_echo "no" >&6; } 12433 fi 12434 12435 12436 test -n "$UNIQ" && break 12437 done 12438 12439 else 12440 # The variable is set, but is it from the command line or the environment? 12441 12442 # Try to remove the string !UNIQ! from our list. 12443 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12444 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12445 # If it failed, the variable was not from the command line. Ignore it, 12446 # but warn the user (except for BASH, which is always set by the calling BASH). 12447 if test "xUNIQ" != xBASH; then 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12449 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12450 fi 12451 # Try to locate tool using the code snippet 12452 for ac_prog in uniq 12453 do 12454 # Extract the first word of "$ac_prog", so it can be a program name with args. 12455 set dummy $ac_prog; ac_word=$2 12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12457 $as_echo_n "checking for $ac_word... " >&6; } 12458 if ${ac_cv_path_UNIQ+:} false; then : 12459 $as_echo_n "(cached) " >&6 12460 else 12461 case $UNIQ in 12462 [\\/]* | ?:[\\/]*) 12463 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12464 ;; 12465 *) 12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12467 for as_dir in $PATH 12468 do 12469 IFS=$as_save_IFS 12470 test -z "$as_dir" && as_dir=. 12471 for ac_exec_ext in '' $ac_executable_extensions; do 12472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12473 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12475 break 2 12476 fi 12477 done 12478 done 12479 IFS=$as_save_IFS 12480 12481 ;; 12482 esac 12483 fi 12484 UNIQ=$ac_cv_path_UNIQ 12485 if test -n "$UNIQ"; then 12486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12487 $as_echo "$UNIQ" >&6; } 12488 else 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12490 $as_echo "no" >&6; } 12491 fi 12492 12493 12494 test -n "$UNIQ" && break 12495 done 12496 12497 else 12498 # If it succeeded, then it was overridden by the user. We will use it 12499 # for the tool. 12500 12501 # First remove it from the list of overridden variables, so we can test 12502 # for unknown variables in the end. 12503 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12504 12505 # Check if we try to supply an empty value 12506 if test "x$UNIQ" = x; then 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12508 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12510 $as_echo_n "checking for UNIQ... " >&6; } 12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12512 $as_echo "disabled" >&6; } 12513 else 12514 # Check if the provided tool contains a complete path. 12515 tool_specified="$UNIQ" 12516 tool_basename="${tool_specified##*/}" 12517 if test "x$tool_basename" = "x$tool_specified"; then 12518 # A command without a complete path is provided, search $PATH. 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12520 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12521 # Extract the first word of "$tool_basename", so it can be a program name with args. 12522 set dummy $tool_basename; ac_word=$2 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12524 $as_echo_n "checking for $ac_word... " >&6; } 12525 if ${ac_cv_path_UNIQ+:} false; then : 12526 $as_echo_n "(cached) " >&6 12527 else 12528 case $UNIQ in 12529 [\\/]* | ?:[\\/]*) 12530 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12531 ;; 12532 *) 12533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12534 for as_dir in $PATH 12535 do 12536 IFS=$as_save_IFS 12537 test -z "$as_dir" && as_dir=. 12538 for ac_exec_ext in '' $ac_executable_extensions; do 12539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12540 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12542 break 2 12543 fi 12544 done 12545 done 12546 IFS=$as_save_IFS 12547 12548 ;; 12549 esac 12550 fi 12551 UNIQ=$ac_cv_path_UNIQ 12552 if test -n "$UNIQ"; then 12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12554 $as_echo "$UNIQ" >&6; } 12555 else 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12557 $as_echo "no" >&6; } 12558 fi 12559 12560 12561 if test "x$UNIQ" = x; then 12562 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12563 fi 12564 else 12565 # Otherwise we believe it is a complete path. Use it as it is. 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12567 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12569 $as_echo_n "checking for UNIQ... " >&6; } 12570 if test ! -x "$tool_specified"; then 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12572 $as_echo "not found" >&6; } 12573 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12574 fi 12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12576 $as_echo "$tool_specified" >&6; } 12577 fi 12578 fi 12579 fi 12580 12581 fi 12582 12583 12584 12585 if test "x$UNIQ" = x; then 12586 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12587 fi 12588 12589 12590 12591 12592 12593 # Publish this variable in the help. 12594 12595 12596 if [ -z "${WC+x}" ]; then 12597 # The variable is not set by user, try to locate tool using the code snippet 12598 for ac_prog in wc 12599 do 12600 # Extract the first word of "$ac_prog", so it can be a program name with args. 12601 set dummy $ac_prog; ac_word=$2 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12603 $as_echo_n "checking for $ac_word... " >&6; } 12604 if ${ac_cv_path_WC+:} false; then : 12605 $as_echo_n "(cached) " >&6 12606 else 12607 case $WC in 12608 [\\/]* | ?:[\\/]*) 12609 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12610 ;; 12611 *) 12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12613 for as_dir in $PATH 12614 do 12615 IFS=$as_save_IFS 12616 test -z "$as_dir" && as_dir=. 12617 for ac_exec_ext in '' $ac_executable_extensions; do 12618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12619 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12621 break 2 12622 fi 12623 done 12624 done 12625 IFS=$as_save_IFS 12626 12627 ;; 12628 esac 12629 fi 12630 WC=$ac_cv_path_WC 12631 if test -n "$WC"; then 12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12633 $as_echo "$WC" >&6; } 12634 else 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12636 $as_echo "no" >&6; } 12637 fi 12638 12639 12640 test -n "$WC" && break 12641 done 12642 12643 else 12644 # The variable is set, but is it from the command line or the environment? 12645 12646 # Try to remove the string !WC! from our list. 12647 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12648 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12649 # If it failed, the variable was not from the command line. Ignore it, 12650 # but warn the user (except for BASH, which is always set by the calling BASH). 12651 if test "xWC" != xBASH; then 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12653 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12654 fi 12655 # Try to locate tool using the code snippet 12656 for ac_prog in wc 12657 do 12658 # Extract the first word of "$ac_prog", so it can be a program name with args. 12659 set dummy $ac_prog; ac_word=$2 12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12661 $as_echo_n "checking for $ac_word... " >&6; } 12662 if ${ac_cv_path_WC+:} false; then : 12663 $as_echo_n "(cached) " >&6 12664 else 12665 case $WC in 12666 [\\/]* | ?:[\\/]*) 12667 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12668 ;; 12669 *) 12670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12671 for as_dir in $PATH 12672 do 12673 IFS=$as_save_IFS 12674 test -z "$as_dir" && as_dir=. 12675 for ac_exec_ext in '' $ac_executable_extensions; do 12676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12677 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12679 break 2 12680 fi 12681 done 12682 done 12683 IFS=$as_save_IFS 12684 12685 ;; 12686 esac 12687 fi 12688 WC=$ac_cv_path_WC 12689 if test -n "$WC"; then 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12691 $as_echo "$WC" >&6; } 12692 else 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12694 $as_echo "no" >&6; } 12695 fi 12696 12697 12698 test -n "$WC" && break 12699 done 12700 12701 else 12702 # If it succeeded, then it was overridden by the user. We will use it 12703 # for the tool. 12704 12705 # First remove it from the list of overridden variables, so we can test 12706 # for unknown variables in the end. 12707 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12708 12709 # Check if we try to supply an empty value 12710 if test "x$WC" = x; then 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12712 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12714 $as_echo_n "checking for WC... " >&6; } 12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12716 $as_echo "disabled" >&6; } 12717 else 12718 # Check if the provided tool contains a complete path. 12719 tool_specified="$WC" 12720 tool_basename="${tool_specified##*/}" 12721 if test "x$tool_basename" = "x$tool_specified"; then 12722 # A command without a complete path is provided, search $PATH. 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12724 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12725 # Extract the first word of "$tool_basename", so it can be a program name with args. 12726 set dummy $tool_basename; ac_word=$2 12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12728 $as_echo_n "checking for $ac_word... " >&6; } 12729 if ${ac_cv_path_WC+:} false; then : 12730 $as_echo_n "(cached) " >&6 12731 else 12732 case $WC in 12733 [\\/]* | ?:[\\/]*) 12734 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12735 ;; 12736 *) 12737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12738 for as_dir in $PATH 12739 do 12740 IFS=$as_save_IFS 12741 test -z "$as_dir" && as_dir=. 12742 for ac_exec_ext in '' $ac_executable_extensions; do 12743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12744 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12746 break 2 12747 fi 12748 done 12749 done 12750 IFS=$as_save_IFS 12751 12752 ;; 12753 esac 12754 fi 12755 WC=$ac_cv_path_WC 12756 if test -n "$WC"; then 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12758 $as_echo "$WC" >&6; } 12759 else 12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12761 $as_echo "no" >&6; } 12762 fi 12763 12764 12765 if test "x$WC" = x; then 12766 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12767 fi 12768 else 12769 # Otherwise we believe it is a complete path. Use it as it is. 12770 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12771 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12773 $as_echo_n "checking for WC... " >&6; } 12774 if test ! -x "$tool_specified"; then 12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12776 $as_echo "not found" >&6; } 12777 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12778 fi 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12780 $as_echo "$tool_specified" >&6; } 12781 fi 12782 fi 12783 fi 12784 12785 fi 12786 12787 12788 12789 if test "x$WC" = x; then 12790 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12791 fi 12792 12793 12794 12795 12796 12797 # Publish this variable in the help. 12798 12799 12800 if [ -z "${WHICH+x}" ]; then 12801 # The variable is not set by user, try to locate tool using the code snippet 12802 for ac_prog in which 12803 do 12804 # Extract the first word of "$ac_prog", so it can be a program name with args. 12805 set dummy $ac_prog; ac_word=$2 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12807 $as_echo_n "checking for $ac_word... " >&6; } 12808 if ${ac_cv_path_WHICH+:} false; then : 12809 $as_echo_n "(cached) " >&6 12810 else 12811 case $WHICH in 12812 [\\/]* | ?:[\\/]*) 12813 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12814 ;; 12815 *) 12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12817 for as_dir in $PATH 12818 do 12819 IFS=$as_save_IFS 12820 test -z "$as_dir" && as_dir=. 12821 for ac_exec_ext in '' $ac_executable_extensions; do 12822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12823 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12825 break 2 12826 fi 12827 done 12828 done 12829 IFS=$as_save_IFS 12830 12831 ;; 12832 esac 12833 fi 12834 WHICH=$ac_cv_path_WHICH 12835 if test -n "$WHICH"; then 12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12837 $as_echo "$WHICH" >&6; } 12838 else 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12840 $as_echo "no" >&6; } 12841 fi 12842 12843 12844 test -n "$WHICH" && break 12845 done 12846 12847 else 12848 # The variable is set, but is it from the command line or the environment? 12849 12850 # Try to remove the string !WHICH! from our list. 12851 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12852 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12853 # If it failed, the variable was not from the command line. Ignore it, 12854 # but warn the user (except for BASH, which is always set by the calling BASH). 12855 if test "xWHICH" != xBASH; then 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12857 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12858 fi 12859 # Try to locate tool using the code snippet 12860 for ac_prog in which 12861 do 12862 # Extract the first word of "$ac_prog", so it can be a program name with args. 12863 set dummy $ac_prog; ac_word=$2 12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12865 $as_echo_n "checking for $ac_word... " >&6; } 12866 if ${ac_cv_path_WHICH+:} false; then : 12867 $as_echo_n "(cached) " >&6 12868 else 12869 case $WHICH in 12870 [\\/]* | ?:[\\/]*) 12871 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12872 ;; 12873 *) 12874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12875 for as_dir in $PATH 12876 do 12877 IFS=$as_save_IFS 12878 test -z "$as_dir" && as_dir=. 12879 for ac_exec_ext in '' $ac_executable_extensions; do 12880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12881 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12883 break 2 12884 fi 12885 done 12886 done 12887 IFS=$as_save_IFS 12888 12889 ;; 12890 esac 12891 fi 12892 WHICH=$ac_cv_path_WHICH 12893 if test -n "$WHICH"; then 12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12895 $as_echo "$WHICH" >&6; } 12896 else 12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12898 $as_echo "no" >&6; } 12899 fi 12900 12901 12902 test -n "$WHICH" && break 12903 done 12904 12905 else 12906 # If it succeeded, then it was overridden by the user. We will use it 12907 # for the tool. 12908 12909 # First remove it from the list of overridden variables, so we can test 12910 # for unknown variables in the end. 12911 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12912 12913 # Check if we try to supply an empty value 12914 if test "x$WHICH" = x; then 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12916 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12918 $as_echo_n "checking for WHICH... " >&6; } 12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12920 $as_echo "disabled" >&6; } 12921 else 12922 # Check if the provided tool contains a complete path. 12923 tool_specified="$WHICH" 12924 tool_basename="${tool_specified##*/}" 12925 if test "x$tool_basename" = "x$tool_specified"; then 12926 # A command without a complete path is provided, search $PATH. 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12928 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12929 # Extract the first word of "$tool_basename", so it can be a program name with args. 12930 set dummy $tool_basename; ac_word=$2 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12932 $as_echo_n "checking for $ac_word... " >&6; } 12933 if ${ac_cv_path_WHICH+:} false; then : 12934 $as_echo_n "(cached) " >&6 12935 else 12936 case $WHICH in 12937 [\\/]* | ?:[\\/]*) 12938 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12939 ;; 12940 *) 12941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12942 for as_dir in $PATH 12943 do 12944 IFS=$as_save_IFS 12945 test -z "$as_dir" && as_dir=. 12946 for ac_exec_ext in '' $ac_executable_extensions; do 12947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12948 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12950 break 2 12951 fi 12952 done 12953 done 12954 IFS=$as_save_IFS 12955 12956 ;; 12957 esac 12958 fi 12959 WHICH=$ac_cv_path_WHICH 12960 if test -n "$WHICH"; then 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12962 $as_echo "$WHICH" >&6; } 12963 else 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12965 $as_echo "no" >&6; } 12966 fi 12967 12968 12969 if test "x$WHICH" = x; then 12970 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12971 fi 12972 else 12973 # Otherwise we believe it is a complete path. Use it as it is. 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12975 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12977 $as_echo_n "checking for WHICH... " >&6; } 12978 if test ! -x "$tool_specified"; then 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12980 $as_echo "not found" >&6; } 12981 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12982 fi 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12984 $as_echo "$tool_specified" >&6; } 12985 fi 12986 fi 12987 fi 12988 12989 fi 12990 12991 12992 12993 if test "x$WHICH" = x; then 12994 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12995 fi 12996 12997 12998 12999 13000 13001 # Publish this variable in the help. 13002 13003 13004 if [ -z "${XARGS+x}" ]; then 13005 # The variable is not set by user, try to locate tool using the code snippet 13006 for ac_prog in xargs 13007 do 13008 # Extract the first word of "$ac_prog", so it can be a program name with args. 13009 set dummy $ac_prog; ac_word=$2 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13011 $as_echo_n "checking for $ac_word... " >&6; } 13012 if ${ac_cv_path_XARGS+:} false; then : 13013 $as_echo_n "(cached) " >&6 13014 else 13015 case $XARGS in 13016 [\\/]* | ?:[\\/]*) 13017 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13018 ;; 13019 *) 13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13021 for as_dir in $PATH 13022 do 13023 IFS=$as_save_IFS 13024 test -z "$as_dir" && as_dir=. 13025 for ac_exec_ext in '' $ac_executable_extensions; do 13026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13027 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13029 break 2 13030 fi 13031 done 13032 done 13033 IFS=$as_save_IFS 13034 13035 ;; 13036 esac 13037 fi 13038 XARGS=$ac_cv_path_XARGS 13039 if test -n "$XARGS"; then 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13041 $as_echo "$XARGS" >&6; } 13042 else 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13044 $as_echo "no" >&6; } 13045 fi 13046 13047 13048 test -n "$XARGS" && break 13049 done 13050 13051 else 13052 # The variable is set, but is it from the command line or the environment? 13053 13054 # Try to remove the string !XARGS! from our list. 13055 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 13056 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13057 # If it failed, the variable was not from the command line. Ignore it, 13058 # but warn the user (except for BASH, which is always set by the calling BASH). 13059 if test "xXARGS" != xBASH; then 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 13061 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 13062 fi 13063 # Try to locate tool using the code snippet 13064 for ac_prog in xargs 13065 do 13066 # Extract the first word of "$ac_prog", so it can be a program name with args. 13067 set dummy $ac_prog; ac_word=$2 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13069 $as_echo_n "checking for $ac_word... " >&6; } 13070 if ${ac_cv_path_XARGS+:} false; then : 13071 $as_echo_n "(cached) " >&6 13072 else 13073 case $XARGS in 13074 [\\/]* | ?:[\\/]*) 13075 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13076 ;; 13077 *) 13078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13079 for as_dir in $PATH 13080 do 13081 IFS=$as_save_IFS 13082 test -z "$as_dir" && as_dir=. 13083 for ac_exec_ext in '' $ac_executable_extensions; do 13084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13085 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13087 break 2 13088 fi 13089 done 13090 done 13091 IFS=$as_save_IFS 13092 13093 ;; 13094 esac 13095 fi 13096 XARGS=$ac_cv_path_XARGS 13097 if test -n "$XARGS"; then 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13099 $as_echo "$XARGS" >&6; } 13100 else 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13102 $as_echo "no" >&6; } 13103 fi 13104 13105 13106 test -n "$XARGS" && break 13107 done 13108 13109 else 13110 # If it succeeded, then it was overridden by the user. We will use it 13111 # for the tool. 13112 13113 # First remove it from the list of overridden variables, so we can test 13114 # for unknown variables in the end. 13115 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13116 13117 # Check if we try to supply an empty value 13118 if test "x$XARGS" = x; then 13119 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13120 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13122 $as_echo_n "checking for XARGS... " >&6; } 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13124 $as_echo "disabled" >&6; } 13125 else 13126 # Check if the provided tool contains a complete path. 13127 tool_specified="$XARGS" 13128 tool_basename="${tool_specified##*/}" 13129 if test "x$tool_basename" = "x$tool_specified"; then 13130 # A command without a complete path is provided, search $PATH. 13131 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13132 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13133 # Extract the first word of "$tool_basename", so it can be a program name with args. 13134 set dummy $tool_basename; ac_word=$2 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13136 $as_echo_n "checking for $ac_word... " >&6; } 13137 if ${ac_cv_path_XARGS+:} false; then : 13138 $as_echo_n "(cached) " >&6 13139 else 13140 case $XARGS in 13141 [\\/]* | ?:[\\/]*) 13142 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13143 ;; 13144 *) 13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13146 for as_dir in $PATH 13147 do 13148 IFS=$as_save_IFS 13149 test -z "$as_dir" && as_dir=. 13150 for ac_exec_ext in '' $ac_executable_extensions; do 13151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13152 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13154 break 2 13155 fi 13156 done 13157 done 13158 IFS=$as_save_IFS 13159 13160 ;; 13161 esac 13162 fi 13163 XARGS=$ac_cv_path_XARGS 13164 if test -n "$XARGS"; then 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13166 $as_echo "$XARGS" >&6; } 13167 else 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13169 $as_echo "no" >&6; } 13170 fi 13171 13172 13173 if test "x$XARGS" = x; then 13174 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13175 fi 13176 else 13177 # Otherwise we believe it is a complete path. Use it as it is. 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13179 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13181 $as_echo_n "checking for XARGS... " >&6; } 13182 if test ! -x "$tool_specified"; then 13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13184 $as_echo "not found" >&6; } 13185 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13186 fi 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13188 $as_echo "$tool_specified" >&6; } 13189 fi 13190 fi 13191 fi 13192 13193 fi 13194 13195 13196 13197 if test "x$XARGS" = x; then 13198 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13199 fi 13200 13201 13202 13203 # Then required tools that require some special treatment. 13204 13205 13206 # Publish this variable in the help. 13207 13208 13209 if [ -z "${AWK+x}" ]; then 13210 # The variable is not set by user, try to locate tool using the code snippet 13211 for ac_prog in gawk mawk nawk awk 13212 do 13213 # Extract the first word of "$ac_prog", so it can be a program name with args. 13214 set dummy $ac_prog; ac_word=$2 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13216 $as_echo_n "checking for $ac_word... " >&6; } 13217 if ${ac_cv_prog_AWK+:} false; then : 13218 $as_echo_n "(cached) " >&6 13219 else 13220 if test -n "$AWK"; then 13221 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13222 else 13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13224 for as_dir in $PATH 13225 do 13226 IFS=$as_save_IFS 13227 test -z "$as_dir" && as_dir=. 13228 for ac_exec_ext in '' $ac_executable_extensions; do 13229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13230 ac_cv_prog_AWK="$ac_prog" 13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13232 break 2 13233 fi 13234 done 13235 done 13236 IFS=$as_save_IFS 13237 13238 fi 13239 fi 13240 AWK=$ac_cv_prog_AWK 13241 if test -n "$AWK"; then 13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13243 $as_echo "$AWK" >&6; } 13244 else 13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13246 $as_echo "no" >&6; } 13247 fi 13248 13249 13250 test -n "$AWK" && break 13251 done 13252 13253 else 13254 # The variable is set, but is it from the command line or the environment? 13255 13256 # Try to remove the string !AWK! from our list. 13257 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13258 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13259 # If it failed, the variable was not from the command line. Ignore it, 13260 # but warn the user (except for BASH, which is always set by the calling BASH). 13261 if test "xAWK" != xBASH; then 13262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13263 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13264 fi 13265 # Try to locate tool using the code snippet 13266 for ac_prog in gawk mawk nawk awk 13267 do 13268 # Extract the first word of "$ac_prog", so it can be a program name with args. 13269 set dummy $ac_prog; ac_word=$2 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13271 $as_echo_n "checking for $ac_word... " >&6; } 13272 if ${ac_cv_prog_AWK+:} false; then : 13273 $as_echo_n "(cached) " >&6 13274 else 13275 if test -n "$AWK"; then 13276 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13277 else 13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13279 for as_dir in $PATH 13280 do 13281 IFS=$as_save_IFS 13282 test -z "$as_dir" && as_dir=. 13283 for ac_exec_ext in '' $ac_executable_extensions; do 13284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13285 ac_cv_prog_AWK="$ac_prog" 13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13287 break 2 13288 fi 13289 done 13290 done 13291 IFS=$as_save_IFS 13292 13293 fi 13294 fi 13295 AWK=$ac_cv_prog_AWK 13296 if test -n "$AWK"; then 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13298 $as_echo "$AWK" >&6; } 13299 else 13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13301 $as_echo "no" >&6; } 13302 fi 13303 13304 13305 test -n "$AWK" && break 13306 done 13307 13308 else 13309 # If it succeeded, then it was overridden by the user. We will use it 13310 # for the tool. 13311 13312 # First remove it from the list of overridden variables, so we can test 13313 # for unknown variables in the end. 13314 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13315 13316 # Check if we try to supply an empty value 13317 if test "x$AWK" = x; then 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13319 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13321 $as_echo_n "checking for AWK... " >&6; } 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13323 $as_echo "disabled" >&6; } 13324 else 13325 # Check if the provided tool contains a complete path. 13326 tool_specified="$AWK" 13327 tool_basename="${tool_specified##*/}" 13328 if test "x$tool_basename" = "x$tool_specified"; then 13329 # A command without a complete path is provided, search $PATH. 13330 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13331 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13332 # Extract the first word of "$tool_basename", so it can be a program name with args. 13333 set dummy $tool_basename; ac_word=$2 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13335 $as_echo_n "checking for $ac_word... " >&6; } 13336 if ${ac_cv_path_AWK+:} false; then : 13337 $as_echo_n "(cached) " >&6 13338 else 13339 case $AWK in 13340 [\\/]* | ?:[\\/]*) 13341 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13342 ;; 13343 *) 13344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13345 for as_dir in $PATH 13346 do 13347 IFS=$as_save_IFS 13348 test -z "$as_dir" && as_dir=. 13349 for ac_exec_ext in '' $ac_executable_extensions; do 13350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13351 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13353 break 2 13354 fi 13355 done 13356 done 13357 IFS=$as_save_IFS 13358 13359 ;; 13360 esac 13361 fi 13362 AWK=$ac_cv_path_AWK 13363 if test -n "$AWK"; then 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13365 $as_echo "$AWK" >&6; } 13366 else 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13368 $as_echo "no" >&6; } 13369 fi 13370 13371 13372 if test "x$AWK" = x; then 13373 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13374 fi 13375 else 13376 # Otherwise we believe it is a complete path. Use it as it is. 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13378 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13380 $as_echo_n "checking for AWK... " >&6; } 13381 if test ! -x "$tool_specified"; then 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13383 $as_echo "not found" >&6; } 13384 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13385 fi 13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13387 $as_echo "$tool_specified" >&6; } 13388 fi 13389 fi 13390 fi 13391 13392 fi 13393 13394 13395 if test "x$AWK" = x; then 13396 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13397 fi 13398 13399 13400 13401 13402 # Publish this variable in the help. 13403 13404 13405 if [ -z "${GREP+x}" ]; then 13406 # The variable is not set by user, try to locate tool using the code snippet 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13408 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13409 if ${ac_cv_path_GREP+:} false; then : 13410 $as_echo_n "(cached) " >&6 13411 else 13412 if test -z "$GREP"; then 13413 ac_path_GREP_found=false 13414 # Loop through the user's path and test for each of PROGNAME-LIST 13415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13416 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13417 do 13418 IFS=$as_save_IFS 13419 test -z "$as_dir" && as_dir=. 13420 for ac_prog in grep ggrep; do 13421 for ac_exec_ext in '' $ac_executable_extensions; do 13422 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13423 as_fn_executable_p "$ac_path_GREP" || continue 13424 # Check for GNU ac_path_GREP and select it if it is found. 13425 # Check for GNU $ac_path_GREP 13426 case `"$ac_path_GREP" --version 2>&1` in 13427 *GNU*) 13428 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13429 *) 13430 ac_count=0 13431 $as_echo_n 0123456789 >"conftest.in" 13432 while : 13433 do 13434 cat "conftest.in" "conftest.in" >"conftest.tmp" 13435 mv "conftest.tmp" "conftest.in" 13436 cp "conftest.in" "conftest.nl" 13437 $as_echo 'GREP' >> "conftest.nl" 13438 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13439 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13440 as_fn_arith $ac_count + 1 && ac_count=$as_val 13441 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13442 # Best one so far, save it but keep looking for a better one 13443 ac_cv_path_GREP="$ac_path_GREP" 13444 ac_path_GREP_max=$ac_count 13445 fi 13446 # 10*(2^10) chars as input seems more than enough 13447 test $ac_count -gt 10 && break 13448 done 13449 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13450 esac 13451 13452 $ac_path_GREP_found && break 3 13453 done 13454 done 13455 done 13456 IFS=$as_save_IFS 13457 if test -z "$ac_cv_path_GREP"; then 13458 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13459 fi 13460 else 13461 ac_cv_path_GREP=$GREP 13462 fi 13463 13464 fi 13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13466 $as_echo "$ac_cv_path_GREP" >&6; } 13467 GREP="$ac_cv_path_GREP" 13468 13469 13470 else 13471 # The variable is set, but is it from the command line or the environment? 13472 13473 # Try to remove the string !GREP! from our list. 13474 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13475 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13476 # If it failed, the variable was not from the command line. Ignore it, 13477 # but warn the user (except for BASH, which is always set by the calling BASH). 13478 if test "xGREP" != xBASH; then 13479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13480 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13481 fi 13482 # Try to locate tool using the code snippet 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13484 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13485 if ${ac_cv_path_GREP+:} false; then : 13486 $as_echo_n "(cached) " >&6 13487 else 13488 if test -z "$GREP"; then 13489 ac_path_GREP_found=false 13490 # Loop through the user's path and test for each of PROGNAME-LIST 13491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13493 do 13494 IFS=$as_save_IFS 13495 test -z "$as_dir" && as_dir=. 13496 for ac_prog in grep ggrep; do 13497 for ac_exec_ext in '' $ac_executable_extensions; do 13498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13499 as_fn_executable_p "$ac_path_GREP" || continue 13500 # Check for GNU ac_path_GREP and select it if it is found. 13501 # Check for GNU $ac_path_GREP 13502 case `"$ac_path_GREP" --version 2>&1` in 13503 *GNU*) 13504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13505 *) 13506 ac_count=0 13507 $as_echo_n 0123456789 >"conftest.in" 13508 while : 13509 do 13510 cat "conftest.in" "conftest.in" >"conftest.tmp" 13511 mv "conftest.tmp" "conftest.in" 13512 cp "conftest.in" "conftest.nl" 13513 $as_echo 'GREP' >> "conftest.nl" 13514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13516 as_fn_arith $ac_count + 1 && ac_count=$as_val 13517 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13518 # Best one so far, save it but keep looking for a better one 13519 ac_cv_path_GREP="$ac_path_GREP" 13520 ac_path_GREP_max=$ac_count 13521 fi 13522 # 10*(2^10) chars as input seems more than enough 13523 test $ac_count -gt 10 && break 13524 done 13525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13526 esac 13527 13528 $ac_path_GREP_found && break 3 13529 done 13530 done 13531 done 13532 IFS=$as_save_IFS 13533 if test -z "$ac_cv_path_GREP"; then 13534 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13535 fi 13536 else 13537 ac_cv_path_GREP=$GREP 13538 fi 13539 13540 fi 13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13542 $as_echo "$ac_cv_path_GREP" >&6; } 13543 GREP="$ac_cv_path_GREP" 13544 13545 13546 else 13547 # If it succeeded, then it was overridden by the user. We will use it 13548 # for the tool. 13549 13550 # First remove it from the list of overridden variables, so we can test 13551 # for unknown variables in the end. 13552 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13553 13554 # Check if we try to supply an empty value 13555 if test "x$GREP" = x; then 13556 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13557 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13559 $as_echo_n "checking for GREP... " >&6; } 13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13561 $as_echo "disabled" >&6; } 13562 else 13563 # Check if the provided tool contains a complete path. 13564 tool_specified="$GREP" 13565 tool_basename="${tool_specified##*/}" 13566 if test "x$tool_basename" = "x$tool_specified"; then 13567 # A command without a complete path is provided, search $PATH. 13568 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13569 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13570 # Extract the first word of "$tool_basename", so it can be a program name with args. 13571 set dummy $tool_basename; ac_word=$2 13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13573 $as_echo_n "checking for $ac_word... " >&6; } 13574 if ${ac_cv_path_GREP+:} false; then : 13575 $as_echo_n "(cached) " >&6 13576 else 13577 case $GREP in 13578 [\\/]* | ?:[\\/]*) 13579 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13580 ;; 13581 *) 13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13583 for as_dir in $PATH 13584 do 13585 IFS=$as_save_IFS 13586 test -z "$as_dir" && as_dir=. 13587 for ac_exec_ext in '' $ac_executable_extensions; do 13588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13589 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13591 break 2 13592 fi 13593 done 13594 done 13595 IFS=$as_save_IFS 13596 13597 ;; 13598 esac 13599 fi 13600 GREP=$ac_cv_path_GREP 13601 if test -n "$GREP"; then 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13603 $as_echo "$GREP" >&6; } 13604 else 13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13606 $as_echo "no" >&6; } 13607 fi 13608 13609 13610 if test "x$GREP" = x; then 13611 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13612 fi 13613 else 13614 # Otherwise we believe it is a complete path. Use it as it is. 13615 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13616 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13618 $as_echo_n "checking for GREP... " >&6; } 13619 if test ! -x "$tool_specified"; then 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13621 $as_echo "not found" >&6; } 13622 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13623 fi 13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13625 $as_echo "$tool_specified" >&6; } 13626 fi 13627 fi 13628 fi 13629 13630 fi 13631 13632 13633 if test "x$GREP" = x; then 13634 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13635 fi 13636 13637 13638 13639 13640 # Publish this variable in the help. 13641 13642 13643 if [ -z "${EGREP+x}" ]; then 13644 # The variable is not set by user, try to locate tool using the code snippet 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13646 $as_echo_n "checking for egrep... " >&6; } 13647 if ${ac_cv_path_EGREP+:} false; then : 13648 $as_echo_n "(cached) " >&6 13649 else 13650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13651 then ac_cv_path_EGREP="$GREP -E" 13652 else 13653 if test -z "$EGREP"; then 13654 ac_path_EGREP_found=false 13655 # Loop through the user's path and test for each of PROGNAME-LIST 13656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13658 do 13659 IFS=$as_save_IFS 13660 test -z "$as_dir" && as_dir=. 13661 for ac_prog in egrep; do 13662 for ac_exec_ext in '' $ac_executable_extensions; do 13663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13664 as_fn_executable_p "$ac_path_EGREP" || continue 13665 # Check for GNU ac_path_EGREP and select it if it is found. 13666 # Check for GNU $ac_path_EGREP 13667 case `"$ac_path_EGREP" --version 2>&1` in 13668 *GNU*) 13669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13670 *) 13671 ac_count=0 13672 $as_echo_n 0123456789 >"conftest.in" 13673 while : 13674 do 13675 cat "conftest.in" "conftest.in" >"conftest.tmp" 13676 mv "conftest.tmp" "conftest.in" 13677 cp "conftest.in" "conftest.nl" 13678 $as_echo 'EGREP' >> "conftest.nl" 13679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13681 as_fn_arith $ac_count + 1 && ac_count=$as_val 13682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13683 # Best one so far, save it but keep looking for a better one 13684 ac_cv_path_EGREP="$ac_path_EGREP" 13685 ac_path_EGREP_max=$ac_count 13686 fi 13687 # 10*(2^10) chars as input seems more than enough 13688 test $ac_count -gt 10 && break 13689 done 13690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13691 esac 13692 13693 $ac_path_EGREP_found && break 3 13694 done 13695 done 13696 done 13697 IFS=$as_save_IFS 13698 if test -z "$ac_cv_path_EGREP"; then 13699 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13700 fi 13701 else 13702 ac_cv_path_EGREP=$EGREP 13703 fi 13704 13705 fi 13706 fi 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13708 $as_echo "$ac_cv_path_EGREP" >&6; } 13709 EGREP="$ac_cv_path_EGREP" 13710 13711 13712 else 13713 # The variable is set, but is it from the command line or the environment? 13714 13715 # Try to remove the string !EGREP! from our list. 13716 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13717 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13718 # If it failed, the variable was not from the command line. Ignore it, 13719 # but warn the user (except for BASH, which is always set by the calling BASH). 13720 if test "xEGREP" != xBASH; then 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13722 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13723 fi 13724 # Try to locate tool using the code snippet 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13726 $as_echo_n "checking for egrep... " >&6; } 13727 if ${ac_cv_path_EGREP+:} false; then : 13728 $as_echo_n "(cached) " >&6 13729 else 13730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13731 then ac_cv_path_EGREP="$GREP -E" 13732 else 13733 if test -z "$EGREP"; then 13734 ac_path_EGREP_found=false 13735 # Loop through the user's path and test for each of PROGNAME-LIST 13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13738 do 13739 IFS=$as_save_IFS 13740 test -z "$as_dir" && as_dir=. 13741 for ac_prog in egrep; do 13742 for ac_exec_ext in '' $ac_executable_extensions; do 13743 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13744 as_fn_executable_p "$ac_path_EGREP" || continue 13745 # Check for GNU ac_path_EGREP and select it if it is found. 13746 # Check for GNU $ac_path_EGREP 13747 case `"$ac_path_EGREP" --version 2>&1` in 13748 *GNU*) 13749 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13750 *) 13751 ac_count=0 13752 $as_echo_n 0123456789 >"conftest.in" 13753 while : 13754 do 13755 cat "conftest.in" "conftest.in" >"conftest.tmp" 13756 mv "conftest.tmp" "conftest.in" 13757 cp "conftest.in" "conftest.nl" 13758 $as_echo 'EGREP' >> "conftest.nl" 13759 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13760 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13761 as_fn_arith $ac_count + 1 && ac_count=$as_val 13762 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13763 # Best one so far, save it but keep looking for a better one 13764 ac_cv_path_EGREP="$ac_path_EGREP" 13765 ac_path_EGREP_max=$ac_count 13766 fi 13767 # 10*(2^10) chars as input seems more than enough 13768 test $ac_count -gt 10 && break 13769 done 13770 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13771 esac 13772 13773 $ac_path_EGREP_found && break 3 13774 done 13775 done 13776 done 13777 IFS=$as_save_IFS 13778 if test -z "$ac_cv_path_EGREP"; then 13779 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13780 fi 13781 else 13782 ac_cv_path_EGREP=$EGREP 13783 fi 13784 13785 fi 13786 fi 13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13788 $as_echo "$ac_cv_path_EGREP" >&6; } 13789 EGREP="$ac_cv_path_EGREP" 13790 13791 13792 else 13793 # If it succeeded, then it was overridden by the user. We will use it 13794 # for the tool. 13795 13796 # First remove it from the list of overridden variables, so we can test 13797 # for unknown variables in the end. 13798 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13799 13800 # Check if we try to supply an empty value 13801 if test "x$EGREP" = x; then 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13803 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13805 $as_echo_n "checking for EGREP... " >&6; } 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13807 $as_echo "disabled" >&6; } 13808 else 13809 # Check if the provided tool contains a complete path. 13810 tool_specified="$EGREP" 13811 tool_basename="${tool_specified##*/}" 13812 if test "x$tool_basename" = "x$tool_specified"; then 13813 # A command without a complete path is provided, search $PATH. 13814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13815 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13816 # Extract the first word of "$tool_basename", so it can be a program name with args. 13817 set dummy $tool_basename; ac_word=$2 13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13819 $as_echo_n "checking for $ac_word... " >&6; } 13820 if ${ac_cv_path_EGREP+:} false; then : 13821 $as_echo_n "(cached) " >&6 13822 else 13823 case $EGREP in 13824 [\\/]* | ?:[\\/]*) 13825 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13826 ;; 13827 *) 13828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13829 for as_dir in $PATH 13830 do 13831 IFS=$as_save_IFS 13832 test -z "$as_dir" && as_dir=. 13833 for ac_exec_ext in '' $ac_executable_extensions; do 13834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13835 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13837 break 2 13838 fi 13839 done 13840 done 13841 IFS=$as_save_IFS 13842 13843 ;; 13844 esac 13845 fi 13846 EGREP=$ac_cv_path_EGREP 13847 if test -n "$EGREP"; then 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13849 $as_echo "$EGREP" >&6; } 13850 else 13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13852 $as_echo "no" >&6; } 13853 fi 13854 13855 13856 if test "x$EGREP" = x; then 13857 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13858 fi 13859 else 13860 # Otherwise we believe it is a complete path. Use it as it is. 13861 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13862 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13864 $as_echo_n "checking for EGREP... " >&6; } 13865 if test ! -x "$tool_specified"; then 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13867 $as_echo "not found" >&6; } 13868 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13869 fi 13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13871 $as_echo "$tool_specified" >&6; } 13872 fi 13873 fi 13874 fi 13875 13876 fi 13877 13878 13879 if test "x$EGREP" = x; then 13880 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13881 fi 13882 13883 13884 13885 13886 # Publish this variable in the help. 13887 13888 13889 if [ -z "${FGREP+x}" ]; then 13890 # The variable is not set by user, try to locate tool using the code snippet 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13892 $as_echo_n "checking for fgrep... " >&6; } 13893 if ${ac_cv_path_FGREP+:} false; then : 13894 $as_echo_n "(cached) " >&6 13895 else 13896 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13897 then ac_cv_path_FGREP="$GREP -F" 13898 else 13899 if test -z "$FGREP"; then 13900 ac_path_FGREP_found=false 13901 # Loop through the user's path and test for each of PROGNAME-LIST 13902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13904 do 13905 IFS=$as_save_IFS 13906 test -z "$as_dir" && as_dir=. 13907 for ac_prog in fgrep; do 13908 for ac_exec_ext in '' $ac_executable_extensions; do 13909 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13910 as_fn_executable_p "$ac_path_FGREP" || continue 13911 # Check for GNU ac_path_FGREP and select it if it is found. 13912 # Check for GNU $ac_path_FGREP 13913 case `"$ac_path_FGREP" --version 2>&1` in 13914 *GNU*) 13915 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13916 *) 13917 ac_count=0 13918 $as_echo_n 0123456789 >"conftest.in" 13919 while : 13920 do 13921 cat "conftest.in" "conftest.in" >"conftest.tmp" 13922 mv "conftest.tmp" "conftest.in" 13923 cp "conftest.in" "conftest.nl" 13924 $as_echo 'FGREP' >> "conftest.nl" 13925 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13927 as_fn_arith $ac_count + 1 && ac_count=$as_val 13928 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13929 # Best one so far, save it but keep looking for a better one 13930 ac_cv_path_FGREP="$ac_path_FGREP" 13931 ac_path_FGREP_max=$ac_count 13932 fi 13933 # 10*(2^10) chars as input seems more than enough 13934 test $ac_count -gt 10 && break 13935 done 13936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13937 esac 13938 13939 $ac_path_FGREP_found && break 3 13940 done 13941 done 13942 done 13943 IFS=$as_save_IFS 13944 if test -z "$ac_cv_path_FGREP"; then 13945 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13946 fi 13947 else 13948 ac_cv_path_FGREP=$FGREP 13949 fi 13950 13951 fi 13952 fi 13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13954 $as_echo "$ac_cv_path_FGREP" >&6; } 13955 FGREP="$ac_cv_path_FGREP" 13956 13957 13958 else 13959 # The variable is set, but is it from the command line or the environment? 13960 13961 # Try to remove the string !FGREP! from our list. 13962 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13963 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13964 # If it failed, the variable was not from the command line. Ignore it, 13965 # but warn the user (except for BASH, which is always set by the calling BASH). 13966 if test "xFGREP" != xBASH; then 13967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13968 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13969 fi 13970 # Try to locate tool using the code snippet 13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13972 $as_echo_n "checking for fgrep... " >&6; } 13973 if ${ac_cv_path_FGREP+:} false; then : 13974 $as_echo_n "(cached) " >&6 13975 else 13976 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13977 then ac_cv_path_FGREP="$GREP -F" 13978 else 13979 if test -z "$FGREP"; then 13980 ac_path_FGREP_found=false 13981 # Loop through the user's path and test for each of PROGNAME-LIST 13982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13984 do 13985 IFS=$as_save_IFS 13986 test -z "$as_dir" && as_dir=. 13987 for ac_prog in fgrep; do 13988 for ac_exec_ext in '' $ac_executable_extensions; do 13989 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13990 as_fn_executable_p "$ac_path_FGREP" || continue 13991 # Check for GNU ac_path_FGREP and select it if it is found. 13992 # Check for GNU $ac_path_FGREP 13993 case `"$ac_path_FGREP" --version 2>&1` in 13994 *GNU*) 13995 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13996 *) 13997 ac_count=0 13998 $as_echo_n 0123456789 >"conftest.in" 13999 while : 14000 do 14001 cat "conftest.in" "conftest.in" >"conftest.tmp" 14002 mv "conftest.tmp" "conftest.in" 14003 cp "conftest.in" "conftest.nl" 14004 $as_echo 'FGREP' >> "conftest.nl" 14005 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 14006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14007 as_fn_arith $ac_count + 1 && ac_count=$as_val 14008 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 14009 # Best one so far, save it but keep looking for a better one 14010 ac_cv_path_FGREP="$ac_path_FGREP" 14011 ac_path_FGREP_max=$ac_count 14012 fi 14013 # 10*(2^10) chars as input seems more than enough 14014 test $ac_count -gt 10 && break 14015 done 14016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14017 esac 14018 14019 $ac_path_FGREP_found && break 3 14020 done 14021 done 14022 done 14023 IFS=$as_save_IFS 14024 if test -z "$ac_cv_path_FGREP"; then 14025 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14026 fi 14027 else 14028 ac_cv_path_FGREP=$FGREP 14029 fi 14030 14031 fi 14032 fi 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14034 $as_echo "$ac_cv_path_FGREP" >&6; } 14035 FGREP="$ac_cv_path_FGREP" 14036 14037 14038 else 14039 # If it succeeded, then it was overridden by the user. We will use it 14040 # for the tool. 14041 14042 # First remove it from the list of overridden variables, so we can test 14043 # for unknown variables in the end. 14044 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14045 14046 # Check if we try to supply an empty value 14047 if test "x$FGREP" = x; then 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 14049 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14051 $as_echo_n "checking for FGREP... " >&6; } 14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14053 $as_echo "disabled" >&6; } 14054 else 14055 # Check if the provided tool contains a complete path. 14056 tool_specified="$FGREP" 14057 tool_basename="${tool_specified##*/}" 14058 if test "x$tool_basename" = "x$tool_specified"; then 14059 # A command without a complete path is provided, search $PATH. 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 14061 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 14062 # Extract the first word of "$tool_basename", so it can be a program name with args. 14063 set dummy $tool_basename; ac_word=$2 14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14065 $as_echo_n "checking for $ac_word... " >&6; } 14066 if ${ac_cv_path_FGREP+:} false; then : 14067 $as_echo_n "(cached) " >&6 14068 else 14069 case $FGREP in 14070 [\\/]* | ?:[\\/]*) 14071 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 14072 ;; 14073 *) 14074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14075 for as_dir in $PATH 14076 do 14077 IFS=$as_save_IFS 14078 test -z "$as_dir" && as_dir=. 14079 for ac_exec_ext in '' $ac_executable_extensions; do 14080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14081 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14083 break 2 14084 fi 14085 done 14086 done 14087 IFS=$as_save_IFS 14088 14089 ;; 14090 esac 14091 fi 14092 FGREP=$ac_cv_path_FGREP 14093 if test -n "$FGREP"; then 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14095 $as_echo "$FGREP" >&6; } 14096 else 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14098 $as_echo "no" >&6; } 14099 fi 14100 14101 14102 if test "x$FGREP" = x; then 14103 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14104 fi 14105 else 14106 # Otherwise we believe it is a complete path. Use it as it is. 14107 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14108 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14110 $as_echo_n "checking for FGREP... " >&6; } 14111 if test ! -x "$tool_specified"; then 14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14113 $as_echo "not found" >&6; } 14114 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14115 fi 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14117 $as_echo "$tool_specified" >&6; } 14118 fi 14119 fi 14120 fi 14121 14122 fi 14123 14124 14125 if test "x$FGREP" = x; then 14126 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14127 fi 14128 14129 14130 14131 14132 # Publish this variable in the help. 14133 14134 14135 if [ -z "${SED+x}" ]; then 14136 # The variable is not set by user, try to locate tool using the code snippet 14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14138 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14139 if ${ac_cv_path_SED+:} false; then : 14140 $as_echo_n "(cached) " >&6 14141 else 14142 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14143 for ac_i in 1 2 3 4 5 6 7; do 14144 ac_script="$ac_script$as_nl$ac_script" 14145 done 14146 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14147 { ac_script=; unset ac_script;} 14148 if test -z "$SED"; then 14149 ac_path_SED_found=false 14150 # Loop through the user's path and test for each of PROGNAME-LIST 14151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14152 for as_dir in $PATH 14153 do 14154 IFS=$as_save_IFS 14155 test -z "$as_dir" && as_dir=. 14156 for ac_prog in sed gsed; do 14157 for ac_exec_ext in '' $ac_executable_extensions; do 14158 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14159 as_fn_executable_p "$ac_path_SED" || continue 14160 # Check for GNU ac_path_SED and select it if it is found. 14161 # Check for GNU $ac_path_SED 14162 case `"$ac_path_SED" --version 2>&1` in 14163 *GNU*) 14164 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14165 *) 14166 ac_count=0 14167 $as_echo_n 0123456789 >"conftest.in" 14168 while : 14169 do 14170 cat "conftest.in" "conftest.in" >"conftest.tmp" 14171 mv "conftest.tmp" "conftest.in" 14172 cp "conftest.in" "conftest.nl" 14173 $as_echo '' >> "conftest.nl" 14174 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14176 as_fn_arith $ac_count + 1 && ac_count=$as_val 14177 if test $ac_count -gt ${ac_path_SED_max-0}; then 14178 # Best one so far, save it but keep looking for a better one 14179 ac_cv_path_SED="$ac_path_SED" 14180 ac_path_SED_max=$ac_count 14181 fi 14182 # 10*(2^10) chars as input seems more than enough 14183 test $ac_count -gt 10 && break 14184 done 14185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14186 esac 14187 14188 $ac_path_SED_found && break 3 14189 done 14190 done 14191 done 14192 IFS=$as_save_IFS 14193 if test -z "$ac_cv_path_SED"; then 14194 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14195 fi 14196 else 14197 ac_cv_path_SED=$SED 14198 fi 14199 14200 fi 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14202 $as_echo "$ac_cv_path_SED" >&6; } 14203 SED="$ac_cv_path_SED" 14204 rm -f conftest.sed 14205 14206 else 14207 # The variable is set, but is it from the command line or the environment? 14208 14209 # Try to remove the string !SED! from our list. 14210 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14211 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14212 # If it failed, the variable was not from the command line. Ignore it, 14213 # but warn the user (except for BASH, which is always set by the calling BASH). 14214 if test "xSED" != xBASH; then 14215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14216 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14217 fi 14218 # Try to locate tool using the code snippet 14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14220 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14221 if ${ac_cv_path_SED+:} false; then : 14222 $as_echo_n "(cached) " >&6 14223 else 14224 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14225 for ac_i in 1 2 3 4 5 6 7; do 14226 ac_script="$ac_script$as_nl$ac_script" 14227 done 14228 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14229 { ac_script=; unset ac_script;} 14230 if test -z "$SED"; then 14231 ac_path_SED_found=false 14232 # Loop through the user's path and test for each of PROGNAME-LIST 14233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14234 for as_dir in $PATH 14235 do 14236 IFS=$as_save_IFS 14237 test -z "$as_dir" && as_dir=. 14238 for ac_prog in sed gsed; do 14239 for ac_exec_ext in '' $ac_executable_extensions; do 14240 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14241 as_fn_executable_p "$ac_path_SED" || continue 14242 # Check for GNU ac_path_SED and select it if it is found. 14243 # Check for GNU $ac_path_SED 14244 case `"$ac_path_SED" --version 2>&1` in 14245 *GNU*) 14246 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14247 *) 14248 ac_count=0 14249 $as_echo_n 0123456789 >"conftest.in" 14250 while : 14251 do 14252 cat "conftest.in" "conftest.in" >"conftest.tmp" 14253 mv "conftest.tmp" "conftest.in" 14254 cp "conftest.in" "conftest.nl" 14255 $as_echo '' >> "conftest.nl" 14256 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14257 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14258 as_fn_arith $ac_count + 1 && ac_count=$as_val 14259 if test $ac_count -gt ${ac_path_SED_max-0}; then 14260 # Best one so far, save it but keep looking for a better one 14261 ac_cv_path_SED="$ac_path_SED" 14262 ac_path_SED_max=$ac_count 14263 fi 14264 # 10*(2^10) chars as input seems more than enough 14265 test $ac_count -gt 10 && break 14266 done 14267 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14268 esac 14269 14270 $ac_path_SED_found && break 3 14271 done 14272 done 14273 done 14274 IFS=$as_save_IFS 14275 if test -z "$ac_cv_path_SED"; then 14276 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14277 fi 14278 else 14279 ac_cv_path_SED=$SED 14280 fi 14281 14282 fi 14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14284 $as_echo "$ac_cv_path_SED" >&6; } 14285 SED="$ac_cv_path_SED" 14286 rm -f conftest.sed 14287 14288 else 14289 # If it succeeded, then it was overridden by the user. We will use it 14290 # for the tool. 14291 14292 # First remove it from the list of overridden variables, so we can test 14293 # for unknown variables in the end. 14294 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14295 14296 # Check if we try to supply an empty value 14297 if test "x$SED" = x; then 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14299 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14301 $as_echo_n "checking for SED... " >&6; } 14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14303 $as_echo "disabled" >&6; } 14304 else 14305 # Check if the provided tool contains a complete path. 14306 tool_specified="$SED" 14307 tool_basename="${tool_specified##*/}" 14308 if test "x$tool_basename" = "x$tool_specified"; then 14309 # A command without a complete path is provided, search $PATH. 14310 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14311 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14312 # Extract the first word of "$tool_basename", so it can be a program name with args. 14313 set dummy $tool_basename; ac_word=$2 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14315 $as_echo_n "checking for $ac_word... " >&6; } 14316 if ${ac_cv_path_SED+:} false; then : 14317 $as_echo_n "(cached) " >&6 14318 else 14319 case $SED in 14320 [\\/]* | ?:[\\/]*) 14321 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14322 ;; 14323 *) 14324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14325 for as_dir in $PATH 14326 do 14327 IFS=$as_save_IFS 14328 test -z "$as_dir" && as_dir=. 14329 for ac_exec_ext in '' $ac_executable_extensions; do 14330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14331 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14333 break 2 14334 fi 14335 done 14336 done 14337 IFS=$as_save_IFS 14338 14339 ;; 14340 esac 14341 fi 14342 SED=$ac_cv_path_SED 14343 if test -n "$SED"; then 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14345 $as_echo "$SED" >&6; } 14346 else 14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14348 $as_echo "no" >&6; } 14349 fi 14350 14351 14352 if test "x$SED" = x; then 14353 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14354 fi 14355 else 14356 # Otherwise we believe it is a complete path. Use it as it is. 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14358 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14360 $as_echo_n "checking for SED... " >&6; } 14361 if test ! -x "$tool_specified"; then 14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14363 $as_echo "not found" >&6; } 14364 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14365 fi 14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14367 $as_echo "$tool_specified" >&6; } 14368 fi 14369 fi 14370 fi 14371 14372 fi 14373 14374 14375 if test "x$SED" = x; then 14376 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14377 fi 14378 14379 14380 14381 # Always force rm. 14382 RM="$RM -f" 14383 14384 # pwd behaves differently on various platforms and some don't support the -L flag. 14385 # Always use the bash builtin pwd to get uniform behavior. 14386 THEPWDCMD=pwd 14387 14388 # These are not required on all platforms 14389 14390 14391 # Publish this variable in the help. 14392 14393 14394 if [ -z "${CYGPATH+x}" ]; then 14395 # The variable is not set by user, try to locate tool using the code snippet 14396 for ac_prog in cygpath 14397 do 14398 # Extract the first word of "$ac_prog", so it can be a program name with args. 14399 set dummy $ac_prog; ac_word=$2 14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14401 $as_echo_n "checking for $ac_word... " >&6; } 14402 if ${ac_cv_path_CYGPATH+:} false; then : 14403 $as_echo_n "(cached) " >&6 14404 else 14405 case $CYGPATH in 14406 [\\/]* | ?:[\\/]*) 14407 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14408 ;; 14409 *) 14410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14411 for as_dir in $PATH 14412 do 14413 IFS=$as_save_IFS 14414 test -z "$as_dir" && as_dir=. 14415 for ac_exec_ext in '' $ac_executable_extensions; do 14416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14417 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14419 break 2 14420 fi 14421 done 14422 done 14423 IFS=$as_save_IFS 14424 14425 ;; 14426 esac 14427 fi 14428 CYGPATH=$ac_cv_path_CYGPATH 14429 if test -n "$CYGPATH"; then 14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14431 $as_echo "$CYGPATH" >&6; } 14432 else 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14434 $as_echo "no" >&6; } 14435 fi 14436 14437 14438 test -n "$CYGPATH" && break 14439 done 14440 14441 else 14442 # The variable is set, but is it from the command line or the environment? 14443 14444 # Try to remove the string !CYGPATH! from our list. 14445 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14446 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14447 # If it failed, the variable was not from the command line. Ignore it, 14448 # but warn the user (except for BASH, which is always set by the calling BASH). 14449 if test "xCYGPATH" != xBASH; then 14450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14451 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14452 fi 14453 # Try to locate tool using the code snippet 14454 for ac_prog in cygpath 14455 do 14456 # Extract the first word of "$ac_prog", so it can be a program name with args. 14457 set dummy $ac_prog; ac_word=$2 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14459 $as_echo_n "checking for $ac_word... " >&6; } 14460 if ${ac_cv_path_CYGPATH+:} false; then : 14461 $as_echo_n "(cached) " >&6 14462 else 14463 case $CYGPATH in 14464 [\\/]* | ?:[\\/]*) 14465 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14466 ;; 14467 *) 14468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14469 for as_dir in $PATH 14470 do 14471 IFS=$as_save_IFS 14472 test -z "$as_dir" && as_dir=. 14473 for ac_exec_ext in '' $ac_executable_extensions; do 14474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14475 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14477 break 2 14478 fi 14479 done 14480 done 14481 IFS=$as_save_IFS 14482 14483 ;; 14484 esac 14485 fi 14486 CYGPATH=$ac_cv_path_CYGPATH 14487 if test -n "$CYGPATH"; then 14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14489 $as_echo "$CYGPATH" >&6; } 14490 else 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14492 $as_echo "no" >&6; } 14493 fi 14494 14495 14496 test -n "$CYGPATH" && break 14497 done 14498 14499 else 14500 # If it succeeded, then it was overridden by the user. We will use it 14501 # for the tool. 14502 14503 # First remove it from the list of overridden variables, so we can test 14504 # for unknown variables in the end. 14505 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14506 14507 # Check if we try to supply an empty value 14508 if test "x$CYGPATH" = x; then 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14510 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14512 $as_echo_n "checking for CYGPATH... " >&6; } 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14514 $as_echo "disabled" >&6; } 14515 else 14516 # Check if the provided tool contains a complete path. 14517 tool_specified="$CYGPATH" 14518 tool_basename="${tool_specified##*/}" 14519 if test "x$tool_basename" = "x$tool_specified"; then 14520 # A command without a complete path is provided, search $PATH. 14521 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14522 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14523 # Extract the first word of "$tool_basename", so it can be a program name with args. 14524 set dummy $tool_basename; ac_word=$2 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14526 $as_echo_n "checking for $ac_word... " >&6; } 14527 if ${ac_cv_path_CYGPATH+:} false; then : 14528 $as_echo_n "(cached) " >&6 14529 else 14530 case $CYGPATH in 14531 [\\/]* | ?:[\\/]*) 14532 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14533 ;; 14534 *) 14535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14536 for as_dir in $PATH 14537 do 14538 IFS=$as_save_IFS 14539 test -z "$as_dir" && as_dir=. 14540 for ac_exec_ext in '' $ac_executable_extensions; do 14541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14542 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14544 break 2 14545 fi 14546 done 14547 done 14548 IFS=$as_save_IFS 14549 14550 ;; 14551 esac 14552 fi 14553 CYGPATH=$ac_cv_path_CYGPATH 14554 if test -n "$CYGPATH"; then 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14556 $as_echo "$CYGPATH" >&6; } 14557 else 14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14559 $as_echo "no" >&6; } 14560 fi 14561 14562 14563 if test "x$CYGPATH" = x; then 14564 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14565 fi 14566 else 14567 # Otherwise we believe it is a complete path. Use it as it is. 14568 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14569 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14571 $as_echo_n "checking for CYGPATH... " >&6; } 14572 if test ! -x "$tool_specified"; then 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14574 $as_echo "not found" >&6; } 14575 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14576 fi 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14578 $as_echo "$tool_specified" >&6; } 14579 fi 14580 fi 14581 fi 14582 14583 fi 14584 14585 14586 14587 14588 # Publish this variable in the help. 14589 14590 14591 if [ -z "${READLINK+x}" ]; then 14592 # The variable is not set by user, try to locate tool using the code snippet 14593 for ac_prog in greadlink readlink 14594 do 14595 # Extract the first word of "$ac_prog", so it can be a program name with args. 14596 set dummy $ac_prog; ac_word=$2 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14598 $as_echo_n "checking for $ac_word... " >&6; } 14599 if ${ac_cv_path_READLINK+:} false; then : 14600 $as_echo_n "(cached) " >&6 14601 else 14602 case $READLINK in 14603 [\\/]* | ?:[\\/]*) 14604 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14605 ;; 14606 *) 14607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14608 for as_dir in $PATH 14609 do 14610 IFS=$as_save_IFS 14611 test -z "$as_dir" && as_dir=. 14612 for ac_exec_ext in '' $ac_executable_extensions; do 14613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14614 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14616 break 2 14617 fi 14618 done 14619 done 14620 IFS=$as_save_IFS 14621 14622 ;; 14623 esac 14624 fi 14625 READLINK=$ac_cv_path_READLINK 14626 if test -n "$READLINK"; then 14627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14628 $as_echo "$READLINK" >&6; } 14629 else 14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14631 $as_echo "no" >&6; } 14632 fi 14633 14634 14635 test -n "$READLINK" && break 14636 done 14637 14638 else 14639 # The variable is set, but is it from the command line or the environment? 14640 14641 # Try to remove the string !READLINK! from our list. 14642 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14643 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14644 # If it failed, the variable was not from the command line. Ignore it, 14645 # but warn the user (except for BASH, which is always set by the calling BASH). 14646 if test "xREADLINK" != xBASH; then 14647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14648 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14649 fi 14650 # Try to locate tool using the code snippet 14651 for ac_prog in greadlink readlink 14652 do 14653 # Extract the first word of "$ac_prog", so it can be a program name with args. 14654 set dummy $ac_prog; ac_word=$2 14655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14656 $as_echo_n "checking for $ac_word... " >&6; } 14657 if ${ac_cv_path_READLINK+:} false; then : 14658 $as_echo_n "(cached) " >&6 14659 else 14660 case $READLINK in 14661 [\\/]* | ?:[\\/]*) 14662 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14663 ;; 14664 *) 14665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14666 for as_dir in $PATH 14667 do 14668 IFS=$as_save_IFS 14669 test -z "$as_dir" && as_dir=. 14670 for ac_exec_ext in '' $ac_executable_extensions; do 14671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14672 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14674 break 2 14675 fi 14676 done 14677 done 14678 IFS=$as_save_IFS 14679 14680 ;; 14681 esac 14682 fi 14683 READLINK=$ac_cv_path_READLINK 14684 if test -n "$READLINK"; then 14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14686 $as_echo "$READLINK" >&6; } 14687 else 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14689 $as_echo "no" >&6; } 14690 fi 14691 14692 14693 test -n "$READLINK" && break 14694 done 14695 14696 else 14697 # If it succeeded, then it was overridden by the user. We will use it 14698 # for the tool. 14699 14700 # First remove it from the list of overridden variables, so we can test 14701 # for unknown variables in the end. 14702 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14703 14704 # Check if we try to supply an empty value 14705 if test "x$READLINK" = x; then 14706 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14707 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14709 $as_echo_n "checking for READLINK... " >&6; } 14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14711 $as_echo "disabled" >&6; } 14712 else 14713 # Check if the provided tool contains a complete path. 14714 tool_specified="$READLINK" 14715 tool_basename="${tool_specified##*/}" 14716 if test "x$tool_basename" = "x$tool_specified"; then 14717 # A command without a complete path is provided, search $PATH. 14718 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14719 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14720 # Extract the first word of "$tool_basename", so it can be a program name with args. 14721 set dummy $tool_basename; ac_word=$2 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14723 $as_echo_n "checking for $ac_word... " >&6; } 14724 if ${ac_cv_path_READLINK+:} false; then : 14725 $as_echo_n "(cached) " >&6 14726 else 14727 case $READLINK in 14728 [\\/]* | ?:[\\/]*) 14729 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14730 ;; 14731 *) 14732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14733 for as_dir in $PATH 14734 do 14735 IFS=$as_save_IFS 14736 test -z "$as_dir" && as_dir=. 14737 for ac_exec_ext in '' $ac_executable_extensions; do 14738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14739 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14741 break 2 14742 fi 14743 done 14744 done 14745 IFS=$as_save_IFS 14746 14747 ;; 14748 esac 14749 fi 14750 READLINK=$ac_cv_path_READLINK 14751 if test -n "$READLINK"; then 14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14753 $as_echo "$READLINK" >&6; } 14754 else 14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14756 $as_echo "no" >&6; } 14757 fi 14758 14759 14760 if test "x$READLINK" = x; then 14761 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14762 fi 14763 else 14764 # Otherwise we believe it is a complete path. Use it as it is. 14765 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14766 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14768 $as_echo_n "checking for READLINK... " >&6; } 14769 if test ! -x "$tool_specified"; then 14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14771 $as_echo "not found" >&6; } 14772 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14773 fi 14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14775 $as_echo "$tool_specified" >&6; } 14776 fi 14777 fi 14778 fi 14779 14780 fi 14781 14782 14783 14784 14785 # Publish this variable in the help. 14786 14787 14788 if [ -z "${DF+x}" ]; then 14789 # The variable is not set by user, try to locate tool using the code snippet 14790 for ac_prog in df 14791 do 14792 # Extract the first word of "$ac_prog", so it can be a program name with args. 14793 set dummy $ac_prog; ac_word=$2 14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14795 $as_echo_n "checking for $ac_word... " >&6; } 14796 if ${ac_cv_path_DF+:} false; then : 14797 $as_echo_n "(cached) " >&6 14798 else 14799 case $DF in 14800 [\\/]* | ?:[\\/]*) 14801 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14802 ;; 14803 *) 14804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14805 for as_dir in $PATH 14806 do 14807 IFS=$as_save_IFS 14808 test -z "$as_dir" && as_dir=. 14809 for ac_exec_ext in '' $ac_executable_extensions; do 14810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14811 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14813 break 2 14814 fi 14815 done 14816 done 14817 IFS=$as_save_IFS 14818 14819 ;; 14820 esac 14821 fi 14822 DF=$ac_cv_path_DF 14823 if test -n "$DF"; then 14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14825 $as_echo "$DF" >&6; } 14826 else 14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14828 $as_echo "no" >&6; } 14829 fi 14830 14831 14832 test -n "$DF" && break 14833 done 14834 14835 else 14836 # The variable is set, but is it from the command line or the environment? 14837 14838 # Try to remove the string !DF! from our list. 14839 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14840 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14841 # If it failed, the variable was not from the command line. Ignore it, 14842 # but warn the user (except for BASH, which is always set by the calling BASH). 14843 if test "xDF" != xBASH; then 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14845 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14846 fi 14847 # Try to locate tool using the code snippet 14848 for ac_prog in df 14849 do 14850 # Extract the first word of "$ac_prog", so it can be a program name with args. 14851 set dummy $ac_prog; ac_word=$2 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14853 $as_echo_n "checking for $ac_word... " >&6; } 14854 if ${ac_cv_path_DF+:} false; then : 14855 $as_echo_n "(cached) " >&6 14856 else 14857 case $DF in 14858 [\\/]* | ?:[\\/]*) 14859 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14860 ;; 14861 *) 14862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14863 for as_dir in $PATH 14864 do 14865 IFS=$as_save_IFS 14866 test -z "$as_dir" && as_dir=. 14867 for ac_exec_ext in '' $ac_executable_extensions; do 14868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14869 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14871 break 2 14872 fi 14873 done 14874 done 14875 IFS=$as_save_IFS 14876 14877 ;; 14878 esac 14879 fi 14880 DF=$ac_cv_path_DF 14881 if test -n "$DF"; then 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14883 $as_echo "$DF" >&6; } 14884 else 14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14886 $as_echo "no" >&6; } 14887 fi 14888 14889 14890 test -n "$DF" && break 14891 done 14892 14893 else 14894 # If it succeeded, then it was overridden by the user. We will use it 14895 # for the tool. 14896 14897 # First remove it from the list of overridden variables, so we can test 14898 # for unknown variables in the end. 14899 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14900 14901 # Check if we try to supply an empty value 14902 if test "x$DF" = x; then 14903 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14904 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14906 $as_echo_n "checking for DF... " >&6; } 14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14908 $as_echo "disabled" >&6; } 14909 else 14910 # Check if the provided tool contains a complete path. 14911 tool_specified="$DF" 14912 tool_basename="${tool_specified##*/}" 14913 if test "x$tool_basename" = "x$tool_specified"; then 14914 # A command without a complete path is provided, search $PATH. 14915 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14916 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14917 # Extract the first word of "$tool_basename", so it can be a program name with args. 14918 set dummy $tool_basename; ac_word=$2 14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14920 $as_echo_n "checking for $ac_word... " >&6; } 14921 if ${ac_cv_path_DF+:} false; then : 14922 $as_echo_n "(cached) " >&6 14923 else 14924 case $DF in 14925 [\\/]* | ?:[\\/]*) 14926 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14927 ;; 14928 *) 14929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14930 for as_dir in $PATH 14931 do 14932 IFS=$as_save_IFS 14933 test -z "$as_dir" && as_dir=. 14934 for ac_exec_ext in '' $ac_executable_extensions; do 14935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14936 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14938 break 2 14939 fi 14940 done 14941 done 14942 IFS=$as_save_IFS 14943 14944 ;; 14945 esac 14946 fi 14947 DF=$ac_cv_path_DF 14948 if test -n "$DF"; then 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14950 $as_echo "$DF" >&6; } 14951 else 14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14953 $as_echo "no" >&6; } 14954 fi 14955 14956 14957 if test "x$DF" = x; then 14958 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14959 fi 14960 else 14961 # Otherwise we believe it is a complete path. Use it as it is. 14962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14963 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14965 $as_echo_n "checking for DF... " >&6; } 14966 if test ! -x "$tool_specified"; then 14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14968 $as_echo "not found" >&6; } 14969 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14970 fi 14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14972 $as_echo "$tool_specified" >&6; } 14973 fi 14974 fi 14975 fi 14976 14977 fi 14978 14979 14980 14981 14982 # Publish this variable in the help. 14983 14984 14985 if [ -z "${CPIO+x}" ]; then 14986 # The variable is not set by user, try to locate tool using the code snippet 14987 for ac_prog in cpio bsdcpio 14988 do 14989 # Extract the first word of "$ac_prog", so it can be a program name with args. 14990 set dummy $ac_prog; ac_word=$2 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14992 $as_echo_n "checking for $ac_word... " >&6; } 14993 if ${ac_cv_path_CPIO+:} false; then : 14994 $as_echo_n "(cached) " >&6 14995 else 14996 case $CPIO in 14997 [\\/]* | ?:[\\/]*) 14998 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14999 ;; 15000 *) 15001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15002 for as_dir in $PATH 15003 do 15004 IFS=$as_save_IFS 15005 test -z "$as_dir" && as_dir=. 15006 for ac_exec_ext in '' $ac_executable_extensions; do 15007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15008 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15010 break 2 15011 fi 15012 done 15013 done 15014 IFS=$as_save_IFS 15015 15016 ;; 15017 esac 15018 fi 15019 CPIO=$ac_cv_path_CPIO 15020 if test -n "$CPIO"; then 15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15022 $as_echo "$CPIO" >&6; } 15023 else 15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15025 $as_echo "no" >&6; } 15026 fi 15027 15028 15029 test -n "$CPIO" && break 15030 done 15031 15032 else 15033 # The variable is set, but is it from the command line or the environment? 15034 15035 # Try to remove the string !CPIO! from our list. 15036 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 15037 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15038 # If it failed, the variable was not from the command line. Ignore it, 15039 # but warn the user (except for BASH, which is always set by the calling BASH). 15040 if test "xCPIO" != xBASH; then 15041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 15042 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 15043 fi 15044 # Try to locate tool using the code snippet 15045 for ac_prog in cpio bsdcpio 15046 do 15047 # Extract the first word of "$ac_prog", so it can be a program name with args. 15048 set dummy $ac_prog; ac_word=$2 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15050 $as_echo_n "checking for $ac_word... " >&6; } 15051 if ${ac_cv_path_CPIO+:} false; then : 15052 $as_echo_n "(cached) " >&6 15053 else 15054 case $CPIO in 15055 [\\/]* | ?:[\\/]*) 15056 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15057 ;; 15058 *) 15059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15060 for as_dir in $PATH 15061 do 15062 IFS=$as_save_IFS 15063 test -z "$as_dir" && as_dir=. 15064 for ac_exec_ext in '' $ac_executable_extensions; do 15065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15066 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15068 break 2 15069 fi 15070 done 15071 done 15072 IFS=$as_save_IFS 15073 15074 ;; 15075 esac 15076 fi 15077 CPIO=$ac_cv_path_CPIO 15078 if test -n "$CPIO"; then 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15080 $as_echo "$CPIO" >&6; } 15081 else 15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15083 $as_echo "no" >&6; } 15084 fi 15085 15086 15087 test -n "$CPIO" && break 15088 done 15089 15090 else 15091 # If it succeeded, then it was overridden by the user. We will use it 15092 # for the tool. 15093 15094 # First remove it from the list of overridden variables, so we can test 15095 # for unknown variables in the end. 15096 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15097 15098 # Check if we try to supply an empty value 15099 if test "x$CPIO" = x; then 15100 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15101 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15103 $as_echo_n "checking for CPIO... " >&6; } 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15105 $as_echo "disabled" >&6; } 15106 else 15107 # Check if the provided tool contains a complete path. 15108 tool_specified="$CPIO" 15109 tool_basename="${tool_specified##*/}" 15110 if test "x$tool_basename" = "x$tool_specified"; then 15111 # A command without a complete path is provided, search $PATH. 15112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15113 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15114 # Extract the first word of "$tool_basename", so it can be a program name with args. 15115 set dummy $tool_basename; ac_word=$2 15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15117 $as_echo_n "checking for $ac_word... " >&6; } 15118 if ${ac_cv_path_CPIO+:} false; then : 15119 $as_echo_n "(cached) " >&6 15120 else 15121 case $CPIO in 15122 [\\/]* | ?:[\\/]*) 15123 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15124 ;; 15125 *) 15126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15127 for as_dir in $PATH 15128 do 15129 IFS=$as_save_IFS 15130 test -z "$as_dir" && as_dir=. 15131 for ac_exec_ext in '' $ac_executable_extensions; do 15132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15133 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15135 break 2 15136 fi 15137 done 15138 done 15139 IFS=$as_save_IFS 15140 15141 ;; 15142 esac 15143 fi 15144 CPIO=$ac_cv_path_CPIO 15145 if test -n "$CPIO"; then 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15147 $as_echo "$CPIO" >&6; } 15148 else 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15150 $as_echo "no" >&6; } 15151 fi 15152 15153 15154 if test "x$CPIO" = x; then 15155 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15156 fi 15157 else 15158 # Otherwise we believe it is a complete path. Use it as it is. 15159 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15160 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15162 $as_echo_n "checking for CPIO... " >&6; } 15163 if test ! -x "$tool_specified"; then 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15165 $as_echo "not found" >&6; } 15166 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15167 fi 15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15169 $as_echo "$tool_specified" >&6; } 15170 fi 15171 fi 15172 fi 15173 15174 fi 15175 15176 15177 15178 15179 # Publish this variable in the help. 15180 15181 15182 if [ -z "${NICE+x}" ]; then 15183 # The variable is not set by user, try to locate tool using the code snippet 15184 for ac_prog in nice 15185 do 15186 # Extract the first word of "$ac_prog", so it can be a program name with args. 15187 set dummy $ac_prog; ac_word=$2 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15189 $as_echo_n "checking for $ac_word... " >&6; } 15190 if ${ac_cv_path_NICE+:} false; then : 15191 $as_echo_n "(cached) " >&6 15192 else 15193 case $NICE in 15194 [\\/]* | ?:[\\/]*) 15195 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15196 ;; 15197 *) 15198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15199 for as_dir in $PATH 15200 do 15201 IFS=$as_save_IFS 15202 test -z "$as_dir" && as_dir=. 15203 for ac_exec_ext in '' $ac_executable_extensions; do 15204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15205 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15207 break 2 15208 fi 15209 done 15210 done 15211 IFS=$as_save_IFS 15212 15213 ;; 15214 esac 15215 fi 15216 NICE=$ac_cv_path_NICE 15217 if test -n "$NICE"; then 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15219 $as_echo "$NICE" >&6; } 15220 else 15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15222 $as_echo "no" >&6; } 15223 fi 15224 15225 15226 test -n "$NICE" && break 15227 done 15228 15229 else 15230 # The variable is set, but is it from the command line or the environment? 15231 15232 # Try to remove the string !NICE! from our list. 15233 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15234 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15235 # If it failed, the variable was not from the command line. Ignore it, 15236 # but warn the user (except for BASH, which is always set by the calling BASH). 15237 if test "xNICE" != xBASH; then 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15239 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15240 fi 15241 # Try to locate tool using the code snippet 15242 for ac_prog in nice 15243 do 15244 # Extract the first word of "$ac_prog", so it can be a program name with args. 15245 set dummy $ac_prog; ac_word=$2 15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15247 $as_echo_n "checking for $ac_word... " >&6; } 15248 if ${ac_cv_path_NICE+:} false; then : 15249 $as_echo_n "(cached) " >&6 15250 else 15251 case $NICE in 15252 [\\/]* | ?:[\\/]*) 15253 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15254 ;; 15255 *) 15256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15257 for as_dir in $PATH 15258 do 15259 IFS=$as_save_IFS 15260 test -z "$as_dir" && as_dir=. 15261 for ac_exec_ext in '' $ac_executable_extensions; do 15262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15263 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15265 break 2 15266 fi 15267 done 15268 done 15269 IFS=$as_save_IFS 15270 15271 ;; 15272 esac 15273 fi 15274 NICE=$ac_cv_path_NICE 15275 if test -n "$NICE"; then 15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15277 $as_echo "$NICE" >&6; } 15278 else 15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15280 $as_echo "no" >&6; } 15281 fi 15282 15283 15284 test -n "$NICE" && break 15285 done 15286 15287 else 15288 # If it succeeded, then it was overridden by the user. We will use it 15289 # for the tool. 15290 15291 # First remove it from the list of overridden variables, so we can test 15292 # for unknown variables in the end. 15293 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15294 15295 # Check if we try to supply an empty value 15296 if test "x$NICE" = x; then 15297 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15298 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15300 $as_echo_n "checking for NICE... " >&6; } 15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15302 $as_echo "disabled" >&6; } 15303 else 15304 # Check if the provided tool contains a complete path. 15305 tool_specified="$NICE" 15306 tool_basename="${tool_specified##*/}" 15307 if test "x$tool_basename" = "x$tool_specified"; then 15308 # A command without a complete path is provided, search $PATH. 15309 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15310 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15311 # Extract the first word of "$tool_basename", so it can be a program name with args. 15312 set dummy $tool_basename; ac_word=$2 15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15314 $as_echo_n "checking for $ac_word... " >&6; } 15315 if ${ac_cv_path_NICE+:} false; then : 15316 $as_echo_n "(cached) " >&6 15317 else 15318 case $NICE in 15319 [\\/]* | ?:[\\/]*) 15320 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15321 ;; 15322 *) 15323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15324 for as_dir in $PATH 15325 do 15326 IFS=$as_save_IFS 15327 test -z "$as_dir" && as_dir=. 15328 for ac_exec_ext in '' $ac_executable_extensions; do 15329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15330 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15332 break 2 15333 fi 15334 done 15335 done 15336 IFS=$as_save_IFS 15337 15338 ;; 15339 esac 15340 fi 15341 NICE=$ac_cv_path_NICE 15342 if test -n "$NICE"; then 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15344 $as_echo "$NICE" >&6; } 15345 else 15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15347 $as_echo "no" >&6; } 15348 fi 15349 15350 15351 if test "x$NICE" = x; then 15352 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15353 fi 15354 else 15355 # Otherwise we believe it is a complete path. Use it as it is. 15356 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15357 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15359 $as_echo_n "checking for NICE... " >&6; } 15360 if test ! -x "$tool_specified"; then 15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15362 $as_echo "not found" >&6; } 15363 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15364 fi 15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15366 $as_echo "$tool_specified" >&6; } 15367 fi 15368 fi 15369 fi 15370 15371 fi 15372 15373 15374 15375 15376 # Publish this variable in the help. 15377 15378 15379 if [ -z "${PANDOC+x}" ]; then 15380 # The variable is not set by user, try to locate tool using the code snippet 15381 for ac_prog in pandoc 15382 do 15383 # Extract the first word of "$ac_prog", so it can be a program name with args. 15384 set dummy $ac_prog; ac_word=$2 15385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15386 $as_echo_n "checking for $ac_word... " >&6; } 15387 if ${ac_cv_path_PANDOC+:} false; then : 15388 $as_echo_n "(cached) " >&6 15389 else 15390 case $PANDOC in 15391 [\\/]* | ?:[\\/]*) 15392 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15393 ;; 15394 *) 15395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15396 for as_dir in $PATH 15397 do 15398 IFS=$as_save_IFS 15399 test -z "$as_dir" && as_dir=. 15400 for ac_exec_ext in '' $ac_executable_extensions; do 15401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15402 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15404 break 2 15405 fi 15406 done 15407 done 15408 IFS=$as_save_IFS 15409 15410 ;; 15411 esac 15412 fi 15413 PANDOC=$ac_cv_path_PANDOC 15414 if test -n "$PANDOC"; then 15415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15416 $as_echo "$PANDOC" >&6; } 15417 else 15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15419 $as_echo "no" >&6; } 15420 fi 15421 15422 15423 test -n "$PANDOC" && break 15424 done 15425 15426 else 15427 # The variable is set, but is it from the command line or the environment? 15428 15429 # Try to remove the string !PANDOC! from our list. 15430 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/} 15431 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15432 # If it failed, the variable was not from the command line. Ignore it, 15433 # but warn the user (except for BASH, which is always set by the calling BASH). 15434 if test "xPANDOC" != xBASH; then 15435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5 15436 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;} 15437 fi 15438 # Try to locate tool using the code snippet 15439 for ac_prog in pandoc 15440 do 15441 # Extract the first word of "$ac_prog", so it can be a program name with args. 15442 set dummy $ac_prog; ac_word=$2 15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15444 $as_echo_n "checking for $ac_word... " >&6; } 15445 if ${ac_cv_path_PANDOC+:} false; then : 15446 $as_echo_n "(cached) " >&6 15447 else 15448 case $PANDOC in 15449 [\\/]* | ?:[\\/]*) 15450 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15451 ;; 15452 *) 15453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15454 for as_dir in $PATH 15455 do 15456 IFS=$as_save_IFS 15457 test -z "$as_dir" && as_dir=. 15458 for ac_exec_ext in '' $ac_executable_extensions; do 15459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15460 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15462 break 2 15463 fi 15464 done 15465 done 15466 IFS=$as_save_IFS 15467 15468 ;; 15469 esac 15470 fi 15471 PANDOC=$ac_cv_path_PANDOC 15472 if test -n "$PANDOC"; then 15473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15474 $as_echo "$PANDOC" >&6; } 15475 else 15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15477 $as_echo "no" >&6; } 15478 fi 15479 15480 15481 test -n "$PANDOC" && break 15482 done 15483 15484 else 15485 # If it succeeded, then it was overridden by the user. We will use it 15486 # for the tool. 15487 15488 # First remove it from the list of overridden variables, so we can test 15489 # for unknown variables in the end. 15490 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15491 15492 # Check if we try to supply an empty value 15493 if test "x$PANDOC" = x; then 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5 15495 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;} 15496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15497 $as_echo_n "checking for PANDOC... " >&6; } 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15499 $as_echo "disabled" >&6; } 15500 else 15501 # Check if the provided tool contains a complete path. 15502 tool_specified="$PANDOC" 15503 tool_basename="${tool_specified##*/}" 15504 if test "x$tool_basename" = "x$tool_specified"; then 15505 # A command without a complete path is provided, search $PATH. 15506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5 15507 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;} 15508 # Extract the first word of "$tool_basename", so it can be a program name with args. 15509 set dummy $tool_basename; ac_word=$2 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15511 $as_echo_n "checking for $ac_word... " >&6; } 15512 if ${ac_cv_path_PANDOC+:} false; then : 15513 $as_echo_n "(cached) " >&6 15514 else 15515 case $PANDOC in 15516 [\\/]* | ?:[\\/]*) 15517 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15518 ;; 15519 *) 15520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15521 for as_dir in $PATH 15522 do 15523 IFS=$as_save_IFS 15524 test -z "$as_dir" && as_dir=. 15525 for ac_exec_ext in '' $ac_executable_extensions; do 15526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15527 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15529 break 2 15530 fi 15531 done 15532 done 15533 IFS=$as_save_IFS 15534 15535 ;; 15536 esac 15537 fi 15538 PANDOC=$ac_cv_path_PANDOC 15539 if test -n "$PANDOC"; then 15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15541 $as_echo "$PANDOC" >&6; } 15542 else 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15544 $as_echo "no" >&6; } 15545 fi 15546 15547 15548 if test "x$PANDOC" = x; then 15549 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15550 fi 15551 else 15552 # Otherwise we believe it is a complete path. Use it as it is. 15553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5 15554 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;} 15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15556 $as_echo_n "checking for PANDOC... " >&6; } 15557 if test ! -x "$tool_specified"; then 15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15559 $as_echo "not found" >&6; } 15560 as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5 15561 fi 15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15563 $as_echo "$tool_specified" >&6; } 15564 fi 15565 fi 15566 fi 15567 15568 fi 15569 15570 15571 15572 15573 # Now we can determine OpenJDK build and target platforms. This is required to 15574 # have early on. 15575 # Make sure we can run config.sub. 15576 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15577 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15578 15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15580 $as_echo_n "checking build system type... " >&6; } 15581 if ${ac_cv_build+:} false; then : 15582 $as_echo_n "(cached) " >&6 15583 else 15584 ac_build_alias=$build_alias 15585 test "x$ac_build_alias" = x && 15586 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15587 test "x$ac_build_alias" = x && 15588 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15589 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15590 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15591 15592 fi 15593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15594 $as_echo "$ac_cv_build" >&6; } 15595 case $ac_cv_build in 15596 *-*-*) ;; 15597 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15598 esac 15599 build=$ac_cv_build 15600 ac_save_IFS=$IFS; IFS='-' 15601 set x $ac_cv_build 15602 shift 15603 build_cpu=$1 15604 build_vendor=$2 15605 shift; shift 15606 # Remember, the first character of IFS is used to create $*, 15607 # except with old shells: 15608 build_os=$* 15609 IFS=$ac_save_IFS 15610 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15611 15612 15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15614 $as_echo_n "checking host system type... " >&6; } 15615 if ${ac_cv_host+:} false; then : 15616 $as_echo_n "(cached) " >&6 15617 else 15618 if test "x$host_alias" = x; then 15619 ac_cv_host=$ac_cv_build 15620 else 15621 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15622 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15623 fi 15624 15625 fi 15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15627 $as_echo "$ac_cv_host" >&6; } 15628 case $ac_cv_host in 15629 *-*-*) ;; 15630 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15631 esac 15632 host=$ac_cv_host 15633 ac_save_IFS=$IFS; IFS='-' 15634 set x $ac_cv_host 15635 shift 15636 host_cpu=$1 15637 host_vendor=$2 15638 shift; shift 15639 # Remember, the first character of IFS is used to create $*, 15640 # except with old shells: 15641 host_os=$* 15642 IFS=$ac_save_IFS 15643 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15644 15645 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15647 $as_echo_n "checking target system type... " >&6; } 15648 if ${ac_cv_target+:} false; then : 15649 $as_echo_n "(cached) " >&6 15650 else 15651 if test "x$target_alias" = x; then 15652 ac_cv_target=$ac_cv_host 15653 else 15654 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15656 fi 15657 15658 fi 15659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15660 $as_echo "$ac_cv_target" >&6; } 15661 case $ac_cv_target in 15662 *-*-*) ;; 15663 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15664 esac 15665 target=$ac_cv_target 15666 ac_save_IFS=$IFS; IFS='-' 15667 set x $ac_cv_target 15668 shift 15669 target_cpu=$1 15670 target_vendor=$2 15671 shift; shift 15672 # Remember, the first character of IFS is used to create $*, 15673 # except with old shells: 15674 target_os=$* 15675 IFS=$ac_save_IFS 15676 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15677 15678 15679 # The aliases save the names the user supplied, while $host etc. 15680 # will get canonicalized. 15681 test -n "$target_alias" && 15682 test "$program_prefix$program_suffix$program_transform_name" = \ 15683 NONENONEs,x,x, && 15684 program_prefix=${target_alias}- 15685 15686 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15687 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15688 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15689 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15690 # to use the configure naming style. 15691 15692 15693 15694 15695 15696 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15697 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15698 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15699 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15700 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15701 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15702 15703 15704 15705 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15706 15707 case "$build_os" in 15708 *linux*) 15709 VAR_OS=linux 15710 VAR_OS_TYPE=unix 15711 ;; 15712 *solaris*) 15713 VAR_OS=solaris 15714 VAR_OS_TYPE=unix 15715 ;; 15716 *darwin*) 15717 VAR_OS=macosx 15718 VAR_OS_TYPE=unix 15719 ;; 15720 *bsd*) 15721 VAR_OS=bsd 15722 VAR_OS_TYPE=unix 15723 ;; 15724 *cygwin*) 15725 VAR_OS=windows 15726 VAR_OS_ENV=windows.cygwin 15727 ;; 15728 *mingw*) 15729 VAR_OS=windows 15730 VAR_OS_ENV=windows.msys 15731 ;; 15732 *aix*) 15733 VAR_OS=aix 15734 VAR_OS_TYPE=unix 15735 ;; 15736 *) 15737 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15738 ;; 15739 esac 15740 15741 15742 # First argument is the cpu name from the trip/quad 15743 case "$build_cpu" in 15744 x86_64) 15745 VAR_CPU=x86_64 15746 VAR_CPU_ARCH=x86 15747 VAR_CPU_BITS=64 15748 VAR_CPU_ENDIAN=little 15749 ;; 15750 i?86) 15751 VAR_CPU=x86 15752 VAR_CPU_ARCH=x86 15753 VAR_CPU_BITS=32 15754 VAR_CPU_ENDIAN=little 15755 ;; 15756 alpha*) 15757 VAR_CPU=alpha 15758 VAR_CPU_ARCH=alpha 15759 VAR_CPU_BITS=64 15760 VAR_CPU_ENDIAN=little 15761 ;; 15762 arm*) 15763 VAR_CPU=arm 15764 VAR_CPU_ARCH=arm 15765 VAR_CPU_BITS=32 15766 VAR_CPU_ENDIAN=little 15767 ;; 15768 aarch64) 15769 VAR_CPU=aarch64 15770 VAR_CPU_ARCH=aarch64 15771 VAR_CPU_BITS=64 15772 VAR_CPU_ENDIAN=little 15773 ;; 15774 m68k) 15775 VAR_CPU=m68k 15776 VAR_CPU_ARCH=m68k 15777 VAR_CPU_BITS=32 15778 VAR_CPU_ENDIAN=big 15779 ;; 15780 mips) 15781 VAR_CPU=mips 15782 VAR_CPU_ARCH=mips 15783 VAR_CPU_BITS=32 15784 VAR_CPU_ENDIAN=big 15785 ;; 15786 mipsel) 15787 VAR_CPU=mipsel 15788 VAR_CPU_ARCH=mipsel 15789 VAR_CPU_BITS=32 15790 VAR_CPU_ENDIAN=little 15791 ;; 15792 mips64) 15793 VAR_CPU=mips64 15794 VAR_CPU_ARCH=mips64 15795 VAR_CPU_BITS=64 15796 VAR_CPU_ENDIAN=big 15797 ;; 15798 mips64el) 15799 VAR_CPU=mips64el 15800 VAR_CPU_ARCH=mips64el 15801 VAR_CPU_BITS=64 15802 VAR_CPU_ENDIAN=little 15803 ;; 15804 powerpc) 15805 VAR_CPU=ppc 15806 VAR_CPU_ARCH=ppc 15807 VAR_CPU_BITS=32 15808 VAR_CPU_ENDIAN=big 15809 ;; 15810 powerpc64) 15811 VAR_CPU=ppc64 15812 VAR_CPU_ARCH=ppc 15813 VAR_CPU_BITS=64 15814 VAR_CPU_ENDIAN=big 15815 ;; 15816 powerpc64le) 15817 VAR_CPU=ppc64le 15818 VAR_CPU_ARCH=ppc 15819 VAR_CPU_BITS=64 15820 VAR_CPU_ENDIAN=little 15821 ;; 15822 s390) 15823 VAR_CPU=s390 15824 VAR_CPU_ARCH=s390 15825 VAR_CPU_BITS=32 15826 VAR_CPU_ENDIAN=big 15827 ;; 15828 s390x) 15829 VAR_CPU=s390x 15830 VAR_CPU_ARCH=s390 15831 VAR_CPU_BITS=64 15832 VAR_CPU_ENDIAN=big 15833 ;; 15834 sh*eb) 15835 VAR_CPU=sh 15836 VAR_CPU_ARCH=sh 15837 VAR_CPU_BITS=32 15838 VAR_CPU_ENDIAN=big 15839 ;; 15840 sh*) 15841 VAR_CPU=sh 15842 VAR_CPU_ARCH=sh 15843 VAR_CPU_BITS=32 15844 VAR_CPU_ENDIAN=little 15845 ;; 15846 sparc) 15847 VAR_CPU=sparc 15848 VAR_CPU_ARCH=sparc 15849 VAR_CPU_BITS=32 15850 VAR_CPU_ENDIAN=big 15851 ;; 15852 sparcv9|sparc64) 15853 VAR_CPU=sparcv9 15854 VAR_CPU_ARCH=sparc 15855 VAR_CPU_BITS=64 15856 VAR_CPU_ENDIAN=big 15857 ;; 15858 *) 15859 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15860 ;; 15861 esac 15862 15863 # ..and setup our own variables. (Do this explicitly to facilitate searching) 15864 OPENJDK_BUILD_OS="$VAR_OS" 15865 if test "x$VAR_OS_TYPE" != x; then 15866 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15867 else 15868 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15869 fi 15870 if test "x$VAR_OS_ENV" != x; then 15871 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15872 else 15873 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15874 fi 15875 OPENJDK_BUILD_CPU="$VAR_CPU" 15876 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15877 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15878 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15879 15880 15881 15882 15883 15884 15885 15886 15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15888 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15890 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15891 15892 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15893 15894 case "$host_os" in 15895 *linux*) 15896 VAR_OS=linux 15897 VAR_OS_TYPE=unix 15898 ;; 15899 *solaris*) 15900 VAR_OS=solaris 15901 VAR_OS_TYPE=unix 15902 ;; 15903 *darwin*) 15904 VAR_OS=macosx 15905 VAR_OS_TYPE=unix 15906 ;; 15907 *bsd*) 15908 VAR_OS=bsd 15909 VAR_OS_TYPE=unix 15910 ;; 15911 *cygwin*) 15912 VAR_OS=windows 15913 VAR_OS_ENV=windows.cygwin 15914 ;; 15915 *mingw*) 15916 VAR_OS=windows 15917 VAR_OS_ENV=windows.msys 15918 ;; 15919 *aix*) 15920 VAR_OS=aix 15921 VAR_OS_TYPE=unix 15922 ;; 15923 *) 15924 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15925 ;; 15926 esac 15927 15928 15929 # First argument is the cpu name from the trip/quad 15930 case "$host_cpu" in 15931 x86_64) 15932 VAR_CPU=x86_64 15933 VAR_CPU_ARCH=x86 15934 VAR_CPU_BITS=64 15935 VAR_CPU_ENDIAN=little 15936 ;; 15937 i?86) 15938 VAR_CPU=x86 15939 VAR_CPU_ARCH=x86 15940 VAR_CPU_BITS=32 15941 VAR_CPU_ENDIAN=little 15942 ;; 15943 alpha*) 15944 VAR_CPU=alpha 15945 VAR_CPU_ARCH=alpha 15946 VAR_CPU_BITS=64 15947 VAR_CPU_ENDIAN=little 15948 ;; 15949 arm*) 15950 VAR_CPU=arm 15951 VAR_CPU_ARCH=arm 15952 VAR_CPU_BITS=32 15953 VAR_CPU_ENDIAN=little 15954 ;; 15955 aarch64) 15956 VAR_CPU=aarch64 15957 VAR_CPU_ARCH=aarch64 15958 VAR_CPU_BITS=64 15959 VAR_CPU_ENDIAN=little 15960 ;; 15961 m68k) 15962 VAR_CPU=m68k 15963 VAR_CPU_ARCH=m68k 15964 VAR_CPU_BITS=32 15965 VAR_CPU_ENDIAN=big 15966 ;; 15967 mips) 15968 VAR_CPU=mips 15969 VAR_CPU_ARCH=mips 15970 VAR_CPU_BITS=32 15971 VAR_CPU_ENDIAN=big 15972 ;; 15973 mipsel) 15974 VAR_CPU=mipsel 15975 VAR_CPU_ARCH=mipsel 15976 VAR_CPU_BITS=32 15977 VAR_CPU_ENDIAN=little 15978 ;; 15979 mips64) 15980 VAR_CPU=mips64 15981 VAR_CPU_ARCH=mips64 15982 VAR_CPU_BITS=64 15983 VAR_CPU_ENDIAN=big 15984 ;; 15985 mips64el) 15986 VAR_CPU=mips64el 15987 VAR_CPU_ARCH=mips64el 15988 VAR_CPU_BITS=64 15989 VAR_CPU_ENDIAN=little 15990 ;; 15991 powerpc) 15992 VAR_CPU=ppc 15993 VAR_CPU_ARCH=ppc 15994 VAR_CPU_BITS=32 15995 VAR_CPU_ENDIAN=big 15996 ;; 15997 powerpc64) 15998 VAR_CPU=ppc64 15999 VAR_CPU_ARCH=ppc 16000 VAR_CPU_BITS=64 16001 VAR_CPU_ENDIAN=big 16002 ;; 16003 powerpc64le) 16004 VAR_CPU=ppc64le 16005 VAR_CPU_ARCH=ppc 16006 VAR_CPU_BITS=64 16007 VAR_CPU_ENDIAN=little 16008 ;; 16009 s390) 16010 VAR_CPU=s390 16011 VAR_CPU_ARCH=s390 16012 VAR_CPU_BITS=32 16013 VAR_CPU_ENDIAN=big 16014 ;; 16015 s390x) 16016 VAR_CPU=s390x 16017 VAR_CPU_ARCH=s390 16018 VAR_CPU_BITS=64 16019 VAR_CPU_ENDIAN=big 16020 ;; 16021 sh*eb) 16022 VAR_CPU=sh 16023 VAR_CPU_ARCH=sh 16024 VAR_CPU_BITS=32 16025 VAR_CPU_ENDIAN=big 16026 ;; 16027 sh*) 16028 VAR_CPU=sh 16029 VAR_CPU_ARCH=sh 16030 VAR_CPU_BITS=32 16031 VAR_CPU_ENDIAN=little 16032 ;; 16033 sparc) 16034 VAR_CPU=sparc 16035 VAR_CPU_ARCH=sparc 16036 VAR_CPU_BITS=32 16037 VAR_CPU_ENDIAN=big 16038 ;; 16039 sparcv9|sparc64) 16040 VAR_CPU=sparcv9 16041 VAR_CPU_ARCH=sparc 16042 VAR_CPU_BITS=64 16043 VAR_CPU_ENDIAN=big 16044 ;; 16045 *) 16046 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 16047 ;; 16048 esac 16049 16050 # ... and setup our own variables. (Do this explicitly to facilitate searching) 16051 OPENJDK_TARGET_OS="$VAR_OS" 16052 if test "x$VAR_OS_TYPE" != x; then 16053 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 16054 else 16055 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 16056 fi 16057 if test "x$VAR_OS_ENV" != x; then 16058 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 16059 else 16060 OPENJDK_TARGET_OS_ENV="$VAR_OS" 16061 fi 16062 OPENJDK_TARGET_CPU="$VAR_CPU" 16063 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 16064 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 16065 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 16066 16067 16068 16069 16070 16071 16072 16073 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 16075 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 16077 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 16078 16079 16080 16081 # Check whether --with-target-bits was given. 16082 if test "${with_target_bits+set}" = set; then : 16083 withval=$with_target_bits; 16084 fi 16085 16086 16087 # We have three types of compiles: 16088 # native == normal compilation, target system == build system 16089 # cross == traditional cross compilation, target system != build system; special toolchain needed 16090 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 16091 # 16092 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 16093 # We're doing a proper cross-compilation 16094 COMPILE_TYPE="cross" 16095 else 16096 COMPILE_TYPE="native" 16097 fi 16098 16099 if test "x$with_target_bits" != x; then 16100 if test "x$COMPILE_TYPE" = "xcross"; then 16101 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 16102 fi 16103 16104 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16105 # A reduced build is requested 16106 COMPILE_TYPE="reduced" 16107 OPENJDK_TARGET_CPU_BITS=32 16108 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 16109 OPENJDK_TARGET_CPU=x86 16110 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 16111 OPENJDK_TARGET_CPU=sparc 16112 else 16113 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 16114 fi 16115 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16116 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 16117 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 16118 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 16119 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 16120 else 16121 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 16122 fi 16123 fi 16124 16125 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 16127 $as_echo_n "checking compilation type... " >&6; } 16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 16129 $as_echo "$COMPILE_TYPE" >&6; } 16130 16131 16132 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16133 OPENJDK_MODULE_TARGET_OS_NAME="macos" 16134 else 16135 OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS" 16136 fi 16137 16138 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16139 OPENJDK_MODULE_TARGET_OS_ARCH="amd64" 16140 else 16141 OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU" 16142 fi 16143 16144 OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}" 16145 16146 16147 16148 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 16149 RELEASE_FILE_OS_NAME=SunOS 16150 fi 16151 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 16152 RELEASE_FILE_OS_NAME=Linux 16153 fi 16154 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16155 RELEASE_FILE_OS_NAME=Windows 16156 fi 16157 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16158 RELEASE_FILE_OS_NAME="Darwin" 16159 fi 16160 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 16161 RELEASE_FILE_OS_NAME="AIX" 16162 fi 16163 RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU} 16164 16165 16166 16167 16168 16169 16170 # Also store the legacy naming of the cpu. 16171 # Ie i586 and amd64 instead of x86 and x86_64 16172 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 16173 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16174 OPENJDK_TARGET_CPU_LEGACY="i586" 16175 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16176 # On all platforms except MacOSX replace x86_64 with amd64. 16177 OPENJDK_TARGET_CPU_LEGACY="amd64" 16178 elif test "x$OPENJDK_TARGET_CPU" = xalpha; then 16179 # Avoid name collisions with variables named alpha 16180 OPENJDK_TARGET_CPU_LEGACY="_alpha_" 16181 elif test "x$OPENJDK_TARGET_CPU" = xsh; then 16182 # Avoid name collisions with variables named sh 16183 OPENJDK_TARGET_CPU_LEGACY="_sh_" 16184 fi 16185 16186 16187 # And the second legacy naming of the cpu. 16188 # Ie i386 and amd64 instead of x86 and x86_64. 16189 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 16190 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16191 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 16192 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16193 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 16194 fi 16195 16196 16197 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16198 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16199 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 16200 OPENJDK_TARGET_CPU_ISADIR="" 16201 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 16202 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16203 OPENJDK_TARGET_CPU_ISADIR="/amd64" 16204 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16205 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 16206 fi 16207 fi 16208 16209 16210 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 16211 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 16212 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 16213 # On linux only, we replace x86 with i386. 16214 OPENJDK_TARGET_CPU_OSARCH="i386" 16215 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16216 # On all platforms except macosx, we replace x86_64 with amd64. 16217 OPENJDK_TARGET_CPU_OSARCH="amd64" 16218 fi 16219 16220 16221 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 16222 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16223 OPENJDK_TARGET_CPU_JLI="i386" 16224 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16225 # On all platforms except macosx, we replace x86_64 with amd64. 16226 OPENJDK_TARGET_CPU_JLI="amd64" 16227 fi 16228 16229 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16230 # Macosx is osx and x86_64 is x64 16231 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16232 OPENJDK_TARGET_OS_BUNDLE="osx" 16233 else 16234 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 16235 fi 16236 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16237 OPENJDK_TARGET_CPU_BUNDLE="x64" 16238 else 16239 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 16240 fi 16241 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 16242 16243 16244 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16245 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16246 # unpack200.exe. This variable is used in 16247 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16248 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 16249 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 16250 fi 16251 fi 16252 16253 if test "x$COMPILE_TYPE" = "xcross"; then 16254 # FIXME: ... or should this include reduced builds..? 16255 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 16256 else 16257 DEFINE_CROSS_COMPILE_ARCH="" 16258 fi 16259 16260 16261 # Convert openjdk platform names to hotspot names 16262 16263 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 16264 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16265 HOTSPOT_TARGET_OS=bsd 16266 fi 16267 16268 16269 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 16270 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 16271 HOTSPOT_TARGET_OS_TYPE=posix 16272 fi 16273 16274 16275 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 16276 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16277 HOTSPOT_TARGET_CPU=x86_32 16278 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16279 HOTSPOT_TARGET_CPU=sparc 16280 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16281 HOTSPOT_TARGET_CPU=ppc_64 16282 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16283 HOTSPOT_TARGET_CPU=ppc_64 16284 fi 16285 16286 16287 # This is identical with OPENJDK_*, but define anyway for consistency. 16288 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 16289 16290 16291 # Setup HOTSPOT_TARGET_CPU_DEFINE 16292 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16293 HOTSPOT_TARGET_CPU_DEFINE=IA32 16294 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16295 HOTSPOT_TARGET_CPU_DEFINE=AMD64 16296 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16297 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16298 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 16299 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 16300 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16301 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16302 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16303 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16304 16305 # The cpu defines below are for zero, we don't support them directly. 16306 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 16307 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16308 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 16309 HOTSPOT_TARGET_CPU_DEFINE=PPC32 16310 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 16311 HOTSPOT_TARGET_CPU_DEFINE=S390 16312 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 16313 HOTSPOT_TARGET_CPU_DEFINE=S390 16314 elif test "x$OPENJDK_TARGET_CPU" != x; then 16315 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 16316 fi 16317 16318 16319 16320 16321 # Also store the legacy naming of the cpu. 16322 # Ie i586 and amd64 instead of x86 and x86_64 16323 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 16324 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16325 OPENJDK_BUILD_CPU_LEGACY="i586" 16326 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16327 # On all platforms except MacOSX replace x86_64 with amd64. 16328 OPENJDK_BUILD_CPU_LEGACY="amd64" 16329 elif test "x$OPENJDK_BUILD_CPU" = xalpha; then 16330 # Avoid name collisions with variables named alpha 16331 OPENJDK_BUILD_CPU_LEGACY="_alpha_" 16332 elif test "x$OPENJDK_BUILD_CPU" = xsh; then 16333 # Avoid name collisions with variables named sh 16334 OPENJDK_BUILD_CPU_LEGACY="_sh_" 16335 fi 16336 16337 16338 # And the second legacy naming of the cpu. 16339 # Ie i386 and amd64 instead of x86 and x86_64. 16340 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16341 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16342 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16343 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16344 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16345 fi 16346 16347 16348 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16349 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16350 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16351 OPENJDK_BUILD_CPU_ISADIR="" 16352 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16353 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16354 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16355 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16356 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16357 fi 16358 fi 16359 16360 16361 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16362 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16363 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16364 # On linux only, we replace x86 with i386. 16365 OPENJDK_BUILD_CPU_OSARCH="i386" 16366 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16367 # On all platforms except macosx, we replace x86_64 with amd64. 16368 OPENJDK_BUILD_CPU_OSARCH="amd64" 16369 fi 16370 16371 16372 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16373 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16374 OPENJDK_BUILD_CPU_JLI="i386" 16375 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16376 # On all platforms except macosx, we replace x86_64 with amd64. 16377 OPENJDK_BUILD_CPU_JLI="amd64" 16378 fi 16379 16380 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16381 # Macosx is osx and x86_64 is x64 16382 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16383 OPENJDK_BUILD_OS_BUNDLE="osx" 16384 else 16385 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16386 fi 16387 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16388 OPENJDK_BUILD_CPU_BUNDLE="x64" 16389 else 16390 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16391 fi 16392 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16393 16394 16395 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16396 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16397 # unpack200.exe. This variable is used in 16398 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16399 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16400 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16401 fi 16402 fi 16403 16404 if test "x$COMPILE_TYPE" = "xcross"; then 16405 # FIXME: ... or should this include reduced builds..? 16406 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16407 else 16408 DEFINE_CROSS_COMPILE_ARCH="" 16409 fi 16410 16411 16412 # Convert openjdk platform names to hotspot names 16413 16414 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16415 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16416 HOTSPOT_BUILD_OS=bsd 16417 fi 16418 16419 16420 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16421 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16422 HOTSPOT_BUILD_OS_TYPE=posix 16423 fi 16424 16425 16426 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16427 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16428 HOTSPOT_BUILD_CPU=x86_32 16429 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16430 HOTSPOT_BUILD_CPU=sparc 16431 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16432 HOTSPOT_BUILD_CPU=ppc_64 16433 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16434 HOTSPOT_BUILD_CPU=ppc_64 16435 fi 16436 16437 16438 # This is identical with OPENJDK_*, but define anyway for consistency. 16439 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16440 16441 16442 # Setup HOTSPOT_BUILD_CPU_DEFINE 16443 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16444 HOTSPOT_BUILD_CPU_DEFINE=IA32 16445 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16446 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16447 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16448 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16449 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16450 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16451 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16452 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16453 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16454 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16455 16456 # The cpu defines below are for zero, we don't support them directly. 16457 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16458 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16459 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16460 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16461 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16462 HOTSPOT_BUILD_CPU_DEFINE=S390 16463 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16464 HOTSPOT_BUILD_CPU_DEFINE=S390 16465 elif test "x$OPENJDK_BUILD_CPU" != x; then 16466 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16467 fi 16468 16469 16470 16471 16472 16473 16474 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16475 16476 # Save the current directory this script was started from 16477 CURDIR="$PWD" 16478 16479 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16480 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16481 # was not available at that time. 16482 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16483 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16484 ORIGINAL_PATH="$REWRITTEN_PATH" 16485 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16486 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16487 fi 16488 16489 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16490 PATH_SEP=";" 16491 16492 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16493 if test $SRC_ROOT_LENGTH -gt 100; then 16494 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16495 fi 16496 16497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16499 $as_echo_n "checking cygwin release... " >&6; } 16500 CYGWIN_VERSION=`$UNAME -r` 16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16502 $as_echo "$CYGWIN_VERSION" >&6; } 16503 WINDOWS_ENV_VENDOR='cygwin' 16504 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16505 16506 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16507 if test "x$CYGWIN_VERSION_OLD" != x; then 16508 { $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 16509 $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;} 16510 as_fn_error $? "Cannot continue" "$LINENO" 5 16511 fi 16512 if test "x$CYGPATH" = x; then 16513 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16514 fi 16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16516 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16517 # The cmd output ends with Windows line endings (CR/LF) 16518 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 16519 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16520 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16522 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16523 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16524 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16525 if test "x$test_cygdrive_prefix" = x; then 16526 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16527 fi 16528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16530 $as_echo_n "checking msys release... " >&6; } 16531 MSYS_VERSION=`$UNAME -r` 16532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16533 $as_echo "$MSYS_VERSION" >&6; } 16534 16535 WINDOWS_ENV_VENDOR='msys' 16536 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16537 16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16539 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16540 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16541 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16542 16543 windows_path="$MSYS_ROOT_PATH" 16544 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16545 unix_path=`$CYGPATH -u "$windows_path"` 16546 MSYS_ROOT_PATH="$unix_path" 16547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16548 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16549 MSYS_ROOT_PATH="$unix_path" 16550 fi 16551 16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16553 $as_echo "$MSYS_ROOT_PATH" >&6; } 16554 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16555 else 16556 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16557 fi 16558 16559 # Test if windows or unix (cygwin/msys) find is first in path. 16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16561 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16562 FIND_BINARY_OUTPUT=`find --version 2>&1` 16563 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16565 $as_echo "unix style" >&6; } 16566 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16568 $as_echo "Windows" >&6; } 16569 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16570 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16571 { $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 16572 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16573 as_fn_error $? "Cannot continue" "$LINENO" 5 16574 else 16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16576 $as_echo "unknown" >&6; } 16577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16578 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16579 fi 16580 16581 else 16582 PATH_SEP=":" 16583 fi 16584 16585 16586 # We get the top-level directory from the supporting wrappers. 16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16588 $as_echo_n "checking for top-level directory... " >&6; } 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16590 $as_echo "$TOPDIR" >&6; } 16591 16592 16593 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16594 16595 # Only process if variable expands to non-empty 16596 16597 if test "x$CURDIR" != x; then 16598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16599 16600 # Input might be given as Windows format, start by converting to 16601 # unix format. 16602 path="$CURDIR" 16603 new_path=`$CYGPATH -u "$path"` 16604 16605 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16606 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16607 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16608 # "foo.exe" is OK but "foo" is an error. 16609 # 16610 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16611 # It is also a way to make sure we got the proper file name for the real test later on. 16612 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16613 if test "x$test_shortpath" = x; then 16614 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16615 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16616 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16617 fi 16618 16619 # Call helper function which possibly converts this using DOS-style short mode. 16620 # If so, the updated path is stored in $new_path. 16621 16622 input_path="$new_path" 16623 # Check if we need to convert this using DOS-style short mode. If the path 16624 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16625 # take no chances and rewrite it. 16626 # Note: m4 eats our [], so we need to use [ and ] instead. 16627 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16628 if test "x$has_forbidden_chars" != x; then 16629 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16630 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16631 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16632 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16633 # Going to short mode and back again did indeed matter. Since short mode is 16634 # case insensitive, let's make it lowercase to improve readability. 16635 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16636 # Now convert it back to Unix-style (cygpath) 16637 input_path=`$CYGPATH -u "$shortmode_path"` 16638 new_path="$input_path" 16639 fi 16640 fi 16641 16642 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16643 if test "x$test_cygdrive_prefix" = x; then 16644 # As a simple fix, exclude /usr/bin since it's not a real path. 16645 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16646 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16647 # a path prefixed by /cygdrive for fixpath to work. 16648 new_path="$CYGWIN_ROOT_PATH$input_path" 16649 fi 16650 fi 16651 16652 16653 if test "x$path" != "x$new_path"; then 16654 CURDIR="$new_path" 16655 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16656 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16657 fi 16658 16659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16660 16661 path="$CURDIR" 16662 has_colon=`$ECHO $path | $GREP ^.:` 16663 new_path="$path" 16664 if test "x$has_colon" = x; then 16665 # Not in mixed or Windows style, start by that. 16666 new_path=`cmd //c echo $path` 16667 fi 16668 16669 16670 input_path="$new_path" 16671 # Check if we need to convert this using DOS-style short mode. If the path 16672 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16673 # take no chances and rewrite it. 16674 # Note: m4 eats our [], so we need to use [ and ] instead. 16675 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16676 if test "x$has_forbidden_chars" != x; then 16677 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16678 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16679 fi 16680 16681 16682 windows_path="$new_path" 16683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16684 unix_path=`$CYGPATH -u "$windows_path"` 16685 new_path="$unix_path" 16686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16688 new_path="$unix_path" 16689 fi 16690 16691 if test "x$path" != "x$new_path"; then 16692 CURDIR="$new_path" 16693 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16694 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16695 fi 16696 16697 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16698 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16699 16700 else 16701 # We're on a unix platform. Hooray! :) 16702 path="$CURDIR" 16703 has_space=`$ECHO "$path" | $GREP " "` 16704 if test "x$has_space" != x; then 16705 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16706 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16707 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16708 fi 16709 16710 # Use eval to expand a potential ~ 16711 eval path="$path" 16712 if test ! -f "$path" && test ! -d "$path"; then 16713 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16714 fi 16715 16716 if test -d "$path"; then 16717 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16718 else 16719 dir="`$DIRNAME "$path"`" 16720 base="`$BASENAME "$path"`" 16721 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16722 fi 16723 fi 16724 fi 16725 16726 16727 # Only process if variable expands to non-empty 16728 16729 if test "x$TOPDIR" != x; then 16730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16731 16732 # Input might be given as Windows format, start by converting to 16733 # unix format. 16734 path="$TOPDIR" 16735 new_path=`$CYGPATH -u "$path"` 16736 16737 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16738 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16739 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16740 # "foo.exe" is OK but "foo" is an error. 16741 # 16742 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16743 # It is also a way to make sure we got the proper file name for the real test later on. 16744 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16745 if test "x$test_shortpath" = x; then 16746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16747 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16748 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16749 fi 16750 16751 # Call helper function which possibly converts this using DOS-style short mode. 16752 # If so, the updated path is stored in $new_path. 16753 16754 input_path="$new_path" 16755 # Check if we need to convert this using DOS-style short mode. If the path 16756 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16757 # take no chances and rewrite it. 16758 # Note: m4 eats our [], so we need to use [ and ] instead. 16759 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16760 if test "x$has_forbidden_chars" != x; then 16761 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16762 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16763 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16764 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16765 # Going to short mode and back again did indeed matter. Since short mode is 16766 # case insensitive, let's make it lowercase to improve readability. 16767 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16768 # Now convert it back to Unix-style (cygpath) 16769 input_path=`$CYGPATH -u "$shortmode_path"` 16770 new_path="$input_path" 16771 fi 16772 fi 16773 16774 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16775 if test "x$test_cygdrive_prefix" = x; then 16776 # As a simple fix, exclude /usr/bin since it's not a real path. 16777 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16778 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16779 # a path prefixed by /cygdrive for fixpath to work. 16780 new_path="$CYGWIN_ROOT_PATH$input_path" 16781 fi 16782 fi 16783 16784 16785 if test "x$path" != "x$new_path"; then 16786 TOPDIR="$new_path" 16787 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16788 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16789 fi 16790 16791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16792 16793 path="$TOPDIR" 16794 has_colon=`$ECHO $path | $GREP ^.:` 16795 new_path="$path" 16796 if test "x$has_colon" = x; then 16797 # Not in mixed or Windows style, start by that. 16798 new_path=`cmd //c echo $path` 16799 fi 16800 16801 16802 input_path="$new_path" 16803 # Check if we need to convert this using DOS-style short mode. If the path 16804 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16805 # take no chances and rewrite it. 16806 # Note: m4 eats our [], so we need to use [ and ] instead. 16807 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16808 if test "x$has_forbidden_chars" != x; then 16809 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16810 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16811 fi 16812 16813 16814 windows_path="$new_path" 16815 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16816 unix_path=`$CYGPATH -u "$windows_path"` 16817 new_path="$unix_path" 16818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16819 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16820 new_path="$unix_path" 16821 fi 16822 16823 if test "x$path" != "x$new_path"; then 16824 TOPDIR="$new_path" 16825 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16826 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16827 fi 16828 16829 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16830 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16831 16832 else 16833 # We're on a unix platform. Hooray! :) 16834 path="$TOPDIR" 16835 has_space=`$ECHO "$path" | $GREP " "` 16836 if test "x$has_space" != x; then 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16838 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16839 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16840 fi 16841 16842 # Use eval to expand a potential ~ 16843 eval path="$path" 16844 if test ! -f "$path" && test ! -d "$path"; then 16845 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16846 fi 16847 16848 if test -d "$path"; then 16849 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16850 else 16851 dir="`$DIRNAME "$path"`" 16852 base="`$BASENAME "$path"`" 16853 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16854 fi 16855 fi 16856 fi 16857 16858 16859 # Locate the directory of this script. 16860 AUTOCONF_DIR=$TOPDIR/make/autoconf 16861 16862 # Setup username (for use in adhoc version strings etc) 16863 # Outer [ ] to quote m4. 16864 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16865 16866 16867 16868 # Check if it's a pure open build or if custom sources are to be used. 16869 16870 # Check whether --enable-openjdk-only was given. 16871 if test "${enable_openjdk_only+set}" = set; then : 16872 enableval=$enable_openjdk_only; 16873 else 16874 enable_openjdk_only="no" 16875 fi 16876 16877 16878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16879 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16881 $as_echo "$enable_openjdk_only" >&6; } 16882 if test "x$enable_openjdk_only" = "xyes"; then 16883 SUPPRESS_CUSTOM_EXTENSIONS="true" 16884 elif test "x$enable_openjdk_only" = "xno"; then 16885 SUPPRESS_CUSTOM_EXTENSIONS="false" 16886 else 16887 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16888 fi 16889 16890 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16891 # the IncludeCustomExtension macro. 16892 16893 16894 # Check whether --with-custom-make-dir was given. 16895 if test "${with_custom_make_dir+set}" = set; then : 16896 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 16897 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16898 fi 16899 16900 16901 16902 16903 # These are needed to be able to create a configuration name (and thus the output directory) 16904 16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16906 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16907 16908 # Check whether --with-jdk-variant was given. 16909 if test "${with_jdk_variant+set}" = set; then : 16910 withval=$with_jdk_variant; 16911 fi 16912 16913 16914 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16915 JDK_VARIANT="normal" 16916 else 16917 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16918 fi 16919 16920 16921 16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16923 $as_echo "$JDK_VARIANT" >&6; } 16924 16925 16926 DEBUG_LEVEL="release" 16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16928 $as_echo_n "checking which debug level to use... " >&6; } 16929 # Check whether --enable-debug was given. 16930 if test "${enable_debug+set}" = set; then : 16931 enableval=$enable_debug; 16932 ENABLE_DEBUG="${enableval}" 16933 DEBUG_LEVEL="fastdebug" 16934 16935 else 16936 ENABLE_DEBUG="no" 16937 fi 16938 16939 16940 16941 # Check whether --with-debug-level was given. 16942 if test "${with_debug_level+set}" = set; then : 16943 withval=$with_debug_level; 16944 DEBUG_LEVEL="${withval}" 16945 if test "x$ENABLE_DEBUG" = xyes; then 16946 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16947 fi 16948 16949 fi 16950 16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16952 $as_echo "$DEBUG_LEVEL" >&6; } 16953 16954 if test "x$DEBUG_LEVEL" != xrelease && \ 16955 test "x$DEBUG_LEVEL" != xoptimized && \ 16956 test "x$DEBUG_LEVEL" != xfastdebug && \ 16957 test "x$DEBUG_LEVEL" != xslowdebug; then 16958 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16959 fi 16960 16961 # Translate DEBUG_LEVEL to debug level used by Hotspot 16962 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16963 if test "x$DEBUG_LEVEL" = xrelease; then 16964 HOTSPOT_DEBUG_LEVEL="product" 16965 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16966 HOTSPOT_DEBUG_LEVEL="debug" 16967 fi 16968 16969 if test "x$DEBUG_LEVEL" = xoptimized; then 16970 # The debug level 'optimized' is a little special because it is currently only 16971 # applicable to the HotSpot build where it means to build a completely 16972 # optimized version of the VM without any debugging code (like for the 16973 # 'release' debug level which is called 'product' in the HotSpot build) but 16974 # with the exception that it can contain additional code which is otherwise 16975 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16976 # test new and/or experimental features which are not intended for customer 16977 # shipment. Because these new features need to be tested and benchmarked in 16978 # real world scenarios, we want to build the containing JDK at the 'release' 16979 # debug level. 16980 DEBUG_LEVEL="release" 16981 fi 16982 16983 16984 16985 16986 16987 16988 # Check whether --with-jvm-variants was given. 16989 if test "${with_jvm_variants+set}" = set; then : 16990 withval=$with_jvm_variants; 16991 fi 16992 16993 16994 16995 16996 # Check whether --with-cpu-port was given. 16997 if test "${with_cpu_port+set}" = set; then : 16998 withval=$with_cpu_port; 16999 fi 17000 17001 17002 if test "x$with_cpu_port" != x; then 17003 if test "x$OPENJDK_TARGET_CPU" != xaarch64; then 17004 as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5 17005 fi 17006 if test "x$with_cpu_port" != xarm64 && \ 17007 test "x$with_cpu_port" != xaarch64; then 17008 as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5 17009 fi 17010 HOTSPOT_TARGET_CPU_PORT="$with_cpu_port" 17011 fi 17012 17013 17014 if test "x$with_jvm_variants" = x; then 17015 with_jvm_variants="server" 17016 fi 17017 JVM_VARIANTS_OPT="$with_jvm_variants" 17018 17019 # Has the user listed more than one variant? 17020 # Additional [] needed to keep m4 from mangling shell constructs. 17021 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 17022 BUILDING_MULTIPLE_JVM_VARIANTS=true 17023 else 17024 BUILDING_MULTIPLE_JVM_VARIANTS=false 17025 fi 17026 # Replace the commas with AND for use in the build directory name. 17027 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 17028 17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 17030 $as_echo_n "checking which variants of the JVM to build... " >&6; } 17031 # JVM_VARIANTS is a space-separated list. 17032 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 17033 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 17035 $as_echo "$JVM_VARIANTS" >&6; } 17036 17037 # Check that the selected variants are valid 17038 17039 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 17040 # Notice that the original variant failes on SLES 10 and 11 17041 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 17042 STACK=${JVM_VARIANTS// /$'\n'} 17043 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17044 if test "x$INVALID_VARIANTS" != x; then 17045 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 17046 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 17047 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 17048 fi 17049 17050 # All "special" variants share the same output directory ("server") 17051 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 17052 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 17053 STACK=${JVM_VARIANTS// /$'\n'} 17054 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17055 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 17056 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 17057 fi 17058 17059 # The "main" variant is the one used by other libs to link against during the 17060 # build. 17061 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 17062 MAIN_VARIANT_PRIO_ORDER="server client minimal" 17063 for variant in $MAIN_VARIANT_PRIO_ORDER; do 17064 if [[ " $JVM_VARIANTS " =~ " $variant " ]] ; then 17065 JVM_VARIANT_MAIN="$variant" 17066 break 17067 fi 17068 done 17069 else 17070 JVM_VARIANT_MAIN="$JVM_VARIANTS" 17071 fi 17072 17073 17074 17075 17076 17077 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 17078 # zero behaves as a platform and rewrites these values. This is really weird. :( 17079 # We are guaranteed that we do not build any other variants when building zero. 17080 HOTSPOT_TARGET_CPU=zero 17081 HOTSPOT_TARGET_CPU_ARCH=zero 17082 fi 17083 17084 17085 # With basic setup done, call the custom early hook. 17086 17087 17088 # Check if we have devkits, extra paths or sysroot set. 17089 17090 17091 # Check whether --with-devkit was given. 17092 if test "${with_devkit+set}" = set; then : 17093 withval=$with_devkit; 17094 17095 # Only process if variable expands to non-empty 17096 17097 if test "x$with_devkit" != x; then 17098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17099 17100 # Input might be given as Windows format, start by converting to 17101 # unix format. 17102 path="$with_devkit" 17103 new_path=`$CYGPATH -u "$path"` 17104 17105 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17106 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17107 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17108 # "foo.exe" is OK but "foo" is an error. 17109 # 17110 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17111 # It is also a way to make sure we got the proper file name for the real test later on. 17112 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17113 if test "x$test_shortpath" = x; then 17114 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17115 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17116 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 17117 fi 17118 17119 # Call helper function which possibly converts this using DOS-style short mode. 17120 # If so, the updated path is stored in $new_path. 17121 17122 input_path="$new_path" 17123 # Check if we need to convert this using DOS-style short mode. If the path 17124 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17125 # take no chances and rewrite it. 17126 # Note: m4 eats our [], so we need to use [ and ] instead. 17127 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17128 if test "x$has_forbidden_chars" != x; then 17129 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17130 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17131 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17132 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17133 # Going to short mode and back again did indeed matter. Since short mode is 17134 # case insensitive, let's make it lowercase to improve readability. 17135 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17136 # Now convert it back to Unix-style (cygpath) 17137 input_path=`$CYGPATH -u "$shortmode_path"` 17138 new_path="$input_path" 17139 fi 17140 fi 17141 17142 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17143 if test "x$test_cygdrive_prefix" = x; then 17144 # As a simple fix, exclude /usr/bin since it's not a real path. 17145 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17146 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17147 # a path prefixed by /cygdrive for fixpath to work. 17148 new_path="$CYGWIN_ROOT_PATH$input_path" 17149 fi 17150 fi 17151 17152 17153 if test "x$path" != "x$new_path"; then 17154 with_devkit="$new_path" 17155 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17156 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17157 fi 17158 17159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17160 17161 path="$with_devkit" 17162 has_colon=`$ECHO $path | $GREP ^.:` 17163 new_path="$path" 17164 if test "x$has_colon" = x; then 17165 # Not in mixed or Windows style, start by that. 17166 new_path=`cmd //c echo $path` 17167 fi 17168 17169 17170 input_path="$new_path" 17171 # Check if we need to convert this using DOS-style short mode. If the path 17172 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17173 # take no chances and rewrite it. 17174 # Note: m4 eats our [], so we need to use [ and ] instead. 17175 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17176 if test "x$has_forbidden_chars" != x; then 17177 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17178 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17179 fi 17180 17181 17182 windows_path="$new_path" 17183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17184 unix_path=`$CYGPATH -u "$windows_path"` 17185 new_path="$unix_path" 17186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17188 new_path="$unix_path" 17189 fi 17190 17191 if test "x$path" != "x$new_path"; then 17192 with_devkit="$new_path" 17193 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17194 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17195 fi 17196 17197 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17198 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17199 17200 else 17201 # We're on a unix platform. Hooray! :) 17202 path="$with_devkit" 17203 has_space=`$ECHO "$path" | $GREP " "` 17204 if test "x$has_space" != x; then 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17206 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17207 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17208 fi 17209 17210 # Use eval to expand a potential ~ 17211 eval path="$path" 17212 if test ! -f "$path" && test ! -d "$path"; then 17213 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 17214 fi 17215 17216 if test -d "$path"; then 17217 with_devkit="`cd "$path"; $THEPWDCMD -L`" 17218 else 17219 dir="`$DIRNAME "$path"`" 17220 base="`$BASENAME "$path"`" 17221 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 17222 fi 17223 fi 17224 fi 17225 17226 DEVKIT_ROOT="$with_devkit" 17227 # Check for a meta data info file in the root of the devkit 17228 if test -f "$DEVKIT_ROOT/devkit.info"; then 17229 . $DEVKIT_ROOT/devkit.info 17230 # This potentially sets the following: 17231 # A descriptive name of the devkit 17232 17233 if test "x$DEVKIT_NAME" = x; then 17234 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 17235 fi 17236 17237 # Corresponds to --with-extra-path 17238 17239 if test "x$DEVKIT_EXTRA_PATH" = x; then 17240 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 17241 fi 17242 17243 # Corresponds to --with-toolchain-path 17244 17245 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17246 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 17247 fi 17248 17249 # Corresponds to --with-sysroot 17250 17251 if test "x$DEVKIT_SYSROOT" = x; then 17252 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 17253 fi 17254 17255 17256 # Identifies the Visual Studio version in the devkit 17257 17258 if test "x$DEVKIT_VS_VERSION" = x; then 17259 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 17260 fi 17261 17262 # The Visual Studio include environment variable 17263 17264 if test "x$DEVKIT_VS_INCLUDE" = x; then 17265 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 17266 fi 17267 17268 # The Visual Studio lib environment variable 17269 17270 if test "x$DEVKIT_VS_LIB" = x; then 17271 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17272 fi 17273 17274 # Corresponds to --with-msvcr-dll 17275 17276 if test "x$DEVKIT_MSVCR_DLL" = x; then 17277 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17278 fi 17279 17280 # Corresponds to --with-msvcp-dll 17281 17282 if test "x$DEVKIT_MSVCP_DLL" = x; then 17283 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17284 fi 17285 17286 fi 17287 17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17289 $as_echo_n "checking for devkit... " >&6; } 17290 if test "x$DEVKIT_NAME" != x; then 17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17292 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17293 else 17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17295 $as_echo "$DEVKIT_ROOT" >&6; } 17296 fi 17297 17298 17299 if test "x$DEVKIT_EXTRA_PATH" != x; then 17300 if test "x$EXTRA_PATH" = x; then 17301 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17302 else 17303 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17304 fi 17305 fi 17306 17307 17308 # Fallback default of just /bin if DEVKIT_PATH is not defined 17309 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17310 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17311 fi 17312 17313 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17314 if test "x$TOOLCHAIN_PATH" = x; then 17315 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17316 else 17317 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17318 fi 17319 fi 17320 17321 17322 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17323 # places for backwards compatiblity. 17324 if test "x$DEVKIT_SYSROOT" != x; then 17325 SYSROOT="$DEVKIT_SYSROOT" 17326 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17327 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17328 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17329 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17330 fi 17331 17332 if test "x$DEVKIT_ROOT" != x; then 17333 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 17334 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 17335 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 17336 fi 17337 17338 fi 17339 17340 17341 fi 17342 17343 17344 # You can force the sysroot if the sysroot encoded into the compiler tools 17345 # is not correct. 17346 17347 # Check whether --with-sys-root was given. 17348 if test "${with_sys_root+set}" = set; then : 17349 withval=$with_sys_root; SYSROOT=$with_sys_root 17350 17351 fi 17352 17353 17354 17355 # Check whether --with-sysroot was given. 17356 if test "${with_sysroot+set}" = set; then : 17357 withval=$with_sysroot; SYSROOT=$with_sysroot 17358 17359 fi 17360 17361 17362 17363 # Check whether --with-tools-dir was given. 17364 if test "${with_tools_dir+set}" = set; then : 17365 withval=$with_tools_dir; 17366 if test "x$with_tools_dir" != x; then 17367 if test "x$TOOLCHAIN_PATH" = x; then 17368 TOOLCHAIN_PATH="$with_tools_dir" 17369 else 17370 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17371 fi 17372 fi 17373 17374 17375 fi 17376 17377 17378 17379 # Check whether --with-toolchain-path was given. 17380 if test "${with_toolchain_path+set}" = set; then : 17381 withval=$with_toolchain_path; 17382 if test "x$with_toolchain_path" != x; then 17383 if test "x$TOOLCHAIN_PATH" = x; then 17384 TOOLCHAIN_PATH="$with_toolchain_path" 17385 else 17386 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17387 fi 17388 fi 17389 17390 17391 fi 17392 17393 17394 17395 # Check whether --with-extra-path was given. 17396 if test "${with_extra_path+set}" = set; then : 17397 withval=$with_extra_path; 17398 if test "x$with_extra_path" != x; then 17399 if test "x$EXTRA_PATH" = x; then 17400 EXTRA_PATH="$with_extra_path" 17401 else 17402 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17403 fi 17404 fi 17405 17406 17407 fi 17408 17409 17410 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17411 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17412 # If not, detect if Xcode is installed by running xcodebuild -version 17413 # if no Xcode installed, xcodebuild exits with 1 17414 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17415 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17416 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17417 # fall back on the stub binary in /usr/bin/xcodebuild 17418 # Extract the first word of "xcodebuild", so it can be a program name with args. 17419 set dummy xcodebuild; ac_word=$2 17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17421 $as_echo_n "checking for $ac_word... " >&6; } 17422 if ${ac_cv_path_XCODEBUILD+:} false; then : 17423 $as_echo_n "(cached) " >&6 17424 else 17425 case $XCODEBUILD in 17426 [\\/]* | ?:[\\/]*) 17427 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17428 ;; 17429 *) 17430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17431 for as_dir in $TOOLCHAIN_PATH 17432 do 17433 IFS=$as_save_IFS 17434 test -z "$as_dir" && as_dir=. 17435 for ac_exec_ext in '' $ac_executable_extensions; do 17436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17437 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17439 break 2 17440 fi 17441 done 17442 done 17443 IFS=$as_save_IFS 17444 17445 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17446 ;; 17447 esac 17448 fi 17449 XCODEBUILD=$ac_cv_path_XCODEBUILD 17450 if test -n "$XCODEBUILD"; then 17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17452 $as_echo "$XCODEBUILD" >&6; } 17453 else 17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17455 $as_echo "no" >&6; } 17456 fi 17457 17458 17459 else 17460 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17461 # when only the command line tools are installed there are no SDKs, so headers 17462 # are copied into the system frameworks 17463 XCODEBUILD= 17464 17465 fi 17466 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17468 $as_echo_n "checking for sdk name... " >&6; } 17469 17470 # Check whether --with-sdk-name was given. 17471 if test "${with_sdk_name+set}" = set; then : 17472 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17473 17474 fi 17475 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17477 $as_echo "$SDKNAME" >&6; } 17478 17479 # if toolchain path is specified then don't rely on system headers, they may not compile 17480 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17481 test -z "$TOOLCHAIN_PATH" && \ 17482 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17483 17484 if test -z "$SYSROOT"; then 17485 if test -n "$XCODEBUILD"; then 17486 # if we don't have system headers, use default SDK name (last resort) 17487 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17488 SDKNAME=${SDKNAME:-macosx} 17489 fi 17490 17491 if test -n "$SDKNAME"; then 17492 # Call xcodebuild to determine SYSROOT 17493 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17494 fi 17495 else 17496 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17497 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 17498 fi 17499 fi 17500 else 17501 # warn user if --with-sdk-name was also set 17502 if test -n "$with_sdk_name"; then 17503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17504 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17505 fi 17506 fi 17507 17508 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17509 # If no system framework headers, then SYSROOT must be set, or we won't build 17510 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 17511 fi 17512 17513 # Perform a basic sanity test 17514 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17515 if test -z "$SYSROOT"; then 17516 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 17517 else 17518 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17519 fi 17520 fi 17521 17522 # set SDKROOT too, Xcode tools will pick it up 17523 SDKROOT="$SYSROOT" 17524 17525 fi 17526 17527 # Prepend the extra path to the global path 17528 17529 if test "x$EXTRA_PATH" != x; then 17530 if test "x$PATH" = x; then 17531 PATH="$EXTRA_PATH" 17532 else 17533 PATH="$EXTRA_PATH:$PATH" 17534 fi 17535 fi 17536 17537 17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17539 $as_echo_n "checking for sysroot... " >&6; } 17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17541 $as_echo "$SYSROOT" >&6; } 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17543 $as_echo_n "checking for toolchain path... " >&6; } 17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17545 $as_echo "$TOOLCHAIN_PATH" >&6; } 17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17547 $as_echo_n "checking for extra path... " >&6; } 17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17549 $as_echo "$EXTRA_PATH" >&6; } 17550 17551 17552 # To properly create a configuration name, we need to have the OpenJDK target 17553 # and options (variants and debug level) parsed. 17554 17555 17556 17557 # Check whether --with-conf-name was given. 17558 if test "${with_conf_name+set}" = set; then : 17559 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17560 fi 17561 17562 17563 # Test from where we are running configure, in or outside of src root. 17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17565 $as_echo_n "checking where to store configuration... " >&6; } 17566 if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \ 17567 || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \ 17568 || test "x$CURDIR" = "x$TOPDIR/make" ; then 17569 # We are running configure from the src root. 17570 # Create a default ./build/target-variant-debuglevel output root. 17571 if test "x${CONF_NAME}" = x; then 17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17573 $as_echo "in default location" >&6; } 17574 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17575 else 17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17577 $as_echo "in build directory with custom name" >&6; } 17578 fi 17579 17580 if test "x$CUSTOM_ROOT" != x; then 17581 OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}" 17582 else 17583 OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}" 17584 fi 17585 $MKDIR -p "$OUTPUTDIR" 17586 if test ! -d "$OUTPUTDIR"; then 17587 as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5 17588 fi 17589 else 17590 # We are running configure from outside of the src dir. 17591 # Then use the current directory as output dir! 17592 # If configuration is situated in normal build directory, just use the build 17593 # directory name as configuration name, otherwise use the complete path. 17594 if test "x${CONF_NAME}" = x; then 17595 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"` 17596 fi 17597 OUTPUTDIR="$CURDIR" 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17599 $as_echo "in current directory" >&6; } 17600 17601 # WARNING: This might be a bad thing to do. You need to be sure you want to 17602 # have a configuration in this directory. Do some sanity checks! 17603 17604 if test ! -e "$OUTPUTDIR/spec.gmk"; then 17605 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17606 # other files 17607 files_present=`$LS $OUTPUTDIR` 17608 # Configure has already touched config.log and confdefs.h in the current dir when this check 17609 # is performed. 17610 filtered_files=`$ECHO "$files_present" \ 17611 | $SED -e 's/config.log//g' \ 17612 -e 's/configure.log//g' \ 17613 -e 's/confdefs.h//g' \ 17614 -e 's/ //g' \ 17615 | $TR -d '\n'` 17616 if test "x$filtered_files" != x; then 17617 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17618 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17620 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17621 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17622 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17623 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17624 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17625 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17626 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17627 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5 17628 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;} 17629 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17630 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17631 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17632 fi 17633 fi 17634 fi 17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17636 $as_echo_n "checking what configuration name to use... " >&6; } 17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17638 $as_echo "$CONF_NAME" >&6; } 17639 17640 17641 # Only process if variable expands to non-empty 17642 17643 if test "x$OUTPUTDIR" != x; then 17644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17645 17646 # Input might be given as Windows format, start by converting to 17647 # unix format. 17648 path="$OUTPUTDIR" 17649 new_path=`$CYGPATH -u "$path"` 17650 17651 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17652 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17653 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17654 # "foo.exe" is OK but "foo" is an error. 17655 # 17656 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17657 # It is also a way to make sure we got the proper file name for the real test later on. 17658 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17659 if test "x$test_shortpath" = x; then 17660 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17661 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17662 as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5 17663 fi 17664 17665 # Call helper function which possibly converts this using DOS-style short mode. 17666 # If so, the updated path is stored in $new_path. 17667 17668 input_path="$new_path" 17669 # Check if we need to convert this using DOS-style short mode. If the path 17670 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17671 # take no chances and rewrite it. 17672 # Note: m4 eats our [], so we need to use [ and ] instead. 17673 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17674 if test "x$has_forbidden_chars" != x; then 17675 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17676 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17677 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17678 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17679 # Going to short mode and back again did indeed matter. Since short mode is 17680 # case insensitive, let's make it lowercase to improve readability. 17681 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17682 # Now convert it back to Unix-style (cygpath) 17683 input_path=`$CYGPATH -u "$shortmode_path"` 17684 new_path="$input_path" 17685 fi 17686 fi 17687 17688 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17689 if test "x$test_cygdrive_prefix" = x; then 17690 # As a simple fix, exclude /usr/bin since it's not a real path. 17691 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17692 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17693 # a path prefixed by /cygdrive for fixpath to work. 17694 new_path="$CYGWIN_ROOT_PATH$input_path" 17695 fi 17696 fi 17697 17698 17699 if test "x$path" != "x$new_path"; then 17700 OUTPUTDIR="$new_path" 17701 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17702 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17703 fi 17704 17705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17706 17707 path="$OUTPUTDIR" 17708 has_colon=`$ECHO $path | $GREP ^.:` 17709 new_path="$path" 17710 if test "x$has_colon" = x; then 17711 # Not in mixed or Windows style, start by that. 17712 new_path=`cmd //c echo $path` 17713 fi 17714 17715 17716 input_path="$new_path" 17717 # Check if we need to convert this using DOS-style short mode. If the path 17718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17719 # take no chances and rewrite it. 17720 # Note: m4 eats our [], so we need to use [ and ] instead. 17721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17722 if test "x$has_forbidden_chars" != x; then 17723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17724 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17725 fi 17726 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 if test "x$path" != "x$new_path"; then 17738 OUTPUTDIR="$new_path" 17739 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17740 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17741 fi 17742 17743 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17744 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17745 17746 else 17747 # We're on a unix platform. Hooray! :) 17748 path="$OUTPUTDIR" 17749 has_space=`$ECHO "$path" | $GREP " "` 17750 if test "x$has_space" != x; then 17751 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17752 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17753 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17754 fi 17755 17756 # Use eval to expand a potential ~ 17757 eval path="$path" 17758 if test ! -f "$path" && test ! -d "$path"; then 17759 as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5 17760 fi 17761 17762 if test -d "$path"; then 17763 OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`" 17764 else 17765 dir="`$DIRNAME "$path"`" 17766 base="`$BASENAME "$path"`" 17767 OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 17768 fi 17769 fi 17770 fi 17771 17772 17773 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support" 17774 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17775 17776 SPEC="$OUTPUTDIR/spec.gmk" 17777 17778 17779 17780 17781 17782 # The spec.gmk file contains all variables for the make system. 17783 ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17784 17785 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17786 ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17787 17788 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17789 ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17790 17791 # The compare.sh is used to compare the build output to other builds. 17792 ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17793 17794 # The generated Makefile knows where the spec.gmk is and where the source is. 17795 # You can run make from the OUTPUTDIR, or from the top-level Makefile 17796 # which will look for generated configurations 17797 ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" 17798 17799 17800 17801 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17802 17803 for ac_prog in apt-get yum brew port pkgutil pkgadd 17804 do 17805 # Extract the first word of "$ac_prog", so it can be a program name with args. 17806 set dummy $ac_prog; ac_word=$2 17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17808 $as_echo_n "checking for $ac_word... " >&6; } 17809 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17810 $as_echo_n "(cached) " >&6 17811 else 17812 if test -n "$PKGHANDLER"; then 17813 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17814 else 17815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17816 for as_dir in $PATH 17817 do 17818 IFS=$as_save_IFS 17819 test -z "$as_dir" && as_dir=. 17820 for ac_exec_ext in '' $ac_executable_extensions; do 17821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17822 ac_cv_prog_PKGHANDLER="$ac_prog" 17823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17824 break 2 17825 fi 17826 done 17827 done 17828 IFS=$as_save_IFS 17829 17830 fi 17831 fi 17832 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17833 if test -n "$PKGHANDLER"; then 17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17835 $as_echo "$PKGHANDLER" >&6; } 17836 else 17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17838 $as_echo "no" >&6; } 17839 fi 17840 17841 17842 test -n "$PKGHANDLER" && break 17843 done 17844 17845 17846 17847 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17848 17849 17850 17851 # Publish this variable in the help. 17852 17853 17854 if [ -z "${MAKE+x}" ]; then 17855 # The variable is not set by user, try to locate tool using the code snippet 17856 17857 # Try our hardest to locate a correct version of GNU make 17858 for ac_prog in gmake 17859 do 17860 # Extract the first word of "$ac_prog", so it can be a program name with args. 17861 set dummy $ac_prog; ac_word=$2 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17863 $as_echo_n "checking for $ac_word... " >&6; } 17864 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17865 $as_echo_n "(cached) " >&6 17866 else 17867 case $CHECK_GMAKE in 17868 [\\/]* | ?:[\\/]*) 17869 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17870 ;; 17871 *) 17872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17873 for as_dir in $PATH 17874 do 17875 IFS=$as_save_IFS 17876 test -z "$as_dir" && as_dir=. 17877 for ac_exec_ext in '' $ac_executable_extensions; do 17878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17879 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17881 break 2 17882 fi 17883 done 17884 done 17885 IFS=$as_save_IFS 17886 17887 ;; 17888 esac 17889 fi 17890 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17891 if test -n "$CHECK_GMAKE"; then 17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17893 $as_echo "$CHECK_GMAKE" >&6; } 17894 else 17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17896 $as_echo "no" >&6; } 17897 fi 17898 17899 17900 test -n "$CHECK_GMAKE" && break 17901 done 17902 17903 17904 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17905 DESCRIPTION="gmake in PATH" 17906 17907 # On Cygwin, we require a newer version of make than on other platforms 17908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17909 MAKE_VERSION_EXPR="-e 4\." 17910 MAKE_REQUIRED_VERSION="4.0" 17911 else 17912 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17913 MAKE_REQUIRED_VERSION="3.81" 17914 fi 17915 17916 if test "x$MAKE_CANDIDATE" != x; then 17917 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17918 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17919 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17920 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17921 if test "x$IS_GNU_MAKE" = x; then 17922 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17923 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17924 else 17925 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17926 if test "x$IS_MODERN_MAKE" = x; then 17927 { $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 17928 $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;} 17929 else 17930 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17932 MAKE_EXPECTED_ENV='cygwin' 17933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17934 MAKE_EXPECTED_ENV='msys' 17935 else 17936 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17937 fi 17938 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17939 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17940 else 17941 # Not relevant for non-Windows 17942 IS_MAKE_CORRECT_ENV=true 17943 fi 17944 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17945 { $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 17946 $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;} 17947 else 17948 FOUND_MAKE=$MAKE_CANDIDATE 17949 17950 # Only process if variable expands to non-empty 17951 17952 if test "x$FOUND_MAKE" != x; then 17953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17954 17955 # First separate the path from the arguments. This will split at the first 17956 # space. 17957 complete="$FOUND_MAKE" 17958 path="${complete%% *}" 17959 tmp="$complete EOL" 17960 arguments="${tmp#* }" 17961 17962 # Input might be given as Windows format, start by converting to 17963 # unix format. 17964 new_path=`$CYGPATH -u "$path"` 17965 17966 # Now try to locate executable using which 17967 new_path=`$WHICH "$new_path" 2> /dev/null` 17968 # bat and cmd files are not always considered executable in cygwin causing which 17969 # to not find them 17970 if test "x$new_path" = x \ 17971 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17972 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17973 new_path=`$CYGPATH -u "$path"` 17974 fi 17975 if test "x$new_path" = x; then 17976 # Oops. Which didn't find the executable. 17977 # The splitting of arguments from the executable at a space might have been incorrect, 17978 # since paths with space are more likely in Windows. Give it another try with the whole 17979 # argument. 17980 path="$complete" 17981 arguments="EOL" 17982 new_path=`$CYGPATH -u "$path"` 17983 new_path=`$WHICH "$new_path" 2> /dev/null` 17984 # bat and cmd files are not always considered executable in cygwin causing which 17985 # to not find them 17986 if test "x$new_path" = x \ 17987 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17988 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17989 new_path=`$CYGPATH -u "$path"` 17990 fi 17991 if test "x$new_path" = x; then 17992 # It's still not found. Now this is an unrecoverable error. 17993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17994 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17995 has_space=`$ECHO "$complete" | $GREP " "` 17996 if test "x$has_space" != x; then 17997 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17998 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17999 fi 18000 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18001 fi 18002 fi 18003 18004 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18005 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18006 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18007 # "foo.exe" is OK but "foo" is an error. 18008 # 18009 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18010 # It is also a way to make sure we got the proper file name for the real test later on. 18011 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18012 if test "x$test_shortpath" = x; then 18013 # Short path failed, file does not exist as specified. 18014 # Try adding .exe or .cmd 18015 if test -f "${new_path}.exe"; then 18016 input_to_shortpath="${new_path}.exe" 18017 elif test -f "${new_path}.cmd"; then 18018 input_to_shortpath="${new_path}.cmd" 18019 else 18020 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18021 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18022 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18023 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18024 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18025 fi 18026 else 18027 input_to_shortpath="$new_path" 18028 fi 18029 18030 # Call helper function which possibly converts this using DOS-style short mode. 18031 # If so, the updated path is stored in $new_path. 18032 new_path="$input_to_shortpath" 18033 18034 input_path="$input_to_shortpath" 18035 # Check if we need to convert this using DOS-style short mode. If the path 18036 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18037 # take no chances and rewrite it. 18038 # Note: m4 eats our [], so we need to use [ and ] instead. 18039 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18040 if test "x$has_forbidden_chars" != x; then 18041 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18042 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18043 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18044 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18045 # Going to short mode and back again did indeed matter. Since short mode is 18046 # case insensitive, let's make it lowercase to improve readability. 18047 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18048 # Now convert it back to Unix-style (cygpath) 18049 input_path=`$CYGPATH -u "$shortmode_path"` 18050 new_path="$input_path" 18051 fi 18052 fi 18053 18054 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18055 if test "x$test_cygdrive_prefix" = x; then 18056 # As a simple fix, exclude /usr/bin since it's not a real path. 18057 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18058 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18059 # a path prefixed by /cygdrive for fixpath to work. 18060 new_path="$CYGWIN_ROOT_PATH$input_path" 18061 fi 18062 fi 18063 18064 # remove trailing .exe if any 18065 new_path="${new_path/%.exe/}" 18066 18067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18068 18069 # First separate the path from the arguments. This will split at the first 18070 # space. 18071 complete="$FOUND_MAKE" 18072 path="${complete%% *}" 18073 tmp="$complete EOL" 18074 arguments="${tmp#* }" 18075 18076 # Input might be given as Windows format, start by converting to 18077 # unix format. 18078 new_path="$path" 18079 18080 windows_path="$new_path" 18081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18082 unix_path=`$CYGPATH -u "$windows_path"` 18083 new_path="$unix_path" 18084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18086 new_path="$unix_path" 18087 fi 18088 18089 18090 # Now try to locate executable using which 18091 new_path=`$WHICH "$new_path" 2> /dev/null` 18092 18093 if test "x$new_path" = x; then 18094 # Oops. Which didn't find the executable. 18095 # The splitting of arguments from the executable at a space might have been incorrect, 18096 # since paths with space are more likely in Windows. Give it another try with the whole 18097 # argument. 18098 path="$complete" 18099 arguments="EOL" 18100 new_path="$path" 18101 18102 windows_path="$new_path" 18103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18104 unix_path=`$CYGPATH -u "$windows_path"` 18105 new_path="$unix_path" 18106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18108 new_path="$unix_path" 18109 fi 18110 18111 18112 new_path=`$WHICH "$new_path" 2> /dev/null` 18113 # bat and cmd files are not always considered executable in MSYS causing which 18114 # to not find them 18115 if test "x$new_path" = x \ 18116 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18117 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18118 new_path="$path" 18119 18120 windows_path="$new_path" 18121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18122 unix_path=`$CYGPATH -u "$windows_path"` 18123 new_path="$unix_path" 18124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18125 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18126 new_path="$unix_path" 18127 fi 18128 18129 fi 18130 18131 if test "x$new_path" = x; then 18132 # It's still not found. Now this is an unrecoverable error. 18133 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18134 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18135 has_space=`$ECHO "$complete" | $GREP " "` 18136 if test "x$has_space" != x; then 18137 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18138 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18139 fi 18140 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18141 fi 18142 fi 18143 18144 # Now new_path has a complete unix path to the binary 18145 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18146 # Keep paths in /bin as-is, but remove trailing .exe if any 18147 new_path="${new_path/%.exe/}" 18148 # Do not save /bin paths to all_fixpath_prefixes! 18149 else 18150 # Not in mixed or Windows style, start by that. 18151 new_path=`cmd //c echo $new_path` 18152 18153 input_path="$new_path" 18154 # Check if we need to convert this using DOS-style short mode. If the path 18155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18156 # take no chances and rewrite it. 18157 # Note: m4 eats our [], so we need to use [ and ] instead. 18158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18159 if test "x$has_forbidden_chars" != x; then 18160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18161 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18162 fi 18163 18164 # Output is in $new_path 18165 18166 windows_path="$new_path" 18167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18168 unix_path=`$CYGPATH -u "$windows_path"` 18169 new_path="$unix_path" 18170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18172 new_path="$unix_path" 18173 fi 18174 18175 # remove trailing .exe if any 18176 new_path="${new_path/%.exe/}" 18177 18178 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18179 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18180 fi 18181 18182 else 18183 # We're on a unix platform. Hooray! :) 18184 # First separate the path from the arguments. This will split at the first 18185 # space. 18186 complete="$FOUND_MAKE" 18187 path="${complete%% *}" 18188 tmp="$complete EOL" 18189 arguments="${tmp#* }" 18190 18191 # Cannot rely on the command "which" here since it doesn't always work. 18192 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18193 if test -z "$is_absolute_path"; then 18194 # Path to executable is not absolute. Find it. 18195 IFS_save="$IFS" 18196 IFS=: 18197 for p in $PATH; do 18198 if test -f "$p/$path" && test -x "$p/$path"; then 18199 new_path="$p/$path" 18200 break 18201 fi 18202 done 18203 IFS="$IFS_save" 18204 else 18205 # This is an absolute path, we can use it without further modifications. 18206 new_path="$path" 18207 fi 18208 18209 if test "x$new_path" = x; then 18210 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18211 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18212 has_space=`$ECHO "$complete" | $GREP " "` 18213 if test "x$has_space" != x; then 18214 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18215 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18216 fi 18217 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18218 fi 18219 fi 18220 18221 # Now join together the path and the arguments once again 18222 if test "x$arguments" != xEOL; then 18223 new_complete="$new_path ${arguments% *}" 18224 else 18225 new_complete="$new_path" 18226 fi 18227 18228 if test "x$complete" != "x$new_complete"; then 18229 FOUND_MAKE="$new_complete" 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18231 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18232 fi 18233 fi 18234 18235 fi 18236 fi 18237 fi 18238 fi 18239 18240 18241 if test "x$FOUND_MAKE" = x; then 18242 for ac_prog in make 18243 do 18244 # Extract the first word of "$ac_prog", so it can be a program name with args. 18245 set dummy $ac_prog; ac_word=$2 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18247 $as_echo_n "checking for $ac_word... " >&6; } 18248 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18249 $as_echo_n "(cached) " >&6 18250 else 18251 case $CHECK_MAKE in 18252 [\\/]* | ?:[\\/]*) 18253 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18254 ;; 18255 *) 18256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18257 for as_dir in $PATH 18258 do 18259 IFS=$as_save_IFS 18260 test -z "$as_dir" && as_dir=. 18261 for ac_exec_ext in '' $ac_executable_extensions; do 18262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18263 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18265 break 2 18266 fi 18267 done 18268 done 18269 IFS=$as_save_IFS 18270 18271 ;; 18272 esac 18273 fi 18274 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18275 if test -n "$CHECK_MAKE"; then 18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18277 $as_echo "$CHECK_MAKE" >&6; } 18278 else 18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18280 $as_echo "no" >&6; } 18281 fi 18282 18283 18284 test -n "$CHECK_MAKE" && break 18285 done 18286 18287 18288 MAKE_CANDIDATE=""$CHECK_MAKE"" 18289 DESCRIPTION="make in PATH" 18290 18291 # On Cygwin, we require a newer version of make than on other platforms 18292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18293 MAKE_VERSION_EXPR="-e 4\." 18294 MAKE_REQUIRED_VERSION="4.0" 18295 else 18296 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18297 MAKE_REQUIRED_VERSION="3.81" 18298 fi 18299 18300 if test "x$MAKE_CANDIDATE" != x; then 18301 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18302 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18303 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18304 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18305 if test "x$IS_GNU_MAKE" = x; then 18306 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18307 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18308 else 18309 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18310 if test "x$IS_MODERN_MAKE" = x; then 18311 { $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 18312 $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;} 18313 else 18314 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18316 MAKE_EXPECTED_ENV='cygwin' 18317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18318 MAKE_EXPECTED_ENV='msys' 18319 else 18320 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18321 fi 18322 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18323 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18324 else 18325 # Not relevant for non-Windows 18326 IS_MAKE_CORRECT_ENV=true 18327 fi 18328 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18329 { $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 18330 $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;} 18331 else 18332 FOUND_MAKE=$MAKE_CANDIDATE 18333 18334 # Only process if variable expands to non-empty 18335 18336 if test "x$FOUND_MAKE" != x; then 18337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18338 18339 # First separate the path from the arguments. This will split at the first 18340 # space. 18341 complete="$FOUND_MAKE" 18342 path="${complete%% *}" 18343 tmp="$complete EOL" 18344 arguments="${tmp#* }" 18345 18346 # Input might be given as Windows format, start by converting to 18347 # unix format. 18348 new_path=`$CYGPATH -u "$path"` 18349 18350 # Now try to locate executable using which 18351 new_path=`$WHICH "$new_path" 2> /dev/null` 18352 # bat and cmd files are not always considered executable in cygwin causing which 18353 # to not find them 18354 if test "x$new_path" = x \ 18355 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18356 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18357 new_path=`$CYGPATH -u "$path"` 18358 fi 18359 if test "x$new_path" = x; then 18360 # Oops. Which didn't find the executable. 18361 # The splitting of arguments from the executable at a space might have been incorrect, 18362 # since paths with space are more likely in Windows. Give it another try with the whole 18363 # argument. 18364 path="$complete" 18365 arguments="EOL" 18366 new_path=`$CYGPATH -u "$path"` 18367 new_path=`$WHICH "$new_path" 2> /dev/null` 18368 # bat and cmd files are not always considered executable in cygwin causing which 18369 # to not find them 18370 if test "x$new_path" = x \ 18371 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18372 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18373 new_path=`$CYGPATH -u "$path"` 18374 fi 18375 if test "x$new_path" = x; then 18376 # It's still not found. Now this is an unrecoverable error. 18377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18378 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18379 has_space=`$ECHO "$complete" | $GREP " "` 18380 if test "x$has_space" != x; then 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18382 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18383 fi 18384 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18385 fi 18386 fi 18387 18388 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18389 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18390 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18391 # "foo.exe" is OK but "foo" is an error. 18392 # 18393 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18394 # It is also a way to make sure we got the proper file name for the real test later on. 18395 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18396 if test "x$test_shortpath" = x; then 18397 # Short path failed, file does not exist as specified. 18398 # Try adding .exe or .cmd 18399 if test -f "${new_path}.exe"; then 18400 input_to_shortpath="${new_path}.exe" 18401 elif test -f "${new_path}.cmd"; then 18402 input_to_shortpath="${new_path}.cmd" 18403 else 18404 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18405 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18406 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18407 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18408 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18409 fi 18410 else 18411 input_to_shortpath="$new_path" 18412 fi 18413 18414 # Call helper function which possibly converts this using DOS-style short mode. 18415 # If so, the updated path is stored in $new_path. 18416 new_path="$input_to_shortpath" 18417 18418 input_path="$input_to_shortpath" 18419 # Check if we need to convert this using DOS-style short mode. If the path 18420 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18421 # take no chances and rewrite it. 18422 # Note: m4 eats our [], so we need to use [ and ] instead. 18423 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18424 if test "x$has_forbidden_chars" != x; then 18425 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18426 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18427 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18428 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18429 # Going to short mode and back again did indeed matter. Since short mode is 18430 # case insensitive, let's make it lowercase to improve readability. 18431 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18432 # Now convert it back to Unix-style (cygpath) 18433 input_path=`$CYGPATH -u "$shortmode_path"` 18434 new_path="$input_path" 18435 fi 18436 fi 18437 18438 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18439 if test "x$test_cygdrive_prefix" = x; then 18440 # As a simple fix, exclude /usr/bin since it's not a real path. 18441 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18442 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18443 # a path prefixed by /cygdrive for fixpath to work. 18444 new_path="$CYGWIN_ROOT_PATH$input_path" 18445 fi 18446 fi 18447 18448 # remove trailing .exe if any 18449 new_path="${new_path/%.exe/}" 18450 18451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18452 18453 # First separate the path from the arguments. This will split at the first 18454 # space. 18455 complete="$FOUND_MAKE" 18456 path="${complete%% *}" 18457 tmp="$complete EOL" 18458 arguments="${tmp#* }" 18459 18460 # Input might be given as Windows format, start by converting to 18461 # unix format. 18462 new_path="$path" 18463 18464 windows_path="$new_path" 18465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18466 unix_path=`$CYGPATH -u "$windows_path"` 18467 new_path="$unix_path" 18468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18469 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18470 new_path="$unix_path" 18471 fi 18472 18473 18474 # Now try to locate executable using which 18475 new_path=`$WHICH "$new_path" 2> /dev/null` 18476 18477 if test "x$new_path" = x; then 18478 # Oops. Which didn't find the executable. 18479 # The splitting of arguments from the executable at a space might have been incorrect, 18480 # since paths with space are more likely in Windows. Give it another try with the whole 18481 # argument. 18482 path="$complete" 18483 arguments="EOL" 18484 new_path="$path" 18485 18486 windows_path="$new_path" 18487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18488 unix_path=`$CYGPATH -u "$windows_path"` 18489 new_path="$unix_path" 18490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18492 new_path="$unix_path" 18493 fi 18494 18495 18496 new_path=`$WHICH "$new_path" 2> /dev/null` 18497 # bat and cmd files are not always considered executable in MSYS causing which 18498 # to not find them 18499 if test "x$new_path" = x \ 18500 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18501 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18502 new_path="$path" 18503 18504 windows_path="$new_path" 18505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18506 unix_path=`$CYGPATH -u "$windows_path"` 18507 new_path="$unix_path" 18508 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18509 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18510 new_path="$unix_path" 18511 fi 18512 18513 fi 18514 18515 if test "x$new_path" = x; then 18516 # It's still not found. Now this is an unrecoverable error. 18517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18518 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18519 has_space=`$ECHO "$complete" | $GREP " "` 18520 if test "x$has_space" != x; then 18521 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18522 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18523 fi 18524 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18525 fi 18526 fi 18527 18528 # Now new_path has a complete unix path to the binary 18529 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18530 # Keep paths in /bin as-is, but remove trailing .exe if any 18531 new_path="${new_path/%.exe/}" 18532 # Do not save /bin paths to all_fixpath_prefixes! 18533 else 18534 # Not in mixed or Windows style, start by that. 18535 new_path=`cmd //c echo $new_path` 18536 18537 input_path="$new_path" 18538 # Check if we need to convert this using DOS-style short mode. If the path 18539 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18540 # take no chances and rewrite it. 18541 # Note: m4 eats our [], so we need to use [ and ] instead. 18542 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18543 if test "x$has_forbidden_chars" != x; then 18544 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18545 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18546 fi 18547 18548 # Output is in $new_path 18549 18550 windows_path="$new_path" 18551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18552 unix_path=`$CYGPATH -u "$windows_path"` 18553 new_path="$unix_path" 18554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18556 new_path="$unix_path" 18557 fi 18558 18559 # remove trailing .exe if any 18560 new_path="${new_path/%.exe/}" 18561 18562 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18563 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18564 fi 18565 18566 else 18567 # We're on a unix platform. Hooray! :) 18568 # First separate the path from the arguments. This will split at the first 18569 # space. 18570 complete="$FOUND_MAKE" 18571 path="${complete%% *}" 18572 tmp="$complete EOL" 18573 arguments="${tmp#* }" 18574 18575 # Cannot rely on the command "which" here since it doesn't always work. 18576 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18577 if test -z "$is_absolute_path"; then 18578 # Path to executable is not absolute. Find it. 18579 IFS_save="$IFS" 18580 IFS=: 18581 for p in $PATH; do 18582 if test -f "$p/$path" && test -x "$p/$path"; then 18583 new_path="$p/$path" 18584 break 18585 fi 18586 done 18587 IFS="$IFS_save" 18588 else 18589 # This is an absolute path, we can use it without further modifications. 18590 new_path="$path" 18591 fi 18592 18593 if test "x$new_path" = x; then 18594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18595 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18596 has_space=`$ECHO "$complete" | $GREP " "` 18597 if test "x$has_space" != x; then 18598 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18599 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18600 fi 18601 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18602 fi 18603 fi 18604 18605 # Now join together the path and the arguments once again 18606 if test "x$arguments" != xEOL; then 18607 new_complete="$new_path ${arguments% *}" 18608 else 18609 new_complete="$new_path" 18610 fi 18611 18612 if test "x$complete" != "x$new_complete"; then 18613 FOUND_MAKE="$new_complete" 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18615 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18616 fi 18617 fi 18618 18619 fi 18620 fi 18621 fi 18622 fi 18623 18624 fi 18625 18626 if test "x$FOUND_MAKE" = x; then 18627 if test "x$TOOLCHAIN_PATH" != x; then 18628 # We have a toolchain path, check that as well before giving up. 18629 OLD_PATH=$PATH 18630 PATH=$TOOLCHAIN_PATH:$PATH 18631 for ac_prog in gmake 18632 do 18633 # Extract the first word of "$ac_prog", so it can be a program name with args. 18634 set dummy $ac_prog; ac_word=$2 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18636 $as_echo_n "checking for $ac_word... " >&6; } 18637 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18638 $as_echo_n "(cached) " >&6 18639 else 18640 case $CHECK_TOOLSDIR_GMAKE in 18641 [\\/]* | ?:[\\/]*) 18642 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18643 ;; 18644 *) 18645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18646 for as_dir in $PATH 18647 do 18648 IFS=$as_save_IFS 18649 test -z "$as_dir" && as_dir=. 18650 for ac_exec_ext in '' $ac_executable_extensions; do 18651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18652 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18654 break 2 18655 fi 18656 done 18657 done 18658 IFS=$as_save_IFS 18659 18660 ;; 18661 esac 18662 fi 18663 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18664 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18666 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18667 else 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18669 $as_echo "no" >&6; } 18670 fi 18671 18672 18673 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18674 done 18675 18676 18677 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18678 DESCRIPTION="gmake in tools-dir" 18679 18680 # On Cygwin, we require a newer version of make than on other platforms 18681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18682 MAKE_VERSION_EXPR="-e 4\." 18683 MAKE_REQUIRED_VERSION="4.0" 18684 else 18685 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18686 MAKE_REQUIRED_VERSION="3.81" 18687 fi 18688 18689 if test "x$MAKE_CANDIDATE" != x; then 18690 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18691 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18692 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18693 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18694 if test "x$IS_GNU_MAKE" = x; then 18695 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18696 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18697 else 18698 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18699 if test "x$IS_MODERN_MAKE" = x; then 18700 { $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 18701 $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;} 18702 else 18703 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18705 MAKE_EXPECTED_ENV='cygwin' 18706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18707 MAKE_EXPECTED_ENV='msys' 18708 else 18709 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18710 fi 18711 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18712 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18713 else 18714 # Not relevant for non-Windows 18715 IS_MAKE_CORRECT_ENV=true 18716 fi 18717 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18718 { $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 18719 $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;} 18720 else 18721 FOUND_MAKE=$MAKE_CANDIDATE 18722 18723 # Only process if variable expands to non-empty 18724 18725 if test "x$FOUND_MAKE" != x; then 18726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18727 18728 # First separate the path from the arguments. This will split at the first 18729 # space. 18730 complete="$FOUND_MAKE" 18731 path="${complete%% *}" 18732 tmp="$complete EOL" 18733 arguments="${tmp#* }" 18734 18735 # Input might be given as Windows format, start by converting to 18736 # unix format. 18737 new_path=`$CYGPATH -u "$path"` 18738 18739 # Now try to locate executable using which 18740 new_path=`$WHICH "$new_path" 2> /dev/null` 18741 # bat and cmd files are not always considered executable in cygwin causing which 18742 # to not find them 18743 if test "x$new_path" = x \ 18744 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18745 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18746 new_path=`$CYGPATH -u "$path"` 18747 fi 18748 if test "x$new_path" = x; then 18749 # Oops. Which didn't find the executable. 18750 # The splitting of arguments from the executable at a space might have been incorrect, 18751 # since paths with space are more likely in Windows. Give it another try with the whole 18752 # argument. 18753 path="$complete" 18754 arguments="EOL" 18755 new_path=`$CYGPATH -u "$path"` 18756 new_path=`$WHICH "$new_path" 2> /dev/null` 18757 # bat and cmd files are not always considered executable in cygwin causing which 18758 # to not find them 18759 if test "x$new_path" = x \ 18760 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18761 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18762 new_path=`$CYGPATH -u "$path"` 18763 fi 18764 if test "x$new_path" = x; then 18765 # It's still not found. Now this is an unrecoverable error. 18766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18767 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18768 has_space=`$ECHO "$complete" | $GREP " "` 18769 if test "x$has_space" != x; then 18770 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18771 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18772 fi 18773 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18774 fi 18775 fi 18776 18777 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18778 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18779 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18780 # "foo.exe" is OK but "foo" is an error. 18781 # 18782 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18783 # It is also a way to make sure we got the proper file name for the real test later on. 18784 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18785 if test "x$test_shortpath" = x; then 18786 # Short path failed, file does not exist as specified. 18787 # Try adding .exe or .cmd 18788 if test -f "${new_path}.exe"; then 18789 input_to_shortpath="${new_path}.exe" 18790 elif test -f "${new_path}.cmd"; then 18791 input_to_shortpath="${new_path}.cmd" 18792 else 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18794 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18795 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18796 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18797 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18798 fi 18799 else 18800 input_to_shortpath="$new_path" 18801 fi 18802 18803 # Call helper function which possibly converts this using DOS-style short mode. 18804 # If so, the updated path is stored in $new_path. 18805 new_path="$input_to_shortpath" 18806 18807 input_path="$input_to_shortpath" 18808 # Check if we need to convert this using DOS-style short mode. If the path 18809 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18810 # take no chances and rewrite it. 18811 # Note: m4 eats our [], so we need to use [ and ] instead. 18812 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18813 if test "x$has_forbidden_chars" != x; then 18814 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18815 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18816 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18817 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18818 # Going to short mode and back again did indeed matter. Since short mode is 18819 # case insensitive, let's make it lowercase to improve readability. 18820 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18821 # Now convert it back to Unix-style (cygpath) 18822 input_path=`$CYGPATH -u "$shortmode_path"` 18823 new_path="$input_path" 18824 fi 18825 fi 18826 18827 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18828 if test "x$test_cygdrive_prefix" = x; then 18829 # As a simple fix, exclude /usr/bin since it's not a real path. 18830 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18831 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18832 # a path prefixed by /cygdrive for fixpath to work. 18833 new_path="$CYGWIN_ROOT_PATH$input_path" 18834 fi 18835 fi 18836 18837 # remove trailing .exe if any 18838 new_path="${new_path/%.exe/}" 18839 18840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18841 18842 # First separate the path from the arguments. This will split at the first 18843 # space. 18844 complete="$FOUND_MAKE" 18845 path="${complete%% *}" 18846 tmp="$complete EOL" 18847 arguments="${tmp#* }" 18848 18849 # Input might be given as Windows format, start by converting to 18850 # unix format. 18851 new_path="$path" 18852 18853 windows_path="$new_path" 18854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18855 unix_path=`$CYGPATH -u "$windows_path"` 18856 new_path="$unix_path" 18857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18859 new_path="$unix_path" 18860 fi 18861 18862 18863 # Now try to locate executable using which 18864 new_path=`$WHICH "$new_path" 2> /dev/null` 18865 18866 if test "x$new_path" = x; then 18867 # Oops. Which didn't find the executable. 18868 # The splitting of arguments from the executable at a space might have been incorrect, 18869 # since paths with space are more likely in Windows. Give it another try with the whole 18870 # argument. 18871 path="$complete" 18872 arguments="EOL" 18873 new_path="$path" 18874 18875 windows_path="$new_path" 18876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18877 unix_path=`$CYGPATH -u "$windows_path"` 18878 new_path="$unix_path" 18879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18880 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18881 new_path="$unix_path" 18882 fi 18883 18884 18885 new_path=`$WHICH "$new_path" 2> /dev/null` 18886 # bat and cmd files are not always considered executable in MSYS causing which 18887 # to not find them 18888 if test "x$new_path" = x \ 18889 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18890 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18891 new_path="$path" 18892 18893 windows_path="$new_path" 18894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18895 unix_path=`$CYGPATH -u "$windows_path"` 18896 new_path="$unix_path" 18897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18899 new_path="$unix_path" 18900 fi 18901 18902 fi 18903 18904 if test "x$new_path" = x; then 18905 # It's still not found. Now this is an unrecoverable error. 18906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18907 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18908 has_space=`$ECHO "$complete" | $GREP " "` 18909 if test "x$has_space" != x; then 18910 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18911 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18912 fi 18913 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18914 fi 18915 fi 18916 18917 # Now new_path has a complete unix path to the binary 18918 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18919 # Keep paths in /bin as-is, but remove trailing .exe if any 18920 new_path="${new_path/%.exe/}" 18921 # Do not save /bin paths to all_fixpath_prefixes! 18922 else 18923 # Not in mixed or Windows style, start by that. 18924 new_path=`cmd //c echo $new_path` 18925 18926 input_path="$new_path" 18927 # Check if we need to convert this using DOS-style short mode. If the path 18928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18929 # take no chances and rewrite it. 18930 # Note: m4 eats our [], so we need to use [ and ] instead. 18931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18932 if test "x$has_forbidden_chars" != x; then 18933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18934 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18935 fi 18936 18937 # Output is in $new_path 18938 18939 windows_path="$new_path" 18940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18941 unix_path=`$CYGPATH -u "$windows_path"` 18942 new_path="$unix_path" 18943 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18944 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18945 new_path="$unix_path" 18946 fi 18947 18948 # remove trailing .exe if any 18949 new_path="${new_path/%.exe/}" 18950 18951 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18952 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18953 fi 18954 18955 else 18956 # We're on a unix platform. Hooray! :) 18957 # First separate the path from the arguments. This will split at the first 18958 # space. 18959 complete="$FOUND_MAKE" 18960 path="${complete%% *}" 18961 tmp="$complete EOL" 18962 arguments="${tmp#* }" 18963 18964 # Cannot rely on the command "which" here since it doesn't always work. 18965 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18966 if test -z "$is_absolute_path"; then 18967 # Path to executable is not absolute. Find it. 18968 IFS_save="$IFS" 18969 IFS=: 18970 for p in $PATH; do 18971 if test -f "$p/$path" && test -x "$p/$path"; then 18972 new_path="$p/$path" 18973 break 18974 fi 18975 done 18976 IFS="$IFS_save" 18977 else 18978 # This is an absolute path, we can use it without further modifications. 18979 new_path="$path" 18980 fi 18981 18982 if test "x$new_path" = x; then 18983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18984 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18985 has_space=`$ECHO "$complete" | $GREP " "` 18986 if test "x$has_space" != x; then 18987 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18988 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18989 fi 18990 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18991 fi 18992 fi 18993 18994 # Now join together the path and the arguments once again 18995 if test "x$arguments" != xEOL; then 18996 new_complete="$new_path ${arguments% *}" 18997 else 18998 new_complete="$new_path" 18999 fi 19000 19001 if test "x$complete" != "x$new_complete"; then 19002 FOUND_MAKE="$new_complete" 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19004 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19005 fi 19006 fi 19007 19008 fi 19009 fi 19010 fi 19011 fi 19012 19013 if test "x$FOUND_MAKE" = x; then 19014 for ac_prog in make 19015 do 19016 # Extract the first word of "$ac_prog", so it can be a program name with args. 19017 set dummy $ac_prog; ac_word=$2 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19019 $as_echo_n "checking for $ac_word... " >&6; } 19020 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 19021 $as_echo_n "(cached) " >&6 19022 else 19023 case $CHECK_TOOLSDIR_MAKE in 19024 [\\/]* | ?:[\\/]*) 19025 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 19026 ;; 19027 *) 19028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19029 for as_dir in $PATH 19030 do 19031 IFS=$as_save_IFS 19032 test -z "$as_dir" && as_dir=. 19033 for ac_exec_ext in '' $ac_executable_extensions; do 19034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19035 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 19036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19037 break 2 19038 fi 19039 done 19040 done 19041 IFS=$as_save_IFS 19042 19043 ;; 19044 esac 19045 fi 19046 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19047 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19049 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19050 else 19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19052 $as_echo "no" >&6; } 19053 fi 19054 19055 19056 test -n "$CHECK_TOOLSDIR_MAKE" && break 19057 done 19058 19059 19060 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19061 DESCRIPTION="make in tools-dir" 19062 19063 # On Cygwin, we require a newer version of make than on other platforms 19064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19065 MAKE_VERSION_EXPR="-e 4\." 19066 MAKE_REQUIRED_VERSION="4.0" 19067 else 19068 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19069 MAKE_REQUIRED_VERSION="3.81" 19070 fi 19071 19072 if test "x$MAKE_CANDIDATE" != x; then 19073 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19074 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19075 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19076 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19077 if test "x$IS_GNU_MAKE" = x; then 19078 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19079 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19080 else 19081 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19082 if test "x$IS_MODERN_MAKE" = x; then 19083 { $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 19084 $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;} 19085 else 19086 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19088 MAKE_EXPECTED_ENV='cygwin' 19089 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19090 MAKE_EXPECTED_ENV='msys' 19091 else 19092 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19093 fi 19094 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19095 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19096 else 19097 # Not relevant for non-Windows 19098 IS_MAKE_CORRECT_ENV=true 19099 fi 19100 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19101 { $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 19102 $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;} 19103 else 19104 FOUND_MAKE=$MAKE_CANDIDATE 19105 19106 # Only process if variable expands to non-empty 19107 19108 if test "x$FOUND_MAKE" != x; then 19109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19110 19111 # First separate the path from the arguments. This will split at the first 19112 # space. 19113 complete="$FOUND_MAKE" 19114 path="${complete%% *}" 19115 tmp="$complete EOL" 19116 arguments="${tmp#* }" 19117 19118 # Input might be given as Windows format, start by converting to 19119 # unix format. 19120 new_path=`$CYGPATH -u "$path"` 19121 19122 # Now try to locate executable using which 19123 new_path=`$WHICH "$new_path" 2> /dev/null` 19124 # bat and cmd files are not always considered executable in cygwin causing which 19125 # to not find them 19126 if test "x$new_path" = x \ 19127 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19128 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19129 new_path=`$CYGPATH -u "$path"` 19130 fi 19131 if test "x$new_path" = x; then 19132 # Oops. Which didn't find the executable. 19133 # The splitting of arguments from the executable at a space might have been incorrect, 19134 # since paths with space are more likely in Windows. Give it another try with the whole 19135 # argument. 19136 path="$complete" 19137 arguments="EOL" 19138 new_path=`$CYGPATH -u "$path"` 19139 new_path=`$WHICH "$new_path" 2> /dev/null` 19140 # bat and cmd files are not always considered executable in cygwin causing which 19141 # to not find them 19142 if test "x$new_path" = x \ 19143 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19144 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19145 new_path=`$CYGPATH -u "$path"` 19146 fi 19147 if test "x$new_path" = x; then 19148 # It's still not found. Now this is an unrecoverable error. 19149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19150 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19151 has_space=`$ECHO "$complete" | $GREP " "` 19152 if test "x$has_space" != x; then 19153 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19154 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19155 fi 19156 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19157 fi 19158 fi 19159 19160 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19161 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19162 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19163 # "foo.exe" is OK but "foo" is an error. 19164 # 19165 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19166 # It is also a way to make sure we got the proper file name for the real test later on. 19167 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19168 if test "x$test_shortpath" = x; then 19169 # Short path failed, file does not exist as specified. 19170 # Try adding .exe or .cmd 19171 if test -f "${new_path}.exe"; then 19172 input_to_shortpath="${new_path}.exe" 19173 elif test -f "${new_path}.cmd"; then 19174 input_to_shortpath="${new_path}.cmd" 19175 else 19176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19177 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19178 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19179 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19180 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19181 fi 19182 else 19183 input_to_shortpath="$new_path" 19184 fi 19185 19186 # Call helper function which possibly converts this using DOS-style short mode. 19187 # If so, the updated path is stored in $new_path. 19188 new_path="$input_to_shortpath" 19189 19190 input_path="$input_to_shortpath" 19191 # Check if we need to convert this using DOS-style short mode. If the path 19192 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19193 # take no chances and rewrite it. 19194 # Note: m4 eats our [], so we need to use [ and ] instead. 19195 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19196 if test "x$has_forbidden_chars" != x; then 19197 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19198 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19199 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19200 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19201 # Going to short mode and back again did indeed matter. Since short mode is 19202 # case insensitive, let's make it lowercase to improve readability. 19203 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19204 # Now convert it back to Unix-style (cygpath) 19205 input_path=`$CYGPATH -u "$shortmode_path"` 19206 new_path="$input_path" 19207 fi 19208 fi 19209 19210 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19211 if test "x$test_cygdrive_prefix" = x; then 19212 # As a simple fix, exclude /usr/bin since it's not a real path. 19213 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19214 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19215 # a path prefixed by /cygdrive for fixpath to work. 19216 new_path="$CYGWIN_ROOT_PATH$input_path" 19217 fi 19218 fi 19219 19220 # remove trailing .exe if any 19221 new_path="${new_path/%.exe/}" 19222 19223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19224 19225 # First separate the path from the arguments. This will split at the first 19226 # space. 19227 complete="$FOUND_MAKE" 19228 path="${complete%% *}" 19229 tmp="$complete EOL" 19230 arguments="${tmp#* }" 19231 19232 # Input might be given as Windows format, start by converting to 19233 # unix format. 19234 new_path="$path" 19235 19236 windows_path="$new_path" 19237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19238 unix_path=`$CYGPATH -u "$windows_path"` 19239 new_path="$unix_path" 19240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19242 new_path="$unix_path" 19243 fi 19244 19245 19246 # Now try to locate executable using which 19247 new_path=`$WHICH "$new_path" 2> /dev/null` 19248 19249 if test "x$new_path" = x; then 19250 # Oops. Which didn't find the executable. 19251 # The splitting of arguments from the executable at a space might have been incorrect, 19252 # since paths with space are more likely in Windows. Give it another try with the whole 19253 # argument. 19254 path="$complete" 19255 arguments="EOL" 19256 new_path="$path" 19257 19258 windows_path="$new_path" 19259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19260 unix_path=`$CYGPATH -u "$windows_path"` 19261 new_path="$unix_path" 19262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19264 new_path="$unix_path" 19265 fi 19266 19267 19268 new_path=`$WHICH "$new_path" 2> /dev/null` 19269 # bat and cmd files are not always considered executable in MSYS causing which 19270 # to not find them 19271 if test "x$new_path" = x \ 19272 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19273 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19274 new_path="$path" 19275 19276 windows_path="$new_path" 19277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19278 unix_path=`$CYGPATH -u "$windows_path"` 19279 new_path="$unix_path" 19280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19281 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19282 new_path="$unix_path" 19283 fi 19284 19285 fi 19286 19287 if test "x$new_path" = x; then 19288 # It's still not found. Now this is an unrecoverable error. 19289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19290 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19291 has_space=`$ECHO "$complete" | $GREP " "` 19292 if test "x$has_space" != x; then 19293 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19294 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19295 fi 19296 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19297 fi 19298 fi 19299 19300 # Now new_path has a complete unix path to the binary 19301 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19302 # Keep paths in /bin as-is, but remove trailing .exe if any 19303 new_path="${new_path/%.exe/}" 19304 # Do not save /bin paths to all_fixpath_prefixes! 19305 else 19306 # Not in mixed or Windows style, start by that. 19307 new_path=`cmd //c echo $new_path` 19308 19309 input_path="$new_path" 19310 # Check if we need to convert this using DOS-style short mode. If the path 19311 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19312 # take no chances and rewrite it. 19313 # Note: m4 eats our [], so we need to use [ and ] instead. 19314 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19315 if test "x$has_forbidden_chars" != x; then 19316 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19317 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19318 fi 19319 19320 # Output is in $new_path 19321 19322 windows_path="$new_path" 19323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19324 unix_path=`$CYGPATH -u "$windows_path"` 19325 new_path="$unix_path" 19326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19328 new_path="$unix_path" 19329 fi 19330 19331 # remove trailing .exe if any 19332 new_path="${new_path/%.exe/}" 19333 19334 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19335 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19336 fi 19337 19338 else 19339 # We're on a unix platform. Hooray! :) 19340 # First separate the path from the arguments. This will split at the first 19341 # space. 19342 complete="$FOUND_MAKE" 19343 path="${complete%% *}" 19344 tmp="$complete EOL" 19345 arguments="${tmp#* }" 19346 19347 # Cannot rely on the command "which" here since it doesn't always work. 19348 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19349 if test -z "$is_absolute_path"; then 19350 # Path to executable is not absolute. Find it. 19351 IFS_save="$IFS" 19352 IFS=: 19353 for p in $PATH; do 19354 if test -f "$p/$path" && test -x "$p/$path"; then 19355 new_path="$p/$path" 19356 break 19357 fi 19358 done 19359 IFS="$IFS_save" 19360 else 19361 # This is an absolute path, we can use it without further modifications. 19362 new_path="$path" 19363 fi 19364 19365 if test "x$new_path" = x; then 19366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19367 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19368 has_space=`$ECHO "$complete" | $GREP " "` 19369 if test "x$has_space" != x; then 19370 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19371 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19372 fi 19373 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19374 fi 19375 fi 19376 19377 # Now join together the path and the arguments once again 19378 if test "x$arguments" != xEOL; then 19379 new_complete="$new_path ${arguments% *}" 19380 else 19381 new_complete="$new_path" 19382 fi 19383 19384 if test "x$complete" != "x$new_complete"; then 19385 FOUND_MAKE="$new_complete" 19386 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19387 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19388 fi 19389 fi 19390 19391 fi 19392 fi 19393 fi 19394 fi 19395 19396 fi 19397 PATH=$OLD_PATH 19398 fi 19399 fi 19400 19401 if test "x$FOUND_MAKE" = x; then 19402 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 19403 fi 19404 19405 else 19406 # The variable is set, but is it from the command line or the environment? 19407 19408 # Try to remove the string !MAKE! from our list. 19409 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19410 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19411 # If it failed, the variable was not from the command line. Ignore it, 19412 # but warn the user (except for BASH, which is always set by the calling BASH). 19413 if test "xMAKE" != xBASH; then 19414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19415 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19416 fi 19417 # Try to locate tool using the code snippet 19418 19419 # Try our hardest to locate a correct version of GNU make 19420 for ac_prog in gmake 19421 do 19422 # Extract the first word of "$ac_prog", so it can be a program name with args. 19423 set dummy $ac_prog; ac_word=$2 19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19425 $as_echo_n "checking for $ac_word... " >&6; } 19426 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19427 $as_echo_n "(cached) " >&6 19428 else 19429 case $CHECK_GMAKE in 19430 [\\/]* | ?:[\\/]*) 19431 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19432 ;; 19433 *) 19434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19435 for as_dir in $PATH 19436 do 19437 IFS=$as_save_IFS 19438 test -z "$as_dir" && as_dir=. 19439 for ac_exec_ext in '' $ac_executable_extensions; do 19440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19441 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19443 break 2 19444 fi 19445 done 19446 done 19447 IFS=$as_save_IFS 19448 19449 ;; 19450 esac 19451 fi 19452 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19453 if test -n "$CHECK_GMAKE"; then 19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19455 $as_echo "$CHECK_GMAKE" >&6; } 19456 else 19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19458 $as_echo "no" >&6; } 19459 fi 19460 19461 19462 test -n "$CHECK_GMAKE" && break 19463 done 19464 19465 19466 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19467 DESCRIPTION="gmake in PATH" 19468 19469 # On Cygwin, we require a newer version of make than on other platforms 19470 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19471 MAKE_VERSION_EXPR="-e 4\." 19472 MAKE_REQUIRED_VERSION="4.0" 19473 else 19474 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19475 MAKE_REQUIRED_VERSION="3.81" 19476 fi 19477 19478 if test "x$MAKE_CANDIDATE" != x; then 19479 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19480 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19481 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19482 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19483 if test "x$IS_GNU_MAKE" = x; then 19484 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19485 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19486 else 19487 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19488 if test "x$IS_MODERN_MAKE" = x; then 19489 { $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 19490 $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;} 19491 else 19492 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19494 MAKE_EXPECTED_ENV='cygwin' 19495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19496 MAKE_EXPECTED_ENV='msys' 19497 else 19498 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19499 fi 19500 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19501 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19502 else 19503 # Not relevant for non-Windows 19504 IS_MAKE_CORRECT_ENV=true 19505 fi 19506 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19507 { $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 19508 $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;} 19509 else 19510 FOUND_MAKE=$MAKE_CANDIDATE 19511 19512 # Only process if variable expands to non-empty 19513 19514 if test "x$FOUND_MAKE" != x; then 19515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19516 19517 # First separate the path from the arguments. This will split at the first 19518 # space. 19519 complete="$FOUND_MAKE" 19520 path="${complete%% *}" 19521 tmp="$complete EOL" 19522 arguments="${tmp#* }" 19523 19524 # Input might be given as Windows format, start by converting to 19525 # unix format. 19526 new_path=`$CYGPATH -u "$path"` 19527 19528 # Now try to locate executable using which 19529 new_path=`$WHICH "$new_path" 2> /dev/null` 19530 # bat and cmd files are not always considered executable in cygwin causing which 19531 # to not find them 19532 if test "x$new_path" = x \ 19533 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19534 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19535 new_path=`$CYGPATH -u "$path"` 19536 fi 19537 if test "x$new_path" = x; then 19538 # Oops. Which didn't find the executable. 19539 # The splitting of arguments from the executable at a space might have been incorrect, 19540 # since paths with space are more likely in Windows. Give it another try with the whole 19541 # argument. 19542 path="$complete" 19543 arguments="EOL" 19544 new_path=`$CYGPATH -u "$path"` 19545 new_path=`$WHICH "$new_path" 2> /dev/null` 19546 # bat and cmd files are not always considered executable in cygwin causing which 19547 # to not find them 19548 if test "x$new_path" = x \ 19549 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19550 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19551 new_path=`$CYGPATH -u "$path"` 19552 fi 19553 if test "x$new_path" = x; then 19554 # It's still not found. Now this is an unrecoverable error. 19555 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19556 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19557 has_space=`$ECHO "$complete" | $GREP " "` 19558 if test "x$has_space" != x; then 19559 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19560 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19561 fi 19562 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19563 fi 19564 fi 19565 19566 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19567 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19568 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19569 # "foo.exe" is OK but "foo" is an error. 19570 # 19571 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19572 # It is also a way to make sure we got the proper file name for the real test later on. 19573 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19574 if test "x$test_shortpath" = x; then 19575 # Short path failed, file does not exist as specified. 19576 # Try adding .exe or .cmd 19577 if test -f "${new_path}.exe"; then 19578 input_to_shortpath="${new_path}.exe" 19579 elif test -f "${new_path}.cmd"; then 19580 input_to_shortpath="${new_path}.cmd" 19581 else 19582 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19583 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19585 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19586 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19587 fi 19588 else 19589 input_to_shortpath="$new_path" 19590 fi 19591 19592 # Call helper function which possibly converts this using DOS-style short mode. 19593 # If so, the updated path is stored in $new_path. 19594 new_path="$input_to_shortpath" 19595 19596 input_path="$input_to_shortpath" 19597 # Check if we need to convert this using DOS-style short mode. If the path 19598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19599 # take no chances and rewrite it. 19600 # Note: m4 eats our [], so we need to use [ and ] instead. 19601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19602 if test "x$has_forbidden_chars" != x; then 19603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19604 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19605 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19606 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19607 # Going to short mode and back again did indeed matter. Since short mode is 19608 # case insensitive, let's make it lowercase to improve readability. 19609 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19610 # Now convert it back to Unix-style (cygpath) 19611 input_path=`$CYGPATH -u "$shortmode_path"` 19612 new_path="$input_path" 19613 fi 19614 fi 19615 19616 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19617 if test "x$test_cygdrive_prefix" = x; then 19618 # As a simple fix, exclude /usr/bin since it's not a real path. 19619 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19620 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19621 # a path prefixed by /cygdrive for fixpath to work. 19622 new_path="$CYGWIN_ROOT_PATH$input_path" 19623 fi 19624 fi 19625 19626 # remove trailing .exe if any 19627 new_path="${new_path/%.exe/}" 19628 19629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19630 19631 # First separate the path from the arguments. This will split at the first 19632 # space. 19633 complete="$FOUND_MAKE" 19634 path="${complete%% *}" 19635 tmp="$complete EOL" 19636 arguments="${tmp#* }" 19637 19638 # Input might be given as Windows format, start by converting to 19639 # unix format. 19640 new_path="$path" 19641 19642 windows_path="$new_path" 19643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19644 unix_path=`$CYGPATH -u "$windows_path"` 19645 new_path="$unix_path" 19646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19647 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19648 new_path="$unix_path" 19649 fi 19650 19651 19652 # Now try to locate executable using which 19653 new_path=`$WHICH "$new_path" 2> /dev/null` 19654 19655 if test "x$new_path" = x; then 19656 # Oops. Which didn't find the executable. 19657 # The splitting of arguments from the executable at a space might have been incorrect, 19658 # since paths with space are more likely in Windows. Give it another try with the whole 19659 # argument. 19660 path="$complete" 19661 arguments="EOL" 19662 new_path="$path" 19663 19664 windows_path="$new_path" 19665 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19666 unix_path=`$CYGPATH -u "$windows_path"` 19667 new_path="$unix_path" 19668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19669 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19670 new_path="$unix_path" 19671 fi 19672 19673 19674 new_path=`$WHICH "$new_path" 2> /dev/null` 19675 # bat and cmd files are not always considered executable in MSYS causing which 19676 # to not find them 19677 if test "x$new_path" = x \ 19678 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19679 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19680 new_path="$path" 19681 19682 windows_path="$new_path" 19683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19684 unix_path=`$CYGPATH -u "$windows_path"` 19685 new_path="$unix_path" 19686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19688 new_path="$unix_path" 19689 fi 19690 19691 fi 19692 19693 if test "x$new_path" = x; then 19694 # It's still not found. Now this is an unrecoverable error. 19695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19696 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19697 has_space=`$ECHO "$complete" | $GREP " "` 19698 if test "x$has_space" != x; then 19699 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19700 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19701 fi 19702 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19703 fi 19704 fi 19705 19706 # Now new_path has a complete unix path to the binary 19707 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19708 # Keep paths in /bin as-is, but remove trailing .exe if any 19709 new_path="${new_path/%.exe/}" 19710 # Do not save /bin paths to all_fixpath_prefixes! 19711 else 19712 # Not in mixed or Windows style, start by that. 19713 new_path=`cmd //c echo $new_path` 19714 19715 input_path="$new_path" 19716 # Check if we need to convert this using DOS-style short mode. If the path 19717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19718 # take no chances and rewrite it. 19719 # Note: m4 eats our [], so we need to use [ and ] instead. 19720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19721 if test "x$has_forbidden_chars" != x; then 19722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19723 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19724 fi 19725 19726 # Output is in $new_path 19727 19728 windows_path="$new_path" 19729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19730 unix_path=`$CYGPATH -u "$windows_path"` 19731 new_path="$unix_path" 19732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19733 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19734 new_path="$unix_path" 19735 fi 19736 19737 # remove trailing .exe if any 19738 new_path="${new_path/%.exe/}" 19739 19740 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19741 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19742 fi 19743 19744 else 19745 # We're on a unix platform. Hooray! :) 19746 # First separate the path from the arguments. This will split at the first 19747 # space. 19748 complete="$FOUND_MAKE" 19749 path="${complete%% *}" 19750 tmp="$complete EOL" 19751 arguments="${tmp#* }" 19752 19753 # Cannot rely on the command "which" here since it doesn't always work. 19754 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19755 if test -z "$is_absolute_path"; then 19756 # Path to executable is not absolute. Find it. 19757 IFS_save="$IFS" 19758 IFS=: 19759 for p in $PATH; do 19760 if test -f "$p/$path" && test -x "$p/$path"; then 19761 new_path="$p/$path" 19762 break 19763 fi 19764 done 19765 IFS="$IFS_save" 19766 else 19767 # This is an absolute path, we can use it without further modifications. 19768 new_path="$path" 19769 fi 19770 19771 if test "x$new_path" = x; then 19772 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19773 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19774 has_space=`$ECHO "$complete" | $GREP " "` 19775 if test "x$has_space" != x; then 19776 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19777 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19778 fi 19779 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19780 fi 19781 fi 19782 19783 # Now join together the path and the arguments once again 19784 if test "x$arguments" != xEOL; then 19785 new_complete="$new_path ${arguments% *}" 19786 else 19787 new_complete="$new_path" 19788 fi 19789 19790 if test "x$complete" != "x$new_complete"; then 19791 FOUND_MAKE="$new_complete" 19792 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19793 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19794 fi 19795 fi 19796 19797 fi 19798 fi 19799 fi 19800 fi 19801 19802 19803 if test "x$FOUND_MAKE" = x; then 19804 for ac_prog in make 19805 do 19806 # Extract the first word of "$ac_prog", so it can be a program name with args. 19807 set dummy $ac_prog; ac_word=$2 19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19809 $as_echo_n "checking for $ac_word... " >&6; } 19810 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19811 $as_echo_n "(cached) " >&6 19812 else 19813 case $CHECK_MAKE in 19814 [\\/]* | ?:[\\/]*) 19815 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19816 ;; 19817 *) 19818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19819 for as_dir in $PATH 19820 do 19821 IFS=$as_save_IFS 19822 test -z "$as_dir" && as_dir=. 19823 for ac_exec_ext in '' $ac_executable_extensions; do 19824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19825 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19827 break 2 19828 fi 19829 done 19830 done 19831 IFS=$as_save_IFS 19832 19833 ;; 19834 esac 19835 fi 19836 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19837 if test -n "$CHECK_MAKE"; then 19838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19839 $as_echo "$CHECK_MAKE" >&6; } 19840 else 19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19842 $as_echo "no" >&6; } 19843 fi 19844 19845 19846 test -n "$CHECK_MAKE" && break 19847 done 19848 19849 19850 MAKE_CANDIDATE=""$CHECK_MAKE"" 19851 DESCRIPTION="make in PATH" 19852 19853 # On Cygwin, we require a newer version of make than on other platforms 19854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19855 MAKE_VERSION_EXPR="-e 4\." 19856 MAKE_REQUIRED_VERSION="4.0" 19857 else 19858 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19859 MAKE_REQUIRED_VERSION="3.81" 19860 fi 19861 19862 if test "x$MAKE_CANDIDATE" != x; then 19863 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19864 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19865 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19866 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19867 if test "x$IS_GNU_MAKE" = x; then 19868 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19869 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19870 else 19871 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19872 if test "x$IS_MODERN_MAKE" = x; then 19873 { $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 19874 $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;} 19875 else 19876 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19878 MAKE_EXPECTED_ENV='cygwin' 19879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19880 MAKE_EXPECTED_ENV='msys' 19881 else 19882 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19883 fi 19884 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19885 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19886 else 19887 # Not relevant for non-Windows 19888 IS_MAKE_CORRECT_ENV=true 19889 fi 19890 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19891 { $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 19892 $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;} 19893 else 19894 FOUND_MAKE=$MAKE_CANDIDATE 19895 19896 # Only process if variable expands to non-empty 19897 19898 if test "x$FOUND_MAKE" != x; then 19899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19900 19901 # First separate the path from the arguments. This will split at the first 19902 # space. 19903 complete="$FOUND_MAKE" 19904 path="${complete%% *}" 19905 tmp="$complete EOL" 19906 arguments="${tmp#* }" 19907 19908 # Input might be given as Windows format, start by converting to 19909 # unix format. 19910 new_path=`$CYGPATH -u "$path"` 19911 19912 # Now try to locate executable using which 19913 new_path=`$WHICH "$new_path" 2> /dev/null` 19914 # bat and cmd files are not always considered executable in cygwin causing which 19915 # to not find them 19916 if test "x$new_path" = x \ 19917 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19918 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19919 new_path=`$CYGPATH -u "$path"` 19920 fi 19921 if test "x$new_path" = x; then 19922 # Oops. Which didn't find the executable. 19923 # The splitting of arguments from the executable at a space might have been incorrect, 19924 # since paths with space are more likely in Windows. Give it another try with the whole 19925 # argument. 19926 path="$complete" 19927 arguments="EOL" 19928 new_path=`$CYGPATH -u "$path"` 19929 new_path=`$WHICH "$new_path" 2> /dev/null` 19930 # bat and cmd files are not always considered executable in cygwin causing which 19931 # to not find them 19932 if test "x$new_path" = x \ 19933 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19934 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19935 new_path=`$CYGPATH -u "$path"` 19936 fi 19937 if test "x$new_path" = x; then 19938 # It's still not found. Now this is an unrecoverable error. 19939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19940 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19941 has_space=`$ECHO "$complete" | $GREP " "` 19942 if test "x$has_space" != x; then 19943 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19944 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19945 fi 19946 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19947 fi 19948 fi 19949 19950 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19951 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19952 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19953 # "foo.exe" is OK but "foo" is an error. 19954 # 19955 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19956 # It is also a way to make sure we got the proper file name for the real test later on. 19957 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19958 if test "x$test_shortpath" = x; then 19959 # Short path failed, file does not exist as specified. 19960 # Try adding .exe or .cmd 19961 if test -f "${new_path}.exe"; then 19962 input_to_shortpath="${new_path}.exe" 19963 elif test -f "${new_path}.cmd"; then 19964 input_to_shortpath="${new_path}.cmd" 19965 else 19966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19967 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19968 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19969 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19970 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19971 fi 19972 else 19973 input_to_shortpath="$new_path" 19974 fi 19975 19976 # Call helper function which possibly converts this using DOS-style short mode. 19977 # If so, the updated path is stored in $new_path. 19978 new_path="$input_to_shortpath" 19979 19980 input_path="$input_to_shortpath" 19981 # Check if we need to convert this using DOS-style short mode. If the path 19982 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19983 # take no chances and rewrite it. 19984 # Note: m4 eats our [], so we need to use [ and ] instead. 19985 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19986 if test "x$has_forbidden_chars" != x; then 19987 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19988 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19989 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19990 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19991 # Going to short mode and back again did indeed matter. Since short mode is 19992 # case insensitive, let's make it lowercase to improve readability. 19993 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19994 # Now convert it back to Unix-style (cygpath) 19995 input_path=`$CYGPATH -u "$shortmode_path"` 19996 new_path="$input_path" 19997 fi 19998 fi 19999 20000 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20001 if test "x$test_cygdrive_prefix" = x; then 20002 # As a simple fix, exclude /usr/bin since it's not a real path. 20003 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20004 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20005 # a path prefixed by /cygdrive for fixpath to work. 20006 new_path="$CYGWIN_ROOT_PATH$input_path" 20007 fi 20008 fi 20009 20010 # remove trailing .exe if any 20011 new_path="${new_path/%.exe/}" 20012 20013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20014 20015 # First separate the path from the arguments. This will split at the first 20016 # space. 20017 complete="$FOUND_MAKE" 20018 path="${complete%% *}" 20019 tmp="$complete EOL" 20020 arguments="${tmp#* }" 20021 20022 # Input might be given as Windows format, start by converting to 20023 # unix format. 20024 new_path="$path" 20025 20026 windows_path="$new_path" 20027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20028 unix_path=`$CYGPATH -u "$windows_path"` 20029 new_path="$unix_path" 20030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20031 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20032 new_path="$unix_path" 20033 fi 20034 20035 20036 # Now try to locate executable using which 20037 new_path=`$WHICH "$new_path" 2> /dev/null` 20038 20039 if test "x$new_path" = x; then 20040 # Oops. Which didn't find the executable. 20041 # The splitting of arguments from the executable at a space might have been incorrect, 20042 # since paths with space are more likely in Windows. Give it another try with the whole 20043 # argument. 20044 path="$complete" 20045 arguments="EOL" 20046 new_path="$path" 20047 20048 windows_path="$new_path" 20049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20050 unix_path=`$CYGPATH -u "$windows_path"` 20051 new_path="$unix_path" 20052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20054 new_path="$unix_path" 20055 fi 20056 20057 20058 new_path=`$WHICH "$new_path" 2> /dev/null` 20059 # bat and cmd files are not always considered executable in MSYS causing which 20060 # to not find them 20061 if test "x$new_path" = x \ 20062 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20063 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20064 new_path="$path" 20065 20066 windows_path="$new_path" 20067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20068 unix_path=`$CYGPATH -u "$windows_path"` 20069 new_path="$unix_path" 20070 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20071 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20072 new_path="$unix_path" 20073 fi 20074 20075 fi 20076 20077 if test "x$new_path" = x; then 20078 # It's still not found. Now this is an unrecoverable error. 20079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20080 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20081 has_space=`$ECHO "$complete" | $GREP " "` 20082 if test "x$has_space" != x; then 20083 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20084 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20085 fi 20086 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20087 fi 20088 fi 20089 20090 # Now new_path has a complete unix path to the binary 20091 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20092 # Keep paths in /bin as-is, but remove trailing .exe if any 20093 new_path="${new_path/%.exe/}" 20094 # Do not save /bin paths to all_fixpath_prefixes! 20095 else 20096 # Not in mixed or Windows style, start by that. 20097 new_path=`cmd //c echo $new_path` 20098 20099 input_path="$new_path" 20100 # Check if we need to convert this using DOS-style short mode. If the path 20101 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20102 # take no chances and rewrite it. 20103 # Note: m4 eats our [], so we need to use [ and ] instead. 20104 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20105 if test "x$has_forbidden_chars" != x; then 20106 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20107 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20108 fi 20109 20110 # Output is in $new_path 20111 20112 windows_path="$new_path" 20113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20114 unix_path=`$CYGPATH -u "$windows_path"` 20115 new_path="$unix_path" 20116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20117 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20118 new_path="$unix_path" 20119 fi 20120 20121 # remove trailing .exe if any 20122 new_path="${new_path/%.exe/}" 20123 20124 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20125 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20126 fi 20127 20128 else 20129 # We're on a unix platform. Hooray! :) 20130 # First separate the path from the arguments. This will split at the first 20131 # space. 20132 complete="$FOUND_MAKE" 20133 path="${complete%% *}" 20134 tmp="$complete EOL" 20135 arguments="${tmp#* }" 20136 20137 # Cannot rely on the command "which" here since it doesn't always work. 20138 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20139 if test -z "$is_absolute_path"; then 20140 # Path to executable is not absolute. Find it. 20141 IFS_save="$IFS" 20142 IFS=: 20143 for p in $PATH; do 20144 if test -f "$p/$path" && test -x "$p/$path"; then 20145 new_path="$p/$path" 20146 break 20147 fi 20148 done 20149 IFS="$IFS_save" 20150 else 20151 # This is an absolute path, we can use it without further modifications. 20152 new_path="$path" 20153 fi 20154 20155 if test "x$new_path" = x; then 20156 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20157 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20158 has_space=`$ECHO "$complete" | $GREP " "` 20159 if test "x$has_space" != x; then 20160 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20161 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20162 fi 20163 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20164 fi 20165 fi 20166 20167 # Now join together the path and the arguments once again 20168 if test "x$arguments" != xEOL; then 20169 new_complete="$new_path ${arguments% *}" 20170 else 20171 new_complete="$new_path" 20172 fi 20173 20174 if test "x$complete" != "x$new_complete"; then 20175 FOUND_MAKE="$new_complete" 20176 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20177 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20178 fi 20179 fi 20180 20181 fi 20182 fi 20183 fi 20184 fi 20185 20186 fi 20187 20188 if test "x$FOUND_MAKE" = x; then 20189 if test "x$TOOLCHAIN_PATH" != x; then 20190 # We have a toolchain path, check that as well before giving up. 20191 OLD_PATH=$PATH 20192 PATH=$TOOLCHAIN_PATH:$PATH 20193 for ac_prog in gmake 20194 do 20195 # Extract the first word of "$ac_prog", so it can be a program name with args. 20196 set dummy $ac_prog; ac_word=$2 20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20198 $as_echo_n "checking for $ac_word... " >&6; } 20199 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 20200 $as_echo_n "(cached) " >&6 20201 else 20202 case $CHECK_TOOLSDIR_GMAKE in 20203 [\\/]* | ?:[\\/]*) 20204 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 20205 ;; 20206 *) 20207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20208 for as_dir in $PATH 20209 do 20210 IFS=$as_save_IFS 20211 test -z "$as_dir" && as_dir=. 20212 for ac_exec_ext in '' $ac_executable_extensions; do 20213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20214 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 20215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20216 break 2 20217 fi 20218 done 20219 done 20220 IFS=$as_save_IFS 20221 20222 ;; 20223 esac 20224 fi 20225 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 20226 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 20228 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 20229 else 20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20231 $as_echo "no" >&6; } 20232 fi 20233 20234 20235 test -n "$CHECK_TOOLSDIR_GMAKE" && break 20236 done 20237 20238 20239 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 20240 DESCRIPTION="gmake in tools-dir" 20241 20242 # On Cygwin, we require a newer version of make than on other platforms 20243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20244 MAKE_VERSION_EXPR="-e 4\." 20245 MAKE_REQUIRED_VERSION="4.0" 20246 else 20247 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20248 MAKE_REQUIRED_VERSION="3.81" 20249 fi 20250 20251 if test "x$MAKE_CANDIDATE" != x; then 20252 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20253 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20254 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20255 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20256 if test "x$IS_GNU_MAKE" = x; then 20257 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20258 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20259 else 20260 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20261 if test "x$IS_MODERN_MAKE" = x; then 20262 { $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 20263 $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;} 20264 else 20265 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20267 MAKE_EXPECTED_ENV='cygwin' 20268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20269 MAKE_EXPECTED_ENV='msys' 20270 else 20271 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20272 fi 20273 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20274 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20275 else 20276 # Not relevant for non-Windows 20277 IS_MAKE_CORRECT_ENV=true 20278 fi 20279 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20280 { $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 20281 $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;} 20282 else 20283 FOUND_MAKE=$MAKE_CANDIDATE 20284 20285 # Only process if variable expands to non-empty 20286 20287 if test "x$FOUND_MAKE" != x; then 20288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20289 20290 # First separate the path from the arguments. This will split at the first 20291 # space. 20292 complete="$FOUND_MAKE" 20293 path="${complete%% *}" 20294 tmp="$complete EOL" 20295 arguments="${tmp#* }" 20296 20297 # Input might be given as Windows format, start by converting to 20298 # unix format. 20299 new_path=`$CYGPATH -u "$path"` 20300 20301 # Now try to locate executable using which 20302 new_path=`$WHICH "$new_path" 2> /dev/null` 20303 # bat and cmd files are not always considered executable in cygwin causing which 20304 # to not find them 20305 if test "x$new_path" = x \ 20306 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20307 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20308 new_path=`$CYGPATH -u "$path"` 20309 fi 20310 if test "x$new_path" = x; then 20311 # Oops. Which didn't find the executable. 20312 # The splitting of arguments from the executable at a space might have been incorrect, 20313 # since paths with space are more likely in Windows. Give it another try with the whole 20314 # argument. 20315 path="$complete" 20316 arguments="EOL" 20317 new_path=`$CYGPATH -u "$path"` 20318 new_path=`$WHICH "$new_path" 2> /dev/null` 20319 # bat and cmd files are not always considered executable in cygwin causing which 20320 # to not find them 20321 if test "x$new_path" = x \ 20322 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20323 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20324 new_path=`$CYGPATH -u "$path"` 20325 fi 20326 if test "x$new_path" = x; then 20327 # It's still not found. Now this is an unrecoverable error. 20328 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20329 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20330 has_space=`$ECHO "$complete" | $GREP " "` 20331 if test "x$has_space" != x; then 20332 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20333 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20334 fi 20335 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20336 fi 20337 fi 20338 20339 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20340 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20341 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20342 # "foo.exe" is OK but "foo" is an error. 20343 # 20344 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20345 # It is also a way to make sure we got the proper file name for the real test later on. 20346 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20347 if test "x$test_shortpath" = x; then 20348 # Short path failed, file does not exist as specified. 20349 # Try adding .exe or .cmd 20350 if test -f "${new_path}.exe"; then 20351 input_to_shortpath="${new_path}.exe" 20352 elif test -f "${new_path}.cmd"; then 20353 input_to_shortpath="${new_path}.cmd" 20354 else 20355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20356 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20357 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20358 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20359 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20360 fi 20361 else 20362 input_to_shortpath="$new_path" 20363 fi 20364 20365 # Call helper function which possibly converts this using DOS-style short mode. 20366 # If so, the updated path is stored in $new_path. 20367 new_path="$input_to_shortpath" 20368 20369 input_path="$input_to_shortpath" 20370 # Check if we need to convert this using DOS-style short mode. If the path 20371 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20372 # take no chances and rewrite it. 20373 # Note: m4 eats our [], so we need to use [ and ] instead. 20374 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20375 if test "x$has_forbidden_chars" != x; then 20376 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20377 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20378 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20379 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20380 # Going to short mode and back again did indeed matter. Since short mode is 20381 # case insensitive, let's make it lowercase to improve readability. 20382 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20383 # Now convert it back to Unix-style (cygpath) 20384 input_path=`$CYGPATH -u "$shortmode_path"` 20385 new_path="$input_path" 20386 fi 20387 fi 20388 20389 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20390 if test "x$test_cygdrive_prefix" = x; then 20391 # As a simple fix, exclude /usr/bin since it's not a real path. 20392 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20393 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20394 # a path prefixed by /cygdrive for fixpath to work. 20395 new_path="$CYGWIN_ROOT_PATH$input_path" 20396 fi 20397 fi 20398 20399 # remove trailing .exe if any 20400 new_path="${new_path/%.exe/}" 20401 20402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20403 20404 # First separate the path from the arguments. This will split at the first 20405 # space. 20406 complete="$FOUND_MAKE" 20407 path="${complete%% *}" 20408 tmp="$complete EOL" 20409 arguments="${tmp#* }" 20410 20411 # Input might be given as Windows format, start by converting to 20412 # unix format. 20413 new_path="$path" 20414 20415 windows_path="$new_path" 20416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20417 unix_path=`$CYGPATH -u "$windows_path"` 20418 new_path="$unix_path" 20419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20420 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20421 new_path="$unix_path" 20422 fi 20423 20424 20425 # Now try to locate executable using which 20426 new_path=`$WHICH "$new_path" 2> /dev/null` 20427 20428 if test "x$new_path" = x; then 20429 # Oops. Which didn't find the executable. 20430 # The splitting of arguments from the executable at a space might have been incorrect, 20431 # since paths with space are more likely in Windows. Give it another try with the whole 20432 # argument. 20433 path="$complete" 20434 arguments="EOL" 20435 new_path="$path" 20436 20437 windows_path="$new_path" 20438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20439 unix_path=`$CYGPATH -u "$windows_path"` 20440 new_path="$unix_path" 20441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20442 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20443 new_path="$unix_path" 20444 fi 20445 20446 20447 new_path=`$WHICH "$new_path" 2> /dev/null` 20448 # bat and cmd files are not always considered executable in MSYS causing which 20449 # to not find them 20450 if test "x$new_path" = x \ 20451 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20452 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20453 new_path="$path" 20454 20455 windows_path="$new_path" 20456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20457 unix_path=`$CYGPATH -u "$windows_path"` 20458 new_path="$unix_path" 20459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20460 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20461 new_path="$unix_path" 20462 fi 20463 20464 fi 20465 20466 if test "x$new_path" = x; then 20467 # It's still not found. Now this is an unrecoverable error. 20468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20469 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20470 has_space=`$ECHO "$complete" | $GREP " "` 20471 if test "x$has_space" != x; then 20472 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20473 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20474 fi 20475 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20476 fi 20477 fi 20478 20479 # Now new_path has a complete unix path to the binary 20480 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20481 # Keep paths in /bin as-is, but remove trailing .exe if any 20482 new_path="${new_path/%.exe/}" 20483 # Do not save /bin paths to all_fixpath_prefixes! 20484 else 20485 # Not in mixed or Windows style, start by that. 20486 new_path=`cmd //c echo $new_path` 20487 20488 input_path="$new_path" 20489 # Check if we need to convert this using DOS-style short mode. If the path 20490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20491 # take no chances and rewrite it. 20492 # Note: m4 eats our [], so we need to use [ and ] instead. 20493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20494 if test "x$has_forbidden_chars" != x; then 20495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20496 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20497 fi 20498 20499 # Output is in $new_path 20500 20501 windows_path="$new_path" 20502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20503 unix_path=`$CYGPATH -u "$windows_path"` 20504 new_path="$unix_path" 20505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20506 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20507 new_path="$unix_path" 20508 fi 20509 20510 # remove trailing .exe if any 20511 new_path="${new_path/%.exe/}" 20512 20513 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20514 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20515 fi 20516 20517 else 20518 # We're on a unix platform. Hooray! :) 20519 # First separate the path from the arguments. This will split at the first 20520 # space. 20521 complete="$FOUND_MAKE" 20522 path="${complete%% *}" 20523 tmp="$complete EOL" 20524 arguments="${tmp#* }" 20525 20526 # Cannot rely on the command "which" here since it doesn't always work. 20527 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20528 if test -z "$is_absolute_path"; then 20529 # Path to executable is not absolute. Find it. 20530 IFS_save="$IFS" 20531 IFS=: 20532 for p in $PATH; do 20533 if test -f "$p/$path" && test -x "$p/$path"; then 20534 new_path="$p/$path" 20535 break 20536 fi 20537 done 20538 IFS="$IFS_save" 20539 else 20540 # This is an absolute path, we can use it without further modifications. 20541 new_path="$path" 20542 fi 20543 20544 if test "x$new_path" = x; then 20545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20546 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20547 has_space=`$ECHO "$complete" | $GREP " "` 20548 if test "x$has_space" != x; then 20549 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20550 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20551 fi 20552 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20553 fi 20554 fi 20555 20556 # Now join together the path and the arguments once again 20557 if test "x$arguments" != xEOL; then 20558 new_complete="$new_path ${arguments% *}" 20559 else 20560 new_complete="$new_path" 20561 fi 20562 20563 if test "x$complete" != "x$new_complete"; then 20564 FOUND_MAKE="$new_complete" 20565 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20566 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20567 fi 20568 fi 20569 20570 fi 20571 fi 20572 fi 20573 fi 20574 20575 if test "x$FOUND_MAKE" = x; then 20576 for ac_prog in make 20577 do 20578 # Extract the first word of "$ac_prog", so it can be a program name with args. 20579 set dummy $ac_prog; ac_word=$2 20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20581 $as_echo_n "checking for $ac_word... " >&6; } 20582 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20583 $as_echo_n "(cached) " >&6 20584 else 20585 case $CHECK_TOOLSDIR_MAKE in 20586 [\\/]* | ?:[\\/]*) 20587 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20588 ;; 20589 *) 20590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20591 for as_dir in $PATH 20592 do 20593 IFS=$as_save_IFS 20594 test -z "$as_dir" && as_dir=. 20595 for ac_exec_ext in '' $ac_executable_extensions; do 20596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20597 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20599 break 2 20600 fi 20601 done 20602 done 20603 IFS=$as_save_IFS 20604 20605 ;; 20606 esac 20607 fi 20608 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20609 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20611 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20612 else 20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20614 $as_echo "no" >&6; } 20615 fi 20616 20617 20618 test -n "$CHECK_TOOLSDIR_MAKE" && break 20619 done 20620 20621 20622 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20623 DESCRIPTION="make in tools-dir" 20624 20625 # On Cygwin, we require a newer version of make than on other platforms 20626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20627 MAKE_VERSION_EXPR="-e 4\." 20628 MAKE_REQUIRED_VERSION="4.0" 20629 else 20630 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20631 MAKE_REQUIRED_VERSION="3.81" 20632 fi 20633 20634 if test "x$MAKE_CANDIDATE" != x; then 20635 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20636 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20637 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20638 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20639 if test "x$IS_GNU_MAKE" = x; then 20640 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20641 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20642 else 20643 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20644 if test "x$IS_MODERN_MAKE" = x; then 20645 { $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 20646 $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;} 20647 else 20648 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20649 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20650 MAKE_EXPECTED_ENV='cygwin' 20651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20652 MAKE_EXPECTED_ENV='msys' 20653 else 20654 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20655 fi 20656 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20657 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20658 else 20659 # Not relevant for non-Windows 20660 IS_MAKE_CORRECT_ENV=true 20661 fi 20662 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20663 { $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 20664 $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;} 20665 else 20666 FOUND_MAKE=$MAKE_CANDIDATE 20667 20668 # Only process if variable expands to non-empty 20669 20670 if test "x$FOUND_MAKE" != x; then 20671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20672 20673 # First separate the path from the arguments. This will split at the first 20674 # space. 20675 complete="$FOUND_MAKE" 20676 path="${complete%% *}" 20677 tmp="$complete EOL" 20678 arguments="${tmp#* }" 20679 20680 # Input might be given as Windows format, start by converting to 20681 # unix format. 20682 new_path=`$CYGPATH -u "$path"` 20683 20684 # Now try to locate executable using which 20685 new_path=`$WHICH "$new_path" 2> /dev/null` 20686 # bat and cmd files are not always considered executable in cygwin causing which 20687 # to not find them 20688 if test "x$new_path" = x \ 20689 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20690 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20691 new_path=`$CYGPATH -u "$path"` 20692 fi 20693 if test "x$new_path" = x; then 20694 # Oops. Which didn't find the executable. 20695 # The splitting of arguments from the executable at a space might have been incorrect, 20696 # since paths with space are more likely in Windows. Give it another try with the whole 20697 # argument. 20698 path="$complete" 20699 arguments="EOL" 20700 new_path=`$CYGPATH -u "$path"` 20701 new_path=`$WHICH "$new_path" 2> /dev/null` 20702 # bat and cmd files are not always considered executable in cygwin causing which 20703 # to not find them 20704 if test "x$new_path" = x \ 20705 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20706 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20707 new_path=`$CYGPATH -u "$path"` 20708 fi 20709 if test "x$new_path" = x; then 20710 # It's still not found. Now this is an unrecoverable error. 20711 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20712 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20713 has_space=`$ECHO "$complete" | $GREP " "` 20714 if test "x$has_space" != x; then 20715 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20716 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20717 fi 20718 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20719 fi 20720 fi 20721 20722 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20723 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20724 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20725 # "foo.exe" is OK but "foo" is an error. 20726 # 20727 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20728 # It is also a way to make sure we got the proper file name for the real test later on. 20729 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20730 if test "x$test_shortpath" = x; then 20731 # Short path failed, file does not exist as specified. 20732 # Try adding .exe or .cmd 20733 if test -f "${new_path}.exe"; then 20734 input_to_shortpath="${new_path}.exe" 20735 elif test -f "${new_path}.cmd"; then 20736 input_to_shortpath="${new_path}.cmd" 20737 else 20738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20739 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20740 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20741 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20742 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20743 fi 20744 else 20745 input_to_shortpath="$new_path" 20746 fi 20747 20748 # Call helper function which possibly converts this using DOS-style short mode. 20749 # If so, the updated path is stored in $new_path. 20750 new_path="$input_to_shortpath" 20751 20752 input_path="$input_to_shortpath" 20753 # Check if we need to convert this using DOS-style short mode. If the path 20754 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20755 # take no chances and rewrite it. 20756 # Note: m4 eats our [], so we need to use [ and ] instead. 20757 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20758 if test "x$has_forbidden_chars" != x; then 20759 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20760 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20761 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20762 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20763 # Going to short mode and back again did indeed matter. Since short mode is 20764 # case insensitive, let's make it lowercase to improve readability. 20765 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20766 # Now convert it back to Unix-style (cygpath) 20767 input_path=`$CYGPATH -u "$shortmode_path"` 20768 new_path="$input_path" 20769 fi 20770 fi 20771 20772 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20773 if test "x$test_cygdrive_prefix" = x; then 20774 # As a simple fix, exclude /usr/bin since it's not a real path. 20775 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20776 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20777 # a path prefixed by /cygdrive for fixpath to work. 20778 new_path="$CYGWIN_ROOT_PATH$input_path" 20779 fi 20780 fi 20781 20782 # remove trailing .exe if any 20783 new_path="${new_path/%.exe/}" 20784 20785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20786 20787 # First separate the path from the arguments. This will split at the first 20788 # space. 20789 complete="$FOUND_MAKE" 20790 path="${complete%% *}" 20791 tmp="$complete EOL" 20792 arguments="${tmp#* }" 20793 20794 # Input might be given as Windows format, start by converting to 20795 # unix format. 20796 new_path="$path" 20797 20798 windows_path="$new_path" 20799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20800 unix_path=`$CYGPATH -u "$windows_path"` 20801 new_path="$unix_path" 20802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20804 new_path="$unix_path" 20805 fi 20806 20807 20808 # Now try to locate executable using which 20809 new_path=`$WHICH "$new_path" 2> /dev/null` 20810 20811 if test "x$new_path" = x; then 20812 # Oops. Which didn't find the executable. 20813 # The splitting of arguments from the executable at a space might have been incorrect, 20814 # since paths with space are more likely in Windows. Give it another try with the whole 20815 # argument. 20816 path="$complete" 20817 arguments="EOL" 20818 new_path="$path" 20819 20820 windows_path="$new_path" 20821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20822 unix_path=`$CYGPATH -u "$windows_path"` 20823 new_path="$unix_path" 20824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20826 new_path="$unix_path" 20827 fi 20828 20829 20830 new_path=`$WHICH "$new_path" 2> /dev/null` 20831 # bat and cmd files are not always considered executable in MSYS causing which 20832 # to not find them 20833 if test "x$new_path" = x \ 20834 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20835 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20836 new_path="$path" 20837 20838 windows_path="$new_path" 20839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20840 unix_path=`$CYGPATH -u "$windows_path"` 20841 new_path="$unix_path" 20842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20844 new_path="$unix_path" 20845 fi 20846 20847 fi 20848 20849 if test "x$new_path" = x; then 20850 # It's still not found. Now this is an unrecoverable error. 20851 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20852 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20853 has_space=`$ECHO "$complete" | $GREP " "` 20854 if test "x$has_space" != x; then 20855 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20856 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20857 fi 20858 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20859 fi 20860 fi 20861 20862 # Now new_path has a complete unix path to the binary 20863 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20864 # Keep paths in /bin as-is, but remove trailing .exe if any 20865 new_path="${new_path/%.exe/}" 20866 # Do not save /bin paths to all_fixpath_prefixes! 20867 else 20868 # Not in mixed or Windows style, start by that. 20869 new_path=`cmd //c echo $new_path` 20870 20871 input_path="$new_path" 20872 # Check if we need to convert this using DOS-style short mode. If the path 20873 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20874 # take no chances and rewrite it. 20875 # Note: m4 eats our [], so we need to use [ and ] instead. 20876 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20877 if test "x$has_forbidden_chars" != x; then 20878 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20879 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20880 fi 20881 20882 # Output is in $new_path 20883 20884 windows_path="$new_path" 20885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20886 unix_path=`$CYGPATH -u "$windows_path"` 20887 new_path="$unix_path" 20888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20890 new_path="$unix_path" 20891 fi 20892 20893 # remove trailing .exe if any 20894 new_path="${new_path/%.exe/}" 20895 20896 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20897 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20898 fi 20899 20900 else 20901 # We're on a unix platform. Hooray! :) 20902 # First separate the path from the arguments. This will split at the first 20903 # space. 20904 complete="$FOUND_MAKE" 20905 path="${complete%% *}" 20906 tmp="$complete EOL" 20907 arguments="${tmp#* }" 20908 20909 # Cannot rely on the command "which" here since it doesn't always work. 20910 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20911 if test -z "$is_absolute_path"; then 20912 # Path to executable is not absolute. Find it. 20913 IFS_save="$IFS" 20914 IFS=: 20915 for p in $PATH; do 20916 if test -f "$p/$path" && test -x "$p/$path"; then 20917 new_path="$p/$path" 20918 break 20919 fi 20920 done 20921 IFS="$IFS_save" 20922 else 20923 # This is an absolute path, we can use it without further modifications. 20924 new_path="$path" 20925 fi 20926 20927 if test "x$new_path" = x; then 20928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20929 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20930 has_space=`$ECHO "$complete" | $GREP " "` 20931 if test "x$has_space" != x; then 20932 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20933 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20934 fi 20935 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20936 fi 20937 fi 20938 20939 # Now join together the path and the arguments once again 20940 if test "x$arguments" != xEOL; then 20941 new_complete="$new_path ${arguments% *}" 20942 else 20943 new_complete="$new_path" 20944 fi 20945 20946 if test "x$complete" != "x$new_complete"; then 20947 FOUND_MAKE="$new_complete" 20948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20949 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20950 fi 20951 fi 20952 20953 fi 20954 fi 20955 fi 20956 fi 20957 20958 fi 20959 PATH=$OLD_PATH 20960 fi 20961 fi 20962 20963 if test "x$FOUND_MAKE" = x; then 20964 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 20965 fi 20966 20967 else 20968 # If it succeeded, then it was overridden by the user. We will use it 20969 # for the tool. 20970 20971 # First remove it from the list of overridden variables, so we can test 20972 # for unknown variables in the end. 20973 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20974 20975 # Check if we try to supply an empty value 20976 if test "x$MAKE" = x; then 20977 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 20978 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20980 $as_echo_n "checking for MAKE... " >&6; } 20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20982 $as_echo "disabled" >&6; } 20983 else 20984 # Check if the provided tool contains a complete path. 20985 tool_specified="$MAKE" 20986 tool_basename="${tool_specified##*/}" 20987 if test "x$tool_basename" = "x$tool_specified"; then 20988 # A command without a complete path is provided, search $PATH. 20989 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 20990 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 20991 # Extract the first word of "$tool_basename", so it can be a program name with args. 20992 set dummy $tool_basename; ac_word=$2 20993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20994 $as_echo_n "checking for $ac_word... " >&6; } 20995 if ${ac_cv_path_MAKE+:} false; then : 20996 $as_echo_n "(cached) " >&6 20997 else 20998 case $MAKE in 20999 [\\/]* | ?:[\\/]*) 21000 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 21001 ;; 21002 *) 21003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21004 for as_dir in $PATH 21005 do 21006 IFS=$as_save_IFS 21007 test -z "$as_dir" && as_dir=. 21008 for ac_exec_ext in '' $ac_executable_extensions; do 21009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21010 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 21011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21012 break 2 21013 fi 21014 done 21015 done 21016 IFS=$as_save_IFS 21017 21018 ;; 21019 esac 21020 fi 21021 MAKE=$ac_cv_path_MAKE 21022 if test -n "$MAKE"; then 21023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 21024 $as_echo "$MAKE" >&6; } 21025 else 21026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21027 $as_echo "no" >&6; } 21028 fi 21029 21030 21031 if test "x$MAKE" = x; then 21032 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21033 fi 21034 else 21035 # Otherwise we believe it is a complete path. Use it as it is. 21036 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 21037 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21039 $as_echo_n "checking for MAKE... " >&6; } 21040 if test ! -x "$tool_specified"; then 21041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21042 $as_echo "not found" >&6; } 21043 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 21044 fi 21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21046 $as_echo "$tool_specified" >&6; } 21047 fi 21048 fi 21049 fi 21050 21051 # If MAKE was set by user, verify the version 21052 21053 MAKE_CANDIDATE=""$MAKE"" 21054 DESCRIPTION="user supplied MAKE=$MAKE" 21055 21056 # On Cygwin, we require a newer version of make than on other platforms 21057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21058 MAKE_VERSION_EXPR="-e 4\." 21059 MAKE_REQUIRED_VERSION="4.0" 21060 else 21061 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 21062 MAKE_REQUIRED_VERSION="3.81" 21063 fi 21064 21065 if test "x$MAKE_CANDIDATE" != x; then 21066 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 21067 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 21068 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 21069 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 21070 if test "x$IS_GNU_MAKE" = x; then 21071 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 21072 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 21073 else 21074 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 21075 if test "x$IS_MODERN_MAKE" = x; then 21076 { $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 21077 $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;} 21078 else 21079 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 21080 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21081 MAKE_EXPECTED_ENV='cygwin' 21082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21083 MAKE_EXPECTED_ENV='msys' 21084 else 21085 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 21086 fi 21087 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 21088 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 21089 else 21090 # Not relevant for non-Windows 21091 IS_MAKE_CORRECT_ENV=true 21092 fi 21093 if test "x$IS_MAKE_CORRECT_ENV" = x; then 21094 { $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 21095 $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;} 21096 else 21097 FOUND_MAKE=$MAKE_CANDIDATE 21098 21099 # Only process if variable expands to non-empty 21100 21101 if test "x$FOUND_MAKE" != x; then 21102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21103 21104 # First separate the path from the arguments. This will split at the first 21105 # space. 21106 complete="$FOUND_MAKE" 21107 path="${complete%% *}" 21108 tmp="$complete EOL" 21109 arguments="${tmp#* }" 21110 21111 # Input might be given as Windows format, start by converting to 21112 # unix format. 21113 new_path=`$CYGPATH -u "$path"` 21114 21115 # Now try to locate executable using which 21116 new_path=`$WHICH "$new_path" 2> /dev/null` 21117 # bat and cmd files are not always considered executable in cygwin causing which 21118 # to not find them 21119 if test "x$new_path" = x \ 21120 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21121 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21122 new_path=`$CYGPATH -u "$path"` 21123 fi 21124 if test "x$new_path" = x; then 21125 # Oops. Which didn't find the executable. 21126 # The splitting of arguments from the executable at a space might have been incorrect, 21127 # since paths with space are more likely in Windows. Give it another try with the whole 21128 # argument. 21129 path="$complete" 21130 arguments="EOL" 21131 new_path=`$CYGPATH -u "$path"` 21132 new_path=`$WHICH "$new_path" 2> /dev/null` 21133 # bat and cmd files are not always considered executable in cygwin causing which 21134 # to not find them 21135 if test "x$new_path" = x \ 21136 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21137 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21138 new_path=`$CYGPATH -u "$path"` 21139 fi 21140 if test "x$new_path" = x; then 21141 # It's still not found. Now this is an unrecoverable error. 21142 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21143 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21144 has_space=`$ECHO "$complete" | $GREP " "` 21145 if test "x$has_space" != x; then 21146 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21147 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21148 fi 21149 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21150 fi 21151 fi 21152 21153 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21154 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21155 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21156 # "foo.exe" is OK but "foo" is an error. 21157 # 21158 # This test is therefore slightly more accurate than "test -f" to check for file presence. 21159 # It is also a way to make sure we got the proper file name for the real test later on. 21160 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21161 if test "x$test_shortpath" = x; then 21162 # Short path failed, file does not exist as specified. 21163 # Try adding .exe or .cmd 21164 if test -f "${new_path}.exe"; then 21165 input_to_shortpath="${new_path}.exe" 21166 elif test -f "${new_path}.cmd"; then 21167 input_to_shortpath="${new_path}.cmd" 21168 else 21169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 21170 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 21171 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21172 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21173 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21174 fi 21175 else 21176 input_to_shortpath="$new_path" 21177 fi 21178 21179 # Call helper function which possibly converts this using DOS-style short mode. 21180 # If so, the updated path is stored in $new_path. 21181 new_path="$input_to_shortpath" 21182 21183 input_path="$input_to_shortpath" 21184 # Check if we need to convert this using DOS-style short mode. If the path 21185 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21186 # take no chances and rewrite it. 21187 # Note: m4 eats our [], so we need to use [ and ] instead. 21188 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21189 if test "x$has_forbidden_chars" != x; then 21190 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21191 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21192 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21193 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21194 # Going to short mode and back again did indeed matter. Since short mode is 21195 # case insensitive, let's make it lowercase to improve readability. 21196 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21197 # Now convert it back to Unix-style (cygpath) 21198 input_path=`$CYGPATH -u "$shortmode_path"` 21199 new_path="$input_path" 21200 fi 21201 fi 21202 21203 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21204 if test "x$test_cygdrive_prefix" = x; then 21205 # As a simple fix, exclude /usr/bin since it's not a real path. 21206 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21207 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21208 # a path prefixed by /cygdrive for fixpath to work. 21209 new_path="$CYGWIN_ROOT_PATH$input_path" 21210 fi 21211 fi 21212 21213 # remove trailing .exe if any 21214 new_path="${new_path/%.exe/}" 21215 21216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21217 21218 # First separate the path from the arguments. This will split at the first 21219 # space. 21220 complete="$FOUND_MAKE" 21221 path="${complete%% *}" 21222 tmp="$complete EOL" 21223 arguments="${tmp#* }" 21224 21225 # Input might be given as Windows format, start by converting to 21226 # unix format. 21227 new_path="$path" 21228 21229 windows_path="$new_path" 21230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21231 unix_path=`$CYGPATH -u "$windows_path"` 21232 new_path="$unix_path" 21233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21234 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21235 new_path="$unix_path" 21236 fi 21237 21238 21239 # Now try to locate executable using which 21240 new_path=`$WHICH "$new_path" 2> /dev/null` 21241 21242 if test "x$new_path" = x; then 21243 # Oops. Which didn't find the executable. 21244 # The splitting of arguments from the executable at a space might have been incorrect, 21245 # since paths with space are more likely in Windows. Give it another try with the whole 21246 # argument. 21247 path="$complete" 21248 arguments="EOL" 21249 new_path="$path" 21250 21251 windows_path="$new_path" 21252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21253 unix_path=`$CYGPATH -u "$windows_path"` 21254 new_path="$unix_path" 21255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21257 new_path="$unix_path" 21258 fi 21259 21260 21261 new_path=`$WHICH "$new_path" 2> /dev/null` 21262 # bat and cmd files are not always considered executable in MSYS causing which 21263 # to not find them 21264 if test "x$new_path" = x \ 21265 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21266 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21267 new_path="$path" 21268 21269 windows_path="$new_path" 21270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21271 unix_path=`$CYGPATH -u "$windows_path"` 21272 new_path="$unix_path" 21273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21275 new_path="$unix_path" 21276 fi 21277 21278 fi 21279 21280 if test "x$new_path" = x; then 21281 # It's still not found. Now this is an unrecoverable error. 21282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21283 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21284 has_space=`$ECHO "$complete" | $GREP " "` 21285 if test "x$has_space" != x; then 21286 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21287 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21288 fi 21289 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21290 fi 21291 fi 21292 21293 # Now new_path has a complete unix path to the binary 21294 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21295 # Keep paths in /bin as-is, but remove trailing .exe if any 21296 new_path="${new_path/%.exe/}" 21297 # Do not save /bin paths to all_fixpath_prefixes! 21298 else 21299 # Not in mixed or Windows style, start by that. 21300 new_path=`cmd //c echo $new_path` 21301 21302 input_path="$new_path" 21303 # Check if we need to convert this using DOS-style short mode. If the path 21304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21305 # take no chances and rewrite it. 21306 # Note: m4 eats our [], so we need to use [ and ] instead. 21307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21308 if test "x$has_forbidden_chars" != x; then 21309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21310 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21311 fi 21312 21313 # Output is in $new_path 21314 21315 windows_path="$new_path" 21316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21317 unix_path=`$CYGPATH -u "$windows_path"` 21318 new_path="$unix_path" 21319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21321 new_path="$unix_path" 21322 fi 21323 21324 # remove trailing .exe if any 21325 new_path="${new_path/%.exe/}" 21326 21327 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21328 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21329 fi 21330 21331 else 21332 # We're on a unix platform. Hooray! :) 21333 # First separate the path from the arguments. This will split at the first 21334 # space. 21335 complete="$FOUND_MAKE" 21336 path="${complete%% *}" 21337 tmp="$complete EOL" 21338 arguments="${tmp#* }" 21339 21340 # Cannot rely on the command "which" here since it doesn't always work. 21341 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21342 if test -z "$is_absolute_path"; then 21343 # Path to executable is not absolute. Find it. 21344 IFS_save="$IFS" 21345 IFS=: 21346 for p in $PATH; do 21347 if test -f "$p/$path" && test -x "$p/$path"; then 21348 new_path="$p/$path" 21349 break 21350 fi 21351 done 21352 IFS="$IFS_save" 21353 else 21354 # This is an absolute path, we can use it without further modifications. 21355 new_path="$path" 21356 fi 21357 21358 if test "x$new_path" = x; then 21359 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21360 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21361 has_space=`$ECHO "$complete" | $GREP " "` 21362 if test "x$has_space" != x; then 21363 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21364 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21365 fi 21366 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21367 fi 21368 fi 21369 21370 # Now join together the path and the arguments once again 21371 if test "x$arguments" != xEOL; then 21372 new_complete="$new_path ${arguments% *}" 21373 else 21374 new_complete="$new_path" 21375 fi 21376 21377 if test "x$complete" != "x$new_complete"; then 21378 FOUND_MAKE="$new_complete" 21379 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21380 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21381 fi 21382 fi 21383 21384 fi 21385 fi 21386 fi 21387 fi 21388 21389 if test "x$FOUND_MAKE" = x; then 21390 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21391 fi 21392 21393 fi 21394 21395 21396 MAKE=$FOUND_MAKE 21397 21398 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21399 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21400 21401 21402 # Check if make supports the output sync option and if so, setup using it. 21403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21404 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21405 if $MAKE --version -O > /dev/null 2>&1; then 21406 OUTPUT_SYNC_SUPPORTED=true 21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21408 $as_echo "yes" >&6; } 21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21410 $as_echo_n "checking for output-sync value... " >&6; } 21411 21412 # Check whether --with-output-sync was given. 21413 if test "${with_output_sync+set}" = set; then : 21414 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21415 fi 21416 21417 if test "x$OUTPUT_SYNC" = "x"; then 21418 OUTPUT_SYNC=none 21419 fi 21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21421 $as_echo "$OUTPUT_SYNC" >&6; } 21422 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21423 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21424 fi 21425 else 21426 OUTPUT_SYNC_SUPPORTED=false 21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21428 $as_echo "no" >&6; } 21429 fi 21430 21431 21432 21433 21434 21435 21436 # Test if find supports -delete 21437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21438 $as_echo_n "checking if find supports -delete... " >&6; } 21439 FIND_DELETE="-delete" 21440 21441 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21442 21443 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21444 21445 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21446 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21447 # No, it does not. 21448 $RM $DELETEDIR/TestIfFindSupportsDelete 21449 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21450 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21451 FIND_DELETE="-print | $XARGS $RM" 21452 else 21453 FIND_DELETE="-exec $RM \{\} \+" 21454 fi 21455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21456 $as_echo "no" >&6; } 21457 else 21458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21459 $as_echo "yes" >&6; } 21460 fi 21461 $RMDIR $DELETEDIR 21462 21463 21464 21465 # Test which kind of tar was found 21466 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21467 TAR_TYPE="gnu" 21468 elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then 21469 TAR_TYPE="bsd" 21470 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21471 TAR_TYPE="bsd" 21472 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21473 TAR_TYPE="solaris" 21474 fi 21475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21476 $as_echo_n "checking what type of tar was found... " >&6; } 21477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21478 $as_echo "$TAR_TYPE" >&6; } 21479 21480 TAR_CREATE_FILE_PARAM="" 21481 21482 if test "x$TAR_TYPE" = "xgnu"; then 21483 TAR_INCLUDE_PARAM="T" 21484 TAR_SUPPORTS_TRANSFORM="true" 21485 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21486 # When using gnu tar for Solaris targets, need to use compatibility mode 21487 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21488 fi 21489 else 21490 TAR_INCLUDE_PARAM="I" 21491 TAR_SUPPORTS_TRANSFORM="false" 21492 fi 21493 21494 21495 21496 21497 21498 21499 # Test that grep supports -Fx with a list of pattern which includes null pattern. 21500 # This is a problem for the grep resident on AIX. 21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5 21502 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; } 21503 # Multiple subsequent spaces.. 21504 STACK_SPACES='aaa bbb ccc' 21505 # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty 21506 # patterns in it. 21507 STACK_LIST=${STACK_SPACES// /$'\n'} 21508 NEEDLE_SPACES='ccc bbb aaa' 21509 NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'} 21510 RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")" 21511 if test "x$RESULT" == "x"; then 21512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21513 $as_echo "yes" >&6; } 21514 else 21515 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21516 ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin." 21517 fi 21518 as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5 21519 fi 21520 21521 21522 # These tools might not be installed by default, 21523 # need hint on how to install them. 21524 21525 21526 21527 # Publish this variable in the help. 21528 21529 21530 if [ -z "${UNZIP+x}" ]; then 21531 # The variable is not set by user, try to locate tool using the code snippet 21532 for ac_prog in unzip 21533 do 21534 # Extract the first word of "$ac_prog", so it can be a program name with args. 21535 set dummy $ac_prog; ac_word=$2 21536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21537 $as_echo_n "checking for $ac_word... " >&6; } 21538 if ${ac_cv_path_UNZIP+:} false; then : 21539 $as_echo_n "(cached) " >&6 21540 else 21541 case $UNZIP in 21542 [\\/]* | ?:[\\/]*) 21543 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21544 ;; 21545 *) 21546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21547 for as_dir in $PATH 21548 do 21549 IFS=$as_save_IFS 21550 test -z "$as_dir" && as_dir=. 21551 for ac_exec_ext in '' $ac_executable_extensions; do 21552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21553 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21555 break 2 21556 fi 21557 done 21558 done 21559 IFS=$as_save_IFS 21560 21561 ;; 21562 esac 21563 fi 21564 UNZIP=$ac_cv_path_UNZIP 21565 if test -n "$UNZIP"; then 21566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21567 $as_echo "$UNZIP" >&6; } 21568 else 21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21570 $as_echo "no" >&6; } 21571 fi 21572 21573 21574 test -n "$UNZIP" && break 21575 done 21576 21577 else 21578 # The variable is set, but is it from the command line or the environment? 21579 21580 # Try to remove the string !UNZIP! from our list. 21581 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21582 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21583 # If it failed, the variable was not from the command line. Ignore it, 21584 # but warn the user (except for BASH, which is always set by the calling BASH). 21585 if test "xUNZIP" != xBASH; then 21586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21587 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21588 fi 21589 # Try to locate tool using the code snippet 21590 for ac_prog in unzip 21591 do 21592 # Extract the first word of "$ac_prog", so it can be a program name with args. 21593 set dummy $ac_prog; ac_word=$2 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21595 $as_echo_n "checking for $ac_word... " >&6; } 21596 if ${ac_cv_path_UNZIP+:} false; then : 21597 $as_echo_n "(cached) " >&6 21598 else 21599 case $UNZIP in 21600 [\\/]* | ?:[\\/]*) 21601 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21602 ;; 21603 *) 21604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21605 for as_dir in $PATH 21606 do 21607 IFS=$as_save_IFS 21608 test -z "$as_dir" && as_dir=. 21609 for ac_exec_ext in '' $ac_executable_extensions; do 21610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21611 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21613 break 2 21614 fi 21615 done 21616 done 21617 IFS=$as_save_IFS 21618 21619 ;; 21620 esac 21621 fi 21622 UNZIP=$ac_cv_path_UNZIP 21623 if test -n "$UNZIP"; then 21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21625 $as_echo "$UNZIP" >&6; } 21626 else 21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21628 $as_echo "no" >&6; } 21629 fi 21630 21631 21632 test -n "$UNZIP" && break 21633 done 21634 21635 else 21636 # If it succeeded, then it was overridden by the user. We will use it 21637 # for the tool. 21638 21639 # First remove it from the list of overridden variables, so we can test 21640 # for unknown variables in the end. 21641 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21642 21643 # Check if we try to supply an empty value 21644 if test "x$UNZIP" = x; then 21645 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21646 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21648 $as_echo_n "checking for UNZIP... " >&6; } 21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21650 $as_echo "disabled" >&6; } 21651 else 21652 # Check if the provided tool contains a complete path. 21653 tool_specified="$UNZIP" 21654 tool_basename="${tool_specified##*/}" 21655 if test "x$tool_basename" = "x$tool_specified"; then 21656 # A command without a complete path is provided, search $PATH. 21657 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21658 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21659 # Extract the first word of "$tool_basename", so it can be a program name with args. 21660 set dummy $tool_basename; ac_word=$2 21661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21662 $as_echo_n "checking for $ac_word... " >&6; } 21663 if ${ac_cv_path_UNZIP+:} false; then : 21664 $as_echo_n "(cached) " >&6 21665 else 21666 case $UNZIP in 21667 [\\/]* | ?:[\\/]*) 21668 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21669 ;; 21670 *) 21671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21672 for as_dir in $PATH 21673 do 21674 IFS=$as_save_IFS 21675 test -z "$as_dir" && as_dir=. 21676 for ac_exec_ext in '' $ac_executable_extensions; do 21677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21678 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21680 break 2 21681 fi 21682 done 21683 done 21684 IFS=$as_save_IFS 21685 21686 ;; 21687 esac 21688 fi 21689 UNZIP=$ac_cv_path_UNZIP 21690 if test -n "$UNZIP"; then 21691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21692 $as_echo "$UNZIP" >&6; } 21693 else 21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21695 $as_echo "no" >&6; } 21696 fi 21697 21698 21699 if test "x$UNZIP" = x; then 21700 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21701 fi 21702 else 21703 # Otherwise we believe it is a complete path. Use it as it is. 21704 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21705 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21707 $as_echo_n "checking for UNZIP... " >&6; } 21708 if test ! -x "$tool_specified"; then 21709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21710 $as_echo "not found" >&6; } 21711 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21712 fi 21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21714 $as_echo "$tool_specified" >&6; } 21715 fi 21716 fi 21717 fi 21718 21719 fi 21720 21721 21722 21723 if test "x$UNZIP" = x; then 21724 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21725 fi 21726 21727 21728 # Since zip uses "ZIP" as a environment variable for passing options, we need 21729 # to name our variable differently, hence ZIPEXE. 21730 21731 21732 21733 # Publish this variable in the help. 21734 21735 21736 if [ -z "${ZIPEXE+x}" ]; then 21737 # The variable is not set by user, try to locate tool using the code snippet 21738 for ac_prog in zip 21739 do 21740 # Extract the first word of "$ac_prog", so it can be a program name with args. 21741 set dummy $ac_prog; ac_word=$2 21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21743 $as_echo_n "checking for $ac_word... " >&6; } 21744 if ${ac_cv_path_ZIPEXE+:} false; then : 21745 $as_echo_n "(cached) " >&6 21746 else 21747 case $ZIPEXE in 21748 [\\/]* | ?:[\\/]*) 21749 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21750 ;; 21751 *) 21752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21753 for as_dir in $PATH 21754 do 21755 IFS=$as_save_IFS 21756 test -z "$as_dir" && as_dir=. 21757 for ac_exec_ext in '' $ac_executable_extensions; do 21758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21759 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21761 break 2 21762 fi 21763 done 21764 done 21765 IFS=$as_save_IFS 21766 21767 ;; 21768 esac 21769 fi 21770 ZIPEXE=$ac_cv_path_ZIPEXE 21771 if test -n "$ZIPEXE"; then 21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21773 $as_echo "$ZIPEXE" >&6; } 21774 else 21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21776 $as_echo "no" >&6; } 21777 fi 21778 21779 21780 test -n "$ZIPEXE" && break 21781 done 21782 21783 else 21784 # The variable is set, but is it from the command line or the environment? 21785 21786 # Try to remove the string !ZIPEXE! from our list. 21787 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/} 21788 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21789 # If it failed, the variable was not from the command line. Ignore it, 21790 # but warn the user (except for BASH, which is always set by the calling BASH). 21791 if test "xZIPEXE" != xBASH; then 21792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5 21793 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;} 21794 fi 21795 # Try to locate tool using the code snippet 21796 for ac_prog in zip 21797 do 21798 # Extract the first word of "$ac_prog", so it can be a program name with args. 21799 set dummy $ac_prog; ac_word=$2 21800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21801 $as_echo_n "checking for $ac_word... " >&6; } 21802 if ${ac_cv_path_ZIPEXE+:} false; then : 21803 $as_echo_n "(cached) " >&6 21804 else 21805 case $ZIPEXE in 21806 [\\/]* | ?:[\\/]*) 21807 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21808 ;; 21809 *) 21810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21811 for as_dir in $PATH 21812 do 21813 IFS=$as_save_IFS 21814 test -z "$as_dir" && as_dir=. 21815 for ac_exec_ext in '' $ac_executable_extensions; do 21816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21817 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21819 break 2 21820 fi 21821 done 21822 done 21823 IFS=$as_save_IFS 21824 21825 ;; 21826 esac 21827 fi 21828 ZIPEXE=$ac_cv_path_ZIPEXE 21829 if test -n "$ZIPEXE"; then 21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21831 $as_echo "$ZIPEXE" >&6; } 21832 else 21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21834 $as_echo "no" >&6; } 21835 fi 21836 21837 21838 test -n "$ZIPEXE" && break 21839 done 21840 21841 else 21842 # If it succeeded, then it was overridden by the user. We will use it 21843 # for the tool. 21844 21845 # First remove it from the list of overridden variables, so we can test 21846 # for unknown variables in the end. 21847 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21848 21849 # Check if we try to supply an empty value 21850 if test "x$ZIPEXE" = x; then 21851 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5 21852 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;} 21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21854 $as_echo_n "checking for ZIPEXE... " >&6; } 21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21856 $as_echo "disabled" >&6; } 21857 else 21858 # Check if the provided tool contains a complete path. 21859 tool_specified="$ZIPEXE" 21860 tool_basename="${tool_specified##*/}" 21861 if test "x$tool_basename" = "x$tool_specified"; then 21862 # A command without a complete path is provided, search $PATH. 21863 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5 21864 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;} 21865 # Extract the first word of "$tool_basename", so it can be a program name with args. 21866 set dummy $tool_basename; ac_word=$2 21867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21868 $as_echo_n "checking for $ac_word... " >&6; } 21869 if ${ac_cv_path_ZIPEXE+:} false; then : 21870 $as_echo_n "(cached) " >&6 21871 else 21872 case $ZIPEXE in 21873 [\\/]* | ?:[\\/]*) 21874 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21875 ;; 21876 *) 21877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21878 for as_dir in $PATH 21879 do 21880 IFS=$as_save_IFS 21881 test -z "$as_dir" && as_dir=. 21882 for ac_exec_ext in '' $ac_executable_extensions; do 21883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21884 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21886 break 2 21887 fi 21888 done 21889 done 21890 IFS=$as_save_IFS 21891 21892 ;; 21893 esac 21894 fi 21895 ZIPEXE=$ac_cv_path_ZIPEXE 21896 if test -n "$ZIPEXE"; then 21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21898 $as_echo "$ZIPEXE" >&6; } 21899 else 21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21901 $as_echo "no" >&6; } 21902 fi 21903 21904 21905 if test "x$ZIPEXE" = x; then 21906 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21907 fi 21908 else 21909 # Otherwise we believe it is a complete path. Use it as it is. 21910 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5 21911 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;} 21912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21913 $as_echo_n "checking for ZIPEXE... " >&6; } 21914 if test ! -x "$tool_specified"; then 21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21916 $as_echo "not found" >&6; } 21917 as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 21918 fi 21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21920 $as_echo "$tool_specified" >&6; } 21921 fi 21922 fi 21923 fi 21924 21925 fi 21926 21927 21928 21929 if test "x$ZIPEXE" = x; then 21930 as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5 21931 fi 21932 21933 21934 21935 # Non-required basic tools 21936 21937 21938 21939 # Publish this variable in the help. 21940 21941 21942 if [ -z "${LDD+x}" ]; then 21943 # The variable is not set by user, try to locate tool using the code snippet 21944 for ac_prog in ldd 21945 do 21946 # Extract the first word of "$ac_prog", so it can be a program name with args. 21947 set dummy $ac_prog; ac_word=$2 21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21949 $as_echo_n "checking for $ac_word... " >&6; } 21950 if ${ac_cv_path_LDD+:} false; then : 21951 $as_echo_n "(cached) " >&6 21952 else 21953 case $LDD in 21954 [\\/]* | ?:[\\/]*) 21955 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21956 ;; 21957 *) 21958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21959 for as_dir in $PATH 21960 do 21961 IFS=$as_save_IFS 21962 test -z "$as_dir" && as_dir=. 21963 for ac_exec_ext in '' $ac_executable_extensions; do 21964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21965 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21967 break 2 21968 fi 21969 done 21970 done 21971 IFS=$as_save_IFS 21972 21973 ;; 21974 esac 21975 fi 21976 LDD=$ac_cv_path_LDD 21977 if test -n "$LDD"; then 21978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21979 $as_echo "$LDD" >&6; } 21980 else 21981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21982 $as_echo "no" >&6; } 21983 fi 21984 21985 21986 test -n "$LDD" && break 21987 done 21988 21989 else 21990 # The variable is set, but is it from the command line or the environment? 21991 21992 # Try to remove the string !LDD! from our list. 21993 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 21994 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21995 # If it failed, the variable was not from the command line. Ignore it, 21996 # but warn the user (except for BASH, which is always set by the calling BASH). 21997 if test "xLDD" != xBASH; then 21998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 21999 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 22000 fi 22001 # Try to locate tool using the code snippet 22002 for ac_prog in ldd 22003 do 22004 # Extract the first word of "$ac_prog", so it can be a program name with args. 22005 set dummy $ac_prog; ac_word=$2 22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22007 $as_echo_n "checking for $ac_word... " >&6; } 22008 if ${ac_cv_path_LDD+:} false; then : 22009 $as_echo_n "(cached) " >&6 22010 else 22011 case $LDD in 22012 [\\/]* | ?:[\\/]*) 22013 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22014 ;; 22015 *) 22016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22017 for as_dir in $PATH 22018 do 22019 IFS=$as_save_IFS 22020 test -z "$as_dir" && as_dir=. 22021 for ac_exec_ext in '' $ac_executable_extensions; do 22022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22023 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22025 break 2 22026 fi 22027 done 22028 done 22029 IFS=$as_save_IFS 22030 22031 ;; 22032 esac 22033 fi 22034 LDD=$ac_cv_path_LDD 22035 if test -n "$LDD"; then 22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22037 $as_echo "$LDD" >&6; } 22038 else 22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22040 $as_echo "no" >&6; } 22041 fi 22042 22043 22044 test -n "$LDD" && break 22045 done 22046 22047 else 22048 # If it succeeded, then it was overridden by the user. We will use it 22049 # for the tool. 22050 22051 # First remove it from the list of overridden variables, so we can test 22052 # for unknown variables in the end. 22053 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22054 22055 # Check if we try to supply an empty value 22056 if test "x$LDD" = x; then 22057 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 22058 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22060 $as_echo_n "checking for LDD... " >&6; } 22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22062 $as_echo "disabled" >&6; } 22063 else 22064 # Check if the provided tool contains a complete path. 22065 tool_specified="$LDD" 22066 tool_basename="${tool_specified##*/}" 22067 if test "x$tool_basename" = "x$tool_specified"; then 22068 # A command without a complete path is provided, search $PATH. 22069 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 22070 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 22071 # Extract the first word of "$tool_basename", so it can be a program name with args. 22072 set dummy $tool_basename; ac_word=$2 22073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22074 $as_echo_n "checking for $ac_word... " >&6; } 22075 if ${ac_cv_path_LDD+:} false; then : 22076 $as_echo_n "(cached) " >&6 22077 else 22078 case $LDD in 22079 [\\/]* | ?:[\\/]*) 22080 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22081 ;; 22082 *) 22083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22084 for as_dir in $PATH 22085 do 22086 IFS=$as_save_IFS 22087 test -z "$as_dir" && as_dir=. 22088 for ac_exec_ext in '' $ac_executable_extensions; do 22089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22090 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22092 break 2 22093 fi 22094 done 22095 done 22096 IFS=$as_save_IFS 22097 22098 ;; 22099 esac 22100 fi 22101 LDD=$ac_cv_path_LDD 22102 if test -n "$LDD"; then 22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22104 $as_echo "$LDD" >&6; } 22105 else 22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22107 $as_echo "no" >&6; } 22108 fi 22109 22110 22111 if test "x$LDD" = x; then 22112 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22113 fi 22114 else 22115 # Otherwise we believe it is a complete path. Use it as it is. 22116 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 22117 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 22118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22119 $as_echo_n "checking for LDD... " >&6; } 22120 if test ! -x "$tool_specified"; then 22121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22122 $as_echo "not found" >&6; } 22123 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 22124 fi 22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22126 $as_echo "$tool_specified" >&6; } 22127 fi 22128 fi 22129 fi 22130 22131 fi 22132 22133 22134 if test "x$LDD" = "x"; then 22135 # List shared lib dependencies is used for 22136 # debug output and checking for forbidden dependencies. 22137 # We can build without it. 22138 LDD="true" 22139 fi 22140 22141 22142 # Publish this variable in the help. 22143 22144 22145 if [ -z "${READELF+x}" ]; then 22146 # The variable is not set by user, try to locate tool using the code snippet 22147 for ac_prog in greadelf readelf 22148 do 22149 # Extract the first word of "$ac_prog", so it can be a program name with args. 22150 set dummy $ac_prog; ac_word=$2 22151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22152 $as_echo_n "checking for $ac_word... " >&6; } 22153 if ${ac_cv_path_READELF+:} false; then : 22154 $as_echo_n "(cached) " >&6 22155 else 22156 case $READELF in 22157 [\\/]* | ?:[\\/]*) 22158 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22159 ;; 22160 *) 22161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22162 for as_dir in $PATH 22163 do 22164 IFS=$as_save_IFS 22165 test -z "$as_dir" && as_dir=. 22166 for ac_exec_ext in '' $ac_executable_extensions; do 22167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22168 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22170 break 2 22171 fi 22172 done 22173 done 22174 IFS=$as_save_IFS 22175 22176 ;; 22177 esac 22178 fi 22179 READELF=$ac_cv_path_READELF 22180 if test -n "$READELF"; then 22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22182 $as_echo "$READELF" >&6; } 22183 else 22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22185 $as_echo "no" >&6; } 22186 fi 22187 22188 22189 test -n "$READELF" && break 22190 done 22191 22192 else 22193 # The variable is set, but is it from the command line or the environment? 22194 22195 # Try to remove the string !READELF! from our list. 22196 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22197 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22198 # If it failed, the variable was not from the command line. Ignore it, 22199 # but warn the user (except for BASH, which is always set by the calling BASH). 22200 if test "xREADELF" != xBASH; then 22201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22202 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22203 fi 22204 # Try to locate tool using the code snippet 22205 for ac_prog in greadelf readelf 22206 do 22207 # Extract the first word of "$ac_prog", so it can be a program name with args. 22208 set dummy $ac_prog; ac_word=$2 22209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22210 $as_echo_n "checking for $ac_word... " >&6; } 22211 if ${ac_cv_path_READELF+:} false; then : 22212 $as_echo_n "(cached) " >&6 22213 else 22214 case $READELF in 22215 [\\/]* | ?:[\\/]*) 22216 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22217 ;; 22218 *) 22219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22220 for as_dir in $PATH 22221 do 22222 IFS=$as_save_IFS 22223 test -z "$as_dir" && as_dir=. 22224 for ac_exec_ext in '' $ac_executable_extensions; do 22225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22226 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22228 break 2 22229 fi 22230 done 22231 done 22232 IFS=$as_save_IFS 22233 22234 ;; 22235 esac 22236 fi 22237 READELF=$ac_cv_path_READELF 22238 if test -n "$READELF"; then 22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22240 $as_echo "$READELF" >&6; } 22241 else 22242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22243 $as_echo "no" >&6; } 22244 fi 22245 22246 22247 test -n "$READELF" && break 22248 done 22249 22250 else 22251 # If it succeeded, then it was overridden by the user. We will use it 22252 # for the tool. 22253 22254 # First remove it from the list of overridden variables, so we can test 22255 # for unknown variables in the end. 22256 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22257 22258 # Check if we try to supply an empty value 22259 if test "x$READELF" = x; then 22260 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22261 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22263 $as_echo_n "checking for READELF... " >&6; } 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22265 $as_echo "disabled" >&6; } 22266 else 22267 # Check if the provided tool contains a complete path. 22268 tool_specified="$READELF" 22269 tool_basename="${tool_specified##*/}" 22270 if test "x$tool_basename" = "x$tool_specified"; then 22271 # A command without a complete path is provided, search $PATH. 22272 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22273 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22274 # Extract the first word of "$tool_basename", so it can be a program name with args. 22275 set dummy $tool_basename; ac_word=$2 22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22277 $as_echo_n "checking for $ac_word... " >&6; } 22278 if ${ac_cv_path_READELF+:} false; then : 22279 $as_echo_n "(cached) " >&6 22280 else 22281 case $READELF in 22282 [\\/]* | ?:[\\/]*) 22283 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22284 ;; 22285 *) 22286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22287 for as_dir in $PATH 22288 do 22289 IFS=$as_save_IFS 22290 test -z "$as_dir" && as_dir=. 22291 for ac_exec_ext in '' $ac_executable_extensions; do 22292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22293 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22295 break 2 22296 fi 22297 done 22298 done 22299 IFS=$as_save_IFS 22300 22301 ;; 22302 esac 22303 fi 22304 READELF=$ac_cv_path_READELF 22305 if test -n "$READELF"; then 22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22307 $as_echo "$READELF" >&6; } 22308 else 22309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22310 $as_echo "no" >&6; } 22311 fi 22312 22313 22314 if test "x$READELF" = x; then 22315 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22316 fi 22317 else 22318 # Otherwise we believe it is a complete path. Use it as it is. 22319 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22320 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22322 $as_echo_n "checking for READELF... " >&6; } 22323 if test ! -x "$tool_specified"; then 22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22325 $as_echo "not found" >&6; } 22326 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22327 fi 22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22329 $as_echo "$tool_specified" >&6; } 22330 fi 22331 fi 22332 fi 22333 22334 fi 22335 22336 22337 22338 22339 # Publish this variable in the help. 22340 22341 22342 if [ -z "${DOT+x}" ]; then 22343 # The variable is not set by user, try to locate tool using the code snippet 22344 for ac_prog in dot 22345 do 22346 # Extract the first word of "$ac_prog", so it can be a program name with args. 22347 set dummy $ac_prog; ac_word=$2 22348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22349 $as_echo_n "checking for $ac_word... " >&6; } 22350 if ${ac_cv_path_DOT+:} false; then : 22351 $as_echo_n "(cached) " >&6 22352 else 22353 case $DOT in 22354 [\\/]* | ?:[\\/]*) 22355 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22356 ;; 22357 *) 22358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22359 for as_dir in $PATH 22360 do 22361 IFS=$as_save_IFS 22362 test -z "$as_dir" && as_dir=. 22363 for ac_exec_ext in '' $ac_executable_extensions; do 22364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22365 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22367 break 2 22368 fi 22369 done 22370 done 22371 IFS=$as_save_IFS 22372 22373 ;; 22374 esac 22375 fi 22376 DOT=$ac_cv_path_DOT 22377 if test -n "$DOT"; then 22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22379 $as_echo "$DOT" >&6; } 22380 else 22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22382 $as_echo "no" >&6; } 22383 fi 22384 22385 22386 test -n "$DOT" && break 22387 done 22388 22389 else 22390 # The variable is set, but is it from the command line or the environment? 22391 22392 # Try to remove the string !DOT! from our list. 22393 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/} 22394 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22395 # If it failed, the variable was not from the command line. Ignore it, 22396 # but warn the user (except for BASH, which is always set by the calling BASH). 22397 if test "xDOT" != xBASH; then 22398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5 22399 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;} 22400 fi 22401 # Try to locate tool using the code snippet 22402 for ac_prog in dot 22403 do 22404 # Extract the first word of "$ac_prog", so it can be a program name with args. 22405 set dummy $ac_prog; ac_word=$2 22406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22407 $as_echo_n "checking for $ac_word... " >&6; } 22408 if ${ac_cv_path_DOT+:} false; then : 22409 $as_echo_n "(cached) " >&6 22410 else 22411 case $DOT in 22412 [\\/]* | ?:[\\/]*) 22413 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22414 ;; 22415 *) 22416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22417 for as_dir in $PATH 22418 do 22419 IFS=$as_save_IFS 22420 test -z "$as_dir" && as_dir=. 22421 for ac_exec_ext in '' $ac_executable_extensions; do 22422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22423 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22425 break 2 22426 fi 22427 done 22428 done 22429 IFS=$as_save_IFS 22430 22431 ;; 22432 esac 22433 fi 22434 DOT=$ac_cv_path_DOT 22435 if test -n "$DOT"; then 22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22437 $as_echo "$DOT" >&6; } 22438 else 22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22440 $as_echo "no" >&6; } 22441 fi 22442 22443 22444 test -n "$DOT" && break 22445 done 22446 22447 else 22448 # If it succeeded, then it was overridden by the user. We will use it 22449 # for the tool. 22450 22451 # First remove it from the list of overridden variables, so we can test 22452 # for unknown variables in the end. 22453 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22454 22455 # Check if we try to supply an empty value 22456 if test "x$DOT" = x; then 22457 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5 22458 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;} 22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22460 $as_echo_n "checking for DOT... " >&6; } 22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22462 $as_echo "disabled" >&6; } 22463 else 22464 # Check if the provided tool contains a complete path. 22465 tool_specified="$DOT" 22466 tool_basename="${tool_specified##*/}" 22467 if test "x$tool_basename" = "x$tool_specified"; then 22468 # A command without a complete path is provided, search $PATH. 22469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5 22470 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;} 22471 # Extract the first word of "$tool_basename", so it can be a program name with args. 22472 set dummy $tool_basename; ac_word=$2 22473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22474 $as_echo_n "checking for $ac_word... " >&6; } 22475 if ${ac_cv_path_DOT+:} false; then : 22476 $as_echo_n "(cached) " >&6 22477 else 22478 case $DOT in 22479 [\\/]* | ?:[\\/]*) 22480 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22481 ;; 22482 *) 22483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22484 for as_dir in $PATH 22485 do 22486 IFS=$as_save_IFS 22487 test -z "$as_dir" && as_dir=. 22488 for ac_exec_ext in '' $ac_executable_extensions; do 22489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22490 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22492 break 2 22493 fi 22494 done 22495 done 22496 IFS=$as_save_IFS 22497 22498 ;; 22499 esac 22500 fi 22501 DOT=$ac_cv_path_DOT 22502 if test -n "$DOT"; then 22503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22504 $as_echo "$DOT" >&6; } 22505 else 22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22507 $as_echo "no" >&6; } 22508 fi 22509 22510 22511 if test "x$DOT" = x; then 22512 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22513 fi 22514 else 22515 # Otherwise we believe it is a complete path. Use it as it is. 22516 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5 22517 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;} 22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22519 $as_echo_n "checking for DOT... " >&6; } 22520 if test ! -x "$tool_specified"; then 22521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22522 $as_echo "not found" >&6; } 22523 as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5 22524 fi 22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22526 $as_echo "$tool_specified" >&6; } 22527 fi 22528 fi 22529 fi 22530 22531 fi 22532 22533 22534 22535 22536 # Publish this variable in the help. 22537 22538 22539 if [ -z "${HG+x}" ]; then 22540 # The variable is not set by user, try to locate tool using the code snippet 22541 for ac_prog in hg 22542 do 22543 # Extract the first word of "$ac_prog", so it can be a program name with args. 22544 set dummy $ac_prog; ac_word=$2 22545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22546 $as_echo_n "checking for $ac_word... " >&6; } 22547 if ${ac_cv_path_HG+:} false; then : 22548 $as_echo_n "(cached) " >&6 22549 else 22550 case $HG in 22551 [\\/]* | ?:[\\/]*) 22552 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22553 ;; 22554 *) 22555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22556 for as_dir in $PATH 22557 do 22558 IFS=$as_save_IFS 22559 test -z "$as_dir" && as_dir=. 22560 for ac_exec_ext in '' $ac_executable_extensions; do 22561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22562 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22564 break 2 22565 fi 22566 done 22567 done 22568 IFS=$as_save_IFS 22569 22570 ;; 22571 esac 22572 fi 22573 HG=$ac_cv_path_HG 22574 if test -n "$HG"; then 22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22576 $as_echo "$HG" >&6; } 22577 else 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22579 $as_echo "no" >&6; } 22580 fi 22581 22582 22583 test -n "$HG" && break 22584 done 22585 22586 else 22587 # The variable is set, but is it from the command line or the environment? 22588 22589 # Try to remove the string !HG! from our list. 22590 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22591 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22592 # If it failed, the variable was not from the command line. Ignore it, 22593 # but warn the user (except for BASH, which is always set by the calling BASH). 22594 if test "xHG" != xBASH; then 22595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22596 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22597 fi 22598 # Try to locate tool using the code snippet 22599 for ac_prog in hg 22600 do 22601 # Extract the first word of "$ac_prog", so it can be a program name with args. 22602 set dummy $ac_prog; ac_word=$2 22603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22604 $as_echo_n "checking for $ac_word... " >&6; } 22605 if ${ac_cv_path_HG+:} false; then : 22606 $as_echo_n "(cached) " >&6 22607 else 22608 case $HG in 22609 [\\/]* | ?:[\\/]*) 22610 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22611 ;; 22612 *) 22613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22614 for as_dir in $PATH 22615 do 22616 IFS=$as_save_IFS 22617 test -z "$as_dir" && as_dir=. 22618 for ac_exec_ext in '' $ac_executable_extensions; do 22619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22620 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22622 break 2 22623 fi 22624 done 22625 done 22626 IFS=$as_save_IFS 22627 22628 ;; 22629 esac 22630 fi 22631 HG=$ac_cv_path_HG 22632 if test -n "$HG"; then 22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22634 $as_echo "$HG" >&6; } 22635 else 22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22637 $as_echo "no" >&6; } 22638 fi 22639 22640 22641 test -n "$HG" && break 22642 done 22643 22644 else 22645 # If it succeeded, then it was overridden by the user. We will use it 22646 # for the tool. 22647 22648 # First remove it from the list of overridden variables, so we can test 22649 # for unknown variables in the end. 22650 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22651 22652 # Check if we try to supply an empty value 22653 if test "x$HG" = x; then 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22655 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22657 $as_echo_n "checking for HG... " >&6; } 22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22659 $as_echo "disabled" >&6; } 22660 else 22661 # Check if the provided tool contains a complete path. 22662 tool_specified="$HG" 22663 tool_basename="${tool_specified##*/}" 22664 if test "x$tool_basename" = "x$tool_specified"; then 22665 # A command without a complete path is provided, search $PATH. 22666 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22667 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22668 # Extract the first word of "$tool_basename", so it can be a program name with args. 22669 set dummy $tool_basename; ac_word=$2 22670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22671 $as_echo_n "checking for $ac_word... " >&6; } 22672 if ${ac_cv_path_HG+:} false; then : 22673 $as_echo_n "(cached) " >&6 22674 else 22675 case $HG in 22676 [\\/]* | ?:[\\/]*) 22677 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22678 ;; 22679 *) 22680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22681 for as_dir in $PATH 22682 do 22683 IFS=$as_save_IFS 22684 test -z "$as_dir" && as_dir=. 22685 for ac_exec_ext in '' $ac_executable_extensions; do 22686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22687 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22689 break 2 22690 fi 22691 done 22692 done 22693 IFS=$as_save_IFS 22694 22695 ;; 22696 esac 22697 fi 22698 HG=$ac_cv_path_HG 22699 if test -n "$HG"; then 22700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22701 $as_echo "$HG" >&6; } 22702 else 22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22704 $as_echo "no" >&6; } 22705 fi 22706 22707 22708 if test "x$HG" = x; then 22709 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22710 fi 22711 else 22712 # Otherwise we believe it is a complete path. Use it as it is. 22713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22714 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22716 $as_echo_n "checking for HG... " >&6; } 22717 if test ! -x "$tool_specified"; then 22718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22719 $as_echo "not found" >&6; } 22720 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22721 fi 22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22723 $as_echo "$tool_specified" >&6; } 22724 fi 22725 fi 22726 fi 22727 22728 fi 22729 22730 22731 22732 22733 # Publish this variable in the help. 22734 22735 22736 if [ -z "${STAT+x}" ]; then 22737 # The variable is not set by user, try to locate tool using the code snippet 22738 for ac_prog in stat 22739 do 22740 # Extract the first word of "$ac_prog", so it can be a program name with args. 22741 set dummy $ac_prog; ac_word=$2 22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22743 $as_echo_n "checking for $ac_word... " >&6; } 22744 if ${ac_cv_path_STAT+:} false; then : 22745 $as_echo_n "(cached) " >&6 22746 else 22747 case $STAT in 22748 [\\/]* | ?:[\\/]*) 22749 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22750 ;; 22751 *) 22752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22753 for as_dir in $PATH 22754 do 22755 IFS=$as_save_IFS 22756 test -z "$as_dir" && as_dir=. 22757 for ac_exec_ext in '' $ac_executable_extensions; do 22758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22759 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22761 break 2 22762 fi 22763 done 22764 done 22765 IFS=$as_save_IFS 22766 22767 ;; 22768 esac 22769 fi 22770 STAT=$ac_cv_path_STAT 22771 if test -n "$STAT"; then 22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22773 $as_echo "$STAT" >&6; } 22774 else 22775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22776 $as_echo "no" >&6; } 22777 fi 22778 22779 22780 test -n "$STAT" && break 22781 done 22782 22783 else 22784 # The variable is set, but is it from the command line or the environment? 22785 22786 # Try to remove the string !STAT! from our list. 22787 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22788 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22789 # If it failed, the variable was not from the command line. Ignore it, 22790 # but warn the user (except for BASH, which is always set by the calling BASH). 22791 if test "xSTAT" != xBASH; then 22792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22793 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22794 fi 22795 # Try to locate tool using the code snippet 22796 for ac_prog in stat 22797 do 22798 # Extract the first word of "$ac_prog", so it can be a program name with args. 22799 set dummy $ac_prog; ac_word=$2 22800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22801 $as_echo_n "checking for $ac_word... " >&6; } 22802 if ${ac_cv_path_STAT+:} false; then : 22803 $as_echo_n "(cached) " >&6 22804 else 22805 case $STAT in 22806 [\\/]* | ?:[\\/]*) 22807 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22808 ;; 22809 *) 22810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22811 for as_dir in $PATH 22812 do 22813 IFS=$as_save_IFS 22814 test -z "$as_dir" && as_dir=. 22815 for ac_exec_ext in '' $ac_executable_extensions; do 22816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22817 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22819 break 2 22820 fi 22821 done 22822 done 22823 IFS=$as_save_IFS 22824 22825 ;; 22826 esac 22827 fi 22828 STAT=$ac_cv_path_STAT 22829 if test -n "$STAT"; then 22830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22831 $as_echo "$STAT" >&6; } 22832 else 22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22834 $as_echo "no" >&6; } 22835 fi 22836 22837 22838 test -n "$STAT" && break 22839 done 22840 22841 else 22842 # If it succeeded, then it was overridden by the user. We will use it 22843 # for the tool. 22844 22845 # First remove it from the list of overridden variables, so we can test 22846 # for unknown variables in the end. 22847 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22848 22849 # Check if we try to supply an empty value 22850 if test "x$STAT" = x; then 22851 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 22852 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22854 $as_echo_n "checking for STAT... " >&6; } 22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22856 $as_echo "disabled" >&6; } 22857 else 22858 # Check if the provided tool contains a complete path. 22859 tool_specified="$STAT" 22860 tool_basename="${tool_specified##*/}" 22861 if test "x$tool_basename" = "x$tool_specified"; then 22862 # A command without a complete path is provided, search $PATH. 22863 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 22864 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 22865 # Extract the first word of "$tool_basename", so it can be a program name with args. 22866 set dummy $tool_basename; ac_word=$2 22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22868 $as_echo_n "checking for $ac_word... " >&6; } 22869 if ${ac_cv_path_STAT+:} false; then : 22870 $as_echo_n "(cached) " >&6 22871 else 22872 case $STAT in 22873 [\\/]* | ?:[\\/]*) 22874 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22875 ;; 22876 *) 22877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22878 for as_dir in $PATH 22879 do 22880 IFS=$as_save_IFS 22881 test -z "$as_dir" && as_dir=. 22882 for ac_exec_ext in '' $ac_executable_extensions; do 22883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22884 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22886 break 2 22887 fi 22888 done 22889 done 22890 IFS=$as_save_IFS 22891 22892 ;; 22893 esac 22894 fi 22895 STAT=$ac_cv_path_STAT 22896 if test -n "$STAT"; then 22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22898 $as_echo "$STAT" >&6; } 22899 else 22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22901 $as_echo "no" >&6; } 22902 fi 22903 22904 22905 if test "x$STAT" = x; then 22906 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22907 fi 22908 else 22909 # Otherwise we believe it is a complete path. Use it as it is. 22910 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 22911 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 22912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22913 $as_echo_n "checking for STAT... " >&6; } 22914 if test ! -x "$tool_specified"; then 22915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22916 $as_echo "not found" >&6; } 22917 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 22918 fi 22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22920 $as_echo "$tool_specified" >&6; } 22921 fi 22922 fi 22923 fi 22924 22925 fi 22926 22927 22928 22929 22930 # Publish this variable in the help. 22931 22932 22933 if [ -z "${TIME+x}" ]; then 22934 # The variable is not set by user, try to locate tool using the code snippet 22935 for ac_prog in time 22936 do 22937 # Extract the first word of "$ac_prog", so it can be a program name with args. 22938 set dummy $ac_prog; ac_word=$2 22939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22940 $as_echo_n "checking for $ac_word... " >&6; } 22941 if ${ac_cv_path_TIME+:} false; then : 22942 $as_echo_n "(cached) " >&6 22943 else 22944 case $TIME in 22945 [\\/]* | ?:[\\/]*) 22946 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22947 ;; 22948 *) 22949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22950 for as_dir in $PATH 22951 do 22952 IFS=$as_save_IFS 22953 test -z "$as_dir" && as_dir=. 22954 for ac_exec_ext in '' $ac_executable_extensions; do 22955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22956 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22958 break 2 22959 fi 22960 done 22961 done 22962 IFS=$as_save_IFS 22963 22964 ;; 22965 esac 22966 fi 22967 TIME=$ac_cv_path_TIME 22968 if test -n "$TIME"; then 22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22970 $as_echo "$TIME" >&6; } 22971 else 22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22973 $as_echo "no" >&6; } 22974 fi 22975 22976 22977 test -n "$TIME" && break 22978 done 22979 22980 else 22981 # The variable is set, but is it from the command line or the environment? 22982 22983 # Try to remove the string !TIME! from our list. 22984 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 22985 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22986 # If it failed, the variable was not from the command line. Ignore it, 22987 # but warn the user (except for BASH, which is always set by the calling BASH). 22988 if test "xTIME" != xBASH; then 22989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 22990 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 22991 fi 22992 # Try to locate tool using the code snippet 22993 for ac_prog in time 22994 do 22995 # Extract the first word of "$ac_prog", so it can be a program name with args. 22996 set dummy $ac_prog; ac_word=$2 22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22998 $as_echo_n "checking for $ac_word... " >&6; } 22999 if ${ac_cv_path_TIME+:} false; then : 23000 $as_echo_n "(cached) " >&6 23001 else 23002 case $TIME in 23003 [\\/]* | ?:[\\/]*) 23004 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23005 ;; 23006 *) 23007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23008 for as_dir in $PATH 23009 do 23010 IFS=$as_save_IFS 23011 test -z "$as_dir" && as_dir=. 23012 for ac_exec_ext in '' $ac_executable_extensions; do 23013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23014 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23016 break 2 23017 fi 23018 done 23019 done 23020 IFS=$as_save_IFS 23021 23022 ;; 23023 esac 23024 fi 23025 TIME=$ac_cv_path_TIME 23026 if test -n "$TIME"; then 23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23028 $as_echo "$TIME" >&6; } 23029 else 23030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23031 $as_echo "no" >&6; } 23032 fi 23033 23034 23035 test -n "$TIME" && break 23036 done 23037 23038 else 23039 # If it succeeded, then it was overridden by the user. We will use it 23040 # for the tool. 23041 23042 # First remove it from the list of overridden variables, so we can test 23043 # for unknown variables in the end. 23044 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23045 23046 # Check if we try to supply an empty value 23047 if test "x$TIME" = x; then 23048 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 23049 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 23050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23051 $as_echo_n "checking for TIME... " >&6; } 23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23053 $as_echo "disabled" >&6; } 23054 else 23055 # Check if the provided tool contains a complete path. 23056 tool_specified="$TIME" 23057 tool_basename="${tool_specified##*/}" 23058 if test "x$tool_basename" = "x$tool_specified"; then 23059 # A command without a complete path is provided, search $PATH. 23060 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 23061 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 23062 # Extract the first word of "$tool_basename", so it can be a program name with args. 23063 set dummy $tool_basename; ac_word=$2 23064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23065 $as_echo_n "checking for $ac_word... " >&6; } 23066 if ${ac_cv_path_TIME+:} false; then : 23067 $as_echo_n "(cached) " >&6 23068 else 23069 case $TIME in 23070 [\\/]* | ?:[\\/]*) 23071 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23072 ;; 23073 *) 23074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23075 for as_dir in $PATH 23076 do 23077 IFS=$as_save_IFS 23078 test -z "$as_dir" && as_dir=. 23079 for ac_exec_ext in '' $ac_executable_extensions; do 23080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23081 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23083 break 2 23084 fi 23085 done 23086 done 23087 IFS=$as_save_IFS 23088 23089 ;; 23090 esac 23091 fi 23092 TIME=$ac_cv_path_TIME 23093 if test -n "$TIME"; then 23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23095 $as_echo "$TIME" >&6; } 23096 else 23097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23098 $as_echo "no" >&6; } 23099 fi 23100 23101 23102 if test "x$TIME" = x; then 23103 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23104 fi 23105 else 23106 # Otherwise we believe it is a complete path. Use it as it is. 23107 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 23108 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 23109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23110 $as_echo_n "checking for TIME... " >&6; } 23111 if test ! -x "$tool_specified"; then 23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23113 $as_echo "not found" >&6; } 23114 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 23115 fi 23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23117 $as_echo "$tool_specified" >&6; } 23118 fi 23119 fi 23120 fi 23121 23122 fi 23123 23124 23125 23126 23127 # Publish this variable in the help. 23128 23129 23130 if [ -z "${FLOCK+x}" ]; then 23131 # The variable is not set by user, try to locate tool using the code snippet 23132 for ac_prog in flock 23133 do 23134 # Extract the first word of "$ac_prog", so it can be a program name with args. 23135 set dummy $ac_prog; ac_word=$2 23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23137 $as_echo_n "checking for $ac_word... " >&6; } 23138 if ${ac_cv_path_FLOCK+:} false; then : 23139 $as_echo_n "(cached) " >&6 23140 else 23141 case $FLOCK in 23142 [\\/]* | ?:[\\/]*) 23143 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23144 ;; 23145 *) 23146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23147 for as_dir in $PATH 23148 do 23149 IFS=$as_save_IFS 23150 test -z "$as_dir" && as_dir=. 23151 for ac_exec_ext in '' $ac_executable_extensions; do 23152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23153 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23155 break 2 23156 fi 23157 done 23158 done 23159 IFS=$as_save_IFS 23160 23161 ;; 23162 esac 23163 fi 23164 FLOCK=$ac_cv_path_FLOCK 23165 if test -n "$FLOCK"; then 23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23167 $as_echo "$FLOCK" >&6; } 23168 else 23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23170 $as_echo "no" >&6; } 23171 fi 23172 23173 23174 test -n "$FLOCK" && break 23175 done 23176 23177 else 23178 # The variable is set, but is it from the command line or the environment? 23179 23180 # Try to remove the string !FLOCK! from our list. 23181 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/} 23182 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23183 # If it failed, the variable was not from the command line. Ignore it, 23184 # but warn the user (except for BASH, which is always set by the calling BASH). 23185 if test "xFLOCK" != xBASH; then 23186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5 23187 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;} 23188 fi 23189 # Try to locate tool using the code snippet 23190 for ac_prog in flock 23191 do 23192 # Extract the first word of "$ac_prog", so it can be a program name with args. 23193 set dummy $ac_prog; ac_word=$2 23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23195 $as_echo_n "checking for $ac_word... " >&6; } 23196 if ${ac_cv_path_FLOCK+:} false; then : 23197 $as_echo_n "(cached) " >&6 23198 else 23199 case $FLOCK in 23200 [\\/]* | ?:[\\/]*) 23201 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23202 ;; 23203 *) 23204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23205 for as_dir in $PATH 23206 do 23207 IFS=$as_save_IFS 23208 test -z "$as_dir" && as_dir=. 23209 for ac_exec_ext in '' $ac_executable_extensions; do 23210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23211 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23213 break 2 23214 fi 23215 done 23216 done 23217 IFS=$as_save_IFS 23218 23219 ;; 23220 esac 23221 fi 23222 FLOCK=$ac_cv_path_FLOCK 23223 if test -n "$FLOCK"; then 23224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23225 $as_echo "$FLOCK" >&6; } 23226 else 23227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23228 $as_echo "no" >&6; } 23229 fi 23230 23231 23232 test -n "$FLOCK" && break 23233 done 23234 23235 else 23236 # If it succeeded, then it was overridden by the user. We will use it 23237 # for the tool. 23238 23239 # First remove it from the list of overridden variables, so we can test 23240 # for unknown variables in the end. 23241 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23242 23243 # Check if we try to supply an empty value 23244 if test "x$FLOCK" = x; then 23245 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5 23246 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;} 23247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23248 $as_echo_n "checking for FLOCK... " >&6; } 23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23250 $as_echo "disabled" >&6; } 23251 else 23252 # Check if the provided tool contains a complete path. 23253 tool_specified="$FLOCK" 23254 tool_basename="${tool_specified##*/}" 23255 if test "x$tool_basename" = "x$tool_specified"; then 23256 # A command without a complete path is provided, search $PATH. 23257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5 23258 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;} 23259 # Extract the first word of "$tool_basename", so it can be a program name with args. 23260 set dummy $tool_basename; ac_word=$2 23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23262 $as_echo_n "checking for $ac_word... " >&6; } 23263 if ${ac_cv_path_FLOCK+:} false; then : 23264 $as_echo_n "(cached) " >&6 23265 else 23266 case $FLOCK in 23267 [\\/]* | ?:[\\/]*) 23268 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23269 ;; 23270 *) 23271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23272 for as_dir in $PATH 23273 do 23274 IFS=$as_save_IFS 23275 test -z "$as_dir" && as_dir=. 23276 for ac_exec_ext in '' $ac_executable_extensions; do 23277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23278 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23280 break 2 23281 fi 23282 done 23283 done 23284 IFS=$as_save_IFS 23285 23286 ;; 23287 esac 23288 fi 23289 FLOCK=$ac_cv_path_FLOCK 23290 if test -n "$FLOCK"; then 23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23292 $as_echo "$FLOCK" >&6; } 23293 else 23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23295 $as_echo "no" >&6; } 23296 fi 23297 23298 23299 if test "x$FLOCK" = x; then 23300 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23301 fi 23302 else 23303 # Otherwise we believe it is a complete path. Use it as it is. 23304 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5 23305 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;} 23306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23307 $as_echo_n "checking for FLOCK... " >&6; } 23308 if test ! -x "$tool_specified"; then 23309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23310 $as_echo "not found" >&6; } 23311 as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5 23312 fi 23313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23314 $as_echo "$tool_specified" >&6; } 23315 fi 23316 fi 23317 fi 23318 23319 fi 23320 23321 23322 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 23323 # be in the user path. 23324 23325 23326 # Publish this variable in the help. 23327 23328 23329 if [ -z "${DTRACE+x}" ]; then 23330 # The variable is not set by user, try to locate tool using the code snippet 23331 for ac_prog in dtrace 23332 do 23333 # Extract the first word of "$ac_prog", so it can be a program name with args. 23334 set dummy $ac_prog; ac_word=$2 23335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23336 $as_echo_n "checking for $ac_word... " >&6; } 23337 if ${ac_cv_path_DTRACE+:} false; then : 23338 $as_echo_n "(cached) " >&6 23339 else 23340 case $DTRACE in 23341 [\\/]* | ?:[\\/]*) 23342 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23343 ;; 23344 *) 23345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23346 as_dummy="$PATH:/usr/sbin" 23347 for as_dir in $as_dummy 23348 do 23349 IFS=$as_save_IFS 23350 test -z "$as_dir" && as_dir=. 23351 for ac_exec_ext in '' $ac_executable_extensions; do 23352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23353 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23355 break 2 23356 fi 23357 done 23358 done 23359 IFS=$as_save_IFS 23360 23361 ;; 23362 esac 23363 fi 23364 DTRACE=$ac_cv_path_DTRACE 23365 if test -n "$DTRACE"; then 23366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23367 $as_echo "$DTRACE" >&6; } 23368 else 23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23370 $as_echo "no" >&6; } 23371 fi 23372 23373 23374 test -n "$DTRACE" && break 23375 done 23376 23377 else 23378 # The variable is set, but is it from the command line or the environment? 23379 23380 # Try to remove the string !DTRACE! from our list. 23381 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 23382 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23383 # If it failed, the variable was not from the command line. Ignore it, 23384 # but warn the user (except for BASH, which is always set by the calling BASH). 23385 if test "xDTRACE" != xBASH; then 23386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 23387 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 23388 fi 23389 # Try to locate tool using the code snippet 23390 for ac_prog in dtrace 23391 do 23392 # Extract the first word of "$ac_prog", so it can be a program name with args. 23393 set dummy $ac_prog; ac_word=$2 23394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23395 $as_echo_n "checking for $ac_word... " >&6; } 23396 if ${ac_cv_path_DTRACE+:} false; then : 23397 $as_echo_n "(cached) " >&6 23398 else 23399 case $DTRACE in 23400 [\\/]* | ?:[\\/]*) 23401 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23402 ;; 23403 *) 23404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23405 as_dummy="$PATH:/usr/sbin" 23406 for as_dir in $as_dummy 23407 do 23408 IFS=$as_save_IFS 23409 test -z "$as_dir" && as_dir=. 23410 for ac_exec_ext in '' $ac_executable_extensions; do 23411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23412 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23414 break 2 23415 fi 23416 done 23417 done 23418 IFS=$as_save_IFS 23419 23420 ;; 23421 esac 23422 fi 23423 DTRACE=$ac_cv_path_DTRACE 23424 if test -n "$DTRACE"; then 23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23426 $as_echo "$DTRACE" >&6; } 23427 else 23428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23429 $as_echo "no" >&6; } 23430 fi 23431 23432 23433 test -n "$DTRACE" && break 23434 done 23435 23436 else 23437 # If it succeeded, then it was overridden by the user. We will use it 23438 # for the tool. 23439 23440 # First remove it from the list of overridden variables, so we can test 23441 # for unknown variables in the end. 23442 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23443 23444 # Check if we try to supply an empty value 23445 if test "x$DTRACE" = x; then 23446 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 23447 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 23448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23449 $as_echo_n "checking for DTRACE... " >&6; } 23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23451 $as_echo "disabled" >&6; } 23452 else 23453 # Check if the provided tool contains a complete path. 23454 tool_specified="$DTRACE" 23455 tool_basename="${tool_specified##*/}" 23456 if test "x$tool_basename" = "x$tool_specified"; then 23457 # A command without a complete path is provided, search $PATH. 23458 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 23459 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 23460 # Extract the first word of "$tool_basename", so it can be a program name with args. 23461 set dummy $tool_basename; ac_word=$2 23462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23463 $as_echo_n "checking for $ac_word... " >&6; } 23464 if ${ac_cv_path_DTRACE+:} false; then : 23465 $as_echo_n "(cached) " >&6 23466 else 23467 case $DTRACE in 23468 [\\/]* | ?:[\\/]*) 23469 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23470 ;; 23471 *) 23472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23473 for as_dir in $PATH 23474 do 23475 IFS=$as_save_IFS 23476 test -z "$as_dir" && as_dir=. 23477 for ac_exec_ext in '' $ac_executable_extensions; do 23478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23479 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23481 break 2 23482 fi 23483 done 23484 done 23485 IFS=$as_save_IFS 23486 23487 ;; 23488 esac 23489 fi 23490 DTRACE=$ac_cv_path_DTRACE 23491 if test -n "$DTRACE"; then 23492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23493 $as_echo "$DTRACE" >&6; } 23494 else 23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23496 $as_echo "no" >&6; } 23497 fi 23498 23499 23500 if test "x$DTRACE" = x; then 23501 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23502 fi 23503 else 23504 # Otherwise we believe it is a complete path. Use it as it is. 23505 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23506 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23508 $as_echo_n "checking for DTRACE... " >&6; } 23509 if test ! -x "$tool_specified"; then 23510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23511 $as_echo "not found" >&6; } 23512 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23513 fi 23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23515 $as_echo "$tool_specified" >&6; } 23516 fi 23517 fi 23518 fi 23519 23520 fi 23521 23522 23523 23524 23525 # Publish this variable in the help. 23526 23527 23528 if [ -z "${PATCH+x}" ]; then 23529 # The variable is not set by user, try to locate tool using the code snippet 23530 for ac_prog in gpatch patch 23531 do 23532 # Extract the first word of "$ac_prog", so it can be a program name with args. 23533 set dummy $ac_prog; ac_word=$2 23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23535 $as_echo_n "checking for $ac_word... " >&6; } 23536 if ${ac_cv_path_PATCH+:} false; then : 23537 $as_echo_n "(cached) " >&6 23538 else 23539 case $PATCH in 23540 [\\/]* | ?:[\\/]*) 23541 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23542 ;; 23543 *) 23544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23545 for as_dir in $PATH 23546 do 23547 IFS=$as_save_IFS 23548 test -z "$as_dir" && as_dir=. 23549 for ac_exec_ext in '' $ac_executable_extensions; do 23550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23551 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23553 break 2 23554 fi 23555 done 23556 done 23557 IFS=$as_save_IFS 23558 23559 ;; 23560 esac 23561 fi 23562 PATCH=$ac_cv_path_PATCH 23563 if test -n "$PATCH"; then 23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23565 $as_echo "$PATCH" >&6; } 23566 else 23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23568 $as_echo "no" >&6; } 23569 fi 23570 23571 23572 test -n "$PATCH" && break 23573 done 23574 23575 else 23576 # The variable is set, but is it from the command line or the environment? 23577 23578 # Try to remove the string !PATCH! from our list. 23579 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23580 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23581 # If it failed, the variable was not from the command line. Ignore it, 23582 # but warn the user (except for BASH, which is always set by the calling BASH). 23583 if test "xPATCH" != xBASH; then 23584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23585 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23586 fi 23587 # Try to locate tool using the code snippet 23588 for ac_prog in gpatch patch 23589 do 23590 # Extract the first word of "$ac_prog", so it can be a program name with args. 23591 set dummy $ac_prog; ac_word=$2 23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23593 $as_echo_n "checking for $ac_word... " >&6; } 23594 if ${ac_cv_path_PATCH+:} false; then : 23595 $as_echo_n "(cached) " >&6 23596 else 23597 case $PATCH in 23598 [\\/]* | ?:[\\/]*) 23599 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23600 ;; 23601 *) 23602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23603 for as_dir in $PATH 23604 do 23605 IFS=$as_save_IFS 23606 test -z "$as_dir" && as_dir=. 23607 for ac_exec_ext in '' $ac_executable_extensions; do 23608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23609 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23611 break 2 23612 fi 23613 done 23614 done 23615 IFS=$as_save_IFS 23616 23617 ;; 23618 esac 23619 fi 23620 PATCH=$ac_cv_path_PATCH 23621 if test -n "$PATCH"; then 23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23623 $as_echo "$PATCH" >&6; } 23624 else 23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23626 $as_echo "no" >&6; } 23627 fi 23628 23629 23630 test -n "$PATCH" && break 23631 done 23632 23633 else 23634 # If it succeeded, then it was overridden by the user. We will use it 23635 # for the tool. 23636 23637 # First remove it from the list of overridden variables, so we can test 23638 # for unknown variables in the end. 23639 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23640 23641 # Check if we try to supply an empty value 23642 if test "x$PATCH" = x; then 23643 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23644 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23646 $as_echo_n "checking for PATCH... " >&6; } 23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23648 $as_echo "disabled" >&6; } 23649 else 23650 # Check if the provided tool contains a complete path. 23651 tool_specified="$PATCH" 23652 tool_basename="${tool_specified##*/}" 23653 if test "x$tool_basename" = "x$tool_specified"; then 23654 # A command without a complete path is provided, search $PATH. 23655 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23656 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23657 # Extract the first word of "$tool_basename", so it can be a program name with args. 23658 set dummy $tool_basename; ac_word=$2 23659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23660 $as_echo_n "checking for $ac_word... " >&6; } 23661 if ${ac_cv_path_PATCH+:} false; then : 23662 $as_echo_n "(cached) " >&6 23663 else 23664 case $PATCH in 23665 [\\/]* | ?:[\\/]*) 23666 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23667 ;; 23668 *) 23669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23670 for as_dir in $PATH 23671 do 23672 IFS=$as_save_IFS 23673 test -z "$as_dir" && as_dir=. 23674 for ac_exec_ext in '' $ac_executable_extensions; do 23675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23676 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23678 break 2 23679 fi 23680 done 23681 done 23682 IFS=$as_save_IFS 23683 23684 ;; 23685 esac 23686 fi 23687 PATCH=$ac_cv_path_PATCH 23688 if test -n "$PATCH"; then 23689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23690 $as_echo "$PATCH" >&6; } 23691 else 23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23693 $as_echo "no" >&6; } 23694 fi 23695 23696 23697 if test "x$PATCH" = x; then 23698 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23699 fi 23700 else 23701 # Otherwise we believe it is a complete path. Use it as it is. 23702 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23703 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23705 $as_echo_n "checking for PATCH... " >&6; } 23706 if test ! -x "$tool_specified"; then 23707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23708 $as_echo "not found" >&6; } 23709 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23710 fi 23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23712 $as_echo "$tool_specified" >&6; } 23713 fi 23714 fi 23715 fi 23716 23717 fi 23718 23719 23720 # Check if it's GNU time 23721 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23722 if test "x$IS_GNU_TIME" != x; then 23723 IS_GNU_TIME=yes 23724 else 23725 IS_GNU_TIME=no 23726 fi 23727 23728 23729 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23730 23731 23732 23733 # Publish this variable in the help. 23734 23735 23736 if [ -z "${DSYMUTIL+x}" ]; then 23737 # The variable is not set by user, try to locate tool using the code snippet 23738 for ac_prog in dsymutil 23739 do 23740 # Extract the first word of "$ac_prog", so it can be a program name with args. 23741 set dummy $ac_prog; ac_word=$2 23742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23743 $as_echo_n "checking for $ac_word... " >&6; } 23744 if ${ac_cv_path_DSYMUTIL+:} false; then : 23745 $as_echo_n "(cached) " >&6 23746 else 23747 case $DSYMUTIL in 23748 [\\/]* | ?:[\\/]*) 23749 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23750 ;; 23751 *) 23752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23753 for as_dir in $PATH 23754 do 23755 IFS=$as_save_IFS 23756 test -z "$as_dir" && as_dir=. 23757 for ac_exec_ext in '' $ac_executable_extensions; do 23758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23759 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23761 break 2 23762 fi 23763 done 23764 done 23765 IFS=$as_save_IFS 23766 23767 ;; 23768 esac 23769 fi 23770 DSYMUTIL=$ac_cv_path_DSYMUTIL 23771 if test -n "$DSYMUTIL"; then 23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23773 $as_echo "$DSYMUTIL" >&6; } 23774 else 23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23776 $as_echo "no" >&6; } 23777 fi 23778 23779 23780 test -n "$DSYMUTIL" && break 23781 done 23782 23783 else 23784 # The variable is set, but is it from the command line or the environment? 23785 23786 # Try to remove the string !DSYMUTIL! from our list. 23787 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23788 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23789 # If it failed, the variable was not from the command line. Ignore it, 23790 # but warn the user (except for BASH, which is always set by the calling BASH). 23791 if test "xDSYMUTIL" != xBASH; then 23792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23793 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23794 fi 23795 # Try to locate tool using the code snippet 23796 for ac_prog in dsymutil 23797 do 23798 # Extract the first word of "$ac_prog", so it can be a program name with args. 23799 set dummy $ac_prog; ac_word=$2 23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23801 $as_echo_n "checking for $ac_word... " >&6; } 23802 if ${ac_cv_path_DSYMUTIL+:} false; then : 23803 $as_echo_n "(cached) " >&6 23804 else 23805 case $DSYMUTIL in 23806 [\\/]* | ?:[\\/]*) 23807 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23808 ;; 23809 *) 23810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23811 for as_dir in $PATH 23812 do 23813 IFS=$as_save_IFS 23814 test -z "$as_dir" && as_dir=. 23815 for ac_exec_ext in '' $ac_executable_extensions; do 23816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23817 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23819 break 2 23820 fi 23821 done 23822 done 23823 IFS=$as_save_IFS 23824 23825 ;; 23826 esac 23827 fi 23828 DSYMUTIL=$ac_cv_path_DSYMUTIL 23829 if test -n "$DSYMUTIL"; then 23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23831 $as_echo "$DSYMUTIL" >&6; } 23832 else 23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23834 $as_echo "no" >&6; } 23835 fi 23836 23837 23838 test -n "$DSYMUTIL" && break 23839 done 23840 23841 else 23842 # If it succeeded, then it was overridden by the user. We will use it 23843 # for the tool. 23844 23845 # First remove it from the list of overridden variables, so we can test 23846 # for unknown variables in the end. 23847 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23848 23849 # Check if we try to supply an empty value 23850 if test "x$DSYMUTIL" = x; then 23851 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 23852 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 23853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23854 $as_echo_n "checking for DSYMUTIL... " >&6; } 23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23856 $as_echo "disabled" >&6; } 23857 else 23858 # Check if the provided tool contains a complete path. 23859 tool_specified="$DSYMUTIL" 23860 tool_basename="${tool_specified##*/}" 23861 if test "x$tool_basename" = "x$tool_specified"; then 23862 # A command without a complete path is provided, search $PATH. 23863 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 23864 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 23865 # Extract the first word of "$tool_basename", so it can be a program name with args. 23866 set dummy $tool_basename; ac_word=$2 23867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23868 $as_echo_n "checking for $ac_word... " >&6; } 23869 if ${ac_cv_path_DSYMUTIL+:} false; then : 23870 $as_echo_n "(cached) " >&6 23871 else 23872 case $DSYMUTIL in 23873 [\\/]* | ?:[\\/]*) 23874 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23875 ;; 23876 *) 23877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23878 for as_dir in $PATH 23879 do 23880 IFS=$as_save_IFS 23881 test -z "$as_dir" && as_dir=. 23882 for ac_exec_ext in '' $ac_executable_extensions; do 23883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23884 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23886 break 2 23887 fi 23888 done 23889 done 23890 IFS=$as_save_IFS 23891 23892 ;; 23893 esac 23894 fi 23895 DSYMUTIL=$ac_cv_path_DSYMUTIL 23896 if test -n "$DSYMUTIL"; then 23897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23898 $as_echo "$DSYMUTIL" >&6; } 23899 else 23900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23901 $as_echo "no" >&6; } 23902 fi 23903 23904 23905 if test "x$DSYMUTIL" = x; then 23906 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23907 fi 23908 else 23909 # Otherwise we believe it is a complete path. Use it as it is. 23910 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 23911 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23913 $as_echo_n "checking for DSYMUTIL... " >&6; } 23914 if test ! -x "$tool_specified"; then 23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23916 $as_echo "not found" >&6; } 23917 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 23918 fi 23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23920 $as_echo "$tool_specified" >&6; } 23921 fi 23922 fi 23923 fi 23924 23925 fi 23926 23927 23928 23929 if test "x$DSYMUTIL" = x; then 23930 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 23931 fi 23932 23933 23934 23935 23936 23937 # Publish this variable in the help. 23938 23939 23940 if [ -z "${XATTR+x}" ]; then 23941 # The variable is not set by user, try to locate tool using the code snippet 23942 for ac_prog in xattr 23943 do 23944 # Extract the first word of "$ac_prog", so it can be a program name with args. 23945 set dummy $ac_prog; ac_word=$2 23946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23947 $as_echo_n "checking for $ac_word... " >&6; } 23948 if ${ac_cv_path_XATTR+:} false; then : 23949 $as_echo_n "(cached) " >&6 23950 else 23951 case $XATTR in 23952 [\\/]* | ?:[\\/]*) 23953 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23954 ;; 23955 *) 23956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23957 for as_dir in $PATH 23958 do 23959 IFS=$as_save_IFS 23960 test -z "$as_dir" && as_dir=. 23961 for ac_exec_ext in '' $ac_executable_extensions; do 23962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23963 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23965 break 2 23966 fi 23967 done 23968 done 23969 IFS=$as_save_IFS 23970 23971 ;; 23972 esac 23973 fi 23974 XATTR=$ac_cv_path_XATTR 23975 if test -n "$XATTR"; then 23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23977 $as_echo "$XATTR" >&6; } 23978 else 23979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23980 $as_echo "no" >&6; } 23981 fi 23982 23983 23984 test -n "$XATTR" && break 23985 done 23986 23987 else 23988 # The variable is set, but is it from the command line or the environment? 23989 23990 # Try to remove the string !XATTR! from our list. 23991 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 23992 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23993 # If it failed, the variable was not from the command line. Ignore it, 23994 # but warn the user (except for BASH, which is always set by the calling BASH). 23995 if test "xXATTR" != xBASH; then 23996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 23997 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 23998 fi 23999 # Try to locate tool using the code snippet 24000 for ac_prog in xattr 24001 do 24002 # Extract the first word of "$ac_prog", so it can be a program name with args. 24003 set dummy $ac_prog; ac_word=$2 24004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24005 $as_echo_n "checking for $ac_word... " >&6; } 24006 if ${ac_cv_path_XATTR+:} false; then : 24007 $as_echo_n "(cached) " >&6 24008 else 24009 case $XATTR in 24010 [\\/]* | ?:[\\/]*) 24011 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24012 ;; 24013 *) 24014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24015 for as_dir in $PATH 24016 do 24017 IFS=$as_save_IFS 24018 test -z "$as_dir" && as_dir=. 24019 for ac_exec_ext in '' $ac_executable_extensions; do 24020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24021 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24023 break 2 24024 fi 24025 done 24026 done 24027 IFS=$as_save_IFS 24028 24029 ;; 24030 esac 24031 fi 24032 XATTR=$ac_cv_path_XATTR 24033 if test -n "$XATTR"; then 24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24035 $as_echo "$XATTR" >&6; } 24036 else 24037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24038 $as_echo "no" >&6; } 24039 fi 24040 24041 24042 test -n "$XATTR" && break 24043 done 24044 24045 else 24046 # If it succeeded, then it was overridden by the user. We will use it 24047 # for the tool. 24048 24049 # First remove it from the list of overridden variables, so we can test 24050 # for unknown variables in the end. 24051 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24052 24053 # Check if we try to supply an empty value 24054 if test "x$XATTR" = x; then 24055 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 24056 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 24057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24058 $as_echo_n "checking for XATTR... " >&6; } 24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24060 $as_echo "disabled" >&6; } 24061 else 24062 # Check if the provided tool contains a complete path. 24063 tool_specified="$XATTR" 24064 tool_basename="${tool_specified##*/}" 24065 if test "x$tool_basename" = "x$tool_specified"; then 24066 # A command without a complete path is provided, search $PATH. 24067 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 24068 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 24069 # Extract the first word of "$tool_basename", so it can be a program name with args. 24070 set dummy $tool_basename; ac_word=$2 24071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24072 $as_echo_n "checking for $ac_word... " >&6; } 24073 if ${ac_cv_path_XATTR+:} false; then : 24074 $as_echo_n "(cached) " >&6 24075 else 24076 case $XATTR in 24077 [\\/]* | ?:[\\/]*) 24078 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24079 ;; 24080 *) 24081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24082 for as_dir in $PATH 24083 do 24084 IFS=$as_save_IFS 24085 test -z "$as_dir" && as_dir=. 24086 for ac_exec_ext in '' $ac_executable_extensions; do 24087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24088 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24090 break 2 24091 fi 24092 done 24093 done 24094 IFS=$as_save_IFS 24095 24096 ;; 24097 esac 24098 fi 24099 XATTR=$ac_cv_path_XATTR 24100 if test -n "$XATTR"; then 24101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24102 $as_echo "$XATTR" >&6; } 24103 else 24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24105 $as_echo "no" >&6; } 24106 fi 24107 24108 24109 if test "x$XATTR" = x; then 24110 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24111 fi 24112 else 24113 # Otherwise we believe it is a complete path. Use it as it is. 24114 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 24115 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24117 $as_echo_n "checking for XATTR... " >&6; } 24118 if test ! -x "$tool_specified"; then 24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24120 $as_echo "not found" >&6; } 24121 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 24122 fi 24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24124 $as_echo "$tool_specified" >&6; } 24125 fi 24126 fi 24127 fi 24128 24129 fi 24130 24131 24132 24133 if test "x$XATTR" = x; then 24134 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 24135 fi 24136 24137 24138 24139 24140 # Publish this variable in the help. 24141 24142 24143 if [ -z "${CODESIGN+x}" ]; then 24144 # The variable is not set by user, try to locate tool using the code snippet 24145 for ac_prog in codesign 24146 do 24147 # Extract the first word of "$ac_prog", so it can be a program name with args. 24148 set dummy $ac_prog; ac_word=$2 24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24150 $as_echo_n "checking for $ac_word... " >&6; } 24151 if ${ac_cv_path_CODESIGN+:} false; then : 24152 $as_echo_n "(cached) " >&6 24153 else 24154 case $CODESIGN in 24155 [\\/]* | ?:[\\/]*) 24156 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24157 ;; 24158 *) 24159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24160 for as_dir in $PATH 24161 do 24162 IFS=$as_save_IFS 24163 test -z "$as_dir" && as_dir=. 24164 for ac_exec_ext in '' $ac_executable_extensions; do 24165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24166 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24168 break 2 24169 fi 24170 done 24171 done 24172 IFS=$as_save_IFS 24173 24174 ;; 24175 esac 24176 fi 24177 CODESIGN=$ac_cv_path_CODESIGN 24178 if test -n "$CODESIGN"; then 24179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24180 $as_echo "$CODESIGN" >&6; } 24181 else 24182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24183 $as_echo "no" >&6; } 24184 fi 24185 24186 24187 test -n "$CODESIGN" && break 24188 done 24189 24190 else 24191 # The variable is set, but is it from the command line or the environment? 24192 24193 # Try to remove the string !CODESIGN! from our list. 24194 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 24195 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24196 # If it failed, the variable was not from the command line. Ignore it, 24197 # but warn the user (except for BASH, which is always set by the calling BASH). 24198 if test "xCODESIGN" != xBASH; then 24199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 24200 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 24201 fi 24202 # Try to locate tool using the code snippet 24203 for ac_prog in codesign 24204 do 24205 # Extract the first word of "$ac_prog", so it can be a program name with args. 24206 set dummy $ac_prog; ac_word=$2 24207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24208 $as_echo_n "checking for $ac_word... " >&6; } 24209 if ${ac_cv_path_CODESIGN+:} false; then : 24210 $as_echo_n "(cached) " >&6 24211 else 24212 case $CODESIGN in 24213 [\\/]* | ?:[\\/]*) 24214 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24215 ;; 24216 *) 24217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24218 for as_dir in $PATH 24219 do 24220 IFS=$as_save_IFS 24221 test -z "$as_dir" && as_dir=. 24222 for ac_exec_ext in '' $ac_executable_extensions; do 24223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24224 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24226 break 2 24227 fi 24228 done 24229 done 24230 IFS=$as_save_IFS 24231 24232 ;; 24233 esac 24234 fi 24235 CODESIGN=$ac_cv_path_CODESIGN 24236 if test -n "$CODESIGN"; then 24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24238 $as_echo "$CODESIGN" >&6; } 24239 else 24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24241 $as_echo "no" >&6; } 24242 fi 24243 24244 24245 test -n "$CODESIGN" && break 24246 done 24247 24248 else 24249 # If it succeeded, then it was overridden by the user. We will use it 24250 # for the tool. 24251 24252 # First remove it from the list of overridden variables, so we can test 24253 # for unknown variables in the end. 24254 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24255 24256 # Check if we try to supply an empty value 24257 if test "x$CODESIGN" = x; then 24258 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 24259 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 24260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24261 $as_echo_n "checking for CODESIGN... " >&6; } 24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24263 $as_echo "disabled" >&6; } 24264 else 24265 # Check if the provided tool contains a complete path. 24266 tool_specified="$CODESIGN" 24267 tool_basename="${tool_specified##*/}" 24268 if test "x$tool_basename" = "x$tool_specified"; then 24269 # A command without a complete path is provided, search $PATH. 24270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 24271 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 24272 # Extract the first word of "$tool_basename", so it can be a program name with args. 24273 set dummy $tool_basename; ac_word=$2 24274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24275 $as_echo_n "checking for $ac_word... " >&6; } 24276 if ${ac_cv_path_CODESIGN+:} false; then : 24277 $as_echo_n "(cached) " >&6 24278 else 24279 case $CODESIGN in 24280 [\\/]* | ?:[\\/]*) 24281 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24282 ;; 24283 *) 24284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24285 for as_dir in $PATH 24286 do 24287 IFS=$as_save_IFS 24288 test -z "$as_dir" && as_dir=. 24289 for ac_exec_ext in '' $ac_executable_extensions; do 24290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24291 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24293 break 2 24294 fi 24295 done 24296 done 24297 IFS=$as_save_IFS 24298 24299 ;; 24300 esac 24301 fi 24302 CODESIGN=$ac_cv_path_CODESIGN 24303 if test -n "$CODESIGN"; then 24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24305 $as_echo "$CODESIGN" >&6; } 24306 else 24307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24308 $as_echo "no" >&6; } 24309 fi 24310 24311 24312 if test "x$CODESIGN" = x; then 24313 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24314 fi 24315 else 24316 # Otherwise we believe it is a complete path. Use it as it is. 24317 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 24318 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 24319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24320 $as_echo_n "checking for CODESIGN... " >&6; } 24321 if test ! -x "$tool_specified"; then 24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24323 $as_echo "not found" >&6; } 24324 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 24325 fi 24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24327 $as_echo "$tool_specified" >&6; } 24328 fi 24329 fi 24330 fi 24331 24332 fi 24333 24334 24335 if test "x$CODESIGN" != "x"; then 24336 # Verify that the openjdk_codesign certificate is present 24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 24338 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 24339 $RM codesign-testfile 24340 $TOUCH codesign-testfile 24341 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 24342 $RM codesign-testfile 24343 if test "x$CODESIGN" = x; then 24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24345 $as_echo "no" >&6; } 24346 else 24347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24348 $as_echo "yes" >&6; } 24349 fi 24350 fi 24351 24352 24353 24354 # Publish this variable in the help. 24355 24356 24357 if [ -z "${SETFILE+x}" ]; then 24358 # The variable is not set by user, try to locate tool using the code snippet 24359 for ac_prog in SetFile 24360 do 24361 # Extract the first word of "$ac_prog", so it can be a program name with args. 24362 set dummy $ac_prog; ac_word=$2 24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24364 $as_echo_n "checking for $ac_word... " >&6; } 24365 if ${ac_cv_path_SETFILE+:} false; then : 24366 $as_echo_n "(cached) " >&6 24367 else 24368 case $SETFILE in 24369 [\\/]* | ?:[\\/]*) 24370 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24371 ;; 24372 *) 24373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24374 for as_dir in $PATH 24375 do 24376 IFS=$as_save_IFS 24377 test -z "$as_dir" && as_dir=. 24378 for ac_exec_ext in '' $ac_executable_extensions; do 24379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24380 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24382 break 2 24383 fi 24384 done 24385 done 24386 IFS=$as_save_IFS 24387 24388 ;; 24389 esac 24390 fi 24391 SETFILE=$ac_cv_path_SETFILE 24392 if test -n "$SETFILE"; then 24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24394 $as_echo "$SETFILE" >&6; } 24395 else 24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24397 $as_echo "no" >&6; } 24398 fi 24399 24400 24401 test -n "$SETFILE" && break 24402 done 24403 24404 else 24405 # The variable is set, but is it from the command line or the environment? 24406 24407 # Try to remove the string !SETFILE! from our list. 24408 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 24409 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24410 # If it failed, the variable was not from the command line. Ignore it, 24411 # but warn the user (except for BASH, which is always set by the calling BASH). 24412 if test "xSETFILE" != xBASH; then 24413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 24414 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 24415 fi 24416 # Try to locate tool using the code snippet 24417 for ac_prog in SetFile 24418 do 24419 # Extract the first word of "$ac_prog", so it can be a program name with args. 24420 set dummy $ac_prog; ac_word=$2 24421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24422 $as_echo_n "checking for $ac_word... " >&6; } 24423 if ${ac_cv_path_SETFILE+:} false; then : 24424 $as_echo_n "(cached) " >&6 24425 else 24426 case $SETFILE in 24427 [\\/]* | ?:[\\/]*) 24428 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24429 ;; 24430 *) 24431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24432 for as_dir in $PATH 24433 do 24434 IFS=$as_save_IFS 24435 test -z "$as_dir" && as_dir=. 24436 for ac_exec_ext in '' $ac_executable_extensions; do 24437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24438 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24440 break 2 24441 fi 24442 done 24443 done 24444 IFS=$as_save_IFS 24445 24446 ;; 24447 esac 24448 fi 24449 SETFILE=$ac_cv_path_SETFILE 24450 if test -n "$SETFILE"; then 24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24452 $as_echo "$SETFILE" >&6; } 24453 else 24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24455 $as_echo "no" >&6; } 24456 fi 24457 24458 24459 test -n "$SETFILE" && break 24460 done 24461 24462 else 24463 # If it succeeded, then it was overridden by the user. We will use it 24464 # for the tool. 24465 24466 # First remove it from the list of overridden variables, so we can test 24467 # for unknown variables in the end. 24468 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24469 24470 # Check if we try to supply an empty value 24471 if test "x$SETFILE" = x; then 24472 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 24473 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24475 $as_echo_n "checking for SETFILE... " >&6; } 24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24477 $as_echo "disabled" >&6; } 24478 else 24479 # Check if the provided tool contains a complete path. 24480 tool_specified="$SETFILE" 24481 tool_basename="${tool_specified##*/}" 24482 if test "x$tool_basename" = "x$tool_specified"; then 24483 # A command without a complete path is provided, search $PATH. 24484 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 24485 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 24486 # Extract the first word of "$tool_basename", so it can be a program name with args. 24487 set dummy $tool_basename; ac_word=$2 24488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24489 $as_echo_n "checking for $ac_word... " >&6; } 24490 if ${ac_cv_path_SETFILE+:} false; then : 24491 $as_echo_n "(cached) " >&6 24492 else 24493 case $SETFILE in 24494 [\\/]* | ?:[\\/]*) 24495 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24496 ;; 24497 *) 24498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24499 for as_dir in $PATH 24500 do 24501 IFS=$as_save_IFS 24502 test -z "$as_dir" && as_dir=. 24503 for ac_exec_ext in '' $ac_executable_extensions; do 24504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24505 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24507 break 2 24508 fi 24509 done 24510 done 24511 IFS=$as_save_IFS 24512 24513 ;; 24514 esac 24515 fi 24516 SETFILE=$ac_cv_path_SETFILE 24517 if test -n "$SETFILE"; then 24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24519 $as_echo "$SETFILE" >&6; } 24520 else 24521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24522 $as_echo "no" >&6; } 24523 fi 24524 24525 24526 if test "x$SETFILE" = x; then 24527 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24528 fi 24529 else 24530 # Otherwise we believe it is a complete path. Use it as it is. 24531 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24532 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24534 $as_echo_n "checking for SETFILE... " >&6; } 24535 if test ! -x "$tool_specified"; then 24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24537 $as_echo "not found" >&6; } 24538 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24539 fi 24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24541 $as_echo "$tool_specified" >&6; } 24542 fi 24543 fi 24544 fi 24545 24546 fi 24547 24548 24549 24550 if test "x$SETFILE" = x; then 24551 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24552 fi 24553 24554 24555 fi 24556 24557 24558 # Check bash version 24559 # Extra [ ] to stop m4 mangling 24560 BASH_VER=`$BASH --version | $SED -n -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'` 24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5 24562 $as_echo_n "checking bash version... " >&6; } 24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5 24564 $as_echo "$BASH_VER" >&6; } 24565 24566 BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1` 24567 BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2` 24568 if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then 24569 as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5 24570 fi 24571 24572 # Test if bash supports pipefail. 24573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24574 $as_echo_n "checking if bash supports pipefail... " >&6; } 24575 if ${BASH} -c 'set -o pipefail'; then 24576 BASH_ARGS="$BASH_ARGS -o pipefail" 24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24578 $as_echo "yes" >&6; } 24579 else 24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24581 $as_echo "no" >&6; } 24582 fi 24583 24584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24585 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24586 if ${BASH} -e -c 'true'; then 24587 BASH_ARGS="$BASH_ARGS -e" 24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24589 $as_echo "yes" >&6; } 24590 else 24591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24592 $as_echo "no" >&6; } 24593 fi 24594 24595 24596 24597 24598 # Check if pkg-config is available. 24599 24600 24601 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24602 if test -n "$ac_tool_prefix"; then 24603 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24604 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24606 $as_echo_n "checking for $ac_word... " >&6; } 24607 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24608 $as_echo_n "(cached) " >&6 24609 else 24610 case $PKG_CONFIG in 24611 [\\/]* | ?:[\\/]*) 24612 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24613 ;; 24614 *) 24615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24616 for as_dir in $PATH 24617 do 24618 IFS=$as_save_IFS 24619 test -z "$as_dir" && as_dir=. 24620 for ac_exec_ext in '' $ac_executable_extensions; do 24621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24622 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24624 break 2 24625 fi 24626 done 24627 done 24628 IFS=$as_save_IFS 24629 24630 ;; 24631 esac 24632 fi 24633 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24634 if test -n "$PKG_CONFIG"; then 24635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24636 $as_echo "$PKG_CONFIG" >&6; } 24637 else 24638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24639 $as_echo "no" >&6; } 24640 fi 24641 24642 24643 fi 24644 if test -z "$ac_cv_path_PKG_CONFIG"; then 24645 ac_pt_PKG_CONFIG=$PKG_CONFIG 24646 # Extract the first word of "pkg-config", so it can be a program name with args. 24647 set dummy pkg-config; ac_word=$2 24648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24649 $as_echo_n "checking for $ac_word... " >&6; } 24650 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24651 $as_echo_n "(cached) " >&6 24652 else 24653 case $ac_pt_PKG_CONFIG in 24654 [\\/]* | ?:[\\/]*) 24655 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24656 ;; 24657 *) 24658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24659 for as_dir in $PATH 24660 do 24661 IFS=$as_save_IFS 24662 test -z "$as_dir" && as_dir=. 24663 for ac_exec_ext in '' $ac_executable_extensions; do 24664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24665 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24667 break 2 24668 fi 24669 done 24670 done 24671 IFS=$as_save_IFS 24672 24673 ;; 24674 esac 24675 fi 24676 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24677 if test -n "$ac_pt_PKG_CONFIG"; then 24678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24679 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24680 else 24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24682 $as_echo "no" >&6; } 24683 fi 24684 24685 if test "x$ac_pt_PKG_CONFIG" = x; then 24686 PKG_CONFIG="" 24687 else 24688 case $cross_compiling:$ac_tool_warned in 24689 yes:) 24690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24692 ac_tool_warned=yes ;; 24693 esac 24694 PKG_CONFIG=$ac_pt_PKG_CONFIG 24695 fi 24696 else 24697 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24698 fi 24699 24700 fi 24701 if test -n "$PKG_CONFIG"; then 24702 _pkg_min_version=0.9.0 24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24704 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24705 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24707 $as_echo "yes" >&6; } 24708 else 24709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24710 $as_echo "no" >&6; } 24711 PKG_CONFIG="" 24712 fi 24713 24714 fi 24715 24716 # After basic tools have been setup, we can check build os specific details. 24717 24718 ############################################################################### 24719 24720 # Note that this is the build platform OS version! 24721 24722 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24723 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24724 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24725 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24726 24727 24728 24729 24730 24731 # Misc basic settings 24732 24733 24734 # Check whether --with-default-make-target was given. 24735 if test "${with_default_make_target+set}" = set; then : 24736 withval=$with_default_make_target; 24737 fi 24738 24739 if test "x$with_default_make_target" = "x" \ 24740 || test "x$with_default_make_target" = "xyes"; then 24741 DEFAULT_MAKE_TARGET="exploded-image" 24742 elif test "x$with_default_make_target" = "xno"; then 24743 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24744 else 24745 DEFAULT_MAKE_TARGET="$with_default_make_target" 24746 fi 24747 24748 24749 24750 24751 ############################################################################### 24752 # 24753 # Determine OpenJDK variants, options and version numbers. 24754 # 24755 ############################################################################### 24756 24757 # We need build & target for this. 24758 24759 # Should we build a JDK without a graphical UI? 24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 24761 $as_echo_n "checking headless only... " >&6; } 24762 # Check whether --enable-headless-only was given. 24763 if test "${enable_headless_only+set}" = set; then : 24764 enableval=$enable_headless_only; 24765 fi 24766 24767 24768 if test "x$enable_headless_only" = "xyes"; then 24769 ENABLE_HEADLESS_ONLY="true" 24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24771 $as_echo "yes" >&6; } 24772 elif test "x$enable_headless_only" = "xno"; then 24773 ENABLE_HEADLESS_ONLY="false" 24774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24775 $as_echo "no" >&6; } 24776 elif test "x$enable_headless_only" = "x"; then 24777 ENABLE_HEADLESS_ONLY="false" 24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24779 $as_echo "no" >&6; } 24780 else 24781 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 24782 fi 24783 24784 24785 24786 # Should we build the complete docs, or just a lightweight version? 24787 # Check whether --enable-full-docs was given. 24788 if test "${enable_full_docs+set}" = set; then : 24789 enableval=$enable_full_docs; 24790 fi 24791 24792 24793 # Verify dependencies 24794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5 24795 $as_echo_n "checking for graphviz dot... " >&6; } 24796 if test "x$DOT" != "x"; then 24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24798 $as_echo "yes" >&6; } 24799 else 24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24801 $as_echo "no, cannot generate full docs" >&6; } 24802 FULL_DOCS_DEP_MISSING=true 24803 fi 24804 24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5 24806 $as_echo_n "checking for pandoc... " >&6; } 24807 if test "x$PANDOC" != "x"; then 24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24809 $as_echo "yes" >&6; } 24810 else 24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24812 $as_echo "no, cannot generate full docs" >&6; } 24813 FULL_DOCS_DEP_MISSING=true 24814 fi 24815 24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5 24817 $as_echo_n "checking full docs... " >&6; } 24818 if test "x$enable_full_docs" = xyes; then 24819 if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then 24820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 24821 $as_echo "no, missing dependencies" >&6; } 24822 24823 # Print a helpful message on how to acquire the necessary build dependency. 24824 # dot is the help tag: freetype, cups, alsa etc 24825 MISSING_DEPENDENCY=dot 24826 24827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24828 cygwin_help $MISSING_DEPENDENCY 24829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24830 msys_help $MISSING_DEPENDENCY 24831 else 24832 PKGHANDLER_COMMAND= 24833 24834 case $PKGHANDLER in 24835 apt-get) 24836 apt_help $MISSING_DEPENDENCY ;; 24837 yum) 24838 yum_help $MISSING_DEPENDENCY ;; 24839 brew) 24840 brew_help $MISSING_DEPENDENCY ;; 24841 port) 24842 port_help $MISSING_DEPENDENCY ;; 24843 pkgutil) 24844 pkgutil_help $MISSING_DEPENDENCY ;; 24845 pkgadd) 24846 pkgadd_help $MISSING_DEPENDENCY ;; 24847 esac 24848 24849 if test "x$PKGHANDLER_COMMAND" != x; then 24850 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24851 fi 24852 fi 24853 24854 as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 24855 else 24856 ENABLE_FULL_DOCS=true 24857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 24858 $as_echo "yes, forced" >&6; } 24859 fi 24860 elif test "x$enable_full_docs" = xno; then 24861 ENABLE_FULL_DOCS=false 24862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 24863 $as_echo "no, forced" >&6; } 24864 elif test "x$enable_full_docs" = x; then 24865 # Check for prerequisites 24866 if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then 24867 ENABLE_FULL_DOCS=false 24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 24869 $as_echo "no, missing dependencies" >&6; } 24870 else 24871 ENABLE_FULL_DOCS=true 24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 24873 $as_echo "yes, dependencies present" >&6; } 24874 fi 24875 else 24876 as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5 24877 fi 24878 24879 24880 24881 # Choose cacerts source file 24882 24883 # Check whether --with-cacerts-file was given. 24884 if test "${with_cacerts_file+set}" = set; then : 24885 withval=$with_cacerts_file; 24886 fi 24887 24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5 24889 $as_echo_n "checking for cacerts file... " >&6; } 24890 if test "x$with_cacerts_file" == x; then 24891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 24892 $as_echo "default" >&6; } 24893 else 24894 CACERTS_FILE=$with_cacerts_file 24895 if test ! -f "$CACERTS_FILE"; then 24896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5 24897 $as_echo "fail" >&6; } 24898 as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5 24899 fi 24900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5 24901 $as_echo "$CACERTS_FILE" >&6; } 24902 fi 24903 24904 24905 # Enable or disable unlimited crypto 24906 # Check whether --enable-unlimited-crypto was given. 24907 if test "${enable_unlimited_crypto+set}" = set; then : 24908 enableval=$enable_unlimited_crypto; 24909 else 24910 enable_unlimited_crypto=yes 24911 fi 24912 24913 if test "x$enable_unlimited_crypto" = "xyes"; then 24914 UNLIMITED_CRYPTO=true 24915 else 24916 UNLIMITED_CRYPTO=false 24917 fi 24918 24919 24920 # Should we build the serviceability agent (SA)? 24921 INCLUDE_SA=true 24922 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 24923 INCLUDE_SA=false 24924 fi 24925 if test "x$OPENJDK_TARGET_OS" = xaix ; then 24926 INCLUDE_SA=false 24927 fi 24928 24929 24930 # Compress jars 24931 COMPRESS_JARS=false 24932 24933 24934 24935 # Setup default copyright year. Mostly overridden when building close to a new year. 24936 24937 # Check whether --with-copyright-year was given. 24938 if test "${with_copyright_year+set}" = set; then : 24939 withval=$with_copyright_year; 24940 fi 24941 24942 if test "x$with_copyright_year" = xyes; then 24943 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 24944 elif test "x$with_copyright_year" != x; then 24945 COPYRIGHT_YEAR="$with_copyright_year" 24946 else 24947 COPYRIGHT_YEAR=`$DATE +'%Y'` 24948 fi 24949 24950 24951 24952 # Check whether --enable-keep-packaged-modules was given. 24953 if test "${enable_keep_packaged_modules+set}" = set; then : 24954 enableval=$enable_keep_packaged_modules; 24955 fi 24956 24957 24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24959 $as_echo_n "checking if packaged modules are kept... " >&6; } 24960 if test "x$enable_keep_packaged_modules" = "xyes"; then 24961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24962 $as_echo "yes" >&6; } 24963 JLINK_KEEP_PACKAGED_MODULES=true 24964 elif test "x$enable_keep_packaged_modules" = "xno"; then 24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24966 $as_echo "no" >&6; } 24967 JLINK_KEEP_PACKAGED_MODULES=false 24968 elif test "x$enable_keep_packaged_modules" = "x"; then 24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 24970 $as_echo "yes (default)" >&6; } 24971 JLINK_KEEP_PACKAGED_MODULES=true 24972 else 24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 24974 $as_echo "error" >&6; } 24975 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 24976 fi 24977 24978 24979 24980 24981 # Warn user that old version arguments are deprecated. 24982 24983 24984 # Check whether --with-milestone was given. 24985 if test "${with_milestone+set}" = set; then : 24986 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 24987 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 24988 fi 24989 24990 24991 24992 24993 # Check whether --with-update-version was given. 24994 if test "${with_update_version+set}" = set; then : 24995 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 24996 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 24997 fi 24998 24999 25000 25001 25002 # Check whether --with-user-release-suffix was given. 25003 if test "${with_user_release_suffix+set}" = set; then : 25004 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 25005 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 25006 fi 25007 25008 25009 25010 25011 # Check whether --with-build-number was given. 25012 if test "${with_build_number+set}" = set; then : 25013 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 25014 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 25015 fi 25016 25017 25018 25019 25020 # Check whether --with-version-major was given. 25021 if test "${with_version_major+set}" = set; then : 25022 withval=$with_version_major; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-major is deprecated and will be ignored." >&5 25023 $as_echo "$as_me: WARNING: Option --with-version-major is deprecated and will be ignored." >&2;} 25024 fi 25025 25026 25027 25028 25029 # Check whether --with-version-minor was given. 25030 if test "${with_version_minor+set}" = set; then : 25031 withval=$with_version_minor; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-minor is deprecated and will be ignored." >&5 25032 $as_echo "$as_me: WARNING: Option --with-version-minor is deprecated and will be ignored." >&2;} 25033 fi 25034 25035 25036 25037 25038 # Check whether --with-version-security was given. 25039 if test "${with_version_security+set}" = set; then : 25040 withval=$with_version_security; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-security is deprecated and will be ignored." >&5 25041 $as_echo "$as_me: WARNING: Option --with-version-security is deprecated and will be ignored." >&2;} 25042 fi 25043 25044 25045 25046 # Source the version numbers file 25047 . $AUTOCONF_DIR/version-numbers 25048 25049 # Some non-version number information is set in that file 25050 25051 25052 25053 25054 25055 25056 25057 25058 25059 # Override version from arguments 25060 25061 # If --with-version-string is set, process it first. It is possible to 25062 # override parts with more specific flags, since these are processed later. 25063 25064 # Check whether --with-version-string was given. 25065 if test "${with_version_string+set}" = set; then : 25066 withval=$with_version_string; 25067 fi 25068 25069 if test "x$with_version_string" = xyes; then 25070 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 25071 elif test "x$with_version_string" != x; then 25072 # Additional [] needed to keep m4 from mangling shell constructs. 25073 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 25074 VERSION_FEATURE=${BASH_REMATCH[1]} 25075 VERSION_INTERIM=${BASH_REMATCH[3]} 25076 VERSION_UPDATE=${BASH_REMATCH[5]} 25077 VERSION_PATCH=${BASH_REMATCH[7]} 25078 VERSION_PRE=${BASH_REMATCH[9]} 25079 version_plus_separator=${BASH_REMATCH[11]} 25080 VERSION_BUILD=${BASH_REMATCH[12]} 25081 VERSION_OPT=${BASH_REMATCH[14]} 25082 # Unspecified numerical fields are interpreted as 0. 25083 if test "x$VERSION_INTERIM" = x; then 25084 VERSION_INTERIM=0 25085 fi 25086 if test "x$VERSION_UPDATE" = x; then 25087 VERSION_UPDATE=0 25088 fi 25089 if test "x$VERSION_PATCH" = x; then 25090 VERSION_PATCH=0 25091 fi 25092 if test "x$version_plus_separator" != x \ 25093 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 25094 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 25095 fi 25096 # Stop the version part process from setting default values. 25097 # We still allow them to explicitly override though. 25098 NO_DEFAULT_VERSION_PARTS=true 25099 else 25100 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 25101 fi 25102 fi 25103 25104 25105 # Check whether --with-version-pre was given. 25106 if test "${with_version_pre+set}" = set; then : 25107 withval=$with_version_pre; with_version_pre_present=true 25108 else 25109 with_version_pre_present=false 25110 fi 25111 25112 25113 if test "x$with_version_pre_present" = xtrue; then 25114 if test "x$with_version_pre" = xyes; then 25115 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 25116 elif test "x$with_version_pre" = xno; then 25117 # Interpret --without-* as empty string instead of the literal "no" 25118 VERSION_PRE= 25119 else 25120 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 25121 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 25122 if test "x$VERSION_PRE" != "x$with_version_pre"; then 25123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 25124 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 25125 fi 25126 fi 25127 else 25128 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25129 # Default is to use "internal" as pre 25130 VERSION_PRE="internal" 25131 fi 25132 fi 25133 25134 25135 # Check whether --with-version-opt was given. 25136 if test "${with_version_opt+set}" = set; then : 25137 withval=$with_version_opt; with_version_opt_present=true 25138 else 25139 with_version_opt_present=false 25140 fi 25141 25142 25143 if test "x$with_version_opt_present" = xtrue; then 25144 if test "x$with_version_opt" = xyes; then 25145 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 25146 elif test "x$with_version_opt" = xno; then 25147 # Interpret --without-* as empty string instead of the literal "no" 25148 VERSION_OPT= 25149 else 25150 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 25151 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 25152 if test "x$VERSION_OPT" != "x$with_version_opt"; then 25153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 25154 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 25155 fi 25156 fi 25157 else 25158 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25159 # Default is to calculate a string like this 'adhoc.<username>.<base dir name>' 25160 # Outer [ ] to quote m4. 25161 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 25162 VERSION_OPT="adhoc.$USERNAME.$basedirname" 25163 fi 25164 fi 25165 25166 25167 # Check whether --with-version-build was given. 25168 if test "${with_version_build+set}" = set; then : 25169 withval=$with_version_build; with_version_build_present=true 25170 else 25171 with_version_build_present=false 25172 fi 25173 25174 25175 if test "x$with_version_build_present" = xtrue; then 25176 if test "x$with_version_build" = xyes; then 25177 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 25178 elif test "x$with_version_build" = xno; then 25179 # Interpret --without-* as empty string instead of the literal "no" 25180 VERSION_BUILD= 25181 elif test "x$with_version_build" = x; then 25182 VERSION_BUILD= 25183 else 25184 25185 # Additional [] needed to keep m4 from mangling shell constructs. 25186 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25187 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 25188 fi 25189 # Extract the version number without leading zeros. 25190 cleaned_value=${BASH_REMATCH[1]} 25191 if test "x$cleaned_value" = x; then 25192 # Special case for zero 25193 cleaned_value=${BASH_REMATCH[2]} 25194 fi 25195 25196 if test $cleaned_value -gt 255; then 25197 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 25198 fi 25199 if test "x$cleaned_value" != "x$with_version_build"; then 25200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 25201 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 25202 fi 25203 VERSION_BUILD=$cleaned_value 25204 25205 fi 25206 else 25207 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25208 # Default is to not have a build number. 25209 VERSION_BUILD="" 25210 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 25211 VERSION_BUILD=0 25212 fi 25213 fi 25214 25215 25216 # Check whether --with-version-feature was given. 25217 if test "${with_version_feature+set}" = set; then : 25218 withval=$with_version_feature; with_version_feature_present=true 25219 else 25220 with_version_feature_present=false 25221 fi 25222 25223 25224 if test "x$with_version_feature_present" = xtrue; then 25225 if test "x$with_version_feature" = xyes; then 25226 as_fn_error $? "--with-version-feature must have a value" "$LINENO" 5 25227 else 25228 25229 # Additional [] needed to keep m4 from mangling shell constructs. 25230 if ! [[ "$with_version_feature" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25231 as_fn_error $? "\"$with_version_feature\" is not a valid numerical value for VERSION_FEATURE" "$LINENO" 5 25232 fi 25233 # Extract the version number without leading zeros. 25234 cleaned_value=${BASH_REMATCH[1]} 25235 if test "x$cleaned_value" = x; then 25236 # Special case for zero 25237 cleaned_value=${BASH_REMATCH[2]} 25238 fi 25239 25240 if test $cleaned_value -gt 255; then 25241 as_fn_error $? "VERSION_FEATURE is given as $with_version_feature. This is greater than 255 which is not allowed." "$LINENO" 5 25242 fi 25243 if test "x$cleaned_value" != "x$with_version_feature"; then 25244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&5 25245 $as_echo "$as_me: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&2;} 25246 fi 25247 VERSION_FEATURE=$cleaned_value 25248 25249 fi 25250 else 25251 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25252 # Default is to get value from version-numbers 25253 VERSION_FEATURE="$DEFAULT_VERSION_FEATURE" 25254 fi 25255 fi 25256 25257 25258 # Check whether --with-version-interim was given. 25259 if test "${with_version_interim+set}" = set; then : 25260 withval=$with_version_interim; with_version_interim_present=true 25261 else 25262 with_version_interim_present=false 25263 fi 25264 25265 25266 if test "x$with_version_interim_present" = xtrue; then 25267 if test "x$with_version_interim" = xyes; then 25268 as_fn_error $? "--with-version-interim must have a value" "$LINENO" 5 25269 elif test "x$with_version_interim" = xno; then 25270 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25271 VERSION_INTERIM=0 25272 elif test "x$with_version_interim" = x; then 25273 VERSION_INTERIM=0 25274 else 25275 25276 # Additional [] needed to keep m4 from mangling shell constructs. 25277 if ! [[ "$with_version_interim" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25278 as_fn_error $? "\"$with_version_interim\" is not a valid numerical value for VERSION_INTERIM" "$LINENO" 5 25279 fi 25280 # Extract the version number without leading zeros. 25281 cleaned_value=${BASH_REMATCH[1]} 25282 if test "x$cleaned_value" = x; then 25283 # Special case for zero 25284 cleaned_value=${BASH_REMATCH[2]} 25285 fi 25286 25287 if test $cleaned_value -gt 255; then 25288 as_fn_error $? "VERSION_INTERIM is given as $with_version_interim. This is greater than 255 which is not allowed." "$LINENO" 5 25289 fi 25290 if test "x$cleaned_value" != "x$with_version_interim"; then 25291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&5 25292 $as_echo "$as_me: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&2;} 25293 fi 25294 VERSION_INTERIM=$cleaned_value 25295 25296 fi 25297 else 25298 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25299 # Default is 0, if unspecified 25300 VERSION_INTERIM=$DEFAULT_VERSION_INTERIM 25301 fi 25302 fi 25303 25304 25305 # Check whether --with-version-update was given. 25306 if test "${with_version_update+set}" = set; then : 25307 withval=$with_version_update; with_version_update_present=true 25308 else 25309 with_version_update_present=false 25310 fi 25311 25312 25313 if test "x$with_version_update_present" = xtrue; then 25314 if test "x$with_version_update" = xyes; then 25315 as_fn_error $? "--with-version-update must have a value" "$LINENO" 5 25316 elif test "x$with_version_update" = xno; then 25317 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25318 VERSION_UPDATE=0 25319 elif test "x$with_version_update" = x; then 25320 VERSION_UPDATE=0 25321 else 25322 25323 # Additional [] needed to keep m4 from mangling shell constructs. 25324 if ! [[ "$with_version_update" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25325 as_fn_error $? "\"$with_version_update\" is not a valid numerical value for VERSION_UPDATE" "$LINENO" 5 25326 fi 25327 # Extract the version number without leading zeros. 25328 cleaned_value=${BASH_REMATCH[1]} 25329 if test "x$cleaned_value" = x; then 25330 # Special case for zero 25331 cleaned_value=${BASH_REMATCH[2]} 25332 fi 25333 25334 if test $cleaned_value -gt 255; then 25335 as_fn_error $? "VERSION_UPDATE is given as $with_version_update. This is greater than 255 which is not allowed." "$LINENO" 5 25336 fi 25337 if test "x$cleaned_value" != "x$with_version_update"; then 25338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&5 25339 $as_echo "$as_me: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&2;} 25340 fi 25341 VERSION_UPDATE=$cleaned_value 25342 25343 fi 25344 else 25345 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25346 # Default is 0, if unspecified 25347 VERSION_UPDATE=$DEFAULT_VERSION_UPDATE 25348 fi 25349 fi 25350 25351 25352 # Check whether --with-version-patch was given. 25353 if test "${with_version_patch+set}" = set; then : 25354 withval=$with_version_patch; with_version_patch_present=true 25355 else 25356 with_version_patch_present=false 25357 fi 25358 25359 25360 if test "x$with_version_patch_present" = xtrue; then 25361 if test "x$with_version_patch" = xyes; then 25362 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 25363 elif test "x$with_version_patch" = xno; then 25364 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25365 VERSION_PATCH=0 25366 elif test "x$with_version_patch" = x; then 25367 VERSION_PATCH=0 25368 else 25369 25370 # Additional [] needed to keep m4 from mangling shell constructs. 25371 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25372 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 25373 fi 25374 # Extract the version number without leading zeros. 25375 cleaned_value=${BASH_REMATCH[1]} 25376 if test "x$cleaned_value" = x; then 25377 # Special case for zero 25378 cleaned_value=${BASH_REMATCH[2]} 25379 fi 25380 25381 if test $cleaned_value -gt 255; then 25382 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 25383 fi 25384 if test "x$cleaned_value" != "x$with_version_patch"; then 25385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 25386 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 25387 fi 25388 VERSION_PATCH=$cleaned_value 25389 25390 fi 25391 else 25392 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25393 # Default is 0, if unspecified 25394 VERSION_PATCH=$DEFAULT_VERSION_PATCH 25395 fi 25396 fi 25397 25398 # Calculate derived version properties 25399 25400 # Set VERSION_IS_GA based on if VERSION_PRE has a value 25401 if test "x$VERSION_PRE" = x; then 25402 VERSION_IS_GA=true 25403 else 25404 VERSION_IS_GA=false 25405 fi 25406 25407 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 25408 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH 25409 25410 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 25411 # Strip trailing zeroes from stripped_version_number 25412 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 25413 VERSION_NUMBER=$stripped_version_number 25414 25415 # The complete version string, with additional build information 25416 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 25417 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25418 else 25419 # If either build or opt is set, we need a + separator 25420 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 25421 fi 25422 25423 # The short version string, just VERSION_NUMBER and PRE, if present. 25424 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25425 25426 # The version date 25427 25428 # Check whether --with-version-date was given. 25429 if test "${with_version_date+set}" = set; then : 25430 withval=$with_version_date; 25431 fi 25432 25433 if test "x$with_version_date" = xyes; then 25434 as_fn_error $? "--with-version-date must have a value" "$LINENO" 5 25435 elif test "x$with_version_date" != x; then 25436 if ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ; then 25437 as_fn_error $? "\"$with_version_date\" is not a valid version date" "$LINENO" 5 25438 else 25439 VERSION_DATE="$with_version_date" 25440 fi 25441 else 25442 VERSION_DATE="$DEFAULT_VERSION_DATE" 25443 fi 25444 25445 # The vendor version string, if any 25446 25447 # Check whether --with-vendor-version-string was given. 25448 if test "${with_vendor_version_string+set}" = set; then : 25449 withval=$with_vendor_version_string; 25450 fi 25451 25452 if test "x$with_vendor_version_string" = xyes; then 25453 as_fn_error $? "--with-vendor-version-string must have a value" "$LINENO" 5 25454 elif ! [[ $with_vendor_version_string =~ ^[[:graph:]]*$ ]] ; then 25455 as_fn_error $? "--with--vendor-version-string contains non-graphical characters: $with_vendor_version_string" "$LINENO" 5 25456 else 25457 VENDOR_VERSION_STRING="$with_vendor_version_string" 25458 fi 25459 25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 25461 $as_echo_n "checking for version string... " >&6; } 25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 25463 $as_echo "$VERSION_STRING" >&6; } 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 ############################################################################### 25482 # 25483 # Setup BootJDK, used to bootstrap the build. 25484 # 25485 ############################################################################### 25486 25487 25488 BOOT_JDK_FOUND=no 25489 25490 # Check whether --with-boot-jdk was given. 25491 if test "${with_boot_jdk+set}" = set; then : 25492 withval=$with_boot_jdk; 25493 fi 25494 25495 25496 # We look for the Boot JDK through various means, going from more certain to 25497 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 25498 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 25499 # must check if this is indeed valid; otherwise we'll continue looking. 25500 25501 # Test: Is bootjdk explicitly set by command line arguments? 25502 25503 if test "x$BOOT_JDK_FOUND" = xno; then 25504 # Now execute the test 25505 25506 if test "x$with_boot_jdk" != x; then 25507 BOOT_JDK=$with_boot_jdk 25508 BOOT_JDK_FOUND=maybe 25509 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 25510 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 25511 fi 25512 25513 25514 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25515 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25516 # Do we have a bin/java? 25517 if test ! -x "$BOOT_JDK/bin/java"; then 25518 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25519 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25520 BOOT_JDK_FOUND=no 25521 else 25522 # Do we have a bin/javac? 25523 if test ! -x "$BOOT_JDK/bin/javac"; then 25524 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25525 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25526 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25527 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25528 BOOT_JDK_FOUND=no 25529 else 25530 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25531 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25532 25533 # Extra M4 quote needed to protect [] in grep expression. 25534 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25535 if test "x$FOUND_CORRECT_VERSION" = x; then 25536 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25537 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25538 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25539 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25540 BOOT_JDK_FOUND=no 25541 else 25542 # We're done! :-) 25543 BOOT_JDK_FOUND=yes 25544 25545 # Only process if variable expands to non-empty 25546 25547 if test "x$BOOT_JDK" != x; then 25548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25549 25550 # Input might be given as Windows format, start by converting to 25551 # unix format. 25552 path="$BOOT_JDK" 25553 new_path=`$CYGPATH -u "$path"` 25554 25555 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25556 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25557 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25558 # "foo.exe" is OK but "foo" is an error. 25559 # 25560 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25561 # It is also a way to make sure we got the proper file name for the real test later on. 25562 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25563 if test "x$test_shortpath" = x; then 25564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25565 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25566 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25567 fi 25568 25569 # Call helper function which possibly converts this using DOS-style short mode. 25570 # If so, the updated path is stored in $new_path. 25571 25572 input_path="$new_path" 25573 # Check if we need to convert this using DOS-style short mode. If the path 25574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25575 # take no chances and rewrite it. 25576 # Note: m4 eats our [], so we need to use [ and ] instead. 25577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25578 if test "x$has_forbidden_chars" != x; then 25579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25580 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25581 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25582 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25583 # Going to short mode and back again did indeed matter. Since short mode is 25584 # case insensitive, let's make it lowercase to improve readability. 25585 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25586 # Now convert it back to Unix-style (cygpath) 25587 input_path=`$CYGPATH -u "$shortmode_path"` 25588 new_path="$input_path" 25589 fi 25590 fi 25591 25592 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25593 if test "x$test_cygdrive_prefix" = x; then 25594 # As a simple fix, exclude /usr/bin since it's not a real path. 25595 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25596 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25597 # a path prefixed by /cygdrive for fixpath to work. 25598 new_path="$CYGWIN_ROOT_PATH$input_path" 25599 fi 25600 fi 25601 25602 25603 if test "x$path" != "x$new_path"; then 25604 BOOT_JDK="$new_path" 25605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25606 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25607 fi 25608 25609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25610 25611 path="$BOOT_JDK" 25612 has_colon=`$ECHO $path | $GREP ^.:` 25613 new_path="$path" 25614 if test "x$has_colon" = x; then 25615 # Not in mixed or Windows style, start by that. 25616 new_path=`cmd //c echo $path` 25617 fi 25618 25619 25620 input_path="$new_path" 25621 # Check if we need to convert this using DOS-style short mode. If the path 25622 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25623 # take no chances and rewrite it. 25624 # Note: m4 eats our [], so we need to use [ and ] instead. 25625 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25626 if test "x$has_forbidden_chars" != x; then 25627 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25628 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25629 fi 25630 25631 25632 windows_path="$new_path" 25633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25634 unix_path=`$CYGPATH -u "$windows_path"` 25635 new_path="$unix_path" 25636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25637 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25638 new_path="$unix_path" 25639 fi 25640 25641 if test "x$path" != "x$new_path"; then 25642 BOOT_JDK="$new_path" 25643 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25644 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25645 fi 25646 25647 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25648 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25649 25650 else 25651 # We're on a unix platform. Hooray! :) 25652 path="$BOOT_JDK" 25653 has_space=`$ECHO "$path" | $GREP " "` 25654 if test "x$has_space" != x; then 25655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25656 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25657 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25658 fi 25659 25660 # Use eval to expand a potential ~ 25661 eval path="$path" 25662 if test ! -f "$path" && test ! -d "$path"; then 25663 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25664 fi 25665 25666 if test -d "$path"; then 25667 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25668 else 25669 dir="`$DIRNAME "$path"`" 25670 base="`$BASENAME "$path"`" 25671 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25672 fi 25673 fi 25674 fi 25675 25676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25677 $as_echo_n "checking for Boot JDK... " >&6; } 25678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25679 $as_echo "$BOOT_JDK" >&6; } 25680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25681 $as_echo_n "checking Boot JDK version... " >&6; } 25682 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25684 $as_echo "$BOOT_JDK_VERSION" >&6; } 25685 fi # end check jdk version 25686 fi # end check javac 25687 fi # end check java 25688 fi # end check boot jdk found 25689 fi 25690 25691 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25692 # Having specified an argument which is incorrect will produce an instant failure; 25693 # we should not go on looking 25694 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25695 fi 25696 25697 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25698 25699 if test "x$BOOT_JDK_FOUND" = xno; then 25700 # Now execute the test 25701 25702 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25703 # First check at user selected default 25704 25705 if test "x$BOOT_JDK_FOUND" = xno; then 25706 # Now execute the test 25707 25708 if test -x /usr/libexec/java_home; then 25709 BOOT_JDK=`/usr/libexec/java_home ` 25710 BOOT_JDK_FOUND=maybe 25711 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25712 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25713 fi 25714 25715 25716 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25717 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25718 # Do we have a bin/java? 25719 if test ! -x "$BOOT_JDK/bin/java"; then 25720 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25721 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25722 BOOT_JDK_FOUND=no 25723 else 25724 # Do we have a bin/javac? 25725 if test ! -x "$BOOT_JDK/bin/javac"; then 25726 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25727 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25728 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25729 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25730 BOOT_JDK_FOUND=no 25731 else 25732 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25733 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25734 25735 # Extra M4 quote needed to protect [] in grep expression. 25736 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25737 if test "x$FOUND_CORRECT_VERSION" = x; then 25738 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25739 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25740 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25741 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25742 BOOT_JDK_FOUND=no 25743 else 25744 # We're done! :-) 25745 BOOT_JDK_FOUND=yes 25746 25747 # Only process if variable expands to non-empty 25748 25749 if test "x$BOOT_JDK" != x; then 25750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25751 25752 # Input might be given as Windows format, start by converting to 25753 # unix format. 25754 path="$BOOT_JDK" 25755 new_path=`$CYGPATH -u "$path"` 25756 25757 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25758 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25759 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25760 # "foo.exe" is OK but "foo" is an error. 25761 # 25762 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25763 # It is also a way to make sure we got the proper file name for the real test later on. 25764 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25765 if test "x$test_shortpath" = x; then 25766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25767 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25768 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25769 fi 25770 25771 # Call helper function which possibly converts this using DOS-style short mode. 25772 # If so, the updated path is stored in $new_path. 25773 25774 input_path="$new_path" 25775 # Check if we need to convert this using DOS-style short mode. If the path 25776 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25777 # take no chances and rewrite it. 25778 # Note: m4 eats our [], so we need to use [ and ] instead. 25779 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25780 if test "x$has_forbidden_chars" != x; then 25781 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25782 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25783 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25784 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25785 # Going to short mode and back again did indeed matter. Since short mode is 25786 # case insensitive, let's make it lowercase to improve readability. 25787 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25788 # Now convert it back to Unix-style (cygpath) 25789 input_path=`$CYGPATH -u "$shortmode_path"` 25790 new_path="$input_path" 25791 fi 25792 fi 25793 25794 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25795 if test "x$test_cygdrive_prefix" = x; then 25796 # As a simple fix, exclude /usr/bin since it's not a real path. 25797 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25798 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25799 # a path prefixed by /cygdrive for fixpath to work. 25800 new_path="$CYGWIN_ROOT_PATH$input_path" 25801 fi 25802 fi 25803 25804 25805 if test "x$path" != "x$new_path"; then 25806 BOOT_JDK="$new_path" 25807 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25808 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25809 fi 25810 25811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25812 25813 path="$BOOT_JDK" 25814 has_colon=`$ECHO $path | $GREP ^.:` 25815 new_path="$path" 25816 if test "x$has_colon" = x; then 25817 # Not in mixed or Windows style, start by that. 25818 new_path=`cmd //c echo $path` 25819 fi 25820 25821 25822 input_path="$new_path" 25823 # Check if we need to convert this using DOS-style short mode. If the path 25824 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25825 # take no chances and rewrite it. 25826 # Note: m4 eats our [], so we need to use [ and ] instead. 25827 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25828 if test "x$has_forbidden_chars" != x; then 25829 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25830 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25831 fi 25832 25833 25834 windows_path="$new_path" 25835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25836 unix_path=`$CYGPATH -u "$windows_path"` 25837 new_path="$unix_path" 25838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25839 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25840 new_path="$unix_path" 25841 fi 25842 25843 if test "x$path" != "x$new_path"; then 25844 BOOT_JDK="$new_path" 25845 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25846 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25847 fi 25848 25849 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25850 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25851 25852 else 25853 # We're on a unix platform. Hooray! :) 25854 path="$BOOT_JDK" 25855 has_space=`$ECHO "$path" | $GREP " "` 25856 if test "x$has_space" != x; then 25857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25858 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25859 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25860 fi 25861 25862 # Use eval to expand a potential ~ 25863 eval path="$path" 25864 if test ! -f "$path" && test ! -d "$path"; then 25865 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25866 fi 25867 25868 if test -d "$path"; then 25869 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25870 else 25871 dir="`$DIRNAME "$path"`" 25872 base="`$BASENAME "$path"`" 25873 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25874 fi 25875 fi 25876 fi 25877 25878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25879 $as_echo_n "checking for Boot JDK... " >&6; } 25880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25881 $as_echo "$BOOT_JDK" >&6; } 25882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25883 $as_echo_n "checking Boot JDK version... " >&6; } 25884 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25886 $as_echo "$BOOT_JDK_VERSION" >&6; } 25887 fi # end check jdk version 25888 fi # end check javac 25889 fi # end check java 25890 fi # end check boot jdk found 25891 fi 25892 25893 # If that did not work out (e.g. too old), try explicit versions instead 25894 25895 if test "x$BOOT_JDK_FOUND" = xno; then 25896 # Now execute the test 25897 25898 if test -x /usr/libexec/java_home; then 25899 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 25900 BOOT_JDK_FOUND=maybe 25901 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 25902 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 25903 fi 25904 25905 25906 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25907 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25908 # Do we have a bin/java? 25909 if test ! -x "$BOOT_JDK/bin/java"; then 25910 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25911 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25912 BOOT_JDK_FOUND=no 25913 else 25914 # Do we have a bin/javac? 25915 if test ! -x "$BOOT_JDK/bin/javac"; then 25916 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25917 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25918 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25919 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25920 BOOT_JDK_FOUND=no 25921 else 25922 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25923 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25924 25925 # Extra M4 quote needed to protect [] in grep expression. 25926 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25927 if test "x$FOUND_CORRECT_VERSION" = x; then 25928 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25929 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25930 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25931 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25932 BOOT_JDK_FOUND=no 25933 else 25934 # We're done! :-) 25935 BOOT_JDK_FOUND=yes 25936 25937 # Only process if variable expands to non-empty 25938 25939 if test "x$BOOT_JDK" != x; then 25940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25941 25942 # Input might be given as Windows format, start by converting to 25943 # unix format. 25944 path="$BOOT_JDK" 25945 new_path=`$CYGPATH -u "$path"` 25946 25947 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25948 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25949 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25950 # "foo.exe" is OK but "foo" is an error. 25951 # 25952 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25953 # It is also a way to make sure we got the proper file name for the real test later on. 25954 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25955 if test "x$test_shortpath" = x; then 25956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25957 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25958 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25959 fi 25960 25961 # Call helper function which possibly converts this using DOS-style short mode. 25962 # If so, the updated path is stored in $new_path. 25963 25964 input_path="$new_path" 25965 # Check if we need to convert this using DOS-style short mode. If the path 25966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25967 # take no chances and rewrite it. 25968 # Note: m4 eats our [], so we need to use [ and ] instead. 25969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25970 if test "x$has_forbidden_chars" != x; then 25971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25972 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25973 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25974 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25975 # Going to short mode and back again did indeed matter. Since short mode is 25976 # case insensitive, let's make it lowercase to improve readability. 25977 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25978 # Now convert it back to Unix-style (cygpath) 25979 input_path=`$CYGPATH -u "$shortmode_path"` 25980 new_path="$input_path" 25981 fi 25982 fi 25983 25984 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25985 if test "x$test_cygdrive_prefix" = x; then 25986 # As a simple fix, exclude /usr/bin since it's not a real path. 25987 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25988 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25989 # a path prefixed by /cygdrive for fixpath to work. 25990 new_path="$CYGWIN_ROOT_PATH$input_path" 25991 fi 25992 fi 25993 25994 25995 if test "x$path" != "x$new_path"; then 25996 BOOT_JDK="$new_path" 25997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25998 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25999 fi 26000 26001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26002 26003 path="$BOOT_JDK" 26004 has_colon=`$ECHO $path | $GREP ^.:` 26005 new_path="$path" 26006 if test "x$has_colon" = x; then 26007 # Not in mixed or Windows style, start by that. 26008 new_path=`cmd //c echo $path` 26009 fi 26010 26011 26012 input_path="$new_path" 26013 # Check if we need to convert this using DOS-style short mode. If the path 26014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26015 # take no chances and rewrite it. 26016 # Note: m4 eats our [], so we need to use [ and ] instead. 26017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26018 if test "x$has_forbidden_chars" != x; then 26019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26021 fi 26022 26023 26024 windows_path="$new_path" 26025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26026 unix_path=`$CYGPATH -u "$windows_path"` 26027 new_path="$unix_path" 26028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26030 new_path="$unix_path" 26031 fi 26032 26033 if test "x$path" != "x$new_path"; then 26034 BOOT_JDK="$new_path" 26035 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26036 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26037 fi 26038 26039 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26040 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26041 26042 else 26043 # We're on a unix platform. Hooray! :) 26044 path="$BOOT_JDK" 26045 has_space=`$ECHO "$path" | $GREP " "` 26046 if test "x$has_space" != x; then 26047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26048 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26049 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26050 fi 26051 26052 # Use eval to expand a potential ~ 26053 eval path="$path" 26054 if test ! -f "$path" && test ! -d "$path"; then 26055 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26056 fi 26057 26058 if test -d "$path"; then 26059 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26060 else 26061 dir="`$DIRNAME "$path"`" 26062 base="`$BASENAME "$path"`" 26063 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26064 fi 26065 fi 26066 fi 26067 26068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26069 $as_echo_n "checking for Boot JDK... " >&6; } 26070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26071 $as_echo "$BOOT_JDK" >&6; } 26072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26073 $as_echo_n "checking Boot JDK version... " >&6; } 26074 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26076 $as_echo "$BOOT_JDK_VERSION" >&6; } 26077 fi # end check jdk version 26078 fi # end check javac 26079 fi # end check java 26080 fi # end check boot jdk found 26081 fi 26082 26083 26084 if test "x$BOOT_JDK_FOUND" = xno; then 26085 # Now execute the test 26086 26087 if test -x /usr/libexec/java_home; then 26088 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 26089 BOOT_JDK_FOUND=maybe 26090 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 26091 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 26092 fi 26093 26094 26095 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26096 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26097 # Do we have a bin/java? 26098 if test ! -x "$BOOT_JDK/bin/java"; then 26099 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26101 BOOT_JDK_FOUND=no 26102 else 26103 # Do we have a bin/javac? 26104 if test ! -x "$BOOT_JDK/bin/javac"; then 26105 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26106 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26107 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26108 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26109 BOOT_JDK_FOUND=no 26110 else 26111 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26112 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26113 26114 # Extra M4 quote needed to protect [] in grep expression. 26115 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26116 if test "x$FOUND_CORRECT_VERSION" = x; then 26117 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26119 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26120 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26121 BOOT_JDK_FOUND=no 26122 else 26123 # We're done! :-) 26124 BOOT_JDK_FOUND=yes 26125 26126 # Only process if variable expands to non-empty 26127 26128 if test "x$BOOT_JDK" != x; then 26129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26130 26131 # Input might be given as Windows format, start by converting to 26132 # unix format. 26133 path="$BOOT_JDK" 26134 new_path=`$CYGPATH -u "$path"` 26135 26136 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26137 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26138 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26139 # "foo.exe" is OK but "foo" is an error. 26140 # 26141 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26142 # It is also a way to make sure we got the proper file name for the real test later on. 26143 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26144 if test "x$test_shortpath" = x; then 26145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26146 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26147 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26148 fi 26149 26150 # Call helper function which possibly converts this using DOS-style short mode. 26151 # If so, the updated path is stored in $new_path. 26152 26153 input_path="$new_path" 26154 # Check if we need to convert this using DOS-style short mode. If the path 26155 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26156 # take no chances and rewrite it. 26157 # Note: m4 eats our [], so we need to use [ and ] instead. 26158 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26159 if test "x$has_forbidden_chars" != x; then 26160 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26161 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26162 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26163 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26164 # Going to short mode and back again did indeed matter. Since short mode is 26165 # case insensitive, let's make it lowercase to improve readability. 26166 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26167 # Now convert it back to Unix-style (cygpath) 26168 input_path=`$CYGPATH -u "$shortmode_path"` 26169 new_path="$input_path" 26170 fi 26171 fi 26172 26173 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26174 if test "x$test_cygdrive_prefix" = x; then 26175 # As a simple fix, exclude /usr/bin since it's not a real path. 26176 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26177 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26178 # a path prefixed by /cygdrive for fixpath to work. 26179 new_path="$CYGWIN_ROOT_PATH$input_path" 26180 fi 26181 fi 26182 26183 26184 if test "x$path" != "x$new_path"; then 26185 BOOT_JDK="$new_path" 26186 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26187 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26188 fi 26189 26190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26191 26192 path="$BOOT_JDK" 26193 has_colon=`$ECHO $path | $GREP ^.:` 26194 new_path="$path" 26195 if test "x$has_colon" = x; then 26196 # Not in mixed or Windows style, start by that. 26197 new_path=`cmd //c echo $path` 26198 fi 26199 26200 26201 input_path="$new_path" 26202 # Check if we need to convert this using DOS-style short mode. If the path 26203 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26204 # take no chances and rewrite it. 26205 # Note: m4 eats our [], so we need to use [ and ] instead. 26206 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26207 if test "x$has_forbidden_chars" != x; then 26208 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26209 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26210 fi 26211 26212 26213 windows_path="$new_path" 26214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26215 unix_path=`$CYGPATH -u "$windows_path"` 26216 new_path="$unix_path" 26217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26218 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26219 new_path="$unix_path" 26220 fi 26221 26222 if test "x$path" != "x$new_path"; then 26223 BOOT_JDK="$new_path" 26224 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26225 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26226 fi 26227 26228 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26229 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26230 26231 else 26232 # We're on a unix platform. Hooray! :) 26233 path="$BOOT_JDK" 26234 has_space=`$ECHO "$path" | $GREP " "` 26235 if test "x$has_space" != x; then 26236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26237 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26238 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26239 fi 26240 26241 # Use eval to expand a potential ~ 26242 eval path="$path" 26243 if test ! -f "$path" && test ! -d "$path"; then 26244 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26245 fi 26246 26247 if test -d "$path"; then 26248 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26249 else 26250 dir="`$DIRNAME "$path"`" 26251 base="`$BASENAME "$path"`" 26252 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26253 fi 26254 fi 26255 fi 26256 26257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26258 $as_echo_n "checking for Boot JDK... " >&6; } 26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26260 $as_echo "$BOOT_JDK" >&6; } 26261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26262 $as_echo_n "checking Boot JDK version... " >&6; } 26263 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26265 $as_echo "$BOOT_JDK_VERSION" >&6; } 26266 fi # end check jdk version 26267 fi # end check javac 26268 fi # end check java 26269 fi # end check boot jdk found 26270 fi 26271 26272 26273 if test "x$BOOT_JDK_FOUND" = xno; then 26274 # Now execute the test 26275 26276 if test -x /usr/libexec/java_home; then 26277 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 26278 BOOT_JDK_FOUND=maybe 26279 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 26280 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 26281 fi 26282 26283 26284 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26285 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26286 # Do we have a bin/java? 26287 if test ! -x "$BOOT_JDK/bin/java"; then 26288 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26289 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26290 BOOT_JDK_FOUND=no 26291 else 26292 # Do we have a bin/javac? 26293 if test ! -x "$BOOT_JDK/bin/javac"; then 26294 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26295 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26296 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26297 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26298 BOOT_JDK_FOUND=no 26299 else 26300 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26301 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26302 26303 # Extra M4 quote needed to protect [] in grep expression. 26304 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26305 if test "x$FOUND_CORRECT_VERSION" = x; then 26306 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26307 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26308 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26309 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26310 BOOT_JDK_FOUND=no 26311 else 26312 # We're done! :-) 26313 BOOT_JDK_FOUND=yes 26314 26315 # Only process if variable expands to non-empty 26316 26317 if test "x$BOOT_JDK" != x; then 26318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26319 26320 # Input might be given as Windows format, start by converting to 26321 # unix format. 26322 path="$BOOT_JDK" 26323 new_path=`$CYGPATH -u "$path"` 26324 26325 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26326 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26327 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26328 # "foo.exe" is OK but "foo" is an error. 26329 # 26330 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26331 # It is also a way to make sure we got the proper file name for the real test later on. 26332 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26333 if test "x$test_shortpath" = x; then 26334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26335 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26336 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26337 fi 26338 26339 # Call helper function which possibly converts this using DOS-style short mode. 26340 # If so, the updated path is stored in $new_path. 26341 26342 input_path="$new_path" 26343 # Check if we need to convert this using DOS-style short mode. If the path 26344 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26345 # take no chances and rewrite it. 26346 # Note: m4 eats our [], so we need to use [ and ] instead. 26347 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26348 if test "x$has_forbidden_chars" != x; then 26349 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26350 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26351 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26352 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26353 # Going to short mode and back again did indeed matter. Since short mode is 26354 # case insensitive, let's make it lowercase to improve readability. 26355 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26356 # Now convert it back to Unix-style (cygpath) 26357 input_path=`$CYGPATH -u "$shortmode_path"` 26358 new_path="$input_path" 26359 fi 26360 fi 26361 26362 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26363 if test "x$test_cygdrive_prefix" = x; then 26364 # As a simple fix, exclude /usr/bin since it's not a real path. 26365 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26366 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26367 # a path prefixed by /cygdrive for fixpath to work. 26368 new_path="$CYGWIN_ROOT_PATH$input_path" 26369 fi 26370 fi 26371 26372 26373 if test "x$path" != "x$new_path"; then 26374 BOOT_JDK="$new_path" 26375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26376 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26377 fi 26378 26379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26380 26381 path="$BOOT_JDK" 26382 has_colon=`$ECHO $path | $GREP ^.:` 26383 new_path="$path" 26384 if test "x$has_colon" = x; then 26385 # Not in mixed or Windows style, start by that. 26386 new_path=`cmd //c echo $path` 26387 fi 26388 26389 26390 input_path="$new_path" 26391 # Check if we need to convert this using DOS-style short mode. If the path 26392 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26393 # take no chances and rewrite it. 26394 # Note: m4 eats our [], so we need to use [ and ] instead. 26395 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26396 if test "x$has_forbidden_chars" != x; then 26397 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26398 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26399 fi 26400 26401 26402 windows_path="$new_path" 26403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26404 unix_path=`$CYGPATH -u "$windows_path"` 26405 new_path="$unix_path" 26406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26408 new_path="$unix_path" 26409 fi 26410 26411 if test "x$path" != "x$new_path"; then 26412 BOOT_JDK="$new_path" 26413 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26414 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26415 fi 26416 26417 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26418 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26419 26420 else 26421 # We're on a unix platform. Hooray! :) 26422 path="$BOOT_JDK" 26423 has_space=`$ECHO "$path" | $GREP " "` 26424 if test "x$has_space" != x; then 26425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26426 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26427 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26428 fi 26429 26430 # Use eval to expand a potential ~ 26431 eval path="$path" 26432 if test ! -f "$path" && test ! -d "$path"; then 26433 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26434 fi 26435 26436 if test -d "$path"; then 26437 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26438 else 26439 dir="`$DIRNAME "$path"`" 26440 base="`$BASENAME "$path"`" 26441 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26442 fi 26443 fi 26444 fi 26445 26446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26447 $as_echo_n "checking for Boot JDK... " >&6; } 26448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26449 $as_echo "$BOOT_JDK" >&6; } 26450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26451 $as_echo_n "checking Boot JDK version... " >&6; } 26452 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26454 $as_echo "$BOOT_JDK_VERSION" >&6; } 26455 fi # end check jdk version 26456 fi # end check javac 26457 fi # end check java 26458 fi # end check boot jdk found 26459 fi 26460 26461 fi 26462 26463 26464 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26465 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26466 # Do we have a bin/java? 26467 if test ! -x "$BOOT_JDK/bin/java"; then 26468 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26469 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26470 BOOT_JDK_FOUND=no 26471 else 26472 # Do we have a bin/javac? 26473 if test ! -x "$BOOT_JDK/bin/javac"; then 26474 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26475 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26476 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26477 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26478 BOOT_JDK_FOUND=no 26479 else 26480 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26481 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26482 26483 # Extra M4 quote needed to protect [] in grep expression. 26484 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26485 if test "x$FOUND_CORRECT_VERSION" = x; then 26486 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26487 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26488 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26489 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26490 BOOT_JDK_FOUND=no 26491 else 26492 # We're done! :-) 26493 BOOT_JDK_FOUND=yes 26494 26495 # Only process if variable expands to non-empty 26496 26497 if test "x$BOOT_JDK" != x; then 26498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26499 26500 # Input might be given as Windows format, start by converting to 26501 # unix format. 26502 path="$BOOT_JDK" 26503 new_path=`$CYGPATH -u "$path"` 26504 26505 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26506 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26507 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26508 # "foo.exe" is OK but "foo" is an error. 26509 # 26510 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26511 # It is also a way to make sure we got the proper file name for the real test later on. 26512 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26513 if test "x$test_shortpath" = x; then 26514 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26515 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26516 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26517 fi 26518 26519 # Call helper function which possibly converts this using DOS-style short mode. 26520 # If so, the updated path is stored in $new_path. 26521 26522 input_path="$new_path" 26523 # Check if we need to convert this using DOS-style short mode. If the path 26524 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26525 # take no chances and rewrite it. 26526 # Note: m4 eats our [], so we need to use [ and ] instead. 26527 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26528 if test "x$has_forbidden_chars" != x; then 26529 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26530 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26531 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26532 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26533 # Going to short mode and back again did indeed matter. Since short mode is 26534 # case insensitive, let's make it lowercase to improve readability. 26535 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26536 # Now convert it back to Unix-style (cygpath) 26537 input_path=`$CYGPATH -u "$shortmode_path"` 26538 new_path="$input_path" 26539 fi 26540 fi 26541 26542 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26543 if test "x$test_cygdrive_prefix" = x; then 26544 # As a simple fix, exclude /usr/bin since it's not a real path. 26545 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26546 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26547 # a path prefixed by /cygdrive for fixpath to work. 26548 new_path="$CYGWIN_ROOT_PATH$input_path" 26549 fi 26550 fi 26551 26552 26553 if test "x$path" != "x$new_path"; then 26554 BOOT_JDK="$new_path" 26555 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26556 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26557 fi 26558 26559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26560 26561 path="$BOOT_JDK" 26562 has_colon=`$ECHO $path | $GREP ^.:` 26563 new_path="$path" 26564 if test "x$has_colon" = x; then 26565 # Not in mixed or Windows style, start by that. 26566 new_path=`cmd //c echo $path` 26567 fi 26568 26569 26570 input_path="$new_path" 26571 # Check if we need to convert this using DOS-style short mode. If the path 26572 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26573 # take no chances and rewrite it. 26574 # Note: m4 eats our [], so we need to use [ and ] instead. 26575 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26576 if test "x$has_forbidden_chars" != x; then 26577 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26578 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26579 fi 26580 26581 26582 windows_path="$new_path" 26583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26584 unix_path=`$CYGPATH -u "$windows_path"` 26585 new_path="$unix_path" 26586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26588 new_path="$unix_path" 26589 fi 26590 26591 if test "x$path" != "x$new_path"; then 26592 BOOT_JDK="$new_path" 26593 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26594 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26595 fi 26596 26597 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26598 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26599 26600 else 26601 # We're on a unix platform. Hooray! :) 26602 path="$BOOT_JDK" 26603 has_space=`$ECHO "$path" | $GREP " "` 26604 if test "x$has_space" != x; then 26605 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26606 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26607 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26608 fi 26609 26610 # Use eval to expand a potential ~ 26611 eval path="$path" 26612 if test ! -f "$path" && test ! -d "$path"; then 26613 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26614 fi 26615 26616 if test -d "$path"; then 26617 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26618 else 26619 dir="`$DIRNAME "$path"`" 26620 base="`$BASENAME "$path"`" 26621 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26622 fi 26623 fi 26624 fi 26625 26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26627 $as_echo_n "checking for Boot JDK... " >&6; } 26628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26629 $as_echo "$BOOT_JDK" >&6; } 26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26631 $as_echo_n "checking Boot JDK version... " >&6; } 26632 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26634 $as_echo "$BOOT_JDK_VERSION" >&6; } 26635 fi # end check jdk version 26636 fi # end check javac 26637 fi # end check java 26638 fi # end check boot jdk found 26639 fi 26640 26641 26642 # Test: Is $JAVA_HOME set? 26643 26644 if test "x$BOOT_JDK_FOUND" = xno; then 26645 # Now execute the test 26646 26647 if test "x$JAVA_HOME" != x; then 26648 JAVA_HOME_PROCESSED="$JAVA_HOME" 26649 26650 # Only process if variable expands to non-empty 26651 26652 if test "x$JAVA_HOME_PROCESSED" != x; then 26653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26654 26655 # Input might be given as Windows format, start by converting to 26656 # unix format. 26657 path="$JAVA_HOME_PROCESSED" 26658 new_path=`$CYGPATH -u "$path"` 26659 26660 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26661 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26662 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26663 # "foo.exe" is OK but "foo" is an error. 26664 # 26665 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26666 # It is also a way to make sure we got the proper file name for the real test later on. 26667 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26668 if test "x$test_shortpath" = x; then 26669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26670 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26671 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26672 fi 26673 26674 # Call helper function which possibly converts this using DOS-style short mode. 26675 # If so, the updated path is stored in $new_path. 26676 26677 input_path="$new_path" 26678 # Check if we need to convert this using DOS-style short mode. If the path 26679 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26680 # take no chances and rewrite it. 26681 # Note: m4 eats our [], so we need to use [ and ] instead. 26682 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26683 if test "x$has_forbidden_chars" != x; then 26684 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26685 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26686 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26687 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26688 # Going to short mode and back again did indeed matter. Since short mode is 26689 # case insensitive, let's make it lowercase to improve readability. 26690 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26691 # Now convert it back to Unix-style (cygpath) 26692 input_path=`$CYGPATH -u "$shortmode_path"` 26693 new_path="$input_path" 26694 fi 26695 fi 26696 26697 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26698 if test "x$test_cygdrive_prefix" = x; then 26699 # As a simple fix, exclude /usr/bin since it's not a real path. 26700 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26701 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26702 # a path prefixed by /cygdrive for fixpath to work. 26703 new_path="$CYGWIN_ROOT_PATH$input_path" 26704 fi 26705 fi 26706 26707 26708 if test "x$path" != "x$new_path"; then 26709 JAVA_HOME_PROCESSED="$new_path" 26710 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26711 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26712 fi 26713 26714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26715 26716 path="$JAVA_HOME_PROCESSED" 26717 has_colon=`$ECHO $path | $GREP ^.:` 26718 new_path="$path" 26719 if test "x$has_colon" = x; then 26720 # Not in mixed or Windows style, start by that. 26721 new_path=`cmd //c echo $path` 26722 fi 26723 26724 26725 input_path="$new_path" 26726 # Check if we need to convert this using DOS-style short mode. If the path 26727 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26728 # take no chances and rewrite it. 26729 # Note: m4 eats our [], so we need to use [ and ] instead. 26730 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26731 if test "x$has_forbidden_chars" != x; then 26732 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26733 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26734 fi 26735 26736 26737 windows_path="$new_path" 26738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26739 unix_path=`$CYGPATH -u "$windows_path"` 26740 new_path="$unix_path" 26741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26743 new_path="$unix_path" 26744 fi 26745 26746 if test "x$path" != "x$new_path"; then 26747 JAVA_HOME_PROCESSED="$new_path" 26748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26749 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26750 fi 26751 26752 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26753 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26754 26755 else 26756 # We're on a unix platform. Hooray! :) 26757 path="$JAVA_HOME_PROCESSED" 26758 has_space=`$ECHO "$path" | $GREP " "` 26759 if test "x$has_space" != x; then 26760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26761 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26762 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26763 fi 26764 26765 # Use eval to expand a potential ~ 26766 eval path="$path" 26767 if test ! -f "$path" && test ! -d "$path"; then 26768 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26769 fi 26770 26771 if test -d "$path"; then 26772 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26773 else 26774 dir="`$DIRNAME "$path"`" 26775 base="`$BASENAME "$path"`" 26776 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26777 fi 26778 fi 26779 fi 26780 26781 if test ! -d "$JAVA_HOME_PROCESSED"; then 26782 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26783 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26784 else 26785 # Aha, the user has set a JAVA_HOME 26786 # let us use that as the Boot JDK. 26787 BOOT_JDK="$JAVA_HOME_PROCESSED" 26788 BOOT_JDK_FOUND=maybe 26789 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26790 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26791 fi 26792 fi 26793 26794 26795 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26796 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26797 # Do we have a bin/java? 26798 if test ! -x "$BOOT_JDK/bin/java"; then 26799 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26801 BOOT_JDK_FOUND=no 26802 else 26803 # Do we have a bin/javac? 26804 if test ! -x "$BOOT_JDK/bin/javac"; then 26805 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26807 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26808 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26809 BOOT_JDK_FOUND=no 26810 else 26811 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26812 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26813 26814 # Extra M4 quote needed to protect [] in grep expression. 26815 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26816 if test "x$FOUND_CORRECT_VERSION" = x; then 26817 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26818 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26819 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26820 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26821 BOOT_JDK_FOUND=no 26822 else 26823 # We're done! :-) 26824 BOOT_JDK_FOUND=yes 26825 26826 # Only process if variable expands to non-empty 26827 26828 if test "x$BOOT_JDK" != x; then 26829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26830 26831 # Input might be given as Windows format, start by converting to 26832 # unix format. 26833 path="$BOOT_JDK" 26834 new_path=`$CYGPATH -u "$path"` 26835 26836 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26837 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26838 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26839 # "foo.exe" is OK but "foo" is an error. 26840 # 26841 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26842 # It is also a way to make sure we got the proper file name for the real test later on. 26843 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26844 if test "x$test_shortpath" = x; then 26845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26846 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26847 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26848 fi 26849 26850 # Call helper function which possibly converts this using DOS-style short mode. 26851 # If so, the updated path is stored in $new_path. 26852 26853 input_path="$new_path" 26854 # Check if we need to convert this using DOS-style short mode. If the path 26855 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26856 # take no chances and rewrite it. 26857 # Note: m4 eats our [], so we need to use [ and ] instead. 26858 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26859 if test "x$has_forbidden_chars" != x; then 26860 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26861 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26862 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26863 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26864 # Going to short mode and back again did indeed matter. Since short mode is 26865 # case insensitive, let's make it lowercase to improve readability. 26866 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26867 # Now convert it back to Unix-style (cygpath) 26868 input_path=`$CYGPATH -u "$shortmode_path"` 26869 new_path="$input_path" 26870 fi 26871 fi 26872 26873 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26874 if test "x$test_cygdrive_prefix" = x; then 26875 # As a simple fix, exclude /usr/bin since it's not a real path. 26876 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26877 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26878 # a path prefixed by /cygdrive for fixpath to work. 26879 new_path="$CYGWIN_ROOT_PATH$input_path" 26880 fi 26881 fi 26882 26883 26884 if test "x$path" != "x$new_path"; then 26885 BOOT_JDK="$new_path" 26886 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26887 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26888 fi 26889 26890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26891 26892 path="$BOOT_JDK" 26893 has_colon=`$ECHO $path | $GREP ^.:` 26894 new_path="$path" 26895 if test "x$has_colon" = x; then 26896 # Not in mixed or Windows style, start by that. 26897 new_path=`cmd //c echo $path` 26898 fi 26899 26900 26901 input_path="$new_path" 26902 # Check if we need to convert this using DOS-style short mode. If the path 26903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26904 # take no chances and rewrite it. 26905 # Note: m4 eats our [], so we need to use [ and ] instead. 26906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26907 if test "x$has_forbidden_chars" != x; then 26908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26909 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26910 fi 26911 26912 26913 windows_path="$new_path" 26914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26915 unix_path=`$CYGPATH -u "$windows_path"` 26916 new_path="$unix_path" 26917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26919 new_path="$unix_path" 26920 fi 26921 26922 if test "x$path" != "x$new_path"; then 26923 BOOT_JDK="$new_path" 26924 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26925 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26926 fi 26927 26928 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26929 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26930 26931 else 26932 # We're on a unix platform. Hooray! :) 26933 path="$BOOT_JDK" 26934 has_space=`$ECHO "$path" | $GREP " "` 26935 if test "x$has_space" != x; then 26936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26937 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26938 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26939 fi 26940 26941 # Use eval to expand a potential ~ 26942 eval path="$path" 26943 if test ! -f "$path" && test ! -d "$path"; then 26944 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26945 fi 26946 26947 if test -d "$path"; then 26948 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26949 else 26950 dir="`$DIRNAME "$path"`" 26951 base="`$BASENAME "$path"`" 26952 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26953 fi 26954 fi 26955 fi 26956 26957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26958 $as_echo_n "checking for Boot JDK... " >&6; } 26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26960 $as_echo "$BOOT_JDK" >&6; } 26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26962 $as_echo_n "checking Boot JDK version... " >&6; } 26963 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26965 $as_echo "$BOOT_JDK_VERSION" >&6; } 26966 fi # end check jdk version 26967 fi # end check javac 26968 fi # end check java 26969 fi # end check boot jdk found 26970 fi 26971 26972 26973 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 26974 26975 if test "x$BOOT_JDK_FOUND" = xno; then 26976 # Now execute the test 26977 26978 # Extract the first word of "javac", so it can be a program name with args. 26979 set dummy javac; ac_word=$2 26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26981 $as_echo_n "checking for $ac_word... " >&6; } 26982 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 26983 $as_echo_n "(cached) " >&6 26984 else 26985 case $JAVAC_CHECK in 26986 [\\/]* | ?:[\\/]*) 26987 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 26988 ;; 26989 *) 26990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26991 for as_dir in $PATH 26992 do 26993 IFS=$as_save_IFS 26994 test -z "$as_dir" && as_dir=. 26995 for ac_exec_ext in '' $ac_executable_extensions; do 26996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26997 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 26998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26999 break 2 27000 fi 27001 done 27002 done 27003 IFS=$as_save_IFS 27004 27005 ;; 27006 esac 27007 fi 27008 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 27009 if test -n "$JAVAC_CHECK"; then 27010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 27011 $as_echo "$JAVAC_CHECK" >&6; } 27012 else 27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27014 $as_echo "no" >&6; } 27015 fi 27016 27017 27018 # Extract the first word of "java", so it can be a program name with args. 27019 set dummy java; ac_word=$2 27020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27021 $as_echo_n "checking for $ac_word... " >&6; } 27022 if ${ac_cv_path_JAVA_CHECK+:} false; then : 27023 $as_echo_n "(cached) " >&6 27024 else 27025 case $JAVA_CHECK in 27026 [\\/]* | ?:[\\/]*) 27027 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 27028 ;; 27029 *) 27030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27031 for as_dir in $PATH 27032 do 27033 IFS=$as_save_IFS 27034 test -z "$as_dir" && as_dir=. 27035 for ac_exec_ext in '' $ac_executable_extensions; do 27036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27037 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 27038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27039 break 2 27040 fi 27041 done 27042 done 27043 IFS=$as_save_IFS 27044 27045 ;; 27046 esac 27047 fi 27048 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 27049 if test -n "$JAVA_CHECK"; then 27050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 27051 $as_echo "$JAVA_CHECK" >&6; } 27052 else 27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27054 $as_echo "no" >&6; } 27055 fi 27056 27057 27058 BINARY="$JAVAC_CHECK" 27059 if test "x$JAVAC_CHECK" = x; then 27060 BINARY="$JAVA_CHECK" 27061 fi 27062 if test "x$BINARY" != x; then 27063 # So there is a java(c) binary, it might be part of a JDK. 27064 # Lets find the JDK/JRE directory by following symbolic links. 27065 # Linux/GNU systems often have links from /usr/bin/java to 27066 # /etc/alternatives/java to the real JDK binary. 27067 27068 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27069 # Follow a chain of symbolic links. Use readlink 27070 # where it exists, else fall back to horribly 27071 # complicated shell code. 27072 if test "x$READLINK_TESTED" != yes; then 27073 # On MacOSX there is a readlink tool with a different 27074 # purpose than the GNU readlink tool. Check the found readlink. 27075 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27076 if test "x$ISGNU" = x; then 27077 # A readlink that we do not know how to use. 27078 # Are there other non-GNU readlinks out there? 27079 READLINK_TESTED=yes 27080 READLINK= 27081 fi 27082 fi 27083 27084 if test "x$READLINK" != x; then 27085 BINARY=`$READLINK -f $BINARY` 27086 else 27087 # Save the current directory for restoring afterwards 27088 STARTDIR=$PWD 27089 COUNTER=0 27090 sym_link_dir=`$DIRNAME $BINARY` 27091 sym_link_file=`$BASENAME $BINARY` 27092 cd $sym_link_dir 27093 # Use -P flag to resolve symlinks in directories. 27094 cd `$THEPWDCMD -P` 27095 sym_link_dir=`$THEPWDCMD -P` 27096 # Resolve file symlinks 27097 while test $COUNTER -lt 20; do 27098 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27099 if test "x$ISLINK" == x; then 27100 # This is not a symbolic link! We are done! 27101 break 27102 fi 27103 # Again resolve directory symlinks since the target of the just found 27104 # link could be in a different directory 27105 cd `$DIRNAME $ISLINK` 27106 sym_link_dir=`$THEPWDCMD -P` 27107 sym_link_file=`$BASENAME $ISLINK` 27108 let COUNTER=COUNTER+1 27109 done 27110 cd $STARTDIR 27111 BINARY=$sym_link_dir/$sym_link_file 27112 fi 27113 fi 27114 27115 BOOT_JDK=`dirname "$BINARY"` 27116 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 27117 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 27118 # Looks like we found ourselves an JDK 27119 BOOT_JDK_FOUND=maybe 27120 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 27121 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 27122 fi 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 '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 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 9 or 10)" >&5 27151 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&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 # Test: Is there a JDK installed in default, well-known locations? 27305 27306 if test "x$BOOT_JDK_FOUND" = xno; then 27307 # Now execute the test 27308 27309 if test "x$OPENJDK_TARGET_OS" = xwindows; then 27310 27311 if test "x$BOOT_JDK_FOUND" = xno; then 27312 # Now execute the test 27313 27314 if test "x$ProgramW6432" != x; then 27315 VIRTUAL_DIR="$ProgramW6432/Java" 27316 27317 windows_path="$VIRTUAL_DIR" 27318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27319 unix_path=`$CYGPATH -u "$windows_path"` 27320 VIRTUAL_DIR="$unix_path" 27321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27322 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27323 VIRTUAL_DIR="$unix_path" 27324 fi 27325 27326 27327 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27328 BOOT_JDK_SUFFIX="" 27329 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27330 if test "x$ALL_JDKS_FOUND" != x; then 27331 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27332 27333 if test "x$BOOT_JDK_FOUND" = xno; then 27334 # Now execute the test 27335 27336 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27337 if test -d "$BOOT_JDK"; then 27338 BOOT_JDK_FOUND=maybe 27339 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27340 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27341 fi 27342 27343 27344 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27345 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27346 # Do we have a bin/java? 27347 if test ! -x "$BOOT_JDK/bin/java"; then 27348 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27349 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27350 BOOT_JDK_FOUND=no 27351 else 27352 # Do we have a bin/javac? 27353 if test ! -x "$BOOT_JDK/bin/javac"; then 27354 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27355 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27356 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27357 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27358 BOOT_JDK_FOUND=no 27359 else 27360 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27361 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27362 27363 # Extra M4 quote needed to protect [] in grep expression. 27364 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27365 if test "x$FOUND_CORRECT_VERSION" = x; then 27366 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27367 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27368 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27369 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27370 BOOT_JDK_FOUND=no 27371 else 27372 # We're done! :-) 27373 BOOT_JDK_FOUND=yes 27374 27375 # Only process if variable expands to non-empty 27376 27377 if test "x$BOOT_JDK" != x; then 27378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27379 27380 # Input might be given as Windows format, start by converting to 27381 # unix format. 27382 path="$BOOT_JDK" 27383 new_path=`$CYGPATH -u "$path"` 27384 27385 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27386 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27387 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27388 # "foo.exe" is OK but "foo" is an error. 27389 # 27390 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27391 # It is also a way to make sure we got the proper file name for the real test later on. 27392 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27393 if test "x$test_shortpath" = x; then 27394 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27395 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27396 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27397 fi 27398 27399 # Call helper function which possibly converts this using DOS-style short mode. 27400 # If so, the updated path is stored in $new_path. 27401 27402 input_path="$new_path" 27403 # Check if we need to convert this using DOS-style short mode. If the path 27404 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27405 # take no chances and rewrite it. 27406 # Note: m4 eats our [], so we need to use [ and ] instead. 27407 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27408 if test "x$has_forbidden_chars" != x; then 27409 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27410 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27411 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27412 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27413 # Going to short mode and back again did indeed matter. Since short mode is 27414 # case insensitive, let's make it lowercase to improve readability. 27415 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27416 # Now convert it back to Unix-style (cygpath) 27417 input_path=`$CYGPATH -u "$shortmode_path"` 27418 new_path="$input_path" 27419 fi 27420 fi 27421 27422 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27423 if test "x$test_cygdrive_prefix" = x; then 27424 # As a simple fix, exclude /usr/bin since it's not a real path. 27425 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27426 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27427 # a path prefixed by /cygdrive for fixpath to work. 27428 new_path="$CYGWIN_ROOT_PATH$input_path" 27429 fi 27430 fi 27431 27432 27433 if test "x$path" != "x$new_path"; then 27434 BOOT_JDK="$new_path" 27435 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27436 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27437 fi 27438 27439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27440 27441 path="$BOOT_JDK" 27442 has_colon=`$ECHO $path | $GREP ^.:` 27443 new_path="$path" 27444 if test "x$has_colon" = x; then 27445 # Not in mixed or Windows style, start by that. 27446 new_path=`cmd //c echo $path` 27447 fi 27448 27449 27450 input_path="$new_path" 27451 # Check if we need to convert this using DOS-style short mode. If the path 27452 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27453 # take no chances and rewrite it. 27454 # Note: m4 eats our [], so we need to use [ and ] instead. 27455 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27456 if test "x$has_forbidden_chars" != x; then 27457 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27458 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27459 fi 27460 27461 27462 windows_path="$new_path" 27463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27464 unix_path=`$CYGPATH -u "$windows_path"` 27465 new_path="$unix_path" 27466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27467 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27468 new_path="$unix_path" 27469 fi 27470 27471 if test "x$path" != "x$new_path"; then 27472 BOOT_JDK="$new_path" 27473 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27474 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27475 fi 27476 27477 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27478 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27479 27480 else 27481 # We're on a unix platform. Hooray! :) 27482 path="$BOOT_JDK" 27483 has_space=`$ECHO "$path" | $GREP " "` 27484 if test "x$has_space" != x; then 27485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27486 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27487 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27488 fi 27489 27490 # Use eval to expand a potential ~ 27491 eval path="$path" 27492 if test ! -f "$path" && test ! -d "$path"; then 27493 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27494 fi 27495 27496 if test -d "$path"; then 27497 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27498 else 27499 dir="`$DIRNAME "$path"`" 27500 base="`$BASENAME "$path"`" 27501 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27502 fi 27503 fi 27504 fi 27505 27506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27507 $as_echo_n "checking for Boot JDK... " >&6; } 27508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27509 $as_echo "$BOOT_JDK" >&6; } 27510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27511 $as_echo_n "checking Boot JDK version... " >&6; } 27512 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27514 $as_echo "$BOOT_JDK_VERSION" >&6; } 27515 fi # end check jdk version 27516 fi # end check javac 27517 fi # end check java 27518 fi # end check boot jdk found 27519 fi 27520 27521 done 27522 fi 27523 27524 fi 27525 27526 27527 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27528 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27529 # Do we have a bin/java? 27530 if test ! -x "$BOOT_JDK/bin/java"; then 27531 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27532 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27533 BOOT_JDK_FOUND=no 27534 else 27535 # Do we have a bin/javac? 27536 if test ! -x "$BOOT_JDK/bin/javac"; then 27537 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27538 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27539 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27540 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27541 BOOT_JDK_FOUND=no 27542 else 27543 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27544 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27545 27546 # Extra M4 quote needed to protect [] in grep expression. 27547 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27548 if test "x$FOUND_CORRECT_VERSION" = x; then 27549 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27550 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27551 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27552 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27553 BOOT_JDK_FOUND=no 27554 else 27555 # We're done! :-) 27556 BOOT_JDK_FOUND=yes 27557 27558 # Only process if variable expands to non-empty 27559 27560 if test "x$BOOT_JDK" != x; then 27561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27562 27563 # Input might be given as Windows format, start by converting to 27564 # unix format. 27565 path="$BOOT_JDK" 27566 new_path=`$CYGPATH -u "$path"` 27567 27568 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27569 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27570 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27571 # "foo.exe" is OK but "foo" is an error. 27572 # 27573 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27574 # It is also a way to make sure we got the proper file name for the real test later on. 27575 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27576 if test "x$test_shortpath" = x; then 27577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27578 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27579 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27580 fi 27581 27582 # Call helper function which possibly converts this using DOS-style short mode. 27583 # If so, the updated path is stored in $new_path. 27584 27585 input_path="$new_path" 27586 # Check if we need to convert this using DOS-style short mode. If the path 27587 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27588 # take no chances and rewrite it. 27589 # Note: m4 eats our [], so we need to use [ and ] instead. 27590 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27591 if test "x$has_forbidden_chars" != x; then 27592 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27593 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27594 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27595 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27596 # Going to short mode and back again did indeed matter. Since short mode is 27597 # case insensitive, let's make it lowercase to improve readability. 27598 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27599 # Now convert it back to Unix-style (cygpath) 27600 input_path=`$CYGPATH -u "$shortmode_path"` 27601 new_path="$input_path" 27602 fi 27603 fi 27604 27605 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27606 if test "x$test_cygdrive_prefix" = x; then 27607 # As a simple fix, exclude /usr/bin since it's not a real path. 27608 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27609 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27610 # a path prefixed by /cygdrive for fixpath to work. 27611 new_path="$CYGWIN_ROOT_PATH$input_path" 27612 fi 27613 fi 27614 27615 27616 if test "x$path" != "x$new_path"; then 27617 BOOT_JDK="$new_path" 27618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27619 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27620 fi 27621 27622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27623 27624 path="$BOOT_JDK" 27625 has_colon=`$ECHO $path | $GREP ^.:` 27626 new_path="$path" 27627 if test "x$has_colon" = x; then 27628 # Not in mixed or Windows style, start by that. 27629 new_path=`cmd //c echo $path` 27630 fi 27631 27632 27633 input_path="$new_path" 27634 # Check if we need to convert this using DOS-style short mode. If the path 27635 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27636 # take no chances and rewrite it. 27637 # Note: m4 eats our [], so we need to use [ and ] instead. 27638 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27639 if test "x$has_forbidden_chars" != x; then 27640 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27641 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27642 fi 27643 27644 27645 windows_path="$new_path" 27646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27647 unix_path=`$CYGPATH -u "$windows_path"` 27648 new_path="$unix_path" 27649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27650 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27651 new_path="$unix_path" 27652 fi 27653 27654 if test "x$path" != "x$new_path"; then 27655 BOOT_JDK="$new_path" 27656 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27657 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27658 fi 27659 27660 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27661 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27662 27663 else 27664 # We're on a unix platform. Hooray! :) 27665 path="$BOOT_JDK" 27666 has_space=`$ECHO "$path" | $GREP " "` 27667 if test "x$has_space" != x; then 27668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27670 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27671 fi 27672 27673 # Use eval to expand a potential ~ 27674 eval path="$path" 27675 if test ! -f "$path" && test ! -d "$path"; then 27676 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27677 fi 27678 27679 if test -d "$path"; then 27680 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27681 else 27682 dir="`$DIRNAME "$path"`" 27683 base="`$BASENAME "$path"`" 27684 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27685 fi 27686 fi 27687 fi 27688 27689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27690 $as_echo_n "checking for Boot JDK... " >&6; } 27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27692 $as_echo "$BOOT_JDK" >&6; } 27693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27694 $as_echo_n "checking Boot JDK version... " >&6; } 27695 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27697 $as_echo "$BOOT_JDK_VERSION" >&6; } 27698 fi # end check jdk version 27699 fi # end check javac 27700 fi # end check java 27701 fi # end check boot jdk found 27702 fi 27703 27704 27705 if test "x$BOOT_JDK_FOUND" = xno; then 27706 # Now execute the test 27707 27708 if test "x$PROGRAMW6432" != x; then 27709 VIRTUAL_DIR="$PROGRAMW6432/Java" 27710 27711 windows_path="$VIRTUAL_DIR" 27712 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27713 unix_path=`$CYGPATH -u "$windows_path"` 27714 VIRTUAL_DIR="$unix_path" 27715 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27716 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27717 VIRTUAL_DIR="$unix_path" 27718 fi 27719 27720 27721 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27722 BOOT_JDK_SUFFIX="" 27723 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27724 if test "x$ALL_JDKS_FOUND" != x; then 27725 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27726 27727 if test "x$BOOT_JDK_FOUND" = xno; then 27728 # Now execute the test 27729 27730 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27731 if test -d "$BOOT_JDK"; then 27732 BOOT_JDK_FOUND=maybe 27733 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27734 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27735 fi 27736 27737 27738 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27739 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27740 # Do we have a bin/java? 27741 if test ! -x "$BOOT_JDK/bin/java"; then 27742 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27743 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27744 BOOT_JDK_FOUND=no 27745 else 27746 # Do we have a bin/javac? 27747 if test ! -x "$BOOT_JDK/bin/javac"; then 27748 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27749 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27750 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27751 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27752 BOOT_JDK_FOUND=no 27753 else 27754 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27755 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27756 27757 # Extra M4 quote needed to protect [] in grep expression. 27758 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27759 if test "x$FOUND_CORRECT_VERSION" = x; then 27760 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27761 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27762 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27763 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27764 BOOT_JDK_FOUND=no 27765 else 27766 # We're done! :-) 27767 BOOT_JDK_FOUND=yes 27768 27769 # Only process if variable expands to non-empty 27770 27771 if test "x$BOOT_JDK" != x; then 27772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27773 27774 # Input might be given as Windows format, start by converting to 27775 # unix format. 27776 path="$BOOT_JDK" 27777 new_path=`$CYGPATH -u "$path"` 27778 27779 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27780 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27781 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27782 # "foo.exe" is OK but "foo" is an error. 27783 # 27784 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27785 # It is also a way to make sure we got the proper file name for the real test later on. 27786 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27787 if test "x$test_shortpath" = x; then 27788 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27789 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27790 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27791 fi 27792 27793 # Call helper function which possibly converts this using DOS-style short mode. 27794 # If so, the updated path is stored in $new_path. 27795 27796 input_path="$new_path" 27797 # Check if we need to convert this using DOS-style short mode. If the path 27798 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27799 # take no chances and rewrite it. 27800 # Note: m4 eats our [], so we need to use [ and ] instead. 27801 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27802 if test "x$has_forbidden_chars" != x; then 27803 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27804 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27805 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27806 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27807 # Going to short mode and back again did indeed matter. Since short mode is 27808 # case insensitive, let's make it lowercase to improve readability. 27809 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27810 # Now convert it back to Unix-style (cygpath) 27811 input_path=`$CYGPATH -u "$shortmode_path"` 27812 new_path="$input_path" 27813 fi 27814 fi 27815 27816 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27817 if test "x$test_cygdrive_prefix" = x; then 27818 # As a simple fix, exclude /usr/bin since it's not a real path. 27819 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27820 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27821 # a path prefixed by /cygdrive for fixpath to work. 27822 new_path="$CYGWIN_ROOT_PATH$input_path" 27823 fi 27824 fi 27825 27826 27827 if test "x$path" != "x$new_path"; then 27828 BOOT_JDK="$new_path" 27829 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27830 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27831 fi 27832 27833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27834 27835 path="$BOOT_JDK" 27836 has_colon=`$ECHO $path | $GREP ^.:` 27837 new_path="$path" 27838 if test "x$has_colon" = x; then 27839 # Not in mixed or Windows style, start by that. 27840 new_path=`cmd //c echo $path` 27841 fi 27842 27843 27844 input_path="$new_path" 27845 # Check if we need to convert this using DOS-style short mode. If the path 27846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27847 # take no chances and rewrite it. 27848 # Note: m4 eats our [], so we need to use [ and ] instead. 27849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27850 if test "x$has_forbidden_chars" != x; then 27851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27852 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27853 fi 27854 27855 27856 windows_path="$new_path" 27857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27858 unix_path=`$CYGPATH -u "$windows_path"` 27859 new_path="$unix_path" 27860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27861 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27862 new_path="$unix_path" 27863 fi 27864 27865 if test "x$path" != "x$new_path"; then 27866 BOOT_JDK="$new_path" 27867 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27868 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27869 fi 27870 27871 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27872 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27873 27874 else 27875 # We're on a unix platform. Hooray! :) 27876 path="$BOOT_JDK" 27877 has_space=`$ECHO "$path" | $GREP " "` 27878 if test "x$has_space" != x; then 27879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27880 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27881 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27882 fi 27883 27884 # Use eval to expand a potential ~ 27885 eval path="$path" 27886 if test ! -f "$path" && test ! -d "$path"; then 27887 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27888 fi 27889 27890 if test -d "$path"; then 27891 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27892 else 27893 dir="`$DIRNAME "$path"`" 27894 base="`$BASENAME "$path"`" 27895 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27896 fi 27897 fi 27898 fi 27899 27900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27901 $as_echo_n "checking for Boot JDK... " >&6; } 27902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27903 $as_echo "$BOOT_JDK" >&6; } 27904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27905 $as_echo_n "checking Boot JDK version... " >&6; } 27906 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27908 $as_echo "$BOOT_JDK_VERSION" >&6; } 27909 fi # end check jdk version 27910 fi # end check javac 27911 fi # end check java 27912 fi # end check boot jdk found 27913 fi 27914 27915 done 27916 fi 27917 27918 fi 27919 27920 27921 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27922 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27923 # Do we have a bin/java? 27924 if test ! -x "$BOOT_JDK/bin/java"; then 27925 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27926 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27927 BOOT_JDK_FOUND=no 27928 else 27929 # Do we have a bin/javac? 27930 if test ! -x "$BOOT_JDK/bin/javac"; then 27931 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27932 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27933 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27934 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27935 BOOT_JDK_FOUND=no 27936 else 27937 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27938 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27939 27940 # Extra M4 quote needed to protect [] in grep expression. 27941 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27942 if test "x$FOUND_CORRECT_VERSION" = x; then 27943 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27944 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27945 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27946 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27947 BOOT_JDK_FOUND=no 27948 else 27949 # We're done! :-) 27950 BOOT_JDK_FOUND=yes 27951 27952 # Only process if variable expands to non-empty 27953 27954 if test "x$BOOT_JDK" != x; then 27955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27956 27957 # Input might be given as Windows format, start by converting to 27958 # unix format. 27959 path="$BOOT_JDK" 27960 new_path=`$CYGPATH -u "$path"` 27961 27962 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27963 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27964 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27965 # "foo.exe" is OK but "foo" is an error. 27966 # 27967 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27968 # It is also a way to make sure we got the proper file name for the real test later on. 27969 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27970 if test "x$test_shortpath" = x; then 27971 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27972 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27973 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27974 fi 27975 27976 # Call helper function which possibly converts this using DOS-style short mode. 27977 # If so, the updated path is stored in $new_path. 27978 27979 input_path="$new_path" 27980 # Check if we need to convert this using DOS-style short mode. If the path 27981 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27982 # take no chances and rewrite it. 27983 # Note: m4 eats our [], so we need to use [ and ] instead. 27984 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27985 if test "x$has_forbidden_chars" != x; then 27986 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27987 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27988 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27989 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27990 # Going to short mode and back again did indeed matter. Since short mode is 27991 # case insensitive, let's make it lowercase to improve readability. 27992 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27993 # Now convert it back to Unix-style (cygpath) 27994 input_path=`$CYGPATH -u "$shortmode_path"` 27995 new_path="$input_path" 27996 fi 27997 fi 27998 27999 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28000 if test "x$test_cygdrive_prefix" = x; then 28001 # As a simple fix, exclude /usr/bin since it's not a real path. 28002 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28003 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28004 # a path prefixed by /cygdrive for fixpath to work. 28005 new_path="$CYGWIN_ROOT_PATH$input_path" 28006 fi 28007 fi 28008 28009 28010 if test "x$path" != "x$new_path"; then 28011 BOOT_JDK="$new_path" 28012 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28013 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28014 fi 28015 28016 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28017 28018 path="$BOOT_JDK" 28019 has_colon=`$ECHO $path | $GREP ^.:` 28020 new_path="$path" 28021 if test "x$has_colon" = x; then 28022 # Not in mixed or Windows style, start by that. 28023 new_path=`cmd //c echo $path` 28024 fi 28025 28026 28027 input_path="$new_path" 28028 # Check if we need to convert this using DOS-style short mode. If the path 28029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28030 # take no chances and rewrite it. 28031 # Note: m4 eats our [], so we need to use [ and ] instead. 28032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28033 if test "x$has_forbidden_chars" != x; then 28034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28035 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28036 fi 28037 28038 28039 windows_path="$new_path" 28040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28041 unix_path=`$CYGPATH -u "$windows_path"` 28042 new_path="$unix_path" 28043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28044 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28045 new_path="$unix_path" 28046 fi 28047 28048 if test "x$path" != "x$new_path"; then 28049 BOOT_JDK="$new_path" 28050 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28051 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28052 fi 28053 28054 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28055 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28056 28057 else 28058 # We're on a unix platform. Hooray! :) 28059 path="$BOOT_JDK" 28060 has_space=`$ECHO "$path" | $GREP " "` 28061 if test "x$has_space" != x; then 28062 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28063 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28064 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28065 fi 28066 28067 # Use eval to expand a potential ~ 28068 eval path="$path" 28069 if test ! -f "$path" && test ! -d "$path"; then 28070 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28071 fi 28072 28073 if test -d "$path"; then 28074 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28075 else 28076 dir="`$DIRNAME "$path"`" 28077 base="`$BASENAME "$path"`" 28078 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28079 fi 28080 fi 28081 fi 28082 28083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28084 $as_echo_n "checking for Boot JDK... " >&6; } 28085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28086 $as_echo "$BOOT_JDK" >&6; } 28087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28088 $as_echo_n "checking Boot JDK version... " >&6; } 28089 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28091 $as_echo "$BOOT_JDK_VERSION" >&6; } 28092 fi # end check jdk version 28093 fi # end check javac 28094 fi # end check java 28095 fi # end check boot jdk found 28096 fi 28097 28098 28099 if test "x$BOOT_JDK_FOUND" = xno; then 28100 # Now execute the test 28101 28102 if test "x$PROGRAMFILES" != x; then 28103 VIRTUAL_DIR="$PROGRAMFILES/Java" 28104 28105 windows_path="$VIRTUAL_DIR" 28106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28107 unix_path=`$CYGPATH -u "$windows_path"` 28108 VIRTUAL_DIR="$unix_path" 28109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28111 VIRTUAL_DIR="$unix_path" 28112 fi 28113 28114 28115 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28116 BOOT_JDK_SUFFIX="" 28117 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28118 if test "x$ALL_JDKS_FOUND" != x; then 28119 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28120 28121 if test "x$BOOT_JDK_FOUND" = xno; then 28122 # Now execute the test 28123 28124 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28125 if test -d "$BOOT_JDK"; then 28126 BOOT_JDK_FOUND=maybe 28127 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28128 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28129 fi 28130 28131 28132 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28133 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28134 # Do we have a bin/java? 28135 if test ! -x "$BOOT_JDK/bin/java"; then 28136 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28137 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28138 BOOT_JDK_FOUND=no 28139 else 28140 # Do we have a bin/javac? 28141 if test ! -x "$BOOT_JDK/bin/javac"; then 28142 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28143 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28144 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28145 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28146 BOOT_JDK_FOUND=no 28147 else 28148 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28149 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28150 28151 # Extra M4 quote needed to protect [] in grep expression. 28152 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28153 if test "x$FOUND_CORRECT_VERSION" = x; then 28154 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28155 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28156 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28157 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28158 BOOT_JDK_FOUND=no 28159 else 28160 # We're done! :-) 28161 BOOT_JDK_FOUND=yes 28162 28163 # Only process if variable expands to non-empty 28164 28165 if test "x$BOOT_JDK" != x; then 28166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28167 28168 # Input might be given as Windows format, start by converting to 28169 # unix format. 28170 path="$BOOT_JDK" 28171 new_path=`$CYGPATH -u "$path"` 28172 28173 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28174 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28175 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28176 # "foo.exe" is OK but "foo" is an error. 28177 # 28178 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28179 # It is also a way to make sure we got the proper file name for the real test later on. 28180 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28181 if test "x$test_shortpath" = x; then 28182 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28183 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28184 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28185 fi 28186 28187 # Call helper function which possibly converts this using DOS-style short mode. 28188 # If so, the updated path is stored in $new_path. 28189 28190 input_path="$new_path" 28191 # Check if we need to convert this using DOS-style short mode. If the path 28192 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28193 # take no chances and rewrite it. 28194 # Note: m4 eats our [], so we need to use [ and ] instead. 28195 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28196 if test "x$has_forbidden_chars" != x; then 28197 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28198 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28199 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28200 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28201 # Going to short mode and back again did indeed matter. Since short mode is 28202 # case insensitive, let's make it lowercase to improve readability. 28203 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28204 # Now convert it back to Unix-style (cygpath) 28205 input_path=`$CYGPATH -u "$shortmode_path"` 28206 new_path="$input_path" 28207 fi 28208 fi 28209 28210 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28211 if test "x$test_cygdrive_prefix" = x; then 28212 # As a simple fix, exclude /usr/bin since it's not a real path. 28213 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28214 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28215 # a path prefixed by /cygdrive for fixpath to work. 28216 new_path="$CYGWIN_ROOT_PATH$input_path" 28217 fi 28218 fi 28219 28220 28221 if test "x$path" != "x$new_path"; then 28222 BOOT_JDK="$new_path" 28223 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28224 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28225 fi 28226 28227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28228 28229 path="$BOOT_JDK" 28230 has_colon=`$ECHO $path | $GREP ^.:` 28231 new_path="$path" 28232 if test "x$has_colon" = x; then 28233 # Not in mixed or Windows style, start by that. 28234 new_path=`cmd //c echo $path` 28235 fi 28236 28237 28238 input_path="$new_path" 28239 # Check if we need to convert this using DOS-style short mode. If the path 28240 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28241 # take no chances and rewrite it. 28242 # Note: m4 eats our [], so we need to use [ and ] instead. 28243 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28244 if test "x$has_forbidden_chars" != x; then 28245 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28246 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28247 fi 28248 28249 28250 windows_path="$new_path" 28251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28252 unix_path=`$CYGPATH -u "$windows_path"` 28253 new_path="$unix_path" 28254 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28255 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28256 new_path="$unix_path" 28257 fi 28258 28259 if test "x$path" != "x$new_path"; then 28260 BOOT_JDK="$new_path" 28261 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28262 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28263 fi 28264 28265 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28266 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28267 28268 else 28269 # We're on a unix platform. Hooray! :) 28270 path="$BOOT_JDK" 28271 has_space=`$ECHO "$path" | $GREP " "` 28272 if test "x$has_space" != x; then 28273 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28274 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28275 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28276 fi 28277 28278 # Use eval to expand a potential ~ 28279 eval path="$path" 28280 if test ! -f "$path" && test ! -d "$path"; then 28281 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28282 fi 28283 28284 if test -d "$path"; then 28285 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28286 else 28287 dir="`$DIRNAME "$path"`" 28288 base="`$BASENAME "$path"`" 28289 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28290 fi 28291 fi 28292 fi 28293 28294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28295 $as_echo_n "checking for Boot JDK... " >&6; } 28296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28297 $as_echo "$BOOT_JDK" >&6; } 28298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28299 $as_echo_n "checking Boot JDK version... " >&6; } 28300 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28302 $as_echo "$BOOT_JDK_VERSION" >&6; } 28303 fi # end check jdk version 28304 fi # end check javac 28305 fi # end check java 28306 fi # end check boot jdk found 28307 fi 28308 28309 done 28310 fi 28311 28312 fi 28313 28314 28315 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28316 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28317 # Do we have a bin/java? 28318 if test ! -x "$BOOT_JDK/bin/java"; then 28319 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28320 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28321 BOOT_JDK_FOUND=no 28322 else 28323 # Do we have a bin/javac? 28324 if test ! -x "$BOOT_JDK/bin/javac"; then 28325 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28326 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28327 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28328 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28329 BOOT_JDK_FOUND=no 28330 else 28331 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28332 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28333 28334 # Extra M4 quote needed to protect [] in grep expression. 28335 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28336 if test "x$FOUND_CORRECT_VERSION" = x; then 28337 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28338 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28339 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28340 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28341 BOOT_JDK_FOUND=no 28342 else 28343 # We're done! :-) 28344 BOOT_JDK_FOUND=yes 28345 28346 # Only process if variable expands to non-empty 28347 28348 if test "x$BOOT_JDK" != x; then 28349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28350 28351 # Input might be given as Windows format, start by converting to 28352 # unix format. 28353 path="$BOOT_JDK" 28354 new_path=`$CYGPATH -u "$path"` 28355 28356 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28357 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28358 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28359 # "foo.exe" is OK but "foo" is an error. 28360 # 28361 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28362 # It is also a way to make sure we got the proper file name for the real test later on. 28363 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28364 if test "x$test_shortpath" = x; then 28365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28366 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28367 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28368 fi 28369 28370 # Call helper function which possibly converts this using DOS-style short mode. 28371 # If so, the updated path is stored in $new_path. 28372 28373 input_path="$new_path" 28374 # Check if we need to convert this using DOS-style short mode. If the path 28375 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28376 # take no chances and rewrite it. 28377 # Note: m4 eats our [], so we need to use [ and ] instead. 28378 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28379 if test "x$has_forbidden_chars" != x; then 28380 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28381 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28382 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28383 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28384 # Going to short mode and back again did indeed matter. Since short mode is 28385 # case insensitive, let's make it lowercase to improve readability. 28386 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28387 # Now convert it back to Unix-style (cygpath) 28388 input_path=`$CYGPATH -u "$shortmode_path"` 28389 new_path="$input_path" 28390 fi 28391 fi 28392 28393 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28394 if test "x$test_cygdrive_prefix" = x; then 28395 # As a simple fix, exclude /usr/bin since it's not a real path. 28396 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28397 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28398 # a path prefixed by /cygdrive for fixpath to work. 28399 new_path="$CYGWIN_ROOT_PATH$input_path" 28400 fi 28401 fi 28402 28403 28404 if test "x$path" != "x$new_path"; then 28405 BOOT_JDK="$new_path" 28406 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28407 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28408 fi 28409 28410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28411 28412 path="$BOOT_JDK" 28413 has_colon=`$ECHO $path | $GREP ^.:` 28414 new_path="$path" 28415 if test "x$has_colon" = x; then 28416 # Not in mixed or Windows style, start by that. 28417 new_path=`cmd //c echo $path` 28418 fi 28419 28420 28421 input_path="$new_path" 28422 # Check if we need to convert this using DOS-style short mode. If the path 28423 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28424 # take no chances and rewrite it. 28425 # Note: m4 eats our [], so we need to use [ and ] instead. 28426 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28427 if test "x$has_forbidden_chars" != x; then 28428 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28429 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28430 fi 28431 28432 28433 windows_path="$new_path" 28434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28435 unix_path=`$CYGPATH -u "$windows_path"` 28436 new_path="$unix_path" 28437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28438 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28439 new_path="$unix_path" 28440 fi 28441 28442 if test "x$path" != "x$new_path"; then 28443 BOOT_JDK="$new_path" 28444 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28445 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28446 fi 28447 28448 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28449 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28450 28451 else 28452 # We're on a unix platform. Hooray! :) 28453 path="$BOOT_JDK" 28454 has_space=`$ECHO "$path" | $GREP " "` 28455 if test "x$has_space" != x; then 28456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28457 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28458 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28459 fi 28460 28461 # Use eval to expand a potential ~ 28462 eval path="$path" 28463 if test ! -f "$path" && test ! -d "$path"; then 28464 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28465 fi 28466 28467 if test -d "$path"; then 28468 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28469 else 28470 dir="`$DIRNAME "$path"`" 28471 base="`$BASENAME "$path"`" 28472 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28473 fi 28474 fi 28475 fi 28476 28477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28478 $as_echo_n "checking for Boot JDK... " >&6; } 28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28480 $as_echo "$BOOT_JDK" >&6; } 28481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28482 $as_echo_n "checking Boot JDK version... " >&6; } 28483 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28485 $as_echo "$BOOT_JDK_VERSION" >&6; } 28486 fi # end check jdk version 28487 fi # end check javac 28488 fi # end check java 28489 fi # end check boot jdk found 28490 fi 28491 28492 28493 if test "x$BOOT_JDK_FOUND" = xno; then 28494 # Now execute the test 28495 28496 if test "x$ProgramFiles" != x; then 28497 VIRTUAL_DIR="$ProgramFiles/Java" 28498 28499 windows_path="$VIRTUAL_DIR" 28500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28501 unix_path=`$CYGPATH -u "$windows_path"` 28502 VIRTUAL_DIR="$unix_path" 28503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28504 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28505 VIRTUAL_DIR="$unix_path" 28506 fi 28507 28508 28509 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28510 BOOT_JDK_SUFFIX="" 28511 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28512 if test "x$ALL_JDKS_FOUND" != x; then 28513 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28514 28515 if test "x$BOOT_JDK_FOUND" = xno; then 28516 # Now execute the test 28517 28518 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28519 if test -d "$BOOT_JDK"; then 28520 BOOT_JDK_FOUND=maybe 28521 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28522 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28523 fi 28524 28525 28526 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28527 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28528 # Do we have a bin/java? 28529 if test ! -x "$BOOT_JDK/bin/java"; then 28530 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28531 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28532 BOOT_JDK_FOUND=no 28533 else 28534 # Do we have a bin/javac? 28535 if test ! -x "$BOOT_JDK/bin/javac"; then 28536 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28537 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28538 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28539 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28540 BOOT_JDK_FOUND=no 28541 else 28542 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28543 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28544 28545 # Extra M4 quote needed to protect [] in grep expression. 28546 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28547 if test "x$FOUND_CORRECT_VERSION" = x; then 28548 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28549 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28550 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28551 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28552 BOOT_JDK_FOUND=no 28553 else 28554 # We're done! :-) 28555 BOOT_JDK_FOUND=yes 28556 28557 # Only process if variable expands to non-empty 28558 28559 if test "x$BOOT_JDK" != x; then 28560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28561 28562 # Input might be given as Windows format, start by converting to 28563 # unix format. 28564 path="$BOOT_JDK" 28565 new_path=`$CYGPATH -u "$path"` 28566 28567 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28568 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28569 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28570 # "foo.exe" is OK but "foo" is an error. 28571 # 28572 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28573 # It is also a way to make sure we got the proper file name for the real test later on. 28574 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28575 if test "x$test_shortpath" = x; then 28576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28577 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28578 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28579 fi 28580 28581 # Call helper function which possibly converts this using DOS-style short mode. 28582 # If so, the updated path is stored in $new_path. 28583 28584 input_path="$new_path" 28585 # Check if we need to convert this using DOS-style short mode. If the path 28586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28587 # take no chances and rewrite it. 28588 # Note: m4 eats our [], so we need to use [ and ] instead. 28589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28590 if test "x$has_forbidden_chars" != x; then 28591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28592 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28593 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28594 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28595 # Going to short mode and back again did indeed matter. Since short mode is 28596 # case insensitive, let's make it lowercase to improve readability. 28597 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28598 # Now convert it back to Unix-style (cygpath) 28599 input_path=`$CYGPATH -u "$shortmode_path"` 28600 new_path="$input_path" 28601 fi 28602 fi 28603 28604 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28605 if test "x$test_cygdrive_prefix" = x; then 28606 # As a simple fix, exclude /usr/bin since it's not a real path. 28607 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28608 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28609 # a path prefixed by /cygdrive for fixpath to work. 28610 new_path="$CYGWIN_ROOT_PATH$input_path" 28611 fi 28612 fi 28613 28614 28615 if test "x$path" != "x$new_path"; then 28616 BOOT_JDK="$new_path" 28617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28618 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28619 fi 28620 28621 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28622 28623 path="$BOOT_JDK" 28624 has_colon=`$ECHO $path | $GREP ^.:` 28625 new_path="$path" 28626 if test "x$has_colon" = x; then 28627 # Not in mixed or Windows style, start by that. 28628 new_path=`cmd //c echo $path` 28629 fi 28630 28631 28632 input_path="$new_path" 28633 # Check if we need to convert this using DOS-style short mode. If the path 28634 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28635 # take no chances and rewrite it. 28636 # Note: m4 eats our [], so we need to use [ and ] instead. 28637 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28638 if test "x$has_forbidden_chars" != x; then 28639 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28640 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28641 fi 28642 28643 28644 windows_path="$new_path" 28645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28646 unix_path=`$CYGPATH -u "$windows_path"` 28647 new_path="$unix_path" 28648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28649 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28650 new_path="$unix_path" 28651 fi 28652 28653 if test "x$path" != "x$new_path"; then 28654 BOOT_JDK="$new_path" 28655 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28656 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28657 fi 28658 28659 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28660 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28661 28662 else 28663 # We're on a unix platform. Hooray! :) 28664 path="$BOOT_JDK" 28665 has_space=`$ECHO "$path" | $GREP " "` 28666 if test "x$has_space" != x; then 28667 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28668 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28669 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28670 fi 28671 28672 # Use eval to expand a potential ~ 28673 eval path="$path" 28674 if test ! -f "$path" && test ! -d "$path"; then 28675 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28676 fi 28677 28678 if test -d "$path"; then 28679 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28680 else 28681 dir="`$DIRNAME "$path"`" 28682 base="`$BASENAME "$path"`" 28683 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28684 fi 28685 fi 28686 fi 28687 28688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28689 $as_echo_n "checking for Boot JDK... " >&6; } 28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28691 $as_echo "$BOOT_JDK" >&6; } 28692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28693 $as_echo_n "checking Boot JDK version... " >&6; } 28694 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28696 $as_echo "$BOOT_JDK_VERSION" >&6; } 28697 fi # end check jdk version 28698 fi # end check javac 28699 fi # end check java 28700 fi # end check boot jdk found 28701 fi 28702 28703 done 28704 fi 28705 28706 fi 28707 28708 28709 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28710 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28711 # Do we have a bin/java? 28712 if test ! -x "$BOOT_JDK/bin/java"; then 28713 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28714 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28715 BOOT_JDK_FOUND=no 28716 else 28717 # Do we have a bin/javac? 28718 if test ! -x "$BOOT_JDK/bin/javac"; then 28719 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28720 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28721 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28722 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28723 BOOT_JDK_FOUND=no 28724 else 28725 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28726 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28727 28728 # Extra M4 quote needed to protect [] in grep expression. 28729 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28730 if test "x$FOUND_CORRECT_VERSION" = x; then 28731 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28732 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28733 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28734 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28735 BOOT_JDK_FOUND=no 28736 else 28737 # We're done! :-) 28738 BOOT_JDK_FOUND=yes 28739 28740 # Only process if variable expands to non-empty 28741 28742 if test "x$BOOT_JDK" != x; then 28743 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28744 28745 # Input might be given as Windows format, start by converting to 28746 # unix format. 28747 path="$BOOT_JDK" 28748 new_path=`$CYGPATH -u "$path"` 28749 28750 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28751 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28752 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28753 # "foo.exe" is OK but "foo" is an error. 28754 # 28755 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28756 # It is also a way to make sure we got the proper file name for the real test later on. 28757 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28758 if test "x$test_shortpath" = x; then 28759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28761 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28762 fi 28763 28764 # Call helper function which possibly converts this using DOS-style short mode. 28765 # If so, the updated path is stored in $new_path. 28766 28767 input_path="$new_path" 28768 # Check if we need to convert this using DOS-style short mode. If the path 28769 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28770 # take no chances and rewrite it. 28771 # Note: m4 eats our [], so we need to use [ and ] instead. 28772 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28773 if test "x$has_forbidden_chars" != x; then 28774 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28775 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28776 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28777 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28778 # Going to short mode and back again did indeed matter. Since short mode is 28779 # case insensitive, let's make it lowercase to improve readability. 28780 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28781 # Now convert it back to Unix-style (cygpath) 28782 input_path=`$CYGPATH -u "$shortmode_path"` 28783 new_path="$input_path" 28784 fi 28785 fi 28786 28787 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28788 if test "x$test_cygdrive_prefix" = x; then 28789 # As a simple fix, exclude /usr/bin since it's not a real path. 28790 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28791 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28792 # a path prefixed by /cygdrive for fixpath to work. 28793 new_path="$CYGWIN_ROOT_PATH$input_path" 28794 fi 28795 fi 28796 28797 28798 if test "x$path" != "x$new_path"; then 28799 BOOT_JDK="$new_path" 28800 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28801 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28802 fi 28803 28804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28805 28806 path="$BOOT_JDK" 28807 has_colon=`$ECHO $path | $GREP ^.:` 28808 new_path="$path" 28809 if test "x$has_colon" = x; then 28810 # Not in mixed or Windows style, start by that. 28811 new_path=`cmd //c echo $path` 28812 fi 28813 28814 28815 input_path="$new_path" 28816 # Check if we need to convert this using DOS-style short mode. If the path 28817 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28818 # take no chances and rewrite it. 28819 # Note: m4 eats our [], so we need to use [ and ] instead. 28820 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28821 if test "x$has_forbidden_chars" != x; then 28822 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28823 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28824 fi 28825 28826 28827 windows_path="$new_path" 28828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28829 unix_path=`$CYGPATH -u "$windows_path"` 28830 new_path="$unix_path" 28831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28832 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28833 new_path="$unix_path" 28834 fi 28835 28836 if test "x$path" != "x$new_path"; then 28837 BOOT_JDK="$new_path" 28838 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28839 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28840 fi 28841 28842 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28843 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28844 28845 else 28846 # We're on a unix platform. Hooray! :) 28847 path="$BOOT_JDK" 28848 has_space=`$ECHO "$path" | $GREP " "` 28849 if test "x$has_space" != x; then 28850 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28851 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28852 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28853 fi 28854 28855 # Use eval to expand a potential ~ 28856 eval path="$path" 28857 if test ! -f "$path" && test ! -d "$path"; then 28858 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28859 fi 28860 28861 if test -d "$path"; then 28862 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28863 else 28864 dir="`$DIRNAME "$path"`" 28865 base="`$BASENAME "$path"`" 28866 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28867 fi 28868 fi 28869 fi 28870 28871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28872 $as_echo_n "checking for Boot JDK... " >&6; } 28873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28874 $as_echo "$BOOT_JDK" >&6; } 28875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28876 $as_echo_n "checking Boot JDK version... " >&6; } 28877 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28879 $as_echo "$BOOT_JDK_VERSION" >&6; } 28880 fi # end check jdk version 28881 fi # end check javac 28882 fi # end check java 28883 fi # end check boot jdk found 28884 fi 28885 28886 28887 if test "x$BOOT_JDK_FOUND" = xno; then 28888 # Now execute the test 28889 28890 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 28891 BOOT_JDK_SUFFIX="" 28892 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28893 if test "x$ALL_JDKS_FOUND" != x; then 28894 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28895 28896 if test "x$BOOT_JDK_FOUND" = xno; then 28897 # Now execute the test 28898 28899 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28900 if test -d "$BOOT_JDK"; then 28901 BOOT_JDK_FOUND=maybe 28902 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28903 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28904 fi 28905 28906 28907 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28908 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28909 # Do we have a bin/java? 28910 if test ! -x "$BOOT_JDK/bin/java"; then 28911 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28912 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28913 BOOT_JDK_FOUND=no 28914 else 28915 # Do we have a bin/javac? 28916 if test ! -x "$BOOT_JDK/bin/javac"; then 28917 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28918 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28919 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28920 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28921 BOOT_JDK_FOUND=no 28922 else 28923 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28924 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28925 28926 # Extra M4 quote needed to protect [] in grep expression. 28927 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28928 if test "x$FOUND_CORRECT_VERSION" = x; then 28929 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28930 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28931 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28932 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28933 BOOT_JDK_FOUND=no 28934 else 28935 # We're done! :-) 28936 BOOT_JDK_FOUND=yes 28937 28938 # Only process if variable expands to non-empty 28939 28940 if test "x$BOOT_JDK" != x; then 28941 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28942 28943 # Input might be given as Windows format, start by converting to 28944 # unix format. 28945 path="$BOOT_JDK" 28946 new_path=`$CYGPATH -u "$path"` 28947 28948 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28949 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28950 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28951 # "foo.exe" is OK but "foo" is an error. 28952 # 28953 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28954 # It is also a way to make sure we got the proper file name for the real test later on. 28955 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28956 if test "x$test_shortpath" = x; then 28957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28958 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28959 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28960 fi 28961 28962 # Call helper function which possibly converts this using DOS-style short mode. 28963 # If so, the updated path is stored in $new_path. 28964 28965 input_path="$new_path" 28966 # Check if we need to convert this using DOS-style short mode. If the path 28967 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28968 # take no chances and rewrite it. 28969 # Note: m4 eats our [], so we need to use [ and ] instead. 28970 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28971 if test "x$has_forbidden_chars" != x; then 28972 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28973 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28974 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28975 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28976 # Going to short mode and back again did indeed matter. Since short mode is 28977 # case insensitive, let's make it lowercase to improve readability. 28978 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28979 # Now convert it back to Unix-style (cygpath) 28980 input_path=`$CYGPATH -u "$shortmode_path"` 28981 new_path="$input_path" 28982 fi 28983 fi 28984 28985 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28986 if test "x$test_cygdrive_prefix" = x; then 28987 # As a simple fix, exclude /usr/bin since it's not a real path. 28988 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28989 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28990 # a path prefixed by /cygdrive for fixpath to work. 28991 new_path="$CYGWIN_ROOT_PATH$input_path" 28992 fi 28993 fi 28994 28995 28996 if test "x$path" != "x$new_path"; then 28997 BOOT_JDK="$new_path" 28998 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28999 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29000 fi 29001 29002 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29003 29004 path="$BOOT_JDK" 29005 has_colon=`$ECHO $path | $GREP ^.:` 29006 new_path="$path" 29007 if test "x$has_colon" = x; then 29008 # Not in mixed or Windows style, start by that. 29009 new_path=`cmd //c echo $path` 29010 fi 29011 29012 29013 input_path="$new_path" 29014 # Check if we need to convert this using DOS-style short mode. If the path 29015 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29016 # take no chances and rewrite it. 29017 # Note: m4 eats our [], so we need to use [ and ] instead. 29018 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29019 if test "x$has_forbidden_chars" != x; then 29020 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29021 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29022 fi 29023 29024 29025 windows_path="$new_path" 29026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29027 unix_path=`$CYGPATH -u "$windows_path"` 29028 new_path="$unix_path" 29029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29030 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29031 new_path="$unix_path" 29032 fi 29033 29034 if test "x$path" != "x$new_path"; then 29035 BOOT_JDK="$new_path" 29036 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29037 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29038 fi 29039 29040 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29041 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29042 29043 else 29044 # We're on a unix platform. Hooray! :) 29045 path="$BOOT_JDK" 29046 has_space=`$ECHO "$path" | $GREP " "` 29047 if test "x$has_space" != x; then 29048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29049 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29050 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29051 fi 29052 29053 # Use eval to expand a potential ~ 29054 eval path="$path" 29055 if test ! -f "$path" && test ! -d "$path"; then 29056 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29057 fi 29058 29059 if test -d "$path"; then 29060 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29061 else 29062 dir="`$DIRNAME "$path"`" 29063 base="`$BASENAME "$path"`" 29064 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29065 fi 29066 fi 29067 fi 29068 29069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29070 $as_echo_n "checking for Boot JDK... " >&6; } 29071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29072 $as_echo "$BOOT_JDK" >&6; } 29073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29074 $as_echo_n "checking Boot JDK version... " >&6; } 29075 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29077 $as_echo "$BOOT_JDK_VERSION" >&6; } 29078 fi # end check jdk version 29079 fi # end check javac 29080 fi # end check java 29081 fi # end check boot jdk found 29082 fi 29083 29084 done 29085 fi 29086 29087 29088 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29089 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29090 # Do we have a bin/java? 29091 if test ! -x "$BOOT_JDK/bin/java"; then 29092 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29093 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29094 BOOT_JDK_FOUND=no 29095 else 29096 # Do we have a bin/javac? 29097 if test ! -x "$BOOT_JDK/bin/javac"; then 29098 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29099 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29100 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29101 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29102 BOOT_JDK_FOUND=no 29103 else 29104 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29105 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29106 29107 # Extra M4 quote needed to protect [] in grep expression. 29108 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29109 if test "x$FOUND_CORRECT_VERSION" = x; then 29110 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29111 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29112 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29113 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29114 BOOT_JDK_FOUND=no 29115 else 29116 # We're done! :-) 29117 BOOT_JDK_FOUND=yes 29118 29119 # Only process if variable expands to non-empty 29120 29121 if test "x$BOOT_JDK" != x; then 29122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29123 29124 # Input might be given as Windows format, start by converting to 29125 # unix format. 29126 path="$BOOT_JDK" 29127 new_path=`$CYGPATH -u "$path"` 29128 29129 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29130 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29131 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29132 # "foo.exe" is OK but "foo" is an error. 29133 # 29134 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29135 # It is also a way to make sure we got the proper file name for the real test later on. 29136 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29137 if test "x$test_shortpath" = x; then 29138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29139 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29140 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29141 fi 29142 29143 # Call helper function which possibly converts this using DOS-style short mode. 29144 # If so, the updated path is stored in $new_path. 29145 29146 input_path="$new_path" 29147 # Check if we need to convert this using DOS-style short mode. If the path 29148 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29149 # take no chances and rewrite it. 29150 # Note: m4 eats our [], so we need to use [ and ] instead. 29151 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29152 if test "x$has_forbidden_chars" != x; then 29153 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29154 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29155 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29156 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29157 # Going to short mode and back again did indeed matter. Since short mode is 29158 # case insensitive, let's make it lowercase to improve readability. 29159 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29160 # Now convert it back to Unix-style (cygpath) 29161 input_path=`$CYGPATH -u "$shortmode_path"` 29162 new_path="$input_path" 29163 fi 29164 fi 29165 29166 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29167 if test "x$test_cygdrive_prefix" = x; then 29168 # As a simple fix, exclude /usr/bin since it's not a real path. 29169 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29170 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29171 # a path prefixed by /cygdrive for fixpath to work. 29172 new_path="$CYGWIN_ROOT_PATH$input_path" 29173 fi 29174 fi 29175 29176 29177 if test "x$path" != "x$new_path"; then 29178 BOOT_JDK="$new_path" 29179 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29180 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29181 fi 29182 29183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29184 29185 path="$BOOT_JDK" 29186 has_colon=`$ECHO $path | $GREP ^.:` 29187 new_path="$path" 29188 if test "x$has_colon" = x; then 29189 # Not in mixed or Windows style, start by that. 29190 new_path=`cmd //c echo $path` 29191 fi 29192 29193 29194 input_path="$new_path" 29195 # Check if we need to convert this using DOS-style short mode. If the path 29196 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29197 # take no chances and rewrite it. 29198 # Note: m4 eats our [], so we need to use [ and ] instead. 29199 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29200 if test "x$has_forbidden_chars" != x; then 29201 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29202 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29203 fi 29204 29205 29206 windows_path="$new_path" 29207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29208 unix_path=`$CYGPATH -u "$windows_path"` 29209 new_path="$unix_path" 29210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29211 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29212 new_path="$unix_path" 29213 fi 29214 29215 if test "x$path" != "x$new_path"; then 29216 BOOT_JDK="$new_path" 29217 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29218 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29219 fi 29220 29221 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29222 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29223 29224 else 29225 # We're on a unix platform. Hooray! :) 29226 path="$BOOT_JDK" 29227 has_space=`$ECHO "$path" | $GREP " "` 29228 if test "x$has_space" != x; then 29229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29230 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29231 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29232 fi 29233 29234 # Use eval to expand a potential ~ 29235 eval path="$path" 29236 if test ! -f "$path" && test ! -d "$path"; then 29237 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29238 fi 29239 29240 if test -d "$path"; then 29241 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29242 else 29243 dir="`$DIRNAME "$path"`" 29244 base="`$BASENAME "$path"`" 29245 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29246 fi 29247 fi 29248 fi 29249 29250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29251 $as_echo_n "checking for Boot JDK... " >&6; } 29252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29253 $as_echo "$BOOT_JDK" >&6; } 29254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29255 $as_echo_n "checking Boot JDK version... " >&6; } 29256 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29258 $as_echo "$BOOT_JDK_VERSION" >&6; } 29259 fi # end check jdk version 29260 fi # end check javac 29261 fi # end check java 29262 fi # end check boot jdk found 29263 fi 29264 29265 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 29266 29267 if test "x$BOOT_JDK_FOUND" = xno; then 29268 # Now execute the test 29269 29270 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 29271 BOOT_JDK_SUFFIX="/Contents/Home" 29272 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29273 if test "x$ALL_JDKS_FOUND" != x; then 29274 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29275 29276 if test "x$BOOT_JDK_FOUND" = xno; then 29277 # Now execute the test 29278 29279 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29280 if test -d "$BOOT_JDK"; then 29281 BOOT_JDK_FOUND=maybe 29282 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29283 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29284 fi 29285 29286 29287 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29288 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29289 # Do we have a bin/java? 29290 if test ! -x "$BOOT_JDK/bin/java"; then 29291 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29292 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29293 BOOT_JDK_FOUND=no 29294 else 29295 # Do we have a bin/javac? 29296 if test ! -x "$BOOT_JDK/bin/javac"; then 29297 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29298 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29299 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29300 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29301 BOOT_JDK_FOUND=no 29302 else 29303 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29304 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29305 29306 # Extra M4 quote needed to protect [] in grep expression. 29307 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29308 if test "x$FOUND_CORRECT_VERSION" = x; then 29309 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29310 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29311 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29312 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29313 BOOT_JDK_FOUND=no 29314 else 29315 # We're done! :-) 29316 BOOT_JDK_FOUND=yes 29317 29318 # Only process if variable expands to non-empty 29319 29320 if test "x$BOOT_JDK" != x; then 29321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29322 29323 # Input might be given as Windows format, start by converting to 29324 # unix format. 29325 path="$BOOT_JDK" 29326 new_path=`$CYGPATH -u "$path"` 29327 29328 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29329 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29330 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29331 # "foo.exe" is OK but "foo" is an error. 29332 # 29333 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29334 # It is also a way to make sure we got the proper file name for the real test later on. 29335 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29336 if test "x$test_shortpath" = x; then 29337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29338 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29339 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29340 fi 29341 29342 # Call helper function which possibly converts this using DOS-style short mode. 29343 # If so, the updated path is stored in $new_path. 29344 29345 input_path="$new_path" 29346 # Check if we need to convert this using DOS-style short mode. If the path 29347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29348 # take no chances and rewrite it. 29349 # Note: m4 eats our [], so we need to use [ and ] instead. 29350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29351 if test "x$has_forbidden_chars" != x; then 29352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29353 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29354 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29355 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29356 # Going to short mode and back again did indeed matter. Since short mode is 29357 # case insensitive, let's make it lowercase to improve readability. 29358 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29359 # Now convert it back to Unix-style (cygpath) 29360 input_path=`$CYGPATH -u "$shortmode_path"` 29361 new_path="$input_path" 29362 fi 29363 fi 29364 29365 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29366 if test "x$test_cygdrive_prefix" = x; then 29367 # As a simple fix, exclude /usr/bin since it's not a real path. 29368 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29369 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29370 # a path prefixed by /cygdrive for fixpath to work. 29371 new_path="$CYGWIN_ROOT_PATH$input_path" 29372 fi 29373 fi 29374 29375 29376 if test "x$path" != "x$new_path"; then 29377 BOOT_JDK="$new_path" 29378 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29379 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29380 fi 29381 29382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29383 29384 path="$BOOT_JDK" 29385 has_colon=`$ECHO $path | $GREP ^.:` 29386 new_path="$path" 29387 if test "x$has_colon" = x; then 29388 # Not in mixed or Windows style, start by that. 29389 new_path=`cmd //c echo $path` 29390 fi 29391 29392 29393 input_path="$new_path" 29394 # Check if we need to convert this using DOS-style short mode. If the path 29395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29396 # take no chances and rewrite it. 29397 # Note: m4 eats our [], so we need to use [ and ] instead. 29398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29399 if test "x$has_forbidden_chars" != x; then 29400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29401 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29402 fi 29403 29404 29405 windows_path="$new_path" 29406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29407 unix_path=`$CYGPATH -u "$windows_path"` 29408 new_path="$unix_path" 29409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29411 new_path="$unix_path" 29412 fi 29413 29414 if test "x$path" != "x$new_path"; then 29415 BOOT_JDK="$new_path" 29416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29417 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29418 fi 29419 29420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29422 29423 else 29424 # We're on a unix platform. Hooray! :) 29425 path="$BOOT_JDK" 29426 has_space=`$ECHO "$path" | $GREP " "` 29427 if test "x$has_space" != x; then 29428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29429 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29430 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29431 fi 29432 29433 # Use eval to expand a potential ~ 29434 eval path="$path" 29435 if test ! -f "$path" && test ! -d "$path"; then 29436 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29437 fi 29438 29439 if test -d "$path"; then 29440 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29441 else 29442 dir="`$DIRNAME "$path"`" 29443 base="`$BASENAME "$path"`" 29444 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29445 fi 29446 fi 29447 fi 29448 29449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29450 $as_echo_n "checking for Boot JDK... " >&6; } 29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29452 $as_echo "$BOOT_JDK" >&6; } 29453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29454 $as_echo_n "checking Boot JDK version... " >&6; } 29455 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29457 $as_echo "$BOOT_JDK_VERSION" >&6; } 29458 fi # end check jdk version 29459 fi # end check javac 29460 fi # end check java 29461 fi # end check boot jdk found 29462 fi 29463 29464 done 29465 fi 29466 29467 29468 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29469 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29470 # Do we have a bin/java? 29471 if test ! -x "$BOOT_JDK/bin/java"; then 29472 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29473 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29474 BOOT_JDK_FOUND=no 29475 else 29476 # Do we have a bin/javac? 29477 if test ! -x "$BOOT_JDK/bin/javac"; then 29478 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29479 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29480 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29481 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29482 BOOT_JDK_FOUND=no 29483 else 29484 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29485 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29486 29487 # Extra M4 quote needed to protect [] in grep expression. 29488 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29489 if test "x$FOUND_CORRECT_VERSION" = x; then 29490 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29491 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29492 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29493 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29494 BOOT_JDK_FOUND=no 29495 else 29496 # We're done! :-) 29497 BOOT_JDK_FOUND=yes 29498 29499 # Only process if variable expands to non-empty 29500 29501 if test "x$BOOT_JDK" != x; then 29502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29503 29504 # Input might be given as Windows format, start by converting to 29505 # unix format. 29506 path="$BOOT_JDK" 29507 new_path=`$CYGPATH -u "$path"` 29508 29509 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29510 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29511 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29512 # "foo.exe" is OK but "foo" is an error. 29513 # 29514 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29515 # It is also a way to make sure we got the proper file name for the real test later on. 29516 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29517 if test "x$test_shortpath" = x; then 29518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29519 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29520 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29521 fi 29522 29523 # Call helper function which possibly converts this using DOS-style short mode. 29524 # If so, the updated path is stored in $new_path. 29525 29526 input_path="$new_path" 29527 # Check if we need to convert this using DOS-style short mode. If the path 29528 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29529 # take no chances and rewrite it. 29530 # Note: m4 eats our [], so we need to use [ and ] instead. 29531 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29532 if test "x$has_forbidden_chars" != x; then 29533 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29534 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29535 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29536 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29537 # Going to short mode and back again did indeed matter. Since short mode is 29538 # case insensitive, let's make it lowercase to improve readability. 29539 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29540 # Now convert it back to Unix-style (cygpath) 29541 input_path=`$CYGPATH -u "$shortmode_path"` 29542 new_path="$input_path" 29543 fi 29544 fi 29545 29546 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29547 if test "x$test_cygdrive_prefix" = x; then 29548 # As a simple fix, exclude /usr/bin since it's not a real path. 29549 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29550 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29551 # a path prefixed by /cygdrive for fixpath to work. 29552 new_path="$CYGWIN_ROOT_PATH$input_path" 29553 fi 29554 fi 29555 29556 29557 if test "x$path" != "x$new_path"; then 29558 BOOT_JDK="$new_path" 29559 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29560 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29561 fi 29562 29563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29564 29565 path="$BOOT_JDK" 29566 has_colon=`$ECHO $path | $GREP ^.:` 29567 new_path="$path" 29568 if test "x$has_colon" = x; then 29569 # Not in mixed or Windows style, start by that. 29570 new_path=`cmd //c echo $path` 29571 fi 29572 29573 29574 input_path="$new_path" 29575 # Check if we need to convert this using DOS-style short mode. If the path 29576 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29577 # take no chances and rewrite it. 29578 # Note: m4 eats our [], so we need to use [ and ] instead. 29579 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29580 if test "x$has_forbidden_chars" != x; then 29581 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29582 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29583 fi 29584 29585 29586 windows_path="$new_path" 29587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29588 unix_path=`$CYGPATH -u "$windows_path"` 29589 new_path="$unix_path" 29590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29591 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29592 new_path="$unix_path" 29593 fi 29594 29595 if test "x$path" != "x$new_path"; then 29596 BOOT_JDK="$new_path" 29597 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29598 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29599 fi 29600 29601 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29602 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29603 29604 else 29605 # We're on a unix platform. Hooray! :) 29606 path="$BOOT_JDK" 29607 has_space=`$ECHO "$path" | $GREP " "` 29608 if test "x$has_space" != x; then 29609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29610 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29611 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29612 fi 29613 29614 # Use eval to expand a potential ~ 29615 eval path="$path" 29616 if test ! -f "$path" && test ! -d "$path"; then 29617 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29618 fi 29619 29620 if test -d "$path"; then 29621 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29622 else 29623 dir="`$DIRNAME "$path"`" 29624 base="`$BASENAME "$path"`" 29625 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29626 fi 29627 fi 29628 fi 29629 29630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29631 $as_echo_n "checking for Boot JDK... " >&6; } 29632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29633 $as_echo "$BOOT_JDK" >&6; } 29634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29635 $as_echo_n "checking Boot JDK version... " >&6; } 29636 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29638 $as_echo "$BOOT_JDK_VERSION" >&6; } 29639 fi # end check jdk version 29640 fi # end check javac 29641 fi # end check java 29642 fi # end check boot jdk found 29643 fi 29644 29645 29646 if test "x$BOOT_JDK_FOUND" = xno; then 29647 # Now execute the test 29648 29649 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 29650 BOOT_JDK_SUFFIX="/Contents/Home" 29651 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29652 if test "x$ALL_JDKS_FOUND" != x; then 29653 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29654 29655 if test "x$BOOT_JDK_FOUND" = xno; then 29656 # Now execute the test 29657 29658 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29659 if test -d "$BOOT_JDK"; then 29660 BOOT_JDK_FOUND=maybe 29661 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29662 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29663 fi 29664 29665 29666 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29667 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29668 # Do we have a bin/java? 29669 if test ! -x "$BOOT_JDK/bin/java"; then 29670 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29671 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29672 BOOT_JDK_FOUND=no 29673 else 29674 # Do we have a bin/javac? 29675 if test ! -x "$BOOT_JDK/bin/javac"; then 29676 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29677 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29678 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29679 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29680 BOOT_JDK_FOUND=no 29681 else 29682 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29683 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29684 29685 # Extra M4 quote needed to protect [] in grep expression. 29686 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29687 if test "x$FOUND_CORRECT_VERSION" = x; then 29688 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29689 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29690 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29691 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29692 BOOT_JDK_FOUND=no 29693 else 29694 # We're done! :-) 29695 BOOT_JDK_FOUND=yes 29696 29697 # Only process if variable expands to non-empty 29698 29699 if test "x$BOOT_JDK" != x; then 29700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29701 29702 # Input might be given as Windows format, start by converting to 29703 # unix format. 29704 path="$BOOT_JDK" 29705 new_path=`$CYGPATH -u "$path"` 29706 29707 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29708 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29709 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29710 # "foo.exe" is OK but "foo" is an error. 29711 # 29712 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29713 # It is also a way to make sure we got the proper file name for the real test later on. 29714 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29715 if test "x$test_shortpath" = x; then 29716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29717 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29718 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29719 fi 29720 29721 # Call helper function which possibly converts this using DOS-style short mode. 29722 # If so, the updated path is stored in $new_path. 29723 29724 input_path="$new_path" 29725 # Check if we need to convert this using DOS-style short mode. If the path 29726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29727 # take no chances and rewrite it. 29728 # Note: m4 eats our [], so we need to use [ and ] instead. 29729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29730 if test "x$has_forbidden_chars" != x; then 29731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29732 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29733 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29734 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29735 # Going to short mode and back again did indeed matter. Since short mode is 29736 # case insensitive, let's make it lowercase to improve readability. 29737 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29738 # Now convert it back to Unix-style (cygpath) 29739 input_path=`$CYGPATH -u "$shortmode_path"` 29740 new_path="$input_path" 29741 fi 29742 fi 29743 29744 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29745 if test "x$test_cygdrive_prefix" = x; then 29746 # As a simple fix, exclude /usr/bin since it's not a real path. 29747 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29748 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29749 # a path prefixed by /cygdrive for fixpath to work. 29750 new_path="$CYGWIN_ROOT_PATH$input_path" 29751 fi 29752 fi 29753 29754 29755 if test "x$path" != "x$new_path"; then 29756 BOOT_JDK="$new_path" 29757 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29758 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29759 fi 29760 29761 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29762 29763 path="$BOOT_JDK" 29764 has_colon=`$ECHO $path | $GREP ^.:` 29765 new_path="$path" 29766 if test "x$has_colon" = x; then 29767 # Not in mixed or Windows style, start by that. 29768 new_path=`cmd //c echo $path` 29769 fi 29770 29771 29772 input_path="$new_path" 29773 # Check if we need to convert this using DOS-style short mode. If the path 29774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29775 # take no chances and rewrite it. 29776 # Note: m4 eats our [], so we need to use [ and ] instead. 29777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29778 if test "x$has_forbidden_chars" != x; then 29779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29780 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29781 fi 29782 29783 29784 windows_path="$new_path" 29785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29786 unix_path=`$CYGPATH -u "$windows_path"` 29787 new_path="$unix_path" 29788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29789 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29790 new_path="$unix_path" 29791 fi 29792 29793 if test "x$path" != "x$new_path"; then 29794 BOOT_JDK="$new_path" 29795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29796 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29797 fi 29798 29799 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29800 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29801 29802 else 29803 # We're on a unix platform. Hooray! :) 29804 path="$BOOT_JDK" 29805 has_space=`$ECHO "$path" | $GREP " "` 29806 if test "x$has_space" != x; then 29807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29808 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29809 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29810 fi 29811 29812 # Use eval to expand a potential ~ 29813 eval path="$path" 29814 if test ! -f "$path" && test ! -d "$path"; then 29815 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29816 fi 29817 29818 if test -d "$path"; then 29819 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29820 else 29821 dir="`$DIRNAME "$path"`" 29822 base="`$BASENAME "$path"`" 29823 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29824 fi 29825 fi 29826 fi 29827 29828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29829 $as_echo_n "checking for Boot JDK... " >&6; } 29830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29831 $as_echo "$BOOT_JDK" >&6; } 29832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29833 $as_echo_n "checking Boot JDK version... " >&6; } 29834 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29836 $as_echo "$BOOT_JDK_VERSION" >&6; } 29837 fi # end check jdk version 29838 fi # end check javac 29839 fi # end check java 29840 fi # end check boot jdk found 29841 fi 29842 29843 done 29844 fi 29845 29846 29847 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29848 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29849 # Do we have a bin/java? 29850 if test ! -x "$BOOT_JDK/bin/java"; then 29851 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29852 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29853 BOOT_JDK_FOUND=no 29854 else 29855 # Do we have a bin/javac? 29856 if test ! -x "$BOOT_JDK/bin/javac"; then 29857 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29858 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29859 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29860 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29861 BOOT_JDK_FOUND=no 29862 else 29863 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29864 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29865 29866 # Extra M4 quote needed to protect [] in grep expression. 29867 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29868 if test "x$FOUND_CORRECT_VERSION" = x; then 29869 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29870 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29871 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29872 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29873 BOOT_JDK_FOUND=no 29874 else 29875 # We're done! :-) 29876 BOOT_JDK_FOUND=yes 29877 29878 # Only process if variable expands to non-empty 29879 29880 if test "x$BOOT_JDK" != x; then 29881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29882 29883 # Input might be given as Windows format, start by converting to 29884 # unix format. 29885 path="$BOOT_JDK" 29886 new_path=`$CYGPATH -u "$path"` 29887 29888 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29889 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29890 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29891 # "foo.exe" is OK but "foo" is an error. 29892 # 29893 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29894 # It is also a way to make sure we got the proper file name for the real test later on. 29895 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29896 if test "x$test_shortpath" = x; then 29897 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29898 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29899 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29900 fi 29901 29902 # Call helper function which possibly converts this using DOS-style short mode. 29903 # If so, the updated path is stored in $new_path. 29904 29905 input_path="$new_path" 29906 # Check if we need to convert this using DOS-style short mode. If the path 29907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29908 # take no chances and rewrite it. 29909 # Note: m4 eats our [], so we need to use [ and ] instead. 29910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29911 if test "x$has_forbidden_chars" != x; then 29912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29913 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29914 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29915 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29916 # Going to short mode and back again did indeed matter. Since short mode is 29917 # case insensitive, let's make it lowercase to improve readability. 29918 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29919 # Now convert it back to Unix-style (cygpath) 29920 input_path=`$CYGPATH -u "$shortmode_path"` 29921 new_path="$input_path" 29922 fi 29923 fi 29924 29925 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29926 if test "x$test_cygdrive_prefix" = x; then 29927 # As a simple fix, exclude /usr/bin since it's not a real path. 29928 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29929 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29930 # a path prefixed by /cygdrive for fixpath to work. 29931 new_path="$CYGWIN_ROOT_PATH$input_path" 29932 fi 29933 fi 29934 29935 29936 if test "x$path" != "x$new_path"; then 29937 BOOT_JDK="$new_path" 29938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29939 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29940 fi 29941 29942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29943 29944 path="$BOOT_JDK" 29945 has_colon=`$ECHO $path | $GREP ^.:` 29946 new_path="$path" 29947 if test "x$has_colon" = x; then 29948 # Not in mixed or Windows style, start by that. 29949 new_path=`cmd //c echo $path` 29950 fi 29951 29952 29953 input_path="$new_path" 29954 # Check if we need to convert this using DOS-style short mode. If the path 29955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29956 # take no chances and rewrite it. 29957 # Note: m4 eats our [], so we need to use [ and ] instead. 29958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29959 if test "x$has_forbidden_chars" != x; then 29960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29961 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29962 fi 29963 29964 29965 windows_path="$new_path" 29966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29967 unix_path=`$CYGPATH -u "$windows_path"` 29968 new_path="$unix_path" 29969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29970 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29971 new_path="$unix_path" 29972 fi 29973 29974 if test "x$path" != "x$new_path"; then 29975 BOOT_JDK="$new_path" 29976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29977 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29978 fi 29979 29980 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29981 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29982 29983 else 29984 # We're on a unix platform. Hooray! :) 29985 path="$BOOT_JDK" 29986 has_space=`$ECHO "$path" | $GREP " "` 29987 if test "x$has_space" != x; then 29988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29989 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29990 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29991 fi 29992 29993 # Use eval to expand a potential ~ 29994 eval path="$path" 29995 if test ! -f "$path" && test ! -d "$path"; then 29996 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29997 fi 29998 29999 if test -d "$path"; then 30000 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30001 else 30002 dir="`$DIRNAME "$path"`" 30003 base="`$BASENAME "$path"`" 30004 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30005 fi 30006 fi 30007 fi 30008 30009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30010 $as_echo_n "checking for Boot JDK... " >&6; } 30011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30012 $as_echo "$BOOT_JDK" >&6; } 30013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30014 $as_echo_n "checking Boot JDK version... " >&6; } 30015 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30017 $as_echo "$BOOT_JDK_VERSION" >&6; } 30018 fi # end check jdk version 30019 fi # end check javac 30020 fi # end check java 30021 fi # end check boot jdk found 30022 fi 30023 30024 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 30025 30026 if test "x$BOOT_JDK_FOUND" = xno; then 30027 # Now execute the test 30028 30029 BOOT_JDK_PREFIX="/usr/lib/jvm" 30030 BOOT_JDK_SUFFIX="" 30031 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 30032 if test "x$ALL_JDKS_FOUND" != x; then 30033 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 30034 30035 if test "x$BOOT_JDK_FOUND" = xno; then 30036 # Now execute the test 30037 30038 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 30039 if test -d "$BOOT_JDK"; then 30040 BOOT_JDK_FOUND=maybe 30041 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 30042 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 30043 fi 30044 30045 30046 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30047 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30048 # Do we have a bin/java? 30049 if test ! -x "$BOOT_JDK/bin/java"; then 30050 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30051 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30052 BOOT_JDK_FOUND=no 30053 else 30054 # Do we have a bin/javac? 30055 if test ! -x "$BOOT_JDK/bin/javac"; then 30056 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30057 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30058 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30059 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30060 BOOT_JDK_FOUND=no 30061 else 30062 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30063 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30064 30065 # Extra M4 quote needed to protect [] in grep expression. 30066 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30067 if test "x$FOUND_CORRECT_VERSION" = x; then 30068 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30069 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30070 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30071 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30072 BOOT_JDK_FOUND=no 30073 else 30074 # We're done! :-) 30075 BOOT_JDK_FOUND=yes 30076 30077 # Only process if variable expands to non-empty 30078 30079 if test "x$BOOT_JDK" != x; then 30080 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30081 30082 # Input might be given as Windows format, start by converting to 30083 # unix format. 30084 path="$BOOT_JDK" 30085 new_path=`$CYGPATH -u "$path"` 30086 30087 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30088 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30089 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30090 # "foo.exe" is OK but "foo" is an error. 30091 # 30092 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30093 # It is also a way to make sure we got the proper file name for the real test later on. 30094 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30095 if test "x$test_shortpath" = x; then 30096 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30097 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30098 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30099 fi 30100 30101 # Call helper function which possibly converts this using DOS-style short mode. 30102 # If so, the updated path is stored in $new_path. 30103 30104 input_path="$new_path" 30105 # Check if we need to convert this using DOS-style short mode. If the path 30106 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30107 # take no chances and rewrite it. 30108 # Note: m4 eats our [], so we need to use [ and ] instead. 30109 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30110 if test "x$has_forbidden_chars" != x; then 30111 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30112 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30113 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30114 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30115 # Going to short mode and back again did indeed matter. Since short mode is 30116 # case insensitive, let's make it lowercase to improve readability. 30117 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30118 # Now convert it back to Unix-style (cygpath) 30119 input_path=`$CYGPATH -u "$shortmode_path"` 30120 new_path="$input_path" 30121 fi 30122 fi 30123 30124 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30125 if test "x$test_cygdrive_prefix" = x; then 30126 # As a simple fix, exclude /usr/bin since it's not a real path. 30127 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30128 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30129 # a path prefixed by /cygdrive for fixpath to work. 30130 new_path="$CYGWIN_ROOT_PATH$input_path" 30131 fi 30132 fi 30133 30134 30135 if test "x$path" != "x$new_path"; then 30136 BOOT_JDK="$new_path" 30137 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30138 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30139 fi 30140 30141 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30142 30143 path="$BOOT_JDK" 30144 has_colon=`$ECHO $path | $GREP ^.:` 30145 new_path="$path" 30146 if test "x$has_colon" = x; then 30147 # Not in mixed or Windows style, start by that. 30148 new_path=`cmd //c echo $path` 30149 fi 30150 30151 30152 input_path="$new_path" 30153 # Check if we need to convert this using DOS-style short mode. If the path 30154 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30155 # take no chances and rewrite it. 30156 # Note: m4 eats our [], so we need to use [ and ] instead. 30157 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30158 if test "x$has_forbidden_chars" != x; then 30159 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30160 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30161 fi 30162 30163 30164 windows_path="$new_path" 30165 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30166 unix_path=`$CYGPATH -u "$windows_path"` 30167 new_path="$unix_path" 30168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30169 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30170 new_path="$unix_path" 30171 fi 30172 30173 if test "x$path" != "x$new_path"; then 30174 BOOT_JDK="$new_path" 30175 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30176 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30177 fi 30178 30179 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30180 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30181 30182 else 30183 # We're on a unix platform. Hooray! :) 30184 path="$BOOT_JDK" 30185 has_space=`$ECHO "$path" | $GREP " "` 30186 if test "x$has_space" != x; then 30187 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30188 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30189 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30190 fi 30191 30192 # Use eval to expand a potential ~ 30193 eval path="$path" 30194 if test ! -f "$path" && test ! -d "$path"; then 30195 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30196 fi 30197 30198 if test -d "$path"; then 30199 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30200 else 30201 dir="`$DIRNAME "$path"`" 30202 base="`$BASENAME "$path"`" 30203 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30204 fi 30205 fi 30206 fi 30207 30208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30209 $as_echo_n "checking for Boot JDK... " >&6; } 30210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30211 $as_echo "$BOOT_JDK" >&6; } 30212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30213 $as_echo_n "checking Boot JDK version... " >&6; } 30214 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30216 $as_echo "$BOOT_JDK_VERSION" >&6; } 30217 fi # end check jdk version 30218 fi # end check javac 30219 fi # end check java 30220 fi # end check boot jdk found 30221 fi 30222 30223 done 30224 fi 30225 30226 30227 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30228 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30229 # Do we have a bin/java? 30230 if test ! -x "$BOOT_JDK/bin/java"; then 30231 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30233 BOOT_JDK_FOUND=no 30234 else 30235 # Do we have a bin/javac? 30236 if test ! -x "$BOOT_JDK/bin/javac"; then 30237 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30239 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30240 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30241 BOOT_JDK_FOUND=no 30242 else 30243 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30244 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30245 30246 # Extra M4 quote needed to protect [] in grep expression. 30247 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30248 if test "x$FOUND_CORRECT_VERSION" = x; then 30249 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30250 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30251 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30252 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30253 BOOT_JDK_FOUND=no 30254 else 30255 # We're done! :-) 30256 BOOT_JDK_FOUND=yes 30257 30258 # Only process if variable expands to non-empty 30259 30260 if test "x$BOOT_JDK" != x; then 30261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30262 30263 # Input might be given as Windows format, start by converting to 30264 # unix format. 30265 path="$BOOT_JDK" 30266 new_path=`$CYGPATH -u "$path"` 30267 30268 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30269 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30270 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30271 # "foo.exe" is OK but "foo" is an error. 30272 # 30273 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30274 # It is also a way to make sure we got the proper file name for the real test later on. 30275 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30276 if test "x$test_shortpath" = x; then 30277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30278 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30279 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30280 fi 30281 30282 # Call helper function which possibly converts this using DOS-style short mode. 30283 # If so, the updated path is stored in $new_path. 30284 30285 input_path="$new_path" 30286 # Check if we need to convert this using DOS-style short mode. If the path 30287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30288 # take no chances and rewrite it. 30289 # Note: m4 eats our [], so we need to use [ and ] instead. 30290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30291 if test "x$has_forbidden_chars" != x; then 30292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30293 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30294 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30295 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30296 # Going to short mode and back again did indeed matter. Since short mode is 30297 # case insensitive, let's make it lowercase to improve readability. 30298 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30299 # Now convert it back to Unix-style (cygpath) 30300 input_path=`$CYGPATH -u "$shortmode_path"` 30301 new_path="$input_path" 30302 fi 30303 fi 30304 30305 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30306 if test "x$test_cygdrive_prefix" = x; then 30307 # As a simple fix, exclude /usr/bin since it's not a real path. 30308 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30309 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30310 # a path prefixed by /cygdrive for fixpath to work. 30311 new_path="$CYGWIN_ROOT_PATH$input_path" 30312 fi 30313 fi 30314 30315 30316 if test "x$path" != "x$new_path"; then 30317 BOOT_JDK="$new_path" 30318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30319 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30320 fi 30321 30322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30323 30324 path="$BOOT_JDK" 30325 has_colon=`$ECHO $path | $GREP ^.:` 30326 new_path="$path" 30327 if test "x$has_colon" = x; then 30328 # Not in mixed or Windows style, start by that. 30329 new_path=`cmd //c echo $path` 30330 fi 30331 30332 30333 input_path="$new_path" 30334 # Check if we need to convert this using DOS-style short mode. If the path 30335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30336 # take no chances and rewrite it. 30337 # Note: m4 eats our [], so we need to use [ and ] instead. 30338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30339 if test "x$has_forbidden_chars" != x; then 30340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30341 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30342 fi 30343 30344 30345 windows_path="$new_path" 30346 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30347 unix_path=`$CYGPATH -u "$windows_path"` 30348 new_path="$unix_path" 30349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30350 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30351 new_path="$unix_path" 30352 fi 30353 30354 if test "x$path" != "x$new_path"; then 30355 BOOT_JDK="$new_path" 30356 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30357 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30358 fi 30359 30360 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30361 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30362 30363 else 30364 # We're on a unix platform. Hooray! :) 30365 path="$BOOT_JDK" 30366 has_space=`$ECHO "$path" | $GREP " "` 30367 if test "x$has_space" != x; then 30368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30369 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30370 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30371 fi 30372 30373 # Use eval to expand a potential ~ 30374 eval path="$path" 30375 if test ! -f "$path" && test ! -d "$path"; then 30376 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30377 fi 30378 30379 if test -d "$path"; then 30380 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30381 else 30382 dir="`$DIRNAME "$path"`" 30383 base="`$BASENAME "$path"`" 30384 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30385 fi 30386 fi 30387 fi 30388 30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30390 $as_echo_n "checking for Boot JDK... " >&6; } 30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30392 $as_echo "$BOOT_JDK" >&6; } 30393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30394 $as_echo_n "checking Boot JDK version... " >&6; } 30395 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30397 $as_echo "$BOOT_JDK_VERSION" >&6; } 30398 fi # end check jdk version 30399 fi # end check javac 30400 fi # end check java 30401 fi # end check boot jdk found 30402 fi 30403 30404 fi 30405 30406 30407 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30408 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30409 # Do we have a bin/java? 30410 if test ! -x "$BOOT_JDK/bin/java"; then 30411 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30412 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30413 BOOT_JDK_FOUND=no 30414 else 30415 # Do we have a bin/javac? 30416 if test ! -x "$BOOT_JDK/bin/javac"; then 30417 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30418 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30419 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30420 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30421 BOOT_JDK_FOUND=no 30422 else 30423 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30424 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30425 30426 # Extra M4 quote needed to protect [] in grep expression. 30427 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30428 if test "x$FOUND_CORRECT_VERSION" = x; then 30429 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30430 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30431 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30432 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30433 BOOT_JDK_FOUND=no 30434 else 30435 # We're done! :-) 30436 BOOT_JDK_FOUND=yes 30437 30438 # Only process if variable expands to non-empty 30439 30440 if test "x$BOOT_JDK" != x; then 30441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30442 30443 # Input might be given as Windows format, start by converting to 30444 # unix format. 30445 path="$BOOT_JDK" 30446 new_path=`$CYGPATH -u "$path"` 30447 30448 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30449 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30450 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30451 # "foo.exe" is OK but "foo" is an error. 30452 # 30453 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30454 # It is also a way to make sure we got the proper file name for the real test later on. 30455 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30456 if test "x$test_shortpath" = x; then 30457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30458 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30459 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30460 fi 30461 30462 # Call helper function which possibly converts this using DOS-style short mode. 30463 # If so, the updated path is stored in $new_path. 30464 30465 input_path="$new_path" 30466 # Check if we need to convert this using DOS-style short mode. If the path 30467 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30468 # take no chances and rewrite it. 30469 # Note: m4 eats our [], so we need to use [ and ] instead. 30470 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30471 if test "x$has_forbidden_chars" != x; then 30472 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30473 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30474 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30475 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30476 # Going to short mode and back again did indeed matter. Since short mode is 30477 # case insensitive, let's make it lowercase to improve readability. 30478 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30479 # Now convert it back to Unix-style (cygpath) 30480 input_path=`$CYGPATH -u "$shortmode_path"` 30481 new_path="$input_path" 30482 fi 30483 fi 30484 30485 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30486 if test "x$test_cygdrive_prefix" = x; then 30487 # As a simple fix, exclude /usr/bin since it's not a real path. 30488 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30489 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30490 # a path prefixed by /cygdrive for fixpath to work. 30491 new_path="$CYGWIN_ROOT_PATH$input_path" 30492 fi 30493 fi 30494 30495 30496 if test "x$path" != "x$new_path"; then 30497 BOOT_JDK="$new_path" 30498 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30499 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30500 fi 30501 30502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30503 30504 path="$BOOT_JDK" 30505 has_colon=`$ECHO $path | $GREP ^.:` 30506 new_path="$path" 30507 if test "x$has_colon" = x; then 30508 # Not in mixed or Windows style, start by that. 30509 new_path=`cmd //c echo $path` 30510 fi 30511 30512 30513 input_path="$new_path" 30514 # Check if we need to convert this using DOS-style short mode. If the path 30515 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30516 # take no chances and rewrite it. 30517 # Note: m4 eats our [], so we need to use [ and ] instead. 30518 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30519 if test "x$has_forbidden_chars" != x; then 30520 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30521 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30522 fi 30523 30524 30525 windows_path="$new_path" 30526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30527 unix_path=`$CYGPATH -u "$windows_path"` 30528 new_path="$unix_path" 30529 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30530 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30531 new_path="$unix_path" 30532 fi 30533 30534 if test "x$path" != "x$new_path"; then 30535 BOOT_JDK="$new_path" 30536 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30537 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30538 fi 30539 30540 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30541 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30542 30543 else 30544 # We're on a unix platform. Hooray! :) 30545 path="$BOOT_JDK" 30546 has_space=`$ECHO "$path" | $GREP " "` 30547 if test "x$has_space" != x; then 30548 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30549 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30550 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30551 fi 30552 30553 # Use eval to expand a potential ~ 30554 eval path="$path" 30555 if test ! -f "$path" && test ! -d "$path"; then 30556 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30557 fi 30558 30559 if test -d "$path"; then 30560 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30561 else 30562 dir="`$DIRNAME "$path"`" 30563 base="`$BASENAME "$path"`" 30564 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30565 fi 30566 fi 30567 fi 30568 30569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30570 $as_echo_n "checking for Boot JDK... " >&6; } 30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30572 $as_echo "$BOOT_JDK" >&6; } 30573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30574 $as_echo_n "checking Boot JDK version... " >&6; } 30575 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30577 $as_echo "$BOOT_JDK_VERSION" >&6; } 30578 fi # end check jdk version 30579 fi # end check javac 30580 fi # end check java 30581 fi # end check boot jdk found 30582 fi 30583 30584 30585 # If we haven't found anything yet, we've truly lost. Give up. 30586 if test "x$BOOT_JDK_FOUND" = xno; then 30587 30588 # Print a helpful message on how to acquire the necessary build dependency. 30589 # openjdk is the help tag: freetype, cups, alsa etc 30590 MISSING_DEPENDENCY=openjdk 30591 30592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30593 cygwin_help $MISSING_DEPENDENCY 30594 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30595 msys_help $MISSING_DEPENDENCY 30596 else 30597 PKGHANDLER_COMMAND= 30598 30599 case $PKGHANDLER in 30600 apt-get) 30601 apt_help $MISSING_DEPENDENCY ;; 30602 yum) 30603 yum_help $MISSING_DEPENDENCY ;; 30604 brew) 30605 brew_help $MISSING_DEPENDENCY ;; 30606 port) 30607 port_help $MISSING_DEPENDENCY ;; 30608 pkgutil) 30609 pkgutil_help $MISSING_DEPENDENCY ;; 30610 pkgadd) 30611 pkgadd_help $MISSING_DEPENDENCY ;; 30612 esac 30613 30614 if test "x$PKGHANDLER_COMMAND" != x; then 30615 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30616 fi 30617 fi 30618 30619 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 30620 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 30621 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitly setting --with-boot-jdk" >&5 30622 $as_echo "$as_me: This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30623 as_fn_error $? "Cannot continue" "$LINENO" 5 30624 fi 30625 30626 30627 30628 # Setup tools from the Boot JDK. 30629 30630 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30631 30632 # Publish this variable in the help. 30633 30634 30635 if [ -z "${JAVA+x}" ]; then 30636 # The variable is not set by user, try to locate tool using the code snippet 30637 30638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30639 $as_echo_n "checking for java in Boot JDK... " >&6; } 30640 JAVA=$BOOT_JDK/bin/java 30641 if test ! -x $JAVA; then 30642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30643 $as_echo "not found" >&6; } 30644 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30645 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30646 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30647 fi 30648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30649 $as_echo "ok" >&6; } 30650 30651 30652 else 30653 # The variable is set, but is it from the command line or the environment? 30654 30655 # Try to remove the string !JAVA! from our list. 30656 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 30657 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30658 # If it failed, the variable was not from the command line. Ignore it, 30659 # but warn the user (except for BASH, which is always set by the calling BASH). 30660 if test "xJAVA" != xBASH; then 30661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 30662 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 30663 fi 30664 # Try to locate tool using the code snippet 30665 30666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30667 $as_echo_n "checking for java in Boot JDK... " >&6; } 30668 JAVA=$BOOT_JDK/bin/java 30669 if test ! -x $JAVA; then 30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30671 $as_echo "not found" >&6; } 30672 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30673 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30674 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30675 fi 30676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30677 $as_echo "ok" >&6; } 30678 30679 30680 else 30681 # If it succeeded, then it was overridden by the user. We will use it 30682 # for the tool. 30683 30684 # First remove it from the list of overridden variables, so we can test 30685 # for unknown variables in the end. 30686 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30687 30688 # Check if we try to supply an empty value 30689 if test "x$JAVA" = x; then 30690 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30691 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30693 $as_echo_n "checking for JAVA... " >&6; } 30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30695 $as_echo "disabled" >&6; } 30696 else 30697 # Check if the provided tool contains a complete path. 30698 tool_specified="$JAVA" 30699 tool_basename="${tool_specified##*/}" 30700 if test "x$tool_basename" = "x$tool_specified"; then 30701 # A command without a complete path is provided, search $PATH. 30702 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30703 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30704 # Extract the first word of "$tool_basename", so it can be a program name with args. 30705 set dummy $tool_basename; ac_word=$2 30706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30707 $as_echo_n "checking for $ac_word... " >&6; } 30708 if ${ac_cv_path_JAVA+:} false; then : 30709 $as_echo_n "(cached) " >&6 30710 else 30711 case $JAVA in 30712 [\\/]* | ?:[\\/]*) 30713 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30714 ;; 30715 *) 30716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30717 for as_dir in $PATH 30718 do 30719 IFS=$as_save_IFS 30720 test -z "$as_dir" && as_dir=. 30721 for ac_exec_ext in '' $ac_executable_extensions; do 30722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30723 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30725 break 2 30726 fi 30727 done 30728 done 30729 IFS=$as_save_IFS 30730 30731 ;; 30732 esac 30733 fi 30734 JAVA=$ac_cv_path_JAVA 30735 if test -n "$JAVA"; then 30736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30737 $as_echo "$JAVA" >&6; } 30738 else 30739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30740 $as_echo "no" >&6; } 30741 fi 30742 30743 30744 if test "x$JAVA" = x; then 30745 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30746 fi 30747 else 30748 # Otherwise we believe it is a complete path. Use it as it is. 30749 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30750 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30752 $as_echo_n "checking for JAVA... " >&6; } 30753 if test ! -x "$tool_specified"; then 30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30755 $as_echo "not found" >&6; } 30756 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30757 fi 30758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30759 $as_echo "$tool_specified" >&6; } 30760 fi 30761 fi 30762 fi 30763 30764 fi 30765 30766 30767 30768 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30769 30770 # Publish this variable in the help. 30771 30772 30773 if [ -z "${JAVAC+x}" ]; then 30774 # The variable is not set by user, try to locate tool using the code snippet 30775 30776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30777 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30778 JAVAC=$BOOT_JDK/bin/javac 30779 if test ! -x $JAVAC; then 30780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30781 $as_echo "not found" >&6; } 30782 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30783 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30784 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30785 fi 30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30787 $as_echo "ok" >&6; } 30788 30789 30790 else 30791 # The variable is set, but is it from the command line or the environment? 30792 30793 # Try to remove the string !JAVAC! from our list. 30794 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30795 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30796 # If it failed, the variable was not from the command line. Ignore it, 30797 # but warn the user (except for BASH, which is always set by the calling BASH). 30798 if test "xJAVAC" != xBASH; then 30799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30800 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30801 fi 30802 # Try to locate tool using the code snippet 30803 30804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30805 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30806 JAVAC=$BOOT_JDK/bin/javac 30807 if test ! -x $JAVAC; then 30808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30809 $as_echo "not found" >&6; } 30810 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30811 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30812 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30813 fi 30814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30815 $as_echo "ok" >&6; } 30816 30817 30818 else 30819 # If it succeeded, then it was overridden by the user. We will use it 30820 # for the tool. 30821 30822 # First remove it from the list of overridden variables, so we can test 30823 # for unknown variables in the end. 30824 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30825 30826 # Check if we try to supply an empty value 30827 if test "x$JAVAC" = x; then 30828 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30829 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30831 $as_echo_n "checking for JAVAC... " >&6; } 30832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30833 $as_echo "disabled" >&6; } 30834 else 30835 # Check if the provided tool contains a complete path. 30836 tool_specified="$JAVAC" 30837 tool_basename="${tool_specified##*/}" 30838 if test "x$tool_basename" = "x$tool_specified"; then 30839 # A command without a complete path is provided, search $PATH. 30840 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30841 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30842 # Extract the first word of "$tool_basename", so it can be a program name with args. 30843 set dummy $tool_basename; ac_word=$2 30844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30845 $as_echo_n "checking for $ac_word... " >&6; } 30846 if ${ac_cv_path_JAVAC+:} false; then : 30847 $as_echo_n "(cached) " >&6 30848 else 30849 case $JAVAC in 30850 [\\/]* | ?:[\\/]*) 30851 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30852 ;; 30853 *) 30854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30855 for as_dir in $PATH 30856 do 30857 IFS=$as_save_IFS 30858 test -z "$as_dir" && as_dir=. 30859 for ac_exec_ext in '' $ac_executable_extensions; do 30860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30861 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30863 break 2 30864 fi 30865 done 30866 done 30867 IFS=$as_save_IFS 30868 30869 ;; 30870 esac 30871 fi 30872 JAVAC=$ac_cv_path_JAVAC 30873 if test -n "$JAVAC"; then 30874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30875 $as_echo "$JAVAC" >&6; } 30876 else 30877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30878 $as_echo "no" >&6; } 30879 fi 30880 30881 30882 if test "x$JAVAC" = x; then 30883 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30884 fi 30885 else 30886 # Otherwise we believe it is a complete path. Use it as it is. 30887 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 30888 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 30889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30890 $as_echo_n "checking for JAVAC... " >&6; } 30891 if test ! -x "$tool_specified"; then 30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30893 $as_echo "not found" >&6; } 30894 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 30895 fi 30896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30897 $as_echo "$tool_specified" >&6; } 30898 fi 30899 fi 30900 fi 30901 30902 fi 30903 30904 30905 30906 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30907 30908 # Publish this variable in the help. 30909 30910 30911 if [ -z "${JAVAH+x}" ]; then 30912 # The variable is not set by user, try to locate tool using the code snippet 30913 30914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30915 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30916 JAVAH=$BOOT_JDK/bin/javah 30917 if test ! -x $JAVAH; then 30918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30919 $as_echo "not found" >&6; } 30920 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30921 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30922 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30923 fi 30924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30925 $as_echo "ok" >&6; } 30926 30927 30928 else 30929 # The variable is set, but is it from the command line or the environment? 30930 30931 # Try to remove the string !JAVAH! from our list. 30932 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 30933 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30934 # If it failed, the variable was not from the command line. Ignore it, 30935 # but warn the user (except for BASH, which is always set by the calling BASH). 30936 if test "xJAVAH" != xBASH; then 30937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 30938 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 30939 fi 30940 # Try to locate tool using the code snippet 30941 30942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 30943 $as_echo_n "checking for javah in Boot JDK... " >&6; } 30944 JAVAH=$BOOT_JDK/bin/javah 30945 if test ! -x $JAVAH; then 30946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30947 $as_echo "not found" >&6; } 30948 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30949 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30950 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 30951 fi 30952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30953 $as_echo "ok" >&6; } 30954 30955 30956 else 30957 # If it succeeded, then it was overridden by the user. We will use it 30958 # for the tool. 30959 30960 # First remove it from the list of overridden variables, so we can test 30961 # for unknown variables in the end. 30962 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30963 30964 # Check if we try to supply an empty value 30965 if test "x$JAVAH" = x; then 30966 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 30967 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 30968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 30969 $as_echo_n "checking for JAVAH... " >&6; } 30970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30971 $as_echo "disabled" >&6; } 30972 else 30973 # Check if the provided tool contains a complete path. 30974 tool_specified="$JAVAH" 30975 tool_basename="${tool_specified##*/}" 30976 if test "x$tool_basename" = "x$tool_specified"; then 30977 # A command without a complete path is provided, search $PATH. 30978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 30979 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 30980 # Extract the first word of "$tool_basename", so it can be a program name with args. 30981 set dummy $tool_basename; ac_word=$2 30982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30983 $as_echo_n "checking for $ac_word... " >&6; } 30984 if ${ac_cv_path_JAVAH+:} false; then : 30985 $as_echo_n "(cached) " >&6 30986 else 30987 case $JAVAH in 30988 [\\/]* | ?:[\\/]*) 30989 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 30990 ;; 30991 *) 30992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30993 for as_dir in $PATH 30994 do 30995 IFS=$as_save_IFS 30996 test -z "$as_dir" && as_dir=. 30997 for ac_exec_ext in '' $ac_executable_extensions; do 30998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30999 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 31000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31001 break 2 31002 fi 31003 done 31004 done 31005 IFS=$as_save_IFS 31006 31007 ;; 31008 esac 31009 fi 31010 JAVAH=$ac_cv_path_JAVAH 31011 if test -n "$JAVAH"; then 31012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 31013 $as_echo "$JAVAH" >&6; } 31014 else 31015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31016 $as_echo "no" >&6; } 31017 fi 31018 31019 31020 if test "x$JAVAH" = x; then 31021 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31022 fi 31023 else 31024 # Otherwise we believe it is a complete path. Use it as it is. 31025 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 31026 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 31027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 31028 $as_echo_n "checking for JAVAH... " >&6; } 31029 if test ! -x "$tool_specified"; then 31030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31031 $as_echo "not found" >&6; } 31032 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 31033 fi 31034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31035 $as_echo "$tool_specified" >&6; } 31036 fi 31037 fi 31038 fi 31039 31040 fi 31041 31042 31043 31044 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31045 31046 # Publish this variable in the help. 31047 31048 31049 if [ -z "${JAVADOC+x}" ]; then 31050 # The variable is not set by user, try to locate tool using the code snippet 31051 31052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javadoc in Boot JDK" >&5 31053 $as_echo_n "checking for javadoc in Boot JDK... " >&6; } 31054 JAVADOC=$BOOT_JDK/bin/javadoc 31055 if test ! -x $JAVADOC; then 31056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31057 $as_echo "not found" >&6; } 31058 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31059 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31060 as_fn_error $? "Could not find javadoc in the Boot JDK" "$LINENO" 5 31061 fi 31062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31063 $as_echo "ok" >&6; } 31064 31065 31066 else 31067 # The variable is set, but is it from the command line or the environment? 31068 31069 # Try to remove the string !JAVADOC! from our list. 31070 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVADOC!/} 31071 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31072 # If it failed, the variable was not from the command line. Ignore it, 31073 # but warn the user (except for BASH, which is always set by the calling BASH). 31074 if test "xJAVADOC" != xBASH; then 31075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVADOC from the environment. Use command line variables instead." >&5 31076 $as_echo "$as_me: WARNING: Ignoring value of JAVADOC from the environment. Use command line variables instead." >&2;} 31077 fi 31078 # Try to locate tool using the code snippet 31079 31080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javadoc in Boot JDK" >&5 31081 $as_echo_n "checking for javadoc in Boot JDK... " >&6; } 31082 JAVADOC=$BOOT_JDK/bin/javadoc 31083 if test ! -x $JAVADOC; then 31084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31085 $as_echo "not found" >&6; } 31086 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31087 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31088 as_fn_error $? "Could not find javadoc in the Boot JDK" "$LINENO" 5 31089 fi 31090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31091 $as_echo "ok" >&6; } 31092 31093 31094 else 31095 # If it succeeded, then it was overridden by the user. We will use it 31096 # for the tool. 31097 31098 # First remove it from the list of overridden variables, so we can test 31099 # for unknown variables in the end. 31100 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31101 31102 # Check if we try to supply an empty value 31103 if test "x$JAVADOC" = x; then 31104 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVADOC= (no value)" >&5 31105 $as_echo "$as_me: Setting user supplied tool JAVADOC= (no value)" >&6;} 31106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVADOC" >&5 31107 $as_echo_n "checking for JAVADOC... " >&6; } 31108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31109 $as_echo "disabled" >&6; } 31110 else 31111 # Check if the provided tool contains a complete path. 31112 tool_specified="$JAVADOC" 31113 tool_basename="${tool_specified##*/}" 31114 if test "x$tool_basename" = "x$tool_specified"; then 31115 # A command without a complete path is provided, search $PATH. 31116 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVADOC=$tool_basename" >&5 31117 $as_echo "$as_me: Will search for user supplied tool JAVADOC=$tool_basename" >&6;} 31118 # Extract the first word of "$tool_basename", so it can be a program name with args. 31119 set dummy $tool_basename; ac_word=$2 31120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31121 $as_echo_n "checking for $ac_word... " >&6; } 31122 if ${ac_cv_path_JAVADOC+:} false; then : 31123 $as_echo_n "(cached) " >&6 31124 else 31125 case $JAVADOC in 31126 [\\/]* | ?:[\\/]*) 31127 ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path. 31128 ;; 31129 *) 31130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31131 for as_dir in $PATH 31132 do 31133 IFS=$as_save_IFS 31134 test -z "$as_dir" && as_dir=. 31135 for ac_exec_ext in '' $ac_executable_extensions; do 31136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31137 ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext" 31138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31139 break 2 31140 fi 31141 done 31142 done 31143 IFS=$as_save_IFS 31144 31145 ;; 31146 esac 31147 fi 31148 JAVADOC=$ac_cv_path_JAVADOC 31149 if test -n "$JAVADOC"; then 31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 31151 $as_echo "$JAVADOC" >&6; } 31152 else 31153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31154 $as_echo "no" >&6; } 31155 fi 31156 31157 31158 if test "x$JAVADOC" = x; then 31159 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31160 fi 31161 else 31162 # Otherwise we believe it is a complete path. Use it as it is. 31163 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVADOC=$tool_specified" >&5 31164 $as_echo "$as_me: Will use user supplied tool JAVADOC=$tool_specified" >&6;} 31165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVADOC" >&5 31166 $as_echo_n "checking for JAVADOC... " >&6; } 31167 if test ! -x "$tool_specified"; then 31168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31169 $as_echo "not found" >&6; } 31170 as_fn_error $? "User supplied tool JAVADOC=$tool_specified does not exist or is not executable" "$LINENO" 5 31171 fi 31172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31173 $as_echo "$tool_specified" >&6; } 31174 fi 31175 fi 31176 fi 31177 31178 fi 31179 31180 31181 31182 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31183 31184 # Publish this variable in the help. 31185 31186 31187 if [ -z "${JAR+x}" ]; then 31188 # The variable is not set by user, try to locate tool using the code snippet 31189 31190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31191 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31192 JAR=$BOOT_JDK/bin/jar 31193 if test ! -x $JAR; then 31194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31195 $as_echo "not found" >&6; } 31196 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31197 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31198 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31199 fi 31200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31201 $as_echo "ok" >&6; } 31202 31203 31204 else 31205 # The variable is set, but is it from the command line or the environment? 31206 31207 # Try to remove the string !JAR! from our list. 31208 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 31209 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31210 # If it failed, the variable was not from the command line. Ignore it, 31211 # but warn the user (except for BASH, which is always set by the calling BASH). 31212 if test "xJAR" != xBASH; then 31213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 31214 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 31215 fi 31216 # Try to locate tool using the code snippet 31217 31218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31219 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31220 JAR=$BOOT_JDK/bin/jar 31221 if test ! -x $JAR; then 31222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31223 $as_echo "not found" >&6; } 31224 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31225 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31226 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31227 fi 31228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31229 $as_echo "ok" >&6; } 31230 31231 31232 else 31233 # If it succeeded, then it was overridden by the user. We will use it 31234 # for the tool. 31235 31236 # First remove it from the list of overridden variables, so we can test 31237 # for unknown variables in the end. 31238 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31239 31240 # Check if we try to supply an empty value 31241 if test "x$JAR" = x; then 31242 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 31243 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 31244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31245 $as_echo_n "checking for JAR... " >&6; } 31246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31247 $as_echo "disabled" >&6; } 31248 else 31249 # Check if the provided tool contains a complete path. 31250 tool_specified="$JAR" 31251 tool_basename="${tool_specified##*/}" 31252 if test "x$tool_basename" = "x$tool_specified"; then 31253 # A command without a complete path is provided, search $PATH. 31254 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 31255 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 31256 # Extract the first word of "$tool_basename", so it can be a program name with args. 31257 set dummy $tool_basename; ac_word=$2 31258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31259 $as_echo_n "checking for $ac_word... " >&6; } 31260 if ${ac_cv_path_JAR+:} false; then : 31261 $as_echo_n "(cached) " >&6 31262 else 31263 case $JAR in 31264 [\\/]* | ?:[\\/]*) 31265 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 31266 ;; 31267 *) 31268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31269 for as_dir in $PATH 31270 do 31271 IFS=$as_save_IFS 31272 test -z "$as_dir" && as_dir=. 31273 for ac_exec_ext in '' $ac_executable_extensions; do 31274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31275 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 31276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31277 break 2 31278 fi 31279 done 31280 done 31281 IFS=$as_save_IFS 31282 31283 ;; 31284 esac 31285 fi 31286 JAR=$ac_cv_path_JAR 31287 if test -n "$JAR"; then 31288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 31289 $as_echo "$JAR" >&6; } 31290 else 31291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31292 $as_echo "no" >&6; } 31293 fi 31294 31295 31296 if test "x$JAR" = x; then 31297 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31298 fi 31299 else 31300 # Otherwise we believe it is a complete path. Use it as it is. 31301 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 31302 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 31303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31304 $as_echo_n "checking for JAR... " >&6; } 31305 if test ! -x "$tool_specified"; then 31306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31307 $as_echo "not found" >&6; } 31308 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 31309 fi 31310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31311 $as_echo "$tool_specified" >&6; } 31312 fi 31313 fi 31314 fi 31315 31316 fi 31317 31318 31319 31320 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31321 31322 # Publish this variable in the help. 31323 31324 31325 if [ -z "${JARSIGNER+x}" ]; then 31326 # The variable is not set by user, try to locate tool using the code snippet 31327 31328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31329 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31330 JARSIGNER=$BOOT_JDK/bin/jarsigner 31331 if test ! -x $JARSIGNER; then 31332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31333 $as_echo "not found" >&6; } 31334 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31335 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31336 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31337 fi 31338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31339 $as_echo "ok" >&6; } 31340 31341 31342 else 31343 # The variable is set, but is it from the command line or the environment? 31344 31345 # Try to remove the string !JARSIGNER! from our list. 31346 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 31347 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31348 # If it failed, the variable was not from the command line. Ignore it, 31349 # but warn the user (except for BASH, which is always set by the calling BASH). 31350 if test "xJARSIGNER" != xBASH; then 31351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 31352 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 31353 fi 31354 # Try to locate tool using the code snippet 31355 31356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31357 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31358 JARSIGNER=$BOOT_JDK/bin/jarsigner 31359 if test ! -x $JARSIGNER; then 31360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31361 $as_echo "not found" >&6; } 31362 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31363 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31364 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31365 fi 31366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31367 $as_echo "ok" >&6; } 31368 31369 31370 else 31371 # If it succeeded, then it was overridden by the user. We will use it 31372 # for the tool. 31373 31374 # First remove it from the list of overridden variables, so we can test 31375 # for unknown variables in the end. 31376 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31377 31378 # Check if we try to supply an empty value 31379 if test "x$JARSIGNER" = x; then 31380 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 31381 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 31382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31383 $as_echo_n "checking for JARSIGNER... " >&6; } 31384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31385 $as_echo "disabled" >&6; } 31386 else 31387 # Check if the provided tool contains a complete path. 31388 tool_specified="$JARSIGNER" 31389 tool_basename="${tool_specified##*/}" 31390 if test "x$tool_basename" = "x$tool_specified"; then 31391 # A command without a complete path is provided, search $PATH. 31392 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 31393 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 31394 # Extract the first word of "$tool_basename", so it can be a program name with args. 31395 set dummy $tool_basename; ac_word=$2 31396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31397 $as_echo_n "checking for $ac_word... " >&6; } 31398 if ${ac_cv_path_JARSIGNER+:} false; then : 31399 $as_echo_n "(cached) " >&6 31400 else 31401 case $JARSIGNER in 31402 [\\/]* | ?:[\\/]*) 31403 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 31404 ;; 31405 *) 31406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31407 for as_dir in $PATH 31408 do 31409 IFS=$as_save_IFS 31410 test -z "$as_dir" && as_dir=. 31411 for ac_exec_ext in '' $ac_executable_extensions; do 31412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31413 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 31414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31415 break 2 31416 fi 31417 done 31418 done 31419 IFS=$as_save_IFS 31420 31421 ;; 31422 esac 31423 fi 31424 JARSIGNER=$ac_cv_path_JARSIGNER 31425 if test -n "$JARSIGNER"; then 31426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 31427 $as_echo "$JARSIGNER" >&6; } 31428 else 31429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31430 $as_echo "no" >&6; } 31431 fi 31432 31433 31434 if test "x$JARSIGNER" = x; then 31435 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31436 fi 31437 else 31438 # Otherwise we believe it is a complete path. Use it as it is. 31439 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 31440 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 31441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31442 $as_echo_n "checking for JARSIGNER... " >&6; } 31443 if test ! -x "$tool_specified"; then 31444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31445 $as_echo "not found" >&6; } 31446 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 31447 fi 31448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31449 $as_echo "$tool_specified" >&6; } 31450 fi 31451 fi 31452 fi 31453 31454 fi 31455 31456 31457 31458 # Finally, set some other options... 31459 31460 # When compiling code to be executed by the Boot JDK, force compatibility with the 31461 # oldest supported bootjdk. 31462 BOOT_JDK_SOURCETARGET="-source 9 -target 9" 31463 31464 31465 31466 31467 # Check if the boot jdk is 32 or 64 bit 31468 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 31469 BOOT_JDK_BITS="64" 31470 else 31471 BOOT_JDK_BITS="32" 31472 fi 31473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 31474 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 31475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 31476 $as_echo "$BOOT_JDK_BITS" >&6; } 31477 31478 # Try to enable CDS 31479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local Boot JDK Class Data Sharing (CDS)" >&5 31480 $as_echo_n "checking for local Boot JDK Class Data Sharing (CDS)... " >&6; } 31481 BOOT_JDK_CDS_ARCHIVE=$CONFIGURESUPPORT_OUTPUTDIR/classes.jsa 31482 31483 $ECHO "Check if jvm arg is ok: -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" >&5 31484 $ECHO "Command: $JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version" >&5 31485 OUTPUT=`$JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version 2>&1` 31486 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 31487 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 31488 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 31489 boot_jdk_cds_args="$boot_jdk_cds_args -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" 31490 JVM_ARG_OK=true 31491 else 31492 $ECHO "Arg failed:" >&5 31493 $ECHO "$OUTPUT" >&5 31494 JVM_ARG_OK=false 31495 fi 31496 31497 31498 if test "x$boot_jdk_cds_args" != x; then 31499 # Try creating a CDS archive 31500 "$JAVA" $boot_jdk_cds_args -Xshare:dump > /dev/null 2>&1 31501 if test $? -eq 0; then 31502 BOOTJDK_USE_LOCAL_CDS=true 31503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, created" >&5 31504 $as_echo "yes, created" >&6; } 31505 else 31506 # Generation failed, don't use CDS. 31507 BOOTJDK_USE_LOCAL_CDS=false 31508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, creation failed" >&5 31509 $as_echo "no, creation failed" >&6; } 31510 fi 31511 else 31512 BOOTJDK_USE_LOCAL_CDS=false 31513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, -XX:SharedArchiveFile not supported" >&5 31514 $as_echo "no, -XX:SharedArchiveFile not supported" >&6; } 31515 fi 31516 31517 31518 31519 # Check whether --with-build-jdk was given. 31520 if test "${with_build_jdk+set}" = set; then : 31521 withval=$with_build_jdk; 31522 fi 31523 31524 31525 CREATE_BUILDJDK=false 31526 EXTERNAL_BUILDJDK=false 31527 BUILD_JDK_FOUND="no" 31528 if test "x$with_build_jdk" != "x"; then 31529 31530 if test "x$BUILD_JDK_FOUND" = xno; then 31531 # Execute the test 31532 31533 if test "x$with_build_jdk" != x; then 31534 BUILD_JDK=$with_build_jdk 31535 BUILD_JDK_FOUND=maybe 31536 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 31537 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 31538 fi 31539 31540 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 31541 if test "x$BUILD_JDK_FOUND" = xmaybe; then 31542 # Do we have a bin/java? 31543 if test ! -x "$BUILD_JDK/bin/java"; then 31544 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 31545 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 31546 BUILD_JDK_FOUND=no 31547 elif test ! -x "$BUILD_JDK/bin/jlink"; then 31548 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 31549 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 31550 BUILD_JDK_FOUND=no 31551 elif test ! -x "$BUILD_JDK/bin/jmod"; then 31552 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 31553 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 31554 BUILD_JDK_FOUND=no 31555 elif test ! -x "$BUILD_JDK/bin/javac"; then 31556 # Do we have a bin/javac? 31557 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 31558 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 31559 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 31560 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 31561 BUILD_JDK_FOUND=no 31562 else 31563 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 31564 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 31565 31566 # Extra M4 quote needed to protect [] in grep expression. 31567 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"'` 31568 if test "x$FOUND_CORRECT_VERSION" = x; then 31569 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 31570 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 31571 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 10)" >&5 31572 $as_echo "$as_me: (Your Build JDK must be version 10)" >&6;} 31573 BUILD_JDK_FOUND=no 31574 else 31575 # We're done! 31576 BUILD_JDK_FOUND=yes 31577 31578 # Only process if variable expands to non-empty 31579 31580 if test "x$BUILD_JDK" != x; then 31581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31582 31583 # Input might be given as Windows format, start by converting to 31584 # unix format. 31585 path="$BUILD_JDK" 31586 new_path=`$CYGPATH -u "$path"` 31587 31588 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31589 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31590 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31591 # "foo.exe" is OK but "foo" is an error. 31592 # 31593 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31594 # It is also a way to make sure we got the proper file name for the real test later on. 31595 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31596 if test "x$test_shortpath" = x; then 31597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31598 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31599 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 31600 fi 31601 31602 # Call helper function which possibly converts this using DOS-style short mode. 31603 # If so, the updated path is stored in $new_path. 31604 31605 input_path="$new_path" 31606 # Check if we need to convert this using DOS-style short mode. If the path 31607 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31608 # take no chances and rewrite it. 31609 # Note: m4 eats our [], so we need to use [ and ] instead. 31610 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31611 if test "x$has_forbidden_chars" != x; then 31612 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31613 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31614 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31615 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31616 # Going to short mode and back again did indeed matter. Since short mode is 31617 # case insensitive, let's make it lowercase to improve readability. 31618 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31619 # Now convert it back to Unix-style (cygpath) 31620 input_path=`$CYGPATH -u "$shortmode_path"` 31621 new_path="$input_path" 31622 fi 31623 fi 31624 31625 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31626 if test "x$test_cygdrive_prefix" = x; then 31627 # As a simple fix, exclude /usr/bin since it's not a real path. 31628 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31629 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31630 # a path prefixed by /cygdrive for fixpath to work. 31631 new_path="$CYGWIN_ROOT_PATH$input_path" 31632 fi 31633 fi 31634 31635 31636 if test "x$path" != "x$new_path"; then 31637 BUILD_JDK="$new_path" 31638 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31639 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31640 fi 31641 31642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31643 31644 path="$BUILD_JDK" 31645 has_colon=`$ECHO $path | $GREP ^.:` 31646 new_path="$path" 31647 if test "x$has_colon" = x; then 31648 # Not in mixed or Windows style, start by that. 31649 new_path=`cmd //c echo $path` 31650 fi 31651 31652 31653 input_path="$new_path" 31654 # Check if we need to convert this using DOS-style short mode. If the path 31655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31656 # take no chances and rewrite it. 31657 # Note: m4 eats our [], so we need to use [ and ] instead. 31658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31659 if test "x$has_forbidden_chars" != x; then 31660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31661 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31662 fi 31663 31664 31665 windows_path="$new_path" 31666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31667 unix_path=`$CYGPATH -u "$windows_path"` 31668 new_path="$unix_path" 31669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31671 new_path="$unix_path" 31672 fi 31673 31674 if test "x$path" != "x$new_path"; then 31675 BUILD_JDK="$new_path" 31676 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31677 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31678 fi 31679 31680 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31681 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31682 31683 else 31684 # We're on a unix platform. Hooray! :) 31685 path="$BUILD_JDK" 31686 has_space=`$ECHO "$path" | $GREP " "` 31687 if test "x$has_space" != x; then 31688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31689 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31690 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31691 fi 31692 31693 # Use eval to expand a potential ~ 31694 eval path="$path" 31695 if test ! -f "$path" && test ! -d "$path"; then 31696 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 31697 fi 31698 31699 if test -d "$path"; then 31700 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 31701 else 31702 dir="`$DIRNAME "$path"`" 31703 base="`$BASENAME "$path"`" 31704 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 31705 fi 31706 fi 31707 fi 31708 31709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31710 $as_echo_n "checking for Build JDK... " >&6; } 31711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 31712 $as_echo "$BUILD_JDK" >&6; } 31713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 31714 $as_echo_n "checking Build JDK version... " >&6; } 31715 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 31716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 31717 $as_echo "$BUILD_JDK_VERSION" >&6; } 31718 fi # end check jdk version 31719 fi # end check java 31720 fi # end check build jdk found 31721 fi 31722 31723 EXTERNAL_BUILDJDK=true 31724 else 31725 if test "x$COMPILE_TYPE" = "xcross"; then 31726 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 31727 BUILD_JDK_FOUND=yes 31728 CREATE_BUILDJDK=true 31729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31730 $as_echo_n "checking for Build JDK... " >&6; } 31731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 31732 $as_echo "yes, will build it for the host platform" >&6; } 31733 else 31734 BUILD_JDK="\$(JDK_OUTPUTDIR)" 31735 BUILD_JDK_FOUND=yes 31736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31737 $as_echo_n "checking for Build JDK... " >&6; } 31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 31739 $as_echo "yes, will use output dir" >&6; } 31740 fi 31741 fi 31742 31743 JMOD="$BUILD_JDK/bin/jmod" 31744 JLINK="$BUILD_JDK/bin/jlink" 31745 31746 31747 31748 if test "x$BUILD_JDK_FOUND" != "xyes"; then 31749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31750 $as_echo_n "checking for Build JDK... " >&6; } 31751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31752 $as_echo "no" >&6; } 31753 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 31754 fi 31755 31756 31757 31758 31759 31760 31761 ############################################################################### 31762 # 31763 # Configure the sources to use. We can add or override individual directories. 31764 # 31765 ############################################################################### 31766 31767 31768 OUTPUTDIR="$OUTPUTDIR" 31769 31770 JDK_OUTPUTDIR="$OUTPUTDIR/jdk" 31771 31772 # Where are the sources. 31773 31774 31775 31776 31777 # Check whether --with-import-modules was given. 31778 if test "${with_import_modules+set}" = set; then : 31779 withval=$with_import_modules; 31780 fi 31781 31782 31783 if test "x$with_import_modules" != x \ 31784 && test "x$with_import_modules" != "xno"; then 31785 if test -d "$with_import_modules"; then 31786 IMPORT_MODULES_TOPDIR="$with_import_modules" 31787 31788 # Only process if variable expands to non-empty 31789 31790 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31792 31793 # Input might be given as Windows format, start by converting to 31794 # unix format. 31795 path="$IMPORT_MODULES_TOPDIR" 31796 new_path=`$CYGPATH -u "$path"` 31797 31798 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31799 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31800 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31801 # "foo.exe" is OK but "foo" is an error. 31802 # 31803 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31804 # It is also a way to make sure we got the proper file name for the real test later on. 31805 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31806 if test "x$test_shortpath" = x; then 31807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31808 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31809 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31810 fi 31811 31812 # Call helper function which possibly converts this using DOS-style short mode. 31813 # If so, the updated path is stored in $new_path. 31814 31815 input_path="$new_path" 31816 # Check if we need to convert this using DOS-style short mode. If the path 31817 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31818 # take no chances and rewrite it. 31819 # Note: m4 eats our [], so we need to use [ and ] instead. 31820 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31821 if test "x$has_forbidden_chars" != x; then 31822 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31823 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31824 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31825 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31826 # Going to short mode and back again did indeed matter. Since short mode is 31827 # case insensitive, let's make it lowercase to improve readability. 31828 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31829 # Now convert it back to Unix-style (cygpath) 31830 input_path=`$CYGPATH -u "$shortmode_path"` 31831 new_path="$input_path" 31832 fi 31833 fi 31834 31835 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31836 if test "x$test_cygdrive_prefix" = x; then 31837 # As a simple fix, exclude /usr/bin since it's not a real path. 31838 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31839 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31840 # a path prefixed by /cygdrive for fixpath to work. 31841 new_path="$CYGWIN_ROOT_PATH$input_path" 31842 fi 31843 fi 31844 31845 31846 if test "x$path" != "x$new_path"; then 31847 IMPORT_MODULES_TOPDIR="$new_path" 31848 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31849 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31850 fi 31851 31852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31853 31854 path="$IMPORT_MODULES_TOPDIR" 31855 has_colon=`$ECHO $path | $GREP ^.:` 31856 new_path="$path" 31857 if test "x$has_colon" = x; then 31858 # Not in mixed or Windows style, start by that. 31859 new_path=`cmd //c echo $path` 31860 fi 31861 31862 31863 input_path="$new_path" 31864 # Check if we need to convert this using DOS-style short mode. If the path 31865 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31866 # take no chances and rewrite it. 31867 # Note: m4 eats our [], so we need to use [ and ] instead. 31868 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31869 if test "x$has_forbidden_chars" != x; then 31870 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31871 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31872 fi 31873 31874 31875 windows_path="$new_path" 31876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31877 unix_path=`$CYGPATH -u "$windows_path"` 31878 new_path="$unix_path" 31879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31880 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31881 new_path="$unix_path" 31882 fi 31883 31884 if test "x$path" != "x$new_path"; then 31885 IMPORT_MODULES_TOPDIR="$new_path" 31886 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31887 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31888 fi 31889 31890 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31891 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31892 31893 else 31894 # We're on a unix platform. Hooray! :) 31895 path="$IMPORT_MODULES_TOPDIR" 31896 has_space=`$ECHO "$path" | $GREP " "` 31897 if test "x$has_space" != x; then 31898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31899 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31900 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31901 fi 31902 31903 # Use eval to expand a potential ~ 31904 eval path="$path" 31905 if test ! -f "$path" && test ! -d "$path"; then 31906 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31907 fi 31908 31909 if test -d "$path"; then 31910 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 31911 else 31912 dir="`$DIRNAME "$path"`" 31913 base="`$BASENAME "$path"`" 31914 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 31915 fi 31916 fi 31917 fi 31918 31919 elif test -e "$with_import_modules"; then 31920 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 31921 $RM -rf "$IMPORT_MODULES_TOPDIR" 31922 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 31923 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 31924 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31925 fi 31926 else 31927 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31928 fi 31929 fi 31930 31931 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 31932 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 31933 fi 31934 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 31935 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 31936 fi 31937 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 31938 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 31939 fi 31940 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 31941 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 31942 fi 31943 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then 31944 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal" 31945 fi 31946 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then 31947 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man" 31948 fi 31949 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 31950 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31951 fi 31952 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31953 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31954 fi 31955 31956 31957 31958 31959 31960 31961 31962 31963 31964 31965 31966 ############################################################################### 31967 # 31968 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31969 # native code. 31970 # 31971 ############################################################################### 31972 31973 # See if we are doing a complete static build or not 31974 31975 # Check whether --enable-static-build was given. 31976 if test "${enable_static_build+set}" = set; then : 31977 enableval=$enable_static_build; 31978 fi 31979 31980 STATIC_BUILD=false 31981 if test "x$enable_static_build" = "xyes"; then 31982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31983 $as_echo_n "checking if static build is enabled... " >&6; } 31984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31985 $as_echo "yes" >&6; } 31986 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 31987 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 31988 fi 31989 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31990 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31991 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31992 STATIC_BUILD=true 31993 elif test "x$enable_static_build" = "xno"; then 31994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31995 $as_echo_n "checking if static build is enabled... " >&6; } 31996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31997 $as_echo "no" >&6; } 31998 elif test "x$enable_static_build" != "x"; then 31999 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 32000 fi 32001 32002 32003 32004 32005 # First determine the toolchain type (compiler family) 32006 32007 32008 # Check whether --with-toolchain-type was given. 32009 if test "${with_toolchain_type+set}" = set; then : 32010 withval=$with_toolchain_type; 32011 fi 32012 32013 32014 # Use indirect variable referencing 32015 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 32016 VALID_TOOLCHAINS=${!toolchain_var_name} 32017 32018 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32019 if test -n "$XCODEBUILD"; then 32020 # On Mac OS X, default toolchain to clang after Xcode 5 32021 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 32022 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 32023 if test $? -ne 0; then 32024 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 32025 fi 32026 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 32027 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 32028 $CUT -f 1 -d .` 32029 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 32030 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 32031 if test $XCODE_MAJOR_VERSION -ge 5; then 32032 DEFAULT_TOOLCHAIN="clang" 32033 else 32034 DEFAULT_TOOLCHAIN="gcc" 32035 fi 32036 else 32037 # If Xcode is not installed, but the command line tools are 32038 # then we can't run xcodebuild. On these systems we should 32039 # default to clang 32040 DEFAULT_TOOLCHAIN="clang" 32041 fi 32042 else 32043 # First toolchain type in the list is the default 32044 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 32045 fi 32046 32047 if test "x$with_toolchain_type" = xlist; then 32048 # List all toolchains 32049 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 32050 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 32051 for toolchain in $VALID_TOOLCHAINS; do 32052 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 32053 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32054 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 32055 done 32056 32057 exit 0 32058 elif test "x$with_toolchain_type" != x; then 32059 # User override; check that it is valid 32060 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 32061 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 32062 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 32063 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 32064 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 32065 as_fn_error $? "Cannot continue." "$LINENO" 5 32066 fi 32067 TOOLCHAIN_TYPE=$with_toolchain_type 32068 else 32069 # No flag given, use default 32070 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 32071 fi 32072 32073 32074 TOOLCHAIN_CC_BINARY_clang="clang" 32075 TOOLCHAIN_CC_BINARY_gcc="gcc" 32076 TOOLCHAIN_CC_BINARY_microsoft="cl" 32077 TOOLCHAIN_CC_BINARY_solstudio="cc" 32078 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 32079 32080 TOOLCHAIN_CXX_BINARY_clang="clang++" 32081 TOOLCHAIN_CXX_BINARY_gcc="g++" 32082 TOOLCHAIN_CXX_BINARY_microsoft="cl" 32083 TOOLCHAIN_CXX_BINARY_solstudio="CC" 32084 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 32085 32086 # Use indirect variable referencing 32087 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 32088 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32089 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 32090 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 32091 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 32092 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 32093 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 32094 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 32095 32096 32097 # Define filename patterns 32098 if test "x$OPENJDK_TARGET_OS" = xwindows; then 32099 LIBRARY_PREFIX= 32100 SHARED_LIBRARY_SUFFIX='.dll' 32101 STATIC_LIBRARY_SUFFIX='.lib' 32102 SHARED_LIBRARY='$1.dll' 32103 STATIC_LIBRARY='$1.lib' 32104 OBJ_SUFFIX='.obj' 32105 EXE_SUFFIX='.exe' 32106 else 32107 LIBRARY_PREFIX=lib 32108 SHARED_LIBRARY_SUFFIX='.so' 32109 STATIC_LIBRARY_SUFFIX='.a' 32110 SHARED_LIBRARY='lib$1.so' 32111 STATIC_LIBRARY='lib$1.a' 32112 OBJ_SUFFIX='.o' 32113 EXE_SUFFIX='' 32114 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32115 # For full static builds, we're overloading the SHARED_LIBRARY 32116 # variables in order to limit the amount of changes required. 32117 # It would be better to remove SHARED and just use LIBRARY and 32118 # LIBRARY_SUFFIX for libraries that can be built either 32119 # shared or static and use STATIC_* for libraries that are 32120 # always built statically. 32121 if test "x$STATIC_BUILD" = xtrue; then 32122 SHARED_LIBRARY='lib$1.a' 32123 SHARED_LIBRARY_SUFFIX='.a' 32124 else 32125 SHARED_LIBRARY='lib$1.dylib' 32126 SHARED_LIBRARY_SUFFIX='.dylib' 32127 fi 32128 fi 32129 fi 32130 32131 32132 32133 32134 32135 32136 32137 32138 32139 32140 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 32141 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 32142 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 32143 else 32144 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 32145 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 32146 fi 32147 32148 32149 # User supplied flags should be used when configure detects compilers 32150 32151 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 32152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 32153 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 32154 fi 32155 32156 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 32157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 32158 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 32159 fi 32160 32161 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 32162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 32163 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 32164 fi 32165 32166 32167 # Check whether --with-extra-cflags was given. 32168 if test "${with_extra_cflags+set}" = set; then : 32169 withval=$with_extra_cflags; 32170 fi 32171 32172 32173 32174 # Check whether --with-extra-cxxflags was given. 32175 if test "${with_extra_cxxflags+set}" = set; then : 32176 withval=$with_extra_cxxflags; 32177 fi 32178 32179 32180 32181 # Check whether --with-extra-ldflags was given. 32182 if test "${with_extra_ldflags+set}" = set; then : 32183 withval=$with_extra_ldflags; 32184 fi 32185 32186 32187 EXTRA_CFLAGS="$with_extra_cflags" 32188 EXTRA_CXXFLAGS="$with_extra_cxxflags" 32189 EXTRA_LDFLAGS="$with_extra_ldflags" 32190 32191 32192 32193 32194 32195 # The global CFLAGS and LDLAGS variables are used by configure tests and 32196 # should include the extra parameters 32197 CFLAGS="$EXTRA_CFLAGS" 32198 CXXFLAGS="$EXTRA_CXXFLAGS" 32199 LDFLAGS="$EXTRA_LDFLAGS" 32200 CPPFLAGS="" 32201 32202 # The sysroot cflags are needed for configure to be able to run the compilers 32203 32204 if test "x$SYSROOT" != "x"; then 32205 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 32206 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32207 # Solaris Studio does not have a concept of sysroot. Instead we must 32208 # make sure the default include and lib dirs are appended to each 32209 # compile and link command line. Must also add -I-xbuiltin to enable 32210 # inlining of system functions and intrinsics. 32211 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 32212 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 32213 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 32214 fi 32215 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 32216 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 32217 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 32218 elif test "x$TOOLCHAIN_TYPE" = xclang; then 32219 SYSROOT_CFLAGS="-isysroot $SYSROOT" 32220 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 32221 fi 32222 # The global CFLAGS and LDFLAGS variables need these for configure to function 32223 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 32224 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 32225 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 32226 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 32227 fi 32228 32229 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32230 # We also need -iframework<path>/System/Library/Frameworks 32231 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32232 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32233 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 32234 # set this here so it doesn't have to be peppered throughout the forest 32235 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32236 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32237 fi 32238 32239 32240 32241 32242 32243 # Then detect the actual binaries needed 32244 32245 # FIXME: Is this needed? 32246 ac_ext=cpp 32247 ac_cpp='$CXXCPP $CPPFLAGS' 32248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32251 32252 32253 # Store the CFLAGS etc passed to the configure script. 32254 ORG_CFLAGS="$CFLAGS" 32255 ORG_CXXFLAGS="$CXXFLAGS" 32256 32257 # autoconf magic only relies on PATH, so update it if tools dir is specified 32258 OLD_PATH="$PATH" 32259 32260 # On Windows, we need to detect the visual studio installation first. 32261 # This will change the PATH, but we need to keep that new PATH even 32262 # after toolchain detection is done, since the compiler (on x86) uses 32263 # it for DLL resolution in runtime. 32264 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 32265 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 32266 32267 # Store path to cygwin link.exe to help excluding it when searching for 32268 # VS linker. This must be done before changing the PATH when looking for VS. 32269 # Extract the first word of "link", so it can be a program name with args. 32270 set dummy link; ac_word=$2 32271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32272 $as_echo_n "checking for $ac_word... " >&6; } 32273 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 32274 $as_echo_n "(cached) " >&6 32275 else 32276 case $CYGWIN_LINK in 32277 [\\/]* | ?:[\\/]*) 32278 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 32279 ;; 32280 *) 32281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32282 for as_dir in $PATH 32283 do 32284 IFS=$as_save_IFS 32285 test -z "$as_dir" && as_dir=. 32286 for ac_exec_ext in '' $ac_executable_extensions; do 32287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32288 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 32289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32290 break 2 32291 fi 32292 done 32293 done 32294 IFS=$as_save_IFS 32295 32296 ;; 32297 esac 32298 fi 32299 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 32300 if test -n "$CYGWIN_LINK"; then 32301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 32302 $as_echo "$CYGWIN_LINK" >&6; } 32303 else 32304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32305 $as_echo "no" >&6; } 32306 fi 32307 32308 32309 if test "x$CYGWIN_LINK" != x; then 32310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 32311 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 32312 "$CYGWIN_LINK" --version > /dev/null 32313 if test $? -eq 0 ; then 32314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32315 $as_echo "yes" >&6; } 32316 else 32317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32318 $as_echo "no" >&6; } 32319 # This might be the VS linker. Don't exclude it later on. 32320 CYGWIN_LINK="" 32321 fi 32322 fi 32323 32324 # First-hand choice is to locate and run the vsvars bat file. 32325 32326 32327 # Check whether --with-toolchain-version was given. 32328 if test "${with_toolchain_version+set}" = set; then : 32329 withval=$with_toolchain_version; 32330 fi 32331 32332 32333 if test "x$with_toolchain_version" = xlist; then 32334 # List all toolchains 32335 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 32336 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 32337 for version in $VALID_VS_VERSIONS; do 32338 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 32339 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 32340 done 32341 32342 exit 0 32343 elif test "x$DEVKIT_VS_VERSION" != x; then 32344 VS_VERSION=$DEVKIT_VS_VERSION 32345 TOOLCHAIN_VERSION=$VS_VERSION 32346 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32347 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32348 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32349 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32350 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32351 VS_PATH="$TOOLCHAIN_PATH:$PATH" 32352 32353 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 32354 # can still be exported as INCLUDE for compiler invocations without 32355 # SYSROOT_CFLAGS 32356 OLDIFS="$IFS" 32357 IFS=";" 32358 for i in $DEVKIT_VS_INCLUDE; do 32359 ipath=$i 32360 32361 unix_path="$ipath" 32362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32363 windows_path=`$CYGPATH -m "$unix_path"` 32364 ipath="$windows_path" 32365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32366 windows_path=`cmd //c echo $unix_path` 32367 ipath="$windows_path" 32368 fi 32369 32370 VS_INCLUDE="$VS_INCLUDE;$ipath" 32371 done 32372 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 32373 # as LIB for compiler invocations without SYSROOT_LDFLAGS 32374 for i in $DEVKIT_VS_LIB; do 32375 libpath=$i 32376 32377 unix_path="$libpath" 32378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32379 windows_path=`$CYGPATH -m "$unix_path"` 32380 libpath="$windows_path" 32381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32382 windows_path=`cmd //c echo $unix_path` 32383 libpath="$windows_path" 32384 fi 32385 32386 VS_LIB="$VS_LIB;$libpath" 32387 done 32388 IFS="$OLDIFS" 32389 32390 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 32391 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 32392 32393 elif test "x$with_toolchain_version" != x; then 32394 # User override; check that it is valid 32395 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 32396 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 32397 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 32398 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 32399 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 32400 as_fn_error $? "Cannot continue." "$LINENO" 5 32401 fi 32402 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 32403 else 32404 # No flag given, use default 32405 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 32406 fi 32407 32408 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 32409 32410 VS_VERSION="$VS_VERSION" 32411 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 32412 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 32413 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 32414 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 32415 32416 # When using --with-tools-dir, assume it points to the correct and default 32417 # version of Visual Studio or that --with-toolchain-version was also set. 32418 if test "x$with_tools_dir" != x; then 32419 32420 if test "x$VS_ENV_CMD" = x; then 32421 VS_VERSION="${VS_VERSION}" 32422 VS_BASE="$with_tools_dir/../.." 32423 METHOD="--with-tools-dir" 32424 32425 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32426 VCVARSFILE="vc/bin/vcvars32.bat" 32427 else 32428 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32429 fi 32430 32431 32432 windows_path="$VS_BASE" 32433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32434 unix_path=`$CYGPATH -u "$windows_path"` 32435 VS_BASE="$unix_path" 32436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32437 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32438 VS_BASE="$unix_path" 32439 fi 32440 32441 if test -d "$VS_BASE"; then 32442 if test -f "$VS_BASE/$VCVARSFILE"; then 32443 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32444 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32445 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32446 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32447 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32448 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32449 else 32450 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32451 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32452 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32453 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32454 fi 32455 fi 32456 fi 32457 32458 32459 if test "x$VS_ENV_CMD" = x; then 32460 VS_VERSION="${VS_VERSION}" 32461 VS_BASE="$with_tools_dir/../../.." 32462 METHOD="--with-tools-dir" 32463 32464 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32465 VCVARSFILE="vc/bin/vcvars32.bat" 32466 else 32467 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32468 fi 32469 32470 32471 windows_path="$VS_BASE" 32472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32473 unix_path=`$CYGPATH -u "$windows_path"` 32474 VS_BASE="$unix_path" 32475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32477 VS_BASE="$unix_path" 32478 fi 32479 32480 if test -d "$VS_BASE"; then 32481 if test -f "$VS_BASE/$VCVARSFILE"; then 32482 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32483 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32484 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32485 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32486 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32487 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32488 else 32489 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32490 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32491 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32492 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32493 fi 32494 fi 32495 fi 32496 32497 if test "x$VS_ENV_CMD" = x; then 32498 # Having specified an argument which is incorrect will produce an instant failure; 32499 # we should not go on looking 32500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 32501 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 32502 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 32503 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 32504 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 32505 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 32506 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 32507 fi 32508 fi 32509 32510 VS_ENV_CMD="" 32511 VS_ENV_ARGS="" 32512 32513 if test "x$VS_COMNTOOLS" != x; then 32514 32515 if test "x$VS_ENV_CMD" = x; then 32516 VS_VERSION="${VS_VERSION}" 32517 VS_BASE="$VS_COMNTOOLS/../.." 32518 METHOD="$VS_COMNTOOLS_VAR variable" 32519 32520 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32521 VCVARSFILE="vc/bin/vcvars32.bat" 32522 else 32523 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32524 fi 32525 32526 32527 windows_path="$VS_BASE" 32528 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32529 unix_path=`$CYGPATH -u "$windows_path"` 32530 VS_BASE="$unix_path" 32531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32532 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32533 VS_BASE="$unix_path" 32534 fi 32535 32536 if test -d "$VS_BASE"; then 32537 if test -f "$VS_BASE/$VCVARSFILE"; then 32538 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32539 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32540 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32541 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32542 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32543 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32544 else 32545 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32546 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32547 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32548 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32549 fi 32550 fi 32551 fi 32552 32553 fi 32554 if test "x$PROGRAMFILES" != x; then 32555 32556 if test "x$VS_ENV_CMD" = x; then 32557 VS_VERSION="${VS_VERSION}" 32558 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 32559 METHOD="well-known name" 32560 32561 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32562 VCVARSFILE="vc/bin/vcvars32.bat" 32563 else 32564 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32565 fi 32566 32567 32568 windows_path="$VS_BASE" 32569 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32570 unix_path=`$CYGPATH -u "$windows_path"` 32571 VS_BASE="$unix_path" 32572 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32573 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32574 VS_BASE="$unix_path" 32575 fi 32576 32577 if test -d "$VS_BASE"; then 32578 if test -f "$VS_BASE/$VCVARSFILE"; then 32579 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32580 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32581 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32582 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32583 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32584 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32585 else 32586 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32587 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32588 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32589 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32590 fi 32591 fi 32592 fi 32593 32594 fi 32595 # Work around the insanely named ProgramFiles(x86) env variable 32596 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 32597 if test "x$PROGRAMFILES_X86" != x; then 32598 32599 if test "x$VS_ENV_CMD" = x; then 32600 VS_VERSION="${VS_VERSION}" 32601 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 32602 METHOD="well-known name" 32603 32604 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32605 VCVARSFILE="vc/bin/vcvars32.bat" 32606 else 32607 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32608 fi 32609 32610 32611 windows_path="$VS_BASE" 32612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32613 unix_path=`$CYGPATH -u "$windows_path"` 32614 VS_BASE="$unix_path" 32615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32616 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32617 VS_BASE="$unix_path" 32618 fi 32619 32620 if test -d "$VS_BASE"; then 32621 if test -f "$VS_BASE/$VCVARSFILE"; then 32622 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32623 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32624 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32625 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32626 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32627 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32628 else 32629 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32630 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32631 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32632 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32633 fi 32634 fi 32635 fi 32636 32637 fi 32638 32639 if test "x$VS_ENV_CMD" = x; then 32640 VS_VERSION="${VS_VERSION}" 32641 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 32642 METHOD="well-known name" 32643 32644 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32645 VCVARSFILE="vc/bin/vcvars32.bat" 32646 else 32647 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32648 fi 32649 32650 32651 windows_path="$VS_BASE" 32652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32653 unix_path=`$CYGPATH -u "$windows_path"` 32654 VS_BASE="$unix_path" 32655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32657 VS_BASE="$unix_path" 32658 fi 32659 32660 if test -d "$VS_BASE"; then 32661 if test -f "$VS_BASE/$VCVARSFILE"; then 32662 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32663 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32664 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32665 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32666 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32667 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32668 else 32669 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32670 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32671 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32672 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32673 fi 32674 fi 32675 fi 32676 32677 32678 if test "x$VS_ENV_CMD" = x; then 32679 VS_VERSION="${VS_VERSION}" 32680 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32681 METHOD="well-known name" 32682 32683 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32684 VCVARSFILE="vc/bin/vcvars32.bat" 32685 else 32686 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32687 fi 32688 32689 32690 windows_path="$VS_BASE" 32691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32692 unix_path=`$CYGPATH -u "$windows_path"` 32693 VS_BASE="$unix_path" 32694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32696 VS_BASE="$unix_path" 32697 fi 32698 32699 if test -d "$VS_BASE"; then 32700 if test -f "$VS_BASE/$VCVARSFILE"; then 32701 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32702 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32703 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32704 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32705 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32706 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32707 else 32708 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32709 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32710 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32711 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32712 fi 32713 fi 32714 fi 32715 32716 32717 if test "x$SDK_INSTALL_DIR" != x; then 32718 if test "x$ProgramW6432" != x; then 32719 32720 if test "x$VS_ENV_CMD" = x; then 32721 VS_VERSION="${VS_VERSION}" 32722 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32723 METHOD="well-known name" 32724 32725 windows_path="$WIN_SDK_BASE" 32726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32727 unix_path=`$CYGPATH -u "$windows_path"` 32728 WIN_SDK_BASE="$unix_path" 32729 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32730 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32731 WIN_SDK_BASE="$unix_path" 32732 fi 32733 32734 if test -d "$WIN_SDK_BASE"; then 32735 # There have been cases of partial or broken SDK installations. A missing 32736 # lib dir is not going to work. 32737 if test ! -d "$WIN_SDK_BASE/lib"; then 32738 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32739 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32740 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32741 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32742 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32743 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32744 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32745 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32746 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32747 VS_ENV_ARGS="/x86" 32748 else 32749 VS_ENV_ARGS="/x64" 32750 fi 32751 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32752 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32753 # TODO: improve detection for other versions of SDK 32754 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32755 else 32756 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32757 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32758 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32759 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32760 fi 32761 fi 32762 fi 32763 32764 fi 32765 if test "x$PROGRAMW6432" != x; then 32766 32767 if test "x$VS_ENV_CMD" = x; then 32768 VS_VERSION="${VS_VERSION}" 32769 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32770 METHOD="well-known name" 32771 32772 windows_path="$WIN_SDK_BASE" 32773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32774 unix_path=`$CYGPATH -u "$windows_path"` 32775 WIN_SDK_BASE="$unix_path" 32776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32778 WIN_SDK_BASE="$unix_path" 32779 fi 32780 32781 if test -d "$WIN_SDK_BASE"; then 32782 # There have been cases of partial or broken SDK installations. A missing 32783 # lib dir is not going to work. 32784 if test ! -d "$WIN_SDK_BASE/lib"; then 32785 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32786 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32787 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32788 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32789 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32790 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32791 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32792 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32793 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32794 VS_ENV_ARGS="/x86" 32795 else 32796 VS_ENV_ARGS="/x64" 32797 fi 32798 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32799 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32800 # TODO: improve detection for other versions of SDK 32801 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32802 else 32803 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32804 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32805 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32806 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32807 fi 32808 fi 32809 fi 32810 32811 fi 32812 if test "x$PROGRAMFILES" != x; then 32813 32814 if test "x$VS_ENV_CMD" = x; then 32815 VS_VERSION="${VS_VERSION}" 32816 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32817 METHOD="well-known name" 32818 32819 windows_path="$WIN_SDK_BASE" 32820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32821 unix_path=`$CYGPATH -u "$windows_path"` 32822 WIN_SDK_BASE="$unix_path" 32823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32824 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32825 WIN_SDK_BASE="$unix_path" 32826 fi 32827 32828 if test -d "$WIN_SDK_BASE"; then 32829 # There have been cases of partial or broken SDK installations. A missing 32830 # lib dir is not going to work. 32831 if test ! -d "$WIN_SDK_BASE/lib"; then 32832 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32833 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32834 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32835 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32836 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32837 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32838 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32839 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32840 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32841 VS_ENV_ARGS="/x86" 32842 else 32843 VS_ENV_ARGS="/x64" 32844 fi 32845 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32846 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32847 # TODO: improve detection for other versions of SDK 32848 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32849 else 32850 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32851 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32852 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32853 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32854 fi 32855 fi 32856 fi 32857 32858 fi 32859 32860 if test "x$VS_ENV_CMD" = x; then 32861 VS_VERSION="${VS_VERSION}" 32862 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32863 METHOD="well-known name" 32864 32865 windows_path="$WIN_SDK_BASE" 32866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32867 unix_path=`$CYGPATH -u "$windows_path"` 32868 WIN_SDK_BASE="$unix_path" 32869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32871 WIN_SDK_BASE="$unix_path" 32872 fi 32873 32874 if test -d "$WIN_SDK_BASE"; then 32875 # There have been cases of partial or broken SDK installations. A missing 32876 # lib dir is not going to work. 32877 if test ! -d "$WIN_SDK_BASE/lib"; then 32878 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32879 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32880 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32881 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32882 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32883 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32884 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32885 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32886 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32887 VS_ENV_ARGS="/x86" 32888 else 32889 VS_ENV_ARGS="/x64" 32890 fi 32891 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32892 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32893 # TODO: improve detection for other versions of SDK 32894 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32895 else 32896 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32897 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32898 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32899 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32900 fi 32901 fi 32902 fi 32903 32904 32905 if test "x$VS_ENV_CMD" = x; then 32906 VS_VERSION="${VS_VERSION}" 32907 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32908 METHOD="well-known name" 32909 32910 windows_path="$WIN_SDK_BASE" 32911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32912 unix_path=`$CYGPATH -u "$windows_path"` 32913 WIN_SDK_BASE="$unix_path" 32914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32915 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32916 WIN_SDK_BASE="$unix_path" 32917 fi 32918 32919 if test -d "$WIN_SDK_BASE"; then 32920 # There have been cases of partial or broken SDK installations. A missing 32921 # lib dir is not going to work. 32922 if test ! -d "$WIN_SDK_BASE/lib"; then 32923 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32924 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32925 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32926 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32927 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32928 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32929 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32930 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32931 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32932 VS_ENV_ARGS="/x86" 32933 else 32934 VS_ENV_ARGS="/x64" 32935 fi 32936 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32937 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32938 # TODO: improve detection for other versions of SDK 32939 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32940 else 32941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32942 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32943 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32944 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32945 fi 32946 fi 32947 fi 32948 32949 fi 32950 32951 if test "x$VS_ENV_CMD" != x; then 32952 TOOLCHAIN_VERSION=$VS_VERSION 32953 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32954 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32955 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32956 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32957 # The rest of the variables are already evaled while probing 32958 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32959 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32960 break 32961 fi 32962 done 32963 32964 32965 # If we have a devkit, skip all of the below. 32966 if test "x$DEVKIT_VS_VERSION" = x; then 32967 if test "x$VS_ENV_CMD" != x; then 32968 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32969 32970 # Only process if variable expands to non-empty 32971 32972 if test "x$VS_ENV_CMD" != x; then 32973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32974 32975 # First separate the path from the arguments. This will split at the first 32976 # space. 32977 complete="$VS_ENV_CMD" 32978 path="${complete%% *}" 32979 tmp="$complete EOL" 32980 arguments="${tmp#* }" 32981 32982 # Input might be given as Windows format, start by converting to 32983 # unix format. 32984 new_path=`$CYGPATH -u "$path"` 32985 32986 # Now try to locate executable using which 32987 new_path=`$WHICH "$new_path" 2> /dev/null` 32988 # bat and cmd files are not always considered executable in cygwin causing which 32989 # to not find them 32990 if test "x$new_path" = x \ 32991 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32992 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32993 new_path=`$CYGPATH -u "$path"` 32994 fi 32995 if test "x$new_path" = x; then 32996 # Oops. Which didn't find the executable. 32997 # The splitting of arguments from the executable at a space might have been incorrect, 32998 # since paths with space are more likely in Windows. Give it another try with the whole 32999 # argument. 33000 path="$complete" 33001 arguments="EOL" 33002 new_path=`$CYGPATH -u "$path"` 33003 new_path=`$WHICH "$new_path" 2> /dev/null` 33004 # bat and cmd files are not always considered executable in cygwin causing which 33005 # to not find them 33006 if test "x$new_path" = x \ 33007 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33008 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33009 new_path=`$CYGPATH -u "$path"` 33010 fi 33011 if test "x$new_path" = x; then 33012 # It's still not found. Now this is an unrecoverable error. 33013 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33014 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33015 has_space=`$ECHO "$complete" | $GREP " "` 33016 if test "x$has_space" != x; then 33017 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33018 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33019 fi 33020 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33021 fi 33022 fi 33023 33024 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33025 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33026 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33027 # "foo.exe" is OK but "foo" is an error. 33028 # 33029 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33030 # It is also a way to make sure we got the proper file name for the real test later on. 33031 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33032 if test "x$test_shortpath" = x; then 33033 # Short path failed, file does not exist as specified. 33034 # Try adding .exe or .cmd 33035 if test -f "${new_path}.exe"; then 33036 input_to_shortpath="${new_path}.exe" 33037 elif test -f "${new_path}.cmd"; then 33038 input_to_shortpath="${new_path}.cmd" 33039 else 33040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 33041 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 33042 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33043 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33044 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33045 fi 33046 else 33047 input_to_shortpath="$new_path" 33048 fi 33049 33050 # Call helper function which possibly converts this using DOS-style short mode. 33051 # If so, the updated path is stored in $new_path. 33052 new_path="$input_to_shortpath" 33053 33054 input_path="$input_to_shortpath" 33055 # Check if we need to convert this using DOS-style short mode. If the path 33056 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33057 # take no chances and rewrite it. 33058 # Note: m4 eats our [], so we need to use [ and ] instead. 33059 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33060 if test "x$has_forbidden_chars" != x; then 33061 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33062 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33063 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33064 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33065 # Going to short mode and back again did indeed matter. Since short mode is 33066 # case insensitive, let's make it lowercase to improve readability. 33067 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33068 # Now convert it back to Unix-style (cygpath) 33069 input_path=`$CYGPATH -u "$shortmode_path"` 33070 new_path="$input_path" 33071 fi 33072 fi 33073 33074 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33075 if test "x$test_cygdrive_prefix" = x; then 33076 # As a simple fix, exclude /usr/bin since it's not a real path. 33077 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33078 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33079 # a path prefixed by /cygdrive for fixpath to work. 33080 new_path="$CYGWIN_ROOT_PATH$input_path" 33081 fi 33082 fi 33083 33084 # remove trailing .exe if any 33085 new_path="${new_path/%.exe/}" 33086 33087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33088 33089 # First separate the path from the arguments. This will split at the first 33090 # space. 33091 complete="$VS_ENV_CMD" 33092 path="${complete%% *}" 33093 tmp="$complete EOL" 33094 arguments="${tmp#* }" 33095 33096 # Input might be given as Windows format, start by converting to 33097 # unix format. 33098 new_path="$path" 33099 33100 windows_path="$new_path" 33101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33102 unix_path=`$CYGPATH -u "$windows_path"` 33103 new_path="$unix_path" 33104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33106 new_path="$unix_path" 33107 fi 33108 33109 33110 # Now try to locate executable using which 33111 new_path=`$WHICH "$new_path" 2> /dev/null` 33112 33113 if test "x$new_path" = x; then 33114 # Oops. Which didn't find the executable. 33115 # The splitting of arguments from the executable at a space might have been incorrect, 33116 # since paths with space are more likely in Windows. Give it another try with the whole 33117 # argument. 33118 path="$complete" 33119 arguments="EOL" 33120 new_path="$path" 33121 33122 windows_path="$new_path" 33123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33124 unix_path=`$CYGPATH -u "$windows_path"` 33125 new_path="$unix_path" 33126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33127 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33128 new_path="$unix_path" 33129 fi 33130 33131 33132 new_path=`$WHICH "$new_path" 2> /dev/null` 33133 # bat and cmd files are not always considered executable in MSYS causing which 33134 # to not find them 33135 if test "x$new_path" = x \ 33136 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33137 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33138 new_path="$path" 33139 33140 windows_path="$new_path" 33141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33142 unix_path=`$CYGPATH -u "$windows_path"` 33143 new_path="$unix_path" 33144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33146 new_path="$unix_path" 33147 fi 33148 33149 fi 33150 33151 if test "x$new_path" = x; then 33152 # It's still not found. Now this is an unrecoverable error. 33153 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33154 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33155 has_space=`$ECHO "$complete" | $GREP " "` 33156 if test "x$has_space" != x; then 33157 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33158 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33159 fi 33160 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33161 fi 33162 fi 33163 33164 # Now new_path has a complete unix path to the binary 33165 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33166 # Keep paths in /bin as-is, but remove trailing .exe if any 33167 new_path="${new_path/%.exe/}" 33168 # Do not save /bin paths to all_fixpath_prefixes! 33169 else 33170 # Not in mixed or Windows style, start by that. 33171 new_path=`cmd //c echo $new_path` 33172 33173 input_path="$new_path" 33174 # Check if we need to convert this using DOS-style short mode. If the path 33175 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33176 # take no chances and rewrite it. 33177 # Note: m4 eats our [], so we need to use [ and ] instead. 33178 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33179 if test "x$has_forbidden_chars" != x; then 33180 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33181 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33182 fi 33183 33184 # Output is in $new_path 33185 33186 windows_path="$new_path" 33187 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33188 unix_path=`$CYGPATH -u "$windows_path"` 33189 new_path="$unix_path" 33190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33191 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33192 new_path="$unix_path" 33193 fi 33194 33195 # remove trailing .exe if any 33196 new_path="${new_path/%.exe/}" 33197 33198 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33199 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33200 fi 33201 33202 else 33203 # We're on a unix platform. Hooray! :) 33204 # First separate the path from the arguments. This will split at the first 33205 # space. 33206 complete="$VS_ENV_CMD" 33207 path="${complete%% *}" 33208 tmp="$complete EOL" 33209 arguments="${tmp#* }" 33210 33211 # Cannot rely on the command "which" here since it doesn't always work. 33212 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33213 if test -z "$is_absolute_path"; then 33214 # Path to executable is not absolute. Find it. 33215 IFS_save="$IFS" 33216 IFS=: 33217 for p in $PATH; do 33218 if test -f "$p/$path" && test -x "$p/$path"; then 33219 new_path="$p/$path" 33220 break 33221 fi 33222 done 33223 IFS="$IFS_save" 33224 else 33225 # This is an absolute path, we can use it without further modifications. 33226 new_path="$path" 33227 fi 33228 33229 if test "x$new_path" = x; then 33230 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33231 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33232 has_space=`$ECHO "$complete" | $GREP " "` 33233 if test "x$has_space" != x; then 33234 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33235 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33236 fi 33237 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33238 fi 33239 fi 33240 33241 # Now join together the path and the arguments once again 33242 if test "x$arguments" != xEOL; then 33243 new_complete="$new_path ${arguments% *}" 33244 else 33245 new_complete="$new_path" 33246 fi 33247 33248 if test "x$complete" != "x$new_complete"; then 33249 VS_ENV_CMD="$new_complete" 33250 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 33251 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 33252 fi 33253 fi 33254 33255 33256 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 33257 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 33258 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 33259 33260 # We need to create a couple of temporary files. 33261 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 33262 $MKDIR -p $VS_ENV_TMP_DIR 33263 33264 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 33265 # Instead create a shell script which will set the relevant variables when run. 33266 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 33267 33268 unix_path="$WINPATH_VS_ENV_CMD" 33269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33270 windows_path=`$CYGPATH -m "$unix_path"` 33271 WINPATH_VS_ENV_CMD="$windows_path" 33272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33273 windows_path=`cmd //c echo $unix_path` 33274 WINPATH_VS_ENV_CMD="$windows_path" 33275 fi 33276 33277 WINPATH_BASH="$BASH" 33278 33279 unix_path="$WINPATH_BASH" 33280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33281 windows_path=`$CYGPATH -m "$unix_path"` 33282 WINPATH_BASH="$windows_path" 33283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33284 windows_path=`cmd //c echo $unix_path` 33285 WINPATH_BASH="$windows_path" 33286 fi 33287 33288 33289 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 33290 # script (executable by bash) that will setup the important variables. 33291 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 33292 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 33293 # This will end up something like: 33294 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 33295 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 33296 # These will end up something like: 33297 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 33298 # The trailing space for everyone except PATH is no typo, but is needed due 33299 # to trailing \ in the Windows paths. These will be stripped later. 33300 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 33301 >> $EXTRACT_VC_ENV_BAT_FILE 33302 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 33303 >> $EXTRACT_VC_ENV_BAT_FILE 33304 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 33305 >> $EXTRACT_VC_ENV_BAT_FILE 33306 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 33307 >> $EXTRACT_VC_ENV_BAT_FILE 33308 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 33309 >> $EXTRACT_VC_ENV_BAT_FILE 33310 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 33311 >> $EXTRACT_VC_ENV_BAT_FILE 33312 33313 # Now execute the newly created bat file. 33314 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 33315 # Change directory so we don't need to mess with Windows paths in redirects. 33316 cd $VS_ENV_TMP_DIR 33317 cmd /c extract-vs-env.bat | $CAT 33318 cd $CURDIR 33319 33320 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 33321 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 33322 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 33323 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33324 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33325 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33326 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33327 as_fn_error $? "Cannot continue" "$LINENO" 5 33328 fi 33329 33330 # Now set all paths and other env variables. This will allow the rest of 33331 # the configure script to find and run the compiler in the proper way. 33332 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 33333 $as_echo "$as_me: Setting extracted environment variables" >&6;} 33334 . $VS_ENV_TMP_DIR/set-vs-env.sh 33335 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 33336 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 33337 else 33338 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 33339 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 33340 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 33341 fi 33342 fi 33343 33344 # At this point, we should have correct variables in the environment, or we can't continue. 33345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 33346 $as_echo_n "checking for Visual Studio variables... " >&6; } 33347 33348 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 33349 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 33350 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 33351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 33352 $as_echo "present but broken" >&6; } 33353 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 33354 else 33355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 33356 $as_echo "ok" >&6; } 33357 # Remove any trailing "\" ";" and " " from the variables. 33358 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 33359 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 33360 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 33361 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 33362 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 33363 # Remove any paths containing # (typically F#) as that messes up make. This 33364 # is needed if visual studio was installed with F# support. 33365 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 33366 33367 33368 33369 33370 33371 # Convert VS_INCLUDE into SYSROOT_CFLAGS 33372 OLDIFS="$IFS" 33373 IFS=";" 33374 for i in $VS_INCLUDE; do 33375 ipath=$i 33376 # Only process non-empty elements 33377 if test "x$ipath" != x; then 33378 IFS="$OLDIFS" 33379 # Check that directory exists before calling fixup_path 33380 testpath=$ipath 33381 33382 windows_path="$testpath" 33383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33384 unix_path=`$CYGPATH -u "$windows_path"` 33385 testpath="$unix_path" 33386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33387 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33388 testpath="$unix_path" 33389 fi 33390 33391 if test -d "$testpath"; then 33392 33393 # Only process if variable expands to non-empty 33394 33395 if test "x$ipath" != x; then 33396 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33397 33398 # Input might be given as Windows format, start by converting to 33399 # unix format. 33400 path="$ipath" 33401 new_path=`$CYGPATH -u "$path"` 33402 33403 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33404 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33405 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33406 # "foo.exe" is OK but "foo" is an error. 33407 # 33408 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33409 # It is also a way to make sure we got the proper file name for the real test later on. 33410 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33411 if test "x$test_shortpath" = x; then 33412 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33413 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33414 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 33415 fi 33416 33417 # Call helper function which possibly converts this using DOS-style short mode. 33418 # If so, the updated path is stored in $new_path. 33419 33420 input_path="$new_path" 33421 # Check if we need to convert this using DOS-style short mode. If the path 33422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33423 # take no chances and rewrite it. 33424 # Note: m4 eats our [], so we need to use [ and ] instead. 33425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33426 if test "x$has_forbidden_chars" != x; then 33427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33428 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33429 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33430 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33431 # Going to short mode and back again did indeed matter. Since short mode is 33432 # case insensitive, let's make it lowercase to improve readability. 33433 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33434 # Now convert it back to Unix-style (cygpath) 33435 input_path=`$CYGPATH -u "$shortmode_path"` 33436 new_path="$input_path" 33437 fi 33438 fi 33439 33440 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33441 if test "x$test_cygdrive_prefix" = x; then 33442 # As a simple fix, exclude /usr/bin since it's not a real path. 33443 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33444 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33445 # a path prefixed by /cygdrive for fixpath to work. 33446 new_path="$CYGWIN_ROOT_PATH$input_path" 33447 fi 33448 fi 33449 33450 33451 if test "x$path" != "x$new_path"; then 33452 ipath="$new_path" 33453 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33454 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33455 fi 33456 33457 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33458 33459 path="$ipath" 33460 has_colon=`$ECHO $path | $GREP ^.:` 33461 new_path="$path" 33462 if test "x$has_colon" = x; then 33463 # Not in mixed or Windows style, start by that. 33464 new_path=`cmd //c echo $path` 33465 fi 33466 33467 33468 input_path="$new_path" 33469 # Check if we need to convert this using DOS-style short mode. If the path 33470 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33471 # take no chances and rewrite it. 33472 # Note: m4 eats our [], so we need to use [ and ] instead. 33473 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33474 if test "x$has_forbidden_chars" != x; then 33475 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33476 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33477 fi 33478 33479 33480 windows_path="$new_path" 33481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33482 unix_path=`$CYGPATH -u "$windows_path"` 33483 new_path="$unix_path" 33484 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33485 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33486 new_path="$unix_path" 33487 fi 33488 33489 if test "x$path" != "x$new_path"; then 33490 ipath="$new_path" 33491 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33492 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33493 fi 33494 33495 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33496 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33497 33498 else 33499 # We're on a unix platform. Hooray! :) 33500 path="$ipath" 33501 has_space=`$ECHO "$path" | $GREP " "` 33502 if test "x$has_space" != x; then 33503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33504 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33505 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33506 fi 33507 33508 # Use eval to expand a potential ~ 33509 eval path="$path" 33510 if test ! -f "$path" && test ! -d "$path"; then 33511 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 33512 fi 33513 33514 if test -d "$path"; then 33515 ipath="`cd "$path"; $THEPWDCMD -L`" 33516 else 33517 dir="`$DIRNAME "$path"`" 33518 base="`$BASENAME "$path"`" 33519 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 33520 fi 33521 fi 33522 fi 33523 33524 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 33525 fi 33526 IFS=";" 33527 fi 33528 done 33529 # Convert VS_LIB into SYSROOT_LDFLAGS 33530 for i in $VS_LIB; do 33531 libpath=$i 33532 # Only process non-empty elements 33533 if test "x$libpath" != x; then 33534 IFS="$OLDIFS" 33535 # Check that directory exists before calling fixup_path 33536 testpath=$libpath 33537 33538 windows_path="$testpath" 33539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33540 unix_path=`$CYGPATH -u "$windows_path"` 33541 testpath="$unix_path" 33542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33543 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33544 testpath="$unix_path" 33545 fi 33546 33547 if test -d "$testpath"; then 33548 33549 # Only process if variable expands to non-empty 33550 33551 if test "x$libpath" != x; then 33552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33553 33554 # Input might be given as Windows format, start by converting to 33555 # unix format. 33556 path="$libpath" 33557 new_path=`$CYGPATH -u "$path"` 33558 33559 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33560 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33561 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33562 # "foo.exe" is OK but "foo" is an error. 33563 # 33564 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33565 # It is also a way to make sure we got the proper file name for the real test later on. 33566 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33567 if test "x$test_shortpath" = x; then 33568 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33569 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33570 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 33571 fi 33572 33573 # Call helper function which possibly converts this using DOS-style short mode. 33574 # If so, the updated path is stored in $new_path. 33575 33576 input_path="$new_path" 33577 # Check if we need to convert this using DOS-style short mode. If the path 33578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33579 # take no chances and rewrite it. 33580 # Note: m4 eats our [], so we need to use [ and ] instead. 33581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33582 if test "x$has_forbidden_chars" != x; then 33583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33584 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33585 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33586 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33587 # Going to short mode and back again did indeed matter. Since short mode is 33588 # case insensitive, let's make it lowercase to improve readability. 33589 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33590 # Now convert it back to Unix-style (cygpath) 33591 input_path=`$CYGPATH -u "$shortmode_path"` 33592 new_path="$input_path" 33593 fi 33594 fi 33595 33596 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33597 if test "x$test_cygdrive_prefix" = x; then 33598 # As a simple fix, exclude /usr/bin since it's not a real path. 33599 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33600 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33601 # a path prefixed by /cygdrive for fixpath to work. 33602 new_path="$CYGWIN_ROOT_PATH$input_path" 33603 fi 33604 fi 33605 33606 33607 if test "x$path" != "x$new_path"; then 33608 libpath="$new_path" 33609 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33610 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33611 fi 33612 33613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33614 33615 path="$libpath" 33616 has_colon=`$ECHO $path | $GREP ^.:` 33617 new_path="$path" 33618 if test "x$has_colon" = x; then 33619 # Not in mixed or Windows style, start by that. 33620 new_path=`cmd //c echo $path` 33621 fi 33622 33623 33624 input_path="$new_path" 33625 # Check if we need to convert this using DOS-style short mode. If the path 33626 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33627 # take no chances and rewrite it. 33628 # Note: m4 eats our [], so we need to use [ and ] instead. 33629 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33630 if test "x$has_forbidden_chars" != x; then 33631 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33632 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33633 fi 33634 33635 33636 windows_path="$new_path" 33637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33638 unix_path=`$CYGPATH -u "$windows_path"` 33639 new_path="$unix_path" 33640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33642 new_path="$unix_path" 33643 fi 33644 33645 if test "x$path" != "x$new_path"; then 33646 libpath="$new_path" 33647 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33648 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33649 fi 33650 33651 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33652 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33653 33654 else 33655 # We're on a unix platform. Hooray! :) 33656 path="$libpath" 33657 has_space=`$ECHO "$path" | $GREP " "` 33658 if test "x$has_space" != x; then 33659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33660 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33661 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33662 fi 33663 33664 # Use eval to expand a potential ~ 33665 eval path="$path" 33666 if test ! -f "$path" && test ! -d "$path"; then 33667 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 33668 fi 33669 33670 if test -d "$path"; then 33671 libpath="`cd "$path"; $THEPWDCMD -L`" 33672 else 33673 dir="`$DIRNAME "$path"`" 33674 base="`$BASENAME "$path"`" 33675 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 33676 fi 33677 fi 33678 fi 33679 33680 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33681 fi 33682 IFS=";" 33683 fi 33684 done 33685 IFS="$OLDIFS" 33686 fi 33687 else 33688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33689 $as_echo "not found" >&6; } 33690 33691 if test "x$VS_ENV_CMD" = x; then 33692 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33693 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33694 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33695 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33696 else 33697 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33698 $as_echo "$as_me: Running the extraction script failed." >&6;} 33699 fi 33700 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33701 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33702 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33703 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33704 as_fn_error $? "Cannot continue" "$LINENO" 5 33705 fi 33706 33707 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33708 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33709 PATH="$VS_PATH" 33710 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33711 export INCLUDE="$VS_INCLUDE" 33712 export LIB="$VS_LIB" 33713 else 33714 if test "x$XCODE_VERSION_OUTPUT" != x; then 33715 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33716 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33717 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33718 else 33719 # Currently we do not define this for other toolchains. This might change as the need arise. 33720 TOOLCHAIN_VERSION= 33721 fi 33722 fi 33723 33724 33725 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33726 # override all other locations. 33727 if test "x$TOOLCHAIN_PATH" != x; then 33728 PATH=$TOOLCHAIN_PATH:$PATH 33729 fi 33730 33731 33732 # 33733 # Setup the compilers (CC and CXX) 33734 # 33735 33736 COMPILER_NAME=C 33737 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33738 33739 if test "x$CC" != x; then 33740 # User has supplied compiler name already, always let that override. 33741 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33742 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33743 if test "x`basename $CC`" = "x$CC"; then 33744 # A command without a complete path is provided, search $PATH. 33745 33746 for ac_prog in $CC 33747 do 33748 # Extract the first word of "$ac_prog", so it can be a program name with args. 33749 set dummy $ac_prog; ac_word=$2 33750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33751 $as_echo_n "checking for $ac_word... " >&6; } 33752 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33753 $as_echo_n "(cached) " >&6 33754 else 33755 case $POTENTIAL_CC in 33756 [\\/]* | ?:[\\/]*) 33757 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33758 ;; 33759 *) 33760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33761 for as_dir in $PATH 33762 do 33763 IFS=$as_save_IFS 33764 test -z "$as_dir" && as_dir=. 33765 for ac_exec_ext in '' $ac_executable_extensions; do 33766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33767 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33769 break 2 33770 fi 33771 done 33772 done 33773 IFS=$as_save_IFS 33774 33775 ;; 33776 esac 33777 fi 33778 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33779 if test -n "$POTENTIAL_CC"; then 33780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33781 $as_echo "$POTENTIAL_CC" >&6; } 33782 else 33783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33784 $as_echo "no" >&6; } 33785 fi 33786 33787 33788 test -n "$POTENTIAL_CC" && break 33789 done 33790 33791 if test "x$POTENTIAL_CC" != x; then 33792 CC=$POTENTIAL_CC 33793 else 33794 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33795 fi 33796 else 33797 # Otherwise it might already be a complete path 33798 if test ! -x "$CC"; then 33799 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33800 fi 33801 fi 33802 else 33803 # No user supplied value. Locate compiler ourselves. 33804 33805 # If we are cross compiling, assume cross compilation tools follows the 33806 # cross compilation standard where they are prefixed with the autoconf 33807 # standard name for the target. For example the binary 33808 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33809 # If we are not cross compiling, then the default compiler name will be 33810 # used. 33811 33812 CC= 33813 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33814 # before checking the rest of the PATH. 33815 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33816 # step, this should not be necessary. 33817 if test -n "$TOOLCHAIN_PATH"; then 33818 PATH_save="$PATH" 33819 PATH="$TOOLCHAIN_PATH" 33820 if test -n "$ac_tool_prefix"; then 33821 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33822 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33824 $as_echo_n "checking for $ac_word... " >&6; } 33825 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33826 $as_echo_n "(cached) " >&6 33827 else 33828 case $TOOLCHAIN_PATH_CC in 33829 [\\/]* | ?:[\\/]*) 33830 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33831 ;; 33832 *) 33833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33834 for as_dir in $PATH 33835 do 33836 IFS=$as_save_IFS 33837 test -z "$as_dir" && as_dir=. 33838 for ac_exec_ext in '' $ac_executable_extensions; do 33839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33840 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33842 break 2 33843 fi 33844 done 33845 done 33846 IFS=$as_save_IFS 33847 33848 ;; 33849 esac 33850 fi 33851 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33852 if test -n "$TOOLCHAIN_PATH_CC"; then 33853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33854 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33855 else 33856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33857 $as_echo "no" >&6; } 33858 fi 33859 33860 33861 fi 33862 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CC"; then 33863 ac_pt_TOOLCHAIN_PATH_CC=$TOOLCHAIN_PATH_CC 33864 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33865 set dummy $SEARCH_LIST; ac_word=$2 33866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33867 $as_echo_n "checking for $ac_word... " >&6; } 33868 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC+:} false; then : 33869 $as_echo_n "(cached) " >&6 33870 else 33871 case $ac_pt_TOOLCHAIN_PATH_CC in 33872 [\\/]* | ?:[\\/]*) 33873 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$ac_pt_TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33874 ;; 33875 *) 33876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33877 for as_dir in $PATH 33878 do 33879 IFS=$as_save_IFS 33880 test -z "$as_dir" && as_dir=. 33881 for ac_exec_ext in '' $ac_executable_extensions; do 33882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33883 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33885 break 2 33886 fi 33887 done 33888 done 33889 IFS=$as_save_IFS 33890 33891 ;; 33892 esac 33893 fi 33894 ac_pt_TOOLCHAIN_PATH_CC=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC 33895 if test -n "$ac_pt_TOOLCHAIN_PATH_CC"; then 33896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CC" >&5 33897 $as_echo "$ac_pt_TOOLCHAIN_PATH_CC" >&6; } 33898 else 33899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33900 $as_echo "no" >&6; } 33901 fi 33902 33903 if test "x$ac_pt_TOOLCHAIN_PATH_CC" = x; then 33904 TOOLCHAIN_PATH_CC="" 33905 else 33906 case $cross_compiling:$ac_tool_warned in 33907 yes:) 33908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33910 ac_tool_warned=yes ;; 33911 esac 33912 TOOLCHAIN_PATH_CC=$ac_pt_TOOLCHAIN_PATH_CC 33913 fi 33914 else 33915 TOOLCHAIN_PATH_CC="$ac_cv_path_TOOLCHAIN_PATH_CC" 33916 fi 33917 33918 CC=$TOOLCHAIN_PATH_CC 33919 PATH="$PATH_save" 33920 fi 33921 33922 # AC_PATH_TOOL can't be run multiple times with the same variable, 33923 # so create a new name for this run. 33924 if test "x$CC" = x; then 33925 if test -n "$ac_tool_prefix"; then 33926 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33927 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33929 $as_echo_n "checking for $ac_word... " >&6; } 33930 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33931 $as_echo_n "(cached) " >&6 33932 else 33933 case $POTENTIAL_CC in 33934 [\\/]* | ?:[\\/]*) 33935 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33936 ;; 33937 *) 33938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33939 for as_dir in $PATH 33940 do 33941 IFS=$as_save_IFS 33942 test -z "$as_dir" && as_dir=. 33943 for ac_exec_ext in '' $ac_executable_extensions; do 33944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33945 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33947 break 2 33948 fi 33949 done 33950 done 33951 IFS=$as_save_IFS 33952 33953 ;; 33954 esac 33955 fi 33956 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33957 if test -n "$POTENTIAL_CC"; then 33958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33959 $as_echo "$POTENTIAL_CC" >&6; } 33960 else 33961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33962 $as_echo "no" >&6; } 33963 fi 33964 33965 33966 fi 33967 if test -z "$ac_cv_path_POTENTIAL_CC"; then 33968 ac_pt_POTENTIAL_CC=$POTENTIAL_CC 33969 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33970 set dummy $SEARCH_LIST; ac_word=$2 33971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33972 $as_echo_n "checking for $ac_word... " >&6; } 33973 if ${ac_cv_path_ac_pt_POTENTIAL_CC+:} false; then : 33974 $as_echo_n "(cached) " >&6 33975 else 33976 case $ac_pt_POTENTIAL_CC in 33977 [\\/]* | ?:[\\/]*) 33978 ac_cv_path_ac_pt_POTENTIAL_CC="$ac_pt_POTENTIAL_CC" # Let the user override the test with a path. 33979 ;; 33980 *) 33981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33982 for as_dir in $PATH 33983 do 33984 IFS=$as_save_IFS 33985 test -z "$as_dir" && as_dir=. 33986 for ac_exec_ext in '' $ac_executable_extensions; do 33987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33988 ac_cv_path_ac_pt_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33990 break 2 33991 fi 33992 done 33993 done 33994 IFS=$as_save_IFS 33995 33996 ;; 33997 esac 33998 fi 33999 ac_pt_POTENTIAL_CC=$ac_cv_path_ac_pt_POTENTIAL_CC 34000 if test -n "$ac_pt_POTENTIAL_CC"; then 34001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CC" >&5 34002 $as_echo "$ac_pt_POTENTIAL_CC" >&6; } 34003 else 34004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34005 $as_echo "no" >&6; } 34006 fi 34007 34008 if test "x$ac_pt_POTENTIAL_CC" = x; then 34009 POTENTIAL_CC="" 34010 else 34011 case $cross_compiling:$ac_tool_warned in 34012 yes:) 34013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34015 ac_tool_warned=yes ;; 34016 esac 34017 POTENTIAL_CC=$ac_pt_POTENTIAL_CC 34018 fi 34019 else 34020 POTENTIAL_CC="$ac_cv_path_POTENTIAL_CC" 34021 fi 34022 34023 CC=$POTENTIAL_CC 34024 fi 34025 34026 if test "x$CC" = x; then 34027 34028 # Print a helpful message on how to acquire the necessary build dependency. 34029 # devkit is the help tag: freetype, cups, alsa etc 34030 MISSING_DEPENDENCY=devkit 34031 34032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34033 cygwin_help $MISSING_DEPENDENCY 34034 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34035 msys_help $MISSING_DEPENDENCY 34036 else 34037 PKGHANDLER_COMMAND= 34038 34039 case $PKGHANDLER in 34040 apt-get) 34041 apt_help $MISSING_DEPENDENCY ;; 34042 yum) 34043 yum_help $MISSING_DEPENDENCY ;; 34044 brew) 34045 brew_help $MISSING_DEPENDENCY ;; 34046 port) 34047 port_help $MISSING_DEPENDENCY ;; 34048 pkgutil) 34049 pkgutil_help $MISSING_DEPENDENCY ;; 34050 pkgadd) 34051 pkgadd_help $MISSING_DEPENDENCY ;; 34052 esac 34053 34054 if test "x$PKGHANDLER_COMMAND" != x; then 34055 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34056 fi 34057 fi 34058 34059 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34060 fi 34061 fi 34062 34063 # Now we have a compiler binary in CC. Make sure it's okay. 34064 34065 # Only process if variable expands to non-empty 34066 34067 if test "x$CC" != x; then 34068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34069 34070 # First separate the path from the arguments. This will split at the first 34071 # space. 34072 complete="$CC" 34073 path="${complete%% *}" 34074 tmp="$complete EOL" 34075 arguments="${tmp#* }" 34076 34077 # Input might be given as Windows format, start by converting to 34078 # unix format. 34079 new_path=`$CYGPATH -u "$path"` 34080 34081 # Now try to locate executable using which 34082 new_path=`$WHICH "$new_path" 2> /dev/null` 34083 # bat and cmd files are not always considered executable in cygwin causing which 34084 # to not find them 34085 if test "x$new_path" = x \ 34086 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34087 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34088 new_path=`$CYGPATH -u "$path"` 34089 fi 34090 if test "x$new_path" = x; then 34091 # Oops. Which didn't find the executable. 34092 # The splitting of arguments from the executable at a space might have been incorrect, 34093 # since paths with space are more likely in Windows. Give it another try with the whole 34094 # argument. 34095 path="$complete" 34096 arguments="EOL" 34097 new_path=`$CYGPATH -u "$path"` 34098 new_path=`$WHICH "$new_path" 2> /dev/null` 34099 # bat and cmd files are not always considered executable in cygwin causing which 34100 # to not find them 34101 if test "x$new_path" = x \ 34102 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34103 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34104 new_path=`$CYGPATH -u "$path"` 34105 fi 34106 if test "x$new_path" = x; then 34107 # It's still not found. Now this is an unrecoverable error. 34108 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34109 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34110 has_space=`$ECHO "$complete" | $GREP " "` 34111 if test "x$has_space" != x; then 34112 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34113 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34114 fi 34115 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34116 fi 34117 fi 34118 34119 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34120 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34121 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34122 # "foo.exe" is OK but "foo" is an error. 34123 # 34124 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34125 # It is also a way to make sure we got the proper file name for the real test later on. 34126 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34127 if test "x$test_shortpath" = x; then 34128 # Short path failed, file does not exist as specified. 34129 # Try adding .exe or .cmd 34130 if test -f "${new_path}.exe"; then 34131 input_to_shortpath="${new_path}.exe" 34132 elif test -f "${new_path}.cmd"; then 34133 input_to_shortpath="${new_path}.cmd" 34134 else 34135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 34136 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 34137 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34138 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34139 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34140 fi 34141 else 34142 input_to_shortpath="$new_path" 34143 fi 34144 34145 # Call helper function which possibly converts this using DOS-style short mode. 34146 # If so, the updated path is stored in $new_path. 34147 new_path="$input_to_shortpath" 34148 34149 input_path="$input_to_shortpath" 34150 # Check if we need to convert this using DOS-style short mode. If the path 34151 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34152 # take no chances and rewrite it. 34153 # Note: m4 eats our [], so we need to use [ and ] instead. 34154 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34155 if test "x$has_forbidden_chars" != x; then 34156 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34157 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34158 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34159 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34160 # Going to short mode and back again did indeed matter. Since short mode is 34161 # case insensitive, let's make it lowercase to improve readability. 34162 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34163 # Now convert it back to Unix-style (cygpath) 34164 input_path=`$CYGPATH -u "$shortmode_path"` 34165 new_path="$input_path" 34166 fi 34167 fi 34168 34169 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34170 if test "x$test_cygdrive_prefix" = x; then 34171 # As a simple fix, exclude /usr/bin since it's not a real path. 34172 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34173 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34174 # a path prefixed by /cygdrive for fixpath to work. 34175 new_path="$CYGWIN_ROOT_PATH$input_path" 34176 fi 34177 fi 34178 34179 # remove trailing .exe if any 34180 new_path="${new_path/%.exe/}" 34181 34182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34183 34184 # First separate the path from the arguments. This will split at the first 34185 # space. 34186 complete="$CC" 34187 path="${complete%% *}" 34188 tmp="$complete EOL" 34189 arguments="${tmp#* }" 34190 34191 # Input might be given as Windows format, start by converting to 34192 # unix format. 34193 new_path="$path" 34194 34195 windows_path="$new_path" 34196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34197 unix_path=`$CYGPATH -u "$windows_path"` 34198 new_path="$unix_path" 34199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34200 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34201 new_path="$unix_path" 34202 fi 34203 34204 34205 # Now try to locate executable using which 34206 new_path=`$WHICH "$new_path" 2> /dev/null` 34207 34208 if test "x$new_path" = x; then 34209 # Oops. Which didn't find the executable. 34210 # The splitting of arguments from the executable at a space might have been incorrect, 34211 # since paths with space are more likely in Windows. Give it another try with the whole 34212 # argument. 34213 path="$complete" 34214 arguments="EOL" 34215 new_path="$path" 34216 34217 windows_path="$new_path" 34218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34219 unix_path=`$CYGPATH -u "$windows_path"` 34220 new_path="$unix_path" 34221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34222 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34223 new_path="$unix_path" 34224 fi 34225 34226 34227 new_path=`$WHICH "$new_path" 2> /dev/null` 34228 # bat and cmd files are not always considered executable in MSYS causing which 34229 # to not find them 34230 if test "x$new_path" = x \ 34231 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34232 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34233 new_path="$path" 34234 34235 windows_path="$new_path" 34236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34237 unix_path=`$CYGPATH -u "$windows_path"` 34238 new_path="$unix_path" 34239 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34240 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34241 new_path="$unix_path" 34242 fi 34243 34244 fi 34245 34246 if test "x$new_path" = x; then 34247 # It's still not found. Now this is an unrecoverable error. 34248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34249 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34250 has_space=`$ECHO "$complete" | $GREP " "` 34251 if test "x$has_space" != x; then 34252 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34253 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34254 fi 34255 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34256 fi 34257 fi 34258 34259 # Now new_path has a complete unix path to the binary 34260 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34261 # Keep paths in /bin as-is, but remove trailing .exe if any 34262 new_path="${new_path/%.exe/}" 34263 # Do not save /bin paths to all_fixpath_prefixes! 34264 else 34265 # Not in mixed or Windows style, start by that. 34266 new_path=`cmd //c echo $new_path` 34267 34268 input_path="$new_path" 34269 # Check if we need to convert this using DOS-style short mode. If the path 34270 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34271 # take no chances and rewrite it. 34272 # Note: m4 eats our [], so we need to use [ and ] instead. 34273 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34274 if test "x$has_forbidden_chars" != x; then 34275 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34276 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34277 fi 34278 34279 # Output is in $new_path 34280 34281 windows_path="$new_path" 34282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34283 unix_path=`$CYGPATH -u "$windows_path"` 34284 new_path="$unix_path" 34285 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34286 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34287 new_path="$unix_path" 34288 fi 34289 34290 # remove trailing .exe if any 34291 new_path="${new_path/%.exe/}" 34292 34293 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34294 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34295 fi 34296 34297 else 34298 # We're on a unix platform. Hooray! :) 34299 # First separate the path from the arguments. This will split at the first 34300 # space. 34301 complete="$CC" 34302 path="${complete%% *}" 34303 tmp="$complete EOL" 34304 arguments="${tmp#* }" 34305 34306 # Cannot rely on the command "which" here since it doesn't always work. 34307 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34308 if test -z "$is_absolute_path"; then 34309 # Path to executable is not absolute. Find it. 34310 IFS_save="$IFS" 34311 IFS=: 34312 for p in $PATH; do 34313 if test -f "$p/$path" && test -x "$p/$path"; then 34314 new_path="$p/$path" 34315 break 34316 fi 34317 done 34318 IFS="$IFS_save" 34319 else 34320 # This is an absolute path, we can use it without further modifications. 34321 new_path="$path" 34322 fi 34323 34324 if test "x$new_path" = x; then 34325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34326 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34327 has_space=`$ECHO "$complete" | $GREP " "` 34328 if test "x$has_space" != x; then 34329 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34330 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34331 fi 34332 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34333 fi 34334 fi 34335 34336 # Now join together the path and the arguments once again 34337 if test "x$arguments" != xEOL; then 34338 new_complete="$new_path ${arguments% *}" 34339 else 34340 new_complete="$new_path" 34341 fi 34342 34343 if test "x$complete" != "x$new_complete"; then 34344 CC="$new_complete" 34345 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 34346 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 34347 fi 34348 fi 34349 34350 TEST_COMPILER="$CC" 34351 34352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 34353 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 34354 SYMLINK_ORIGINAL="$TEST_COMPILER" 34355 34356 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34357 # Follow a chain of symbolic links. Use readlink 34358 # where it exists, else fall back to horribly 34359 # complicated shell code. 34360 if test "x$READLINK_TESTED" != yes; then 34361 # On MacOSX there is a readlink tool with a different 34362 # purpose than the GNU readlink tool. Check the found readlink. 34363 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34364 if test "x$ISGNU" = x; then 34365 # A readlink that we do not know how to use. 34366 # Are there other non-GNU readlinks out there? 34367 READLINK_TESTED=yes 34368 READLINK= 34369 fi 34370 fi 34371 34372 if test "x$READLINK" != x; then 34373 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34374 else 34375 # Save the current directory for restoring afterwards 34376 STARTDIR=$PWD 34377 COUNTER=0 34378 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34379 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34380 cd $sym_link_dir 34381 # Use -P flag to resolve symlinks in directories. 34382 cd `$THEPWDCMD -P` 34383 sym_link_dir=`$THEPWDCMD -P` 34384 # Resolve file symlinks 34385 while test $COUNTER -lt 20; do 34386 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34387 if test "x$ISLINK" == x; then 34388 # This is not a symbolic link! We are done! 34389 break 34390 fi 34391 # Again resolve directory symlinks since the target of the just found 34392 # link could be in a different directory 34393 cd `$DIRNAME $ISLINK` 34394 sym_link_dir=`$THEPWDCMD -P` 34395 sym_link_file=`$BASENAME $ISLINK` 34396 let COUNTER=COUNTER+1 34397 done 34398 cd $STARTDIR 34399 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34400 fi 34401 fi 34402 34403 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34405 $as_echo "no symlink" >&6; } 34406 else 34407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34408 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34409 34410 # We can't handle ccache by gcc wrappers, since we need to know if we're 34411 # using ccache. Instead ccache usage must be controlled by a configure option. 34412 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34413 if test "x$COMPILER_BASENAME" = "xccache"; then 34414 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34415 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34416 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34417 fi 34418 fi 34419 34420 34421 COMPILER=$CC 34422 COMPILER_NAME=$COMPILER_NAME 34423 34424 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34425 # cc -V output typically looks like 34426 # cc: Sun C 5.12 Linux_i386 2011/11/16 34427 # or 34428 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 34429 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34430 # Check that this is likely to be the Solaris Studio cc. 34431 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 34432 if test $? -ne 0; then 34433 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34434 { $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 34435 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34436 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34437 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34438 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34439 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34440 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34441 fi 34442 # Remove usage instructions (if present), and 34443 # collapse compiler output into a single line 34444 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34445 $SED -e 's/ *[Uu]sage:.*//'` 34446 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34447 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34448 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34449 # xlc -qversion output typically looks like 34450 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34451 # Version: 11.01.0000.0015 34452 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34453 # Check that this is likely to be the IBM XL C compiler. 34454 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34455 if test $? -ne 0; then 34456 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34457 { $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 34458 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34459 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34460 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34461 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34462 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34463 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34464 fi 34465 # Collapse compiler output into a single line 34466 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34467 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34468 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34469 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34470 # There is no specific version flag, but all output starts with a version string. 34471 # First line typically looks something like: 34472 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34473 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34474 # Check that this is likely to be Microsoft CL.EXE. 34475 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34476 if test $? -ne 0; then 34477 { $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 34478 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34479 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34480 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34481 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34482 fi 34483 # Collapse compiler output into a single line 34484 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34485 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34486 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34487 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34488 # gcc --version output typically looks like 34489 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34490 # Copyright (C) 2013 Free Software Foundation, Inc. 34491 # This is free software; see the source for copying conditions. There is NO 34492 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34493 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34494 # Check that this is likely to be GCC. 34495 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34496 if test $? -ne 0; then 34497 { $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 34498 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34499 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34500 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34501 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34502 fi 34503 # Remove Copyright and legalese from version string, and 34504 # collapse into a single line 34505 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34506 $SED -e 's/ *Copyright .*//'` 34507 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34508 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34509 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34510 # clang --version output typically looks like 34511 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34512 # clang version 3.3 (tags/RELEASE_33/final) 34513 # or 34514 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34515 # Target: x86_64-pc-linux-gnu 34516 # Thread model: posix 34517 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34518 # Check that this is likely to be clang 34519 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34520 if test $? -ne 0; then 34521 { $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 34522 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34523 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34524 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34525 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34526 fi 34527 # Collapse compiler output into a single line 34528 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34529 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34530 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34531 else 34532 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34533 fi 34534 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34535 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34536 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34537 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 34538 34539 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34540 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34541 34542 34543 # Now that we have resolved CC ourself, let autoconf have its go at it 34544 ac_ext=c 34545 ac_cpp='$CPP $CPPFLAGS' 34546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34548 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34549 if test -n "$ac_tool_prefix"; then 34550 for ac_prog in $CC 34551 do 34552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34555 $as_echo_n "checking for $ac_word... " >&6; } 34556 if ${ac_cv_prog_CC+:} false; then : 34557 $as_echo_n "(cached) " >&6 34558 else 34559 if test -n "$CC"; then 34560 ac_cv_prog_CC="$CC" # Let the user override the test. 34561 else 34562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34563 for as_dir in $PATH 34564 do 34565 IFS=$as_save_IFS 34566 test -z "$as_dir" && as_dir=. 34567 for ac_exec_ext in '' $ac_executable_extensions; do 34568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34571 break 2 34572 fi 34573 done 34574 done 34575 IFS=$as_save_IFS 34576 34577 fi 34578 fi 34579 CC=$ac_cv_prog_CC 34580 if test -n "$CC"; then 34581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34582 $as_echo "$CC" >&6; } 34583 else 34584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34585 $as_echo "no" >&6; } 34586 fi 34587 34588 34589 test -n "$CC" && break 34590 done 34591 fi 34592 if test -z "$CC"; then 34593 ac_ct_CC=$CC 34594 for ac_prog in $CC 34595 do 34596 # Extract the first word of "$ac_prog", so it can be a program name with args. 34597 set dummy $ac_prog; ac_word=$2 34598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34599 $as_echo_n "checking for $ac_word... " >&6; } 34600 if ${ac_cv_prog_ac_ct_CC+:} false; then : 34601 $as_echo_n "(cached) " >&6 34602 else 34603 if test -n "$ac_ct_CC"; then 34604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34605 else 34606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34607 for as_dir in $PATH 34608 do 34609 IFS=$as_save_IFS 34610 test -z "$as_dir" && as_dir=. 34611 for ac_exec_ext in '' $ac_executable_extensions; do 34612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34613 ac_cv_prog_ac_ct_CC="$ac_prog" 34614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34615 break 2 34616 fi 34617 done 34618 done 34619 IFS=$as_save_IFS 34620 34621 fi 34622 fi 34623 ac_ct_CC=$ac_cv_prog_ac_ct_CC 34624 if test -n "$ac_ct_CC"; then 34625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34626 $as_echo "$ac_ct_CC" >&6; } 34627 else 34628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34629 $as_echo "no" >&6; } 34630 fi 34631 34632 34633 test -n "$ac_ct_CC" && break 34634 done 34635 34636 if test "x$ac_ct_CC" = x; then 34637 CC="" 34638 else 34639 case $cross_compiling:$ac_tool_warned in 34640 yes:) 34641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34643 ac_tool_warned=yes ;; 34644 esac 34645 CC=$ac_ct_CC 34646 fi 34647 fi 34648 34649 34650 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34652 as_fn_error $? "no acceptable C compiler found in \$PATH 34653 See \`config.log' for more details" "$LINENO" 5; } 34654 34655 # Provide some information about the compiler. 34656 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 34657 set X $ac_compile 34658 ac_compiler=$2 34659 for ac_option in --version -v -V -qversion; do 34660 { { ac_try="$ac_compiler $ac_option >&5" 34661 case "(($ac_try" in 34662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34663 *) ac_try_echo=$ac_try;; 34664 esac 34665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34666 $as_echo "$ac_try_echo"; } >&5 34667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34668 ac_status=$? 34669 if test -s conftest.err; then 34670 sed '10a\ 34671 ... rest of stderr output deleted ... 34672 10q' conftest.err >conftest.er1 34673 cat conftest.er1 >&5 34674 fi 34675 rm -f conftest.er1 conftest.err 34676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34677 test $ac_status = 0; } 34678 done 34679 34680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34681 /* end confdefs.h. */ 34682 34683 int 34684 main () 34685 { 34686 34687 ; 34688 return 0; 34689 } 34690 _ACEOF 34691 ac_clean_files_save=$ac_clean_files 34692 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 34693 # Try to create an executable without -o first, disregard a.out. 34694 # It will help us diagnose broken compilers, and finding out an intuition 34695 # of exeext. 34696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 34697 $as_echo_n "checking whether the C compiler works... " >&6; } 34698 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 34699 34700 # The possible output files: 34701 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 34702 34703 ac_rmfiles= 34704 for ac_file in $ac_files 34705 do 34706 case $ac_file in 34707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34708 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 34709 esac 34710 done 34711 rm -f $ac_rmfiles 34712 34713 if { { ac_try="$ac_link_default" 34714 case "(($ac_try" in 34715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34716 *) ac_try_echo=$ac_try;; 34717 esac 34718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34719 $as_echo "$ac_try_echo"; } >&5 34720 (eval "$ac_link_default") 2>&5 34721 ac_status=$? 34722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34723 test $ac_status = 0; }; then : 34724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 34725 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 34726 # in a Makefile. We should not override ac_cv_exeext if it was cached, 34727 # so that the user can short-circuit this test for compilers unknown to 34728 # Autoconf. 34729 for ac_file in $ac_files '' 34730 do 34731 test -f "$ac_file" || continue 34732 case $ac_file in 34733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 34734 ;; 34735 [ab].out ) 34736 # We found the default executable, but exeext='' is most 34737 # certainly right. 34738 break;; 34739 *.* ) 34740 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 34741 then :; else 34742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34743 fi 34744 # We set ac_cv_exeext here because the later test for it is not 34745 # safe: cross compilers may not add the suffix if given an `-o' 34746 # argument, so we may need to know it at that point already. 34747 # Even if this section looks crufty: it has the advantage of 34748 # actually working. 34749 break;; 34750 * ) 34751 break;; 34752 esac 34753 done 34754 test "$ac_cv_exeext" = no && ac_cv_exeext= 34755 34756 else 34757 ac_file='' 34758 fi 34759 if test -z "$ac_file"; then : 34760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34761 $as_echo "no" >&6; } 34762 $as_echo "$as_me: failed program was:" >&5 34763 sed 's/^/| /' conftest.$ac_ext >&5 34764 34765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34767 as_fn_error 77 "C compiler cannot create executables 34768 See \`config.log' for more details" "$LINENO" 5; } 34769 else 34770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34771 $as_echo "yes" >&6; } 34772 fi 34773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34774 $as_echo_n "checking for C compiler default output file name... " >&6; } 34775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34776 $as_echo "$ac_file" >&6; } 34777 ac_exeext=$ac_cv_exeext 34778 34779 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34780 ac_clean_files=$ac_clean_files_save 34781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34782 $as_echo_n "checking for suffix of executables... " >&6; } 34783 if { { ac_try="$ac_link" 34784 case "(($ac_try" in 34785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34786 *) ac_try_echo=$ac_try;; 34787 esac 34788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34789 $as_echo "$ac_try_echo"; } >&5 34790 (eval "$ac_link") 2>&5 34791 ac_status=$? 34792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34793 test $ac_status = 0; }; then : 34794 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34795 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34796 # work properly (i.e., refer to `conftest.exe'), while it won't with 34797 # `rm'. 34798 for ac_file in conftest.exe conftest conftest.*; do 34799 test -f "$ac_file" || continue 34800 case $ac_file in 34801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34802 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34803 break;; 34804 * ) break;; 34805 esac 34806 done 34807 else 34808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34810 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34811 See \`config.log' for more details" "$LINENO" 5; } 34812 fi 34813 rm -f conftest conftest$ac_cv_exeext 34814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34815 $as_echo "$ac_cv_exeext" >&6; } 34816 34817 rm -f conftest.$ac_ext 34818 EXEEXT=$ac_cv_exeext 34819 ac_exeext=$EXEEXT 34820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34821 /* end confdefs.h. */ 34822 #include <stdio.h> 34823 int 34824 main () 34825 { 34826 FILE *f = fopen ("conftest.out", "w"); 34827 return ferror (f) || fclose (f) != 0; 34828 34829 ; 34830 return 0; 34831 } 34832 _ACEOF 34833 ac_clean_files="$ac_clean_files conftest.out" 34834 # Check that the compiler produces executables we can run. If not, either 34835 # the compiler is broken, or we cross compile. 34836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34837 $as_echo_n "checking whether we are cross compiling... " >&6; } 34838 if test "$cross_compiling" != yes; then 34839 { { ac_try="$ac_link" 34840 case "(($ac_try" in 34841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34842 *) ac_try_echo=$ac_try;; 34843 esac 34844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34845 $as_echo "$ac_try_echo"; } >&5 34846 (eval "$ac_link") 2>&5 34847 ac_status=$? 34848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34849 test $ac_status = 0; } 34850 if { ac_try='./conftest$ac_cv_exeext' 34851 { { case "(($ac_try" in 34852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34853 *) ac_try_echo=$ac_try;; 34854 esac 34855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34856 $as_echo "$ac_try_echo"; } >&5 34857 (eval "$ac_try") 2>&5 34858 ac_status=$? 34859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34860 test $ac_status = 0; }; }; then 34861 cross_compiling=no 34862 else 34863 if test "$cross_compiling" = maybe; then 34864 cross_compiling=yes 34865 else 34866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34868 as_fn_error $? "cannot run C compiled programs. 34869 If you meant to cross compile, use \`--host'. 34870 See \`config.log' for more details" "$LINENO" 5; } 34871 fi 34872 fi 34873 fi 34874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34875 $as_echo "$cross_compiling" >&6; } 34876 34877 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34878 ac_clean_files=$ac_clean_files_save 34879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34880 $as_echo_n "checking for suffix of object files... " >&6; } 34881 if ${ac_cv_objext+:} false; then : 34882 $as_echo_n "(cached) " >&6 34883 else 34884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34885 /* end confdefs.h. */ 34886 34887 int 34888 main () 34889 { 34890 34891 ; 34892 return 0; 34893 } 34894 _ACEOF 34895 rm -f conftest.o conftest.obj 34896 if { { ac_try="$ac_compile" 34897 case "(($ac_try" in 34898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34899 *) ac_try_echo=$ac_try;; 34900 esac 34901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34902 $as_echo "$ac_try_echo"; } >&5 34903 (eval "$ac_compile") 2>&5 34904 ac_status=$? 34905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34906 test $ac_status = 0; }; then : 34907 for ac_file in conftest.o conftest.obj conftest.*; do 34908 test -f "$ac_file" || continue; 34909 case $ac_file in 34910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34911 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34912 break;; 34913 esac 34914 done 34915 else 34916 $as_echo "$as_me: failed program was:" >&5 34917 sed 's/^/| /' conftest.$ac_ext >&5 34918 34919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34921 as_fn_error $? "cannot compute suffix of object files: cannot compile 34922 See \`config.log' for more details" "$LINENO" 5; } 34923 fi 34924 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34925 fi 34926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34927 $as_echo "$ac_cv_objext" >&6; } 34928 OBJEXT=$ac_cv_objext 34929 ac_objext=$OBJEXT 34930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34931 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34932 if ${ac_cv_c_compiler_gnu+:} false; then : 34933 $as_echo_n "(cached) " >&6 34934 else 34935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34936 /* end confdefs.h. */ 34937 34938 int 34939 main () 34940 { 34941 #ifndef __GNUC__ 34942 choke me 34943 #endif 34944 34945 ; 34946 return 0; 34947 } 34948 _ACEOF 34949 if ac_fn_c_try_compile "$LINENO"; then : 34950 ac_compiler_gnu=yes 34951 else 34952 ac_compiler_gnu=no 34953 fi 34954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34955 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34956 34957 fi 34958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34959 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34960 if test $ac_compiler_gnu = yes; then 34961 GCC=yes 34962 else 34963 GCC= 34964 fi 34965 ac_test_CFLAGS=${CFLAGS+set} 34966 ac_save_CFLAGS=$CFLAGS 34967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34968 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34969 if ${ac_cv_prog_cc_g+:} false; then : 34970 $as_echo_n "(cached) " >&6 34971 else 34972 ac_save_c_werror_flag=$ac_c_werror_flag 34973 ac_c_werror_flag=yes 34974 ac_cv_prog_cc_g=no 34975 CFLAGS="-g" 34976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34977 /* end confdefs.h. */ 34978 34979 int 34980 main () 34981 { 34982 34983 ; 34984 return 0; 34985 } 34986 _ACEOF 34987 if ac_fn_c_try_compile "$LINENO"; then : 34988 ac_cv_prog_cc_g=yes 34989 else 34990 CFLAGS="" 34991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34992 /* end confdefs.h. */ 34993 34994 int 34995 main () 34996 { 34997 34998 ; 34999 return 0; 35000 } 35001 _ACEOF 35002 if ac_fn_c_try_compile "$LINENO"; then : 35003 35004 else 35005 ac_c_werror_flag=$ac_save_c_werror_flag 35006 CFLAGS="-g" 35007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35008 /* end confdefs.h. */ 35009 35010 int 35011 main () 35012 { 35013 35014 ; 35015 return 0; 35016 } 35017 _ACEOF 35018 if ac_fn_c_try_compile "$LINENO"; then : 35019 ac_cv_prog_cc_g=yes 35020 fi 35021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35022 fi 35023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35024 fi 35025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35026 ac_c_werror_flag=$ac_save_c_werror_flag 35027 fi 35028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 35029 $as_echo "$ac_cv_prog_cc_g" >&6; } 35030 if test "$ac_test_CFLAGS" = set; then 35031 CFLAGS=$ac_save_CFLAGS 35032 elif test $ac_cv_prog_cc_g = yes; then 35033 if test "$GCC" = yes; then 35034 CFLAGS="-g -O2" 35035 else 35036 CFLAGS="-g" 35037 fi 35038 else 35039 if test "$GCC" = yes; then 35040 CFLAGS="-O2" 35041 else 35042 CFLAGS= 35043 fi 35044 fi 35045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 35046 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 35047 if ${ac_cv_prog_cc_c89+:} false; then : 35048 $as_echo_n "(cached) " >&6 35049 else 35050 ac_cv_prog_cc_c89=no 35051 ac_save_CC=$CC 35052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35053 /* end confdefs.h. */ 35054 #include <stdarg.h> 35055 #include <stdio.h> 35056 struct stat; 35057 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 35058 struct buf { int x; }; 35059 FILE * (*rcsopen) (struct buf *, struct stat *, int); 35060 static char *e (p, i) 35061 char **p; 35062 int i; 35063 { 35064 return p[i]; 35065 } 35066 static char *f (char * (*g) (char **, int), char **p, ...) 35067 { 35068 char *s; 35069 va_list v; 35070 va_start (v,p); 35071 s = g (p, va_arg (v,int)); 35072 va_end (v); 35073 return s; 35074 } 35075 35076 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 35077 function prototypes and stuff, but not '\xHH' hex character constants. 35078 These don't provoke an error unfortunately, instead are silently treated 35079 as 'x'. The following induces an error, until -std is added to get 35080 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35081 array size at least. It's necessary to write '\x00'==0 to get something 35082 that's true only with -std. */ 35083 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35084 35085 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 35086 inside strings and character constants. */ 35087 #define FOO(x) 'x' 35088 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35089 35090 int test (int i, double x); 35091 struct s1 {int (*f) (int a);}; 35092 struct s2 {int (*f) (double a);}; 35093 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35094 int argc; 35095 char **argv; 35096 int 35097 main () 35098 { 35099 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35100 ; 35101 return 0; 35102 } 35103 _ACEOF 35104 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35105 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35106 do 35107 CC="$ac_save_CC $ac_arg" 35108 if ac_fn_c_try_compile "$LINENO"; then : 35109 ac_cv_prog_cc_c89=$ac_arg 35110 fi 35111 rm -f core conftest.err conftest.$ac_objext 35112 test "x$ac_cv_prog_cc_c89" != "xno" && break 35113 done 35114 rm -f conftest.$ac_ext 35115 CC=$ac_save_CC 35116 35117 fi 35118 # AC_CACHE_VAL 35119 case "x$ac_cv_prog_cc_c89" in 35120 x) 35121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35122 $as_echo "none needed" >&6; } ;; 35123 xno) 35124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35125 $as_echo "unsupported" >&6; } ;; 35126 *) 35127 CC="$CC $ac_cv_prog_cc_c89" 35128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35129 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35130 esac 35131 if test "x$ac_cv_prog_cc_c89" != xno; then : 35132 35133 fi 35134 35135 ac_ext=cpp 35136 ac_cpp='$CXXCPP $CPPFLAGS' 35137 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35138 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35139 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35140 35141 35142 35143 COMPILER_NAME=C++ 35144 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 35145 35146 if test "x$CXX" != x; then 35147 # User has supplied compiler name already, always let that override. 35148 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 35149 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 35150 if test "x`basename $CXX`" = "x$CXX"; then 35151 # A command without a complete path is provided, search $PATH. 35152 35153 for ac_prog in $CXX 35154 do 35155 # Extract the first word of "$ac_prog", so it can be a program name with args. 35156 set dummy $ac_prog; ac_word=$2 35157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35158 $as_echo_n "checking for $ac_word... " >&6; } 35159 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35160 $as_echo_n "(cached) " >&6 35161 else 35162 case $POTENTIAL_CXX in 35163 [\\/]* | ?:[\\/]*) 35164 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35165 ;; 35166 *) 35167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35168 for as_dir in $PATH 35169 do 35170 IFS=$as_save_IFS 35171 test -z "$as_dir" && as_dir=. 35172 for ac_exec_ext in '' $ac_executable_extensions; do 35173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35174 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35176 break 2 35177 fi 35178 done 35179 done 35180 IFS=$as_save_IFS 35181 35182 ;; 35183 esac 35184 fi 35185 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35186 if test -n "$POTENTIAL_CXX"; then 35187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35188 $as_echo "$POTENTIAL_CXX" >&6; } 35189 else 35190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35191 $as_echo "no" >&6; } 35192 fi 35193 35194 35195 test -n "$POTENTIAL_CXX" && break 35196 done 35197 35198 if test "x$POTENTIAL_CXX" != x; then 35199 CXX=$POTENTIAL_CXX 35200 else 35201 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 35202 fi 35203 else 35204 # Otherwise it might already be a complete path 35205 if test ! -x "$CXX"; then 35206 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 35207 fi 35208 fi 35209 else 35210 # No user supplied value. Locate compiler ourselves. 35211 35212 # If we are cross compiling, assume cross compilation tools follows the 35213 # cross compilation standard where they are prefixed with the autoconf 35214 # standard name for the target. For example the binary 35215 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 35216 # If we are not cross compiling, then the default compiler name will be 35217 # used. 35218 35219 CXX= 35220 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 35221 # before checking the rest of the PATH. 35222 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 35223 # step, this should not be necessary. 35224 if test -n "$TOOLCHAIN_PATH"; then 35225 PATH_save="$PATH" 35226 PATH="$TOOLCHAIN_PATH" 35227 if test -n "$ac_tool_prefix"; then 35228 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35229 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35231 $as_echo_n "checking for $ac_word... " >&6; } 35232 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 35233 $as_echo_n "(cached) " >&6 35234 else 35235 case $TOOLCHAIN_PATH_CXX in 35236 [\\/]* | ?:[\\/]*) 35237 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35238 ;; 35239 *) 35240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35241 for as_dir in $PATH 35242 do 35243 IFS=$as_save_IFS 35244 test -z "$as_dir" && as_dir=. 35245 for ac_exec_ext in '' $ac_executable_extensions; do 35246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35247 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35249 break 2 35250 fi 35251 done 35252 done 35253 IFS=$as_save_IFS 35254 35255 ;; 35256 esac 35257 fi 35258 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 35259 if test -n "$TOOLCHAIN_PATH_CXX"; then 35260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 35261 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 35262 else 35263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35264 $as_echo "no" >&6; } 35265 fi 35266 35267 35268 fi 35269 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CXX"; then 35270 ac_pt_TOOLCHAIN_PATH_CXX=$TOOLCHAIN_PATH_CXX 35271 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35272 set dummy $SEARCH_LIST; ac_word=$2 35273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35274 $as_echo_n "checking for $ac_word... " >&6; } 35275 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX+:} false; then : 35276 $as_echo_n "(cached) " >&6 35277 else 35278 case $ac_pt_TOOLCHAIN_PATH_CXX in 35279 [\\/]* | ?:[\\/]*) 35280 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$ac_pt_TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35281 ;; 35282 *) 35283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35284 for as_dir in $PATH 35285 do 35286 IFS=$as_save_IFS 35287 test -z "$as_dir" && as_dir=. 35288 for ac_exec_ext in '' $ac_executable_extensions; do 35289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35290 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35292 break 2 35293 fi 35294 done 35295 done 35296 IFS=$as_save_IFS 35297 35298 ;; 35299 esac 35300 fi 35301 ac_pt_TOOLCHAIN_PATH_CXX=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX 35302 if test -n "$ac_pt_TOOLCHAIN_PATH_CXX"; then 35303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CXX" >&5 35304 $as_echo "$ac_pt_TOOLCHAIN_PATH_CXX" >&6; } 35305 else 35306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35307 $as_echo "no" >&6; } 35308 fi 35309 35310 if test "x$ac_pt_TOOLCHAIN_PATH_CXX" = x; then 35311 TOOLCHAIN_PATH_CXX="" 35312 else 35313 case $cross_compiling:$ac_tool_warned in 35314 yes:) 35315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35317 ac_tool_warned=yes ;; 35318 esac 35319 TOOLCHAIN_PATH_CXX=$ac_pt_TOOLCHAIN_PATH_CXX 35320 fi 35321 else 35322 TOOLCHAIN_PATH_CXX="$ac_cv_path_TOOLCHAIN_PATH_CXX" 35323 fi 35324 35325 CXX=$TOOLCHAIN_PATH_CXX 35326 PATH="$PATH_save" 35327 fi 35328 35329 # AC_PATH_TOOL can't be run multiple times with the same variable, 35330 # so create a new name for this run. 35331 if test "x$CXX" = x; then 35332 if test -n "$ac_tool_prefix"; then 35333 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35334 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35336 $as_echo_n "checking for $ac_word... " >&6; } 35337 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35338 $as_echo_n "(cached) " >&6 35339 else 35340 case $POTENTIAL_CXX in 35341 [\\/]* | ?:[\\/]*) 35342 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35343 ;; 35344 *) 35345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35346 for as_dir in $PATH 35347 do 35348 IFS=$as_save_IFS 35349 test -z "$as_dir" && as_dir=. 35350 for ac_exec_ext in '' $ac_executable_extensions; do 35351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35352 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35354 break 2 35355 fi 35356 done 35357 done 35358 IFS=$as_save_IFS 35359 35360 ;; 35361 esac 35362 fi 35363 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35364 if test -n "$POTENTIAL_CXX"; then 35365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35366 $as_echo "$POTENTIAL_CXX" >&6; } 35367 else 35368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35369 $as_echo "no" >&6; } 35370 fi 35371 35372 35373 fi 35374 if test -z "$ac_cv_path_POTENTIAL_CXX"; then 35375 ac_pt_POTENTIAL_CXX=$POTENTIAL_CXX 35376 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35377 set dummy $SEARCH_LIST; ac_word=$2 35378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35379 $as_echo_n "checking for $ac_word... " >&6; } 35380 if ${ac_cv_path_ac_pt_POTENTIAL_CXX+:} false; then : 35381 $as_echo_n "(cached) " >&6 35382 else 35383 case $ac_pt_POTENTIAL_CXX in 35384 [\\/]* | ?:[\\/]*) 35385 ac_cv_path_ac_pt_POTENTIAL_CXX="$ac_pt_POTENTIAL_CXX" # Let the user override the test with a path. 35386 ;; 35387 *) 35388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35389 for as_dir in $PATH 35390 do 35391 IFS=$as_save_IFS 35392 test -z "$as_dir" && as_dir=. 35393 for ac_exec_ext in '' $ac_executable_extensions; do 35394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35395 ac_cv_path_ac_pt_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35397 break 2 35398 fi 35399 done 35400 done 35401 IFS=$as_save_IFS 35402 35403 ;; 35404 esac 35405 fi 35406 ac_pt_POTENTIAL_CXX=$ac_cv_path_ac_pt_POTENTIAL_CXX 35407 if test -n "$ac_pt_POTENTIAL_CXX"; then 35408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CXX" >&5 35409 $as_echo "$ac_pt_POTENTIAL_CXX" >&6; } 35410 else 35411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35412 $as_echo "no" >&6; } 35413 fi 35414 35415 if test "x$ac_pt_POTENTIAL_CXX" = x; then 35416 POTENTIAL_CXX="" 35417 else 35418 case $cross_compiling:$ac_tool_warned in 35419 yes:) 35420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35422 ac_tool_warned=yes ;; 35423 esac 35424 POTENTIAL_CXX=$ac_pt_POTENTIAL_CXX 35425 fi 35426 else 35427 POTENTIAL_CXX="$ac_cv_path_POTENTIAL_CXX" 35428 fi 35429 35430 CXX=$POTENTIAL_CXX 35431 fi 35432 35433 if test "x$CXX" = x; then 35434 35435 # Print a helpful message on how to acquire the necessary build dependency. 35436 # devkit is the help tag: freetype, cups, alsa etc 35437 MISSING_DEPENDENCY=devkit 35438 35439 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35440 cygwin_help $MISSING_DEPENDENCY 35441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35442 msys_help $MISSING_DEPENDENCY 35443 else 35444 PKGHANDLER_COMMAND= 35445 35446 case $PKGHANDLER in 35447 apt-get) 35448 apt_help $MISSING_DEPENDENCY ;; 35449 yum) 35450 yum_help $MISSING_DEPENDENCY ;; 35451 brew) 35452 brew_help $MISSING_DEPENDENCY ;; 35453 port) 35454 port_help $MISSING_DEPENDENCY ;; 35455 pkgutil) 35456 pkgutil_help $MISSING_DEPENDENCY ;; 35457 pkgadd) 35458 pkgadd_help $MISSING_DEPENDENCY ;; 35459 esac 35460 35461 if test "x$PKGHANDLER_COMMAND" != x; then 35462 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 35463 fi 35464 fi 35465 35466 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 35467 fi 35468 fi 35469 35470 # Now we have a compiler binary in CXX. Make sure it's okay. 35471 35472 # Only process if variable expands to non-empty 35473 35474 if test "x$CXX" != x; then 35475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35476 35477 # First separate the path from the arguments. This will split at the first 35478 # space. 35479 complete="$CXX" 35480 path="${complete%% *}" 35481 tmp="$complete EOL" 35482 arguments="${tmp#* }" 35483 35484 # Input might be given as Windows format, start by converting to 35485 # unix format. 35486 new_path=`$CYGPATH -u "$path"` 35487 35488 # Now try to locate executable using which 35489 new_path=`$WHICH "$new_path" 2> /dev/null` 35490 # bat and cmd files are not always considered executable in cygwin causing which 35491 # to not find them 35492 if test "x$new_path" = x \ 35493 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35494 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35495 new_path=`$CYGPATH -u "$path"` 35496 fi 35497 if test "x$new_path" = x; then 35498 # Oops. Which didn't find the executable. 35499 # The splitting of arguments from the executable at a space might have been incorrect, 35500 # since paths with space are more likely in Windows. Give it another try with the whole 35501 # argument. 35502 path="$complete" 35503 arguments="EOL" 35504 new_path=`$CYGPATH -u "$path"` 35505 new_path=`$WHICH "$new_path" 2> /dev/null` 35506 # bat and cmd files are not always considered executable in cygwin causing which 35507 # to not find them 35508 if test "x$new_path" = x \ 35509 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35510 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35511 new_path=`$CYGPATH -u "$path"` 35512 fi 35513 if test "x$new_path" = x; then 35514 # It's still not found. Now this is an unrecoverable error. 35515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35516 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35517 has_space=`$ECHO "$complete" | $GREP " "` 35518 if test "x$has_space" != x; then 35519 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35520 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35521 fi 35522 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35523 fi 35524 fi 35525 35526 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35527 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35528 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35529 # "foo.exe" is OK but "foo" is an error. 35530 # 35531 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35532 # It is also a way to make sure we got the proper file name for the real test later on. 35533 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35534 if test "x$test_shortpath" = x; then 35535 # Short path failed, file does not exist as specified. 35536 # Try adding .exe or .cmd 35537 if test -f "${new_path}.exe"; then 35538 input_to_shortpath="${new_path}.exe" 35539 elif test -f "${new_path}.cmd"; then 35540 input_to_shortpath="${new_path}.cmd" 35541 else 35542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 35543 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 35544 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35545 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35546 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35547 fi 35548 else 35549 input_to_shortpath="$new_path" 35550 fi 35551 35552 # Call helper function which possibly converts this using DOS-style short mode. 35553 # If so, the updated path is stored in $new_path. 35554 new_path="$input_to_shortpath" 35555 35556 input_path="$input_to_shortpath" 35557 # Check if we need to convert this using DOS-style short mode. If the path 35558 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35559 # take no chances and rewrite it. 35560 # Note: m4 eats our [], so we need to use [ and ] instead. 35561 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35562 if test "x$has_forbidden_chars" != x; then 35563 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35564 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35565 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35566 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35567 # Going to short mode and back again did indeed matter. Since short mode is 35568 # case insensitive, let's make it lowercase to improve readability. 35569 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35570 # Now convert it back to Unix-style (cygpath) 35571 input_path=`$CYGPATH -u "$shortmode_path"` 35572 new_path="$input_path" 35573 fi 35574 fi 35575 35576 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35577 if test "x$test_cygdrive_prefix" = x; then 35578 # As a simple fix, exclude /usr/bin since it's not a real path. 35579 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35580 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35581 # a path prefixed by /cygdrive for fixpath to work. 35582 new_path="$CYGWIN_ROOT_PATH$input_path" 35583 fi 35584 fi 35585 35586 # remove trailing .exe if any 35587 new_path="${new_path/%.exe/}" 35588 35589 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35590 35591 # First separate the path from the arguments. This will split at the first 35592 # space. 35593 complete="$CXX" 35594 path="${complete%% *}" 35595 tmp="$complete EOL" 35596 arguments="${tmp#* }" 35597 35598 # Input might be given as Windows format, start by converting to 35599 # unix format. 35600 new_path="$path" 35601 35602 windows_path="$new_path" 35603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35604 unix_path=`$CYGPATH -u "$windows_path"` 35605 new_path="$unix_path" 35606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35607 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35608 new_path="$unix_path" 35609 fi 35610 35611 35612 # Now try to locate executable using which 35613 new_path=`$WHICH "$new_path" 2> /dev/null` 35614 35615 if test "x$new_path" = x; then 35616 # Oops. Which didn't find the executable. 35617 # The splitting of arguments from the executable at a space might have been incorrect, 35618 # since paths with space are more likely in Windows. Give it another try with the whole 35619 # argument. 35620 path="$complete" 35621 arguments="EOL" 35622 new_path="$path" 35623 35624 windows_path="$new_path" 35625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35626 unix_path=`$CYGPATH -u "$windows_path"` 35627 new_path="$unix_path" 35628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35629 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35630 new_path="$unix_path" 35631 fi 35632 35633 35634 new_path=`$WHICH "$new_path" 2> /dev/null` 35635 # bat and cmd files are not always considered executable in MSYS causing which 35636 # to not find them 35637 if test "x$new_path" = x \ 35638 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35639 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35640 new_path="$path" 35641 35642 windows_path="$new_path" 35643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35644 unix_path=`$CYGPATH -u "$windows_path"` 35645 new_path="$unix_path" 35646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35647 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35648 new_path="$unix_path" 35649 fi 35650 35651 fi 35652 35653 if test "x$new_path" = x; then 35654 # It's still not found. Now this is an unrecoverable error. 35655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35656 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35657 has_space=`$ECHO "$complete" | $GREP " "` 35658 if test "x$has_space" != x; then 35659 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35660 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35661 fi 35662 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35663 fi 35664 fi 35665 35666 # Now new_path has a complete unix path to the binary 35667 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35668 # Keep paths in /bin as-is, but remove trailing .exe if any 35669 new_path="${new_path/%.exe/}" 35670 # Do not save /bin paths to all_fixpath_prefixes! 35671 else 35672 # Not in mixed or Windows style, start by that. 35673 new_path=`cmd //c echo $new_path` 35674 35675 input_path="$new_path" 35676 # Check if we need to convert this using DOS-style short mode. If the path 35677 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35678 # take no chances and rewrite it. 35679 # Note: m4 eats our [], so we need to use [ and ] instead. 35680 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35681 if test "x$has_forbidden_chars" != x; then 35682 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35683 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35684 fi 35685 35686 # Output is in $new_path 35687 35688 windows_path="$new_path" 35689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35690 unix_path=`$CYGPATH -u "$windows_path"` 35691 new_path="$unix_path" 35692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35693 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35694 new_path="$unix_path" 35695 fi 35696 35697 # remove trailing .exe if any 35698 new_path="${new_path/%.exe/}" 35699 35700 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35701 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35702 fi 35703 35704 else 35705 # We're on a unix platform. Hooray! :) 35706 # First separate the path from the arguments. This will split at the first 35707 # space. 35708 complete="$CXX" 35709 path="${complete%% *}" 35710 tmp="$complete EOL" 35711 arguments="${tmp#* }" 35712 35713 # Cannot rely on the command "which" here since it doesn't always work. 35714 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35715 if test -z "$is_absolute_path"; then 35716 # Path to executable is not absolute. Find it. 35717 IFS_save="$IFS" 35718 IFS=: 35719 for p in $PATH; do 35720 if test -f "$p/$path" && test -x "$p/$path"; then 35721 new_path="$p/$path" 35722 break 35723 fi 35724 done 35725 IFS="$IFS_save" 35726 else 35727 # This is an absolute path, we can use it without further modifications. 35728 new_path="$path" 35729 fi 35730 35731 if test "x$new_path" = x; then 35732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35733 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35734 has_space=`$ECHO "$complete" | $GREP " "` 35735 if test "x$has_space" != x; then 35736 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35737 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35738 fi 35739 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35740 fi 35741 fi 35742 35743 # Now join together the path and the arguments once again 35744 if test "x$arguments" != xEOL; then 35745 new_complete="$new_path ${arguments% *}" 35746 else 35747 new_complete="$new_path" 35748 fi 35749 35750 if test "x$complete" != "x$new_complete"; then 35751 CXX="$new_complete" 35752 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 35753 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 35754 fi 35755 fi 35756 35757 TEST_COMPILER="$CXX" 35758 35759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 35760 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 35761 SYMLINK_ORIGINAL="$TEST_COMPILER" 35762 35763 if test "x$OPENJDK_BUILD_OS" != xwindows; then 35764 # Follow a chain of symbolic links. Use readlink 35765 # where it exists, else fall back to horribly 35766 # complicated shell code. 35767 if test "x$READLINK_TESTED" != yes; then 35768 # On MacOSX there is a readlink tool with a different 35769 # purpose than the GNU readlink tool. Check the found readlink. 35770 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 35771 if test "x$ISGNU" = x; then 35772 # A readlink that we do not know how to use. 35773 # Are there other non-GNU readlinks out there? 35774 READLINK_TESTED=yes 35775 READLINK= 35776 fi 35777 fi 35778 35779 if test "x$READLINK" != x; then 35780 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 35781 else 35782 # Save the current directory for restoring afterwards 35783 STARTDIR=$PWD 35784 COUNTER=0 35785 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 35786 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 35787 cd $sym_link_dir 35788 # Use -P flag to resolve symlinks in directories. 35789 cd `$THEPWDCMD -P` 35790 sym_link_dir=`$THEPWDCMD -P` 35791 # Resolve file symlinks 35792 while test $COUNTER -lt 20; do 35793 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 35794 if test "x$ISLINK" == x; then 35795 # This is not a symbolic link! We are done! 35796 break 35797 fi 35798 # Again resolve directory symlinks since the target of the just found 35799 # link could be in a different directory 35800 cd `$DIRNAME $ISLINK` 35801 sym_link_dir=`$THEPWDCMD -P` 35802 sym_link_file=`$BASENAME $ISLINK` 35803 let COUNTER=COUNTER+1 35804 done 35805 cd $STARTDIR 35806 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 35807 fi 35808 fi 35809 35810 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 35811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 35812 $as_echo "no symlink" >&6; } 35813 else 35814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 35815 $as_echo "$SYMLINK_ORIGINAL" >&6; } 35816 35817 # We can't handle ccache by gcc wrappers, since we need to know if we're 35818 # using ccache. Instead ccache usage must be controlled by a configure option. 35819 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 35820 if test "x$COMPILER_BASENAME" = "xccache"; then 35821 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 35822 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 35823 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 35824 fi 35825 fi 35826 35827 35828 COMPILER=$CXX 35829 COMPILER_NAME=$COMPILER_NAME 35830 35831 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 35832 # cc -V output typically looks like 35833 # cc: Sun C 5.12 Linux_i386 2011/11/16 35834 # or 35835 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 35836 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 35837 # Check that this is likely to be the Solaris Studio cc. 35838 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 35839 if test $? -ne 0; then 35840 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35841 { $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 35842 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35843 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35844 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35845 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35846 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35847 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35848 fi 35849 # Remove usage instructions (if present), and 35850 # collapse compiler output into a single line 35851 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35852 $SED -e 's/ *[Uu]sage:.*//'` 35853 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35854 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 35855 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 35856 # xlc -qversion output typically looks like 35857 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 35858 # Version: 11.01.0000.0015 35859 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 35860 # Check that this is likely to be the IBM XL C compiler. 35861 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 35862 if test $? -ne 0; then 35863 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35864 { $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 35865 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35866 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35867 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35868 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35869 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35870 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35871 fi 35872 # Collapse compiler output into a single line 35873 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35874 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35875 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 35876 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35877 # There is no specific version flag, but all output starts with a version string. 35878 # First line typically looks something like: 35879 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 35880 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 35881 # Check that this is likely to be Microsoft CL.EXE. 35882 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 35883 if test $? -ne 0; then 35884 { $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 35885 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35886 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35887 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35888 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35889 fi 35890 # Collapse compiler output into a single line 35891 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35892 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35893 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 35894 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 35895 # gcc --version output typically looks like 35896 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 35897 # Copyright (C) 2013 Free Software Foundation, Inc. 35898 # This is free software; see the source for copying conditions. There is NO 35899 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35900 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35901 # Check that this is likely to be GCC. 35902 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 35903 if test $? -ne 0; then 35904 { $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 35905 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35906 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 35907 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 35908 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35909 fi 35910 # Remove Copyright and legalese from version string, and 35911 # collapse into a single line 35912 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35913 $SED -e 's/ *Copyright .*//'` 35914 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35915 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 35916 elif test "x$TOOLCHAIN_TYPE" = xclang; then 35917 # clang --version output typically looks like 35918 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 35919 # clang version 3.3 (tags/RELEASE_33/final) 35920 # or 35921 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 35922 # Target: x86_64-pc-linux-gnu 35923 # Thread model: posix 35924 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35925 # Check that this is likely to be clang 35926 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 35927 if test $? -ne 0; then 35928 { $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 35929 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35930 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35931 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35932 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35933 fi 35934 # Collapse compiler output into a single line 35935 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35936 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35937 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 35938 else 35939 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 35940 fi 35941 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 35942 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 35943 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 35944 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 35945 35946 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 35947 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 35948 35949 35950 # Now that we have resolved CXX ourself, let autoconf have its go at it 35951 ac_ext=cpp 35952 ac_cpp='$CXXCPP $CPPFLAGS' 35953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35956 if test -z "$CXX"; then 35957 if test -n "$CCC"; then 35958 CXX=$CCC 35959 else 35960 if test -n "$ac_tool_prefix"; then 35961 for ac_prog in $CXX 35962 do 35963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35966 $as_echo_n "checking for $ac_word... " >&6; } 35967 if ${ac_cv_prog_CXX+:} false; then : 35968 $as_echo_n "(cached) " >&6 35969 else 35970 if test -n "$CXX"; then 35971 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35972 else 35973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35974 for as_dir in $PATH 35975 do 35976 IFS=$as_save_IFS 35977 test -z "$as_dir" && as_dir=. 35978 for ac_exec_ext in '' $ac_executable_extensions; do 35979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35980 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35982 break 2 35983 fi 35984 done 35985 done 35986 IFS=$as_save_IFS 35987 35988 fi 35989 fi 35990 CXX=$ac_cv_prog_CXX 35991 if test -n "$CXX"; then 35992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35993 $as_echo "$CXX" >&6; } 35994 else 35995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35996 $as_echo "no" >&6; } 35997 fi 35998 35999 36000 test -n "$CXX" && break 36001 done 36002 fi 36003 if test -z "$CXX"; then 36004 ac_ct_CXX=$CXX 36005 for ac_prog in $CXX 36006 do 36007 # Extract the first word of "$ac_prog", so it can be a program name with args. 36008 set dummy $ac_prog; ac_word=$2 36009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36010 $as_echo_n "checking for $ac_word... " >&6; } 36011 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 36012 $as_echo_n "(cached) " >&6 36013 else 36014 if test -n "$ac_ct_CXX"; then 36015 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 36016 else 36017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36018 for as_dir in $PATH 36019 do 36020 IFS=$as_save_IFS 36021 test -z "$as_dir" && as_dir=. 36022 for ac_exec_ext in '' $ac_executable_extensions; do 36023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36024 ac_cv_prog_ac_ct_CXX="$ac_prog" 36025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36026 break 2 36027 fi 36028 done 36029 done 36030 IFS=$as_save_IFS 36031 36032 fi 36033 fi 36034 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 36035 if test -n "$ac_ct_CXX"; then 36036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 36037 $as_echo "$ac_ct_CXX" >&6; } 36038 else 36039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36040 $as_echo "no" >&6; } 36041 fi 36042 36043 36044 test -n "$ac_ct_CXX" && break 36045 done 36046 36047 if test "x$ac_ct_CXX" = x; then 36048 CXX="g++" 36049 else 36050 case $cross_compiling:$ac_tool_warned in 36051 yes:) 36052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36054 ac_tool_warned=yes ;; 36055 esac 36056 CXX=$ac_ct_CXX 36057 fi 36058 fi 36059 36060 fi 36061 fi 36062 # Provide some information about the compiler. 36063 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 36064 set X $ac_compile 36065 ac_compiler=$2 36066 for ac_option in --version -v -V -qversion; do 36067 { { ac_try="$ac_compiler $ac_option >&5" 36068 case "(($ac_try" in 36069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36070 *) ac_try_echo=$ac_try;; 36071 esac 36072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36073 $as_echo "$ac_try_echo"; } >&5 36074 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 36075 ac_status=$? 36076 if test -s conftest.err; then 36077 sed '10a\ 36078 ... rest of stderr output deleted ... 36079 10q' conftest.err >conftest.er1 36080 cat conftest.er1 >&5 36081 fi 36082 rm -f conftest.er1 conftest.err 36083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36084 test $ac_status = 0; } 36085 done 36086 36087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 36088 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 36089 if ${ac_cv_cxx_compiler_gnu+:} false; then : 36090 $as_echo_n "(cached) " >&6 36091 else 36092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36093 /* end confdefs.h. */ 36094 36095 int 36096 main () 36097 { 36098 #ifndef __GNUC__ 36099 choke me 36100 #endif 36101 36102 ; 36103 return 0; 36104 } 36105 _ACEOF 36106 if ac_fn_cxx_try_compile "$LINENO"; then : 36107 ac_compiler_gnu=yes 36108 else 36109 ac_compiler_gnu=no 36110 fi 36111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36112 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 36113 36114 fi 36115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 36116 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 36117 if test $ac_compiler_gnu = yes; then 36118 GXX=yes 36119 else 36120 GXX= 36121 fi 36122 ac_test_CXXFLAGS=${CXXFLAGS+set} 36123 ac_save_CXXFLAGS=$CXXFLAGS 36124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 36125 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 36126 if ${ac_cv_prog_cxx_g+:} false; then : 36127 $as_echo_n "(cached) " >&6 36128 else 36129 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 36130 ac_cxx_werror_flag=yes 36131 ac_cv_prog_cxx_g=no 36132 CXXFLAGS="-g" 36133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36134 /* end confdefs.h. */ 36135 36136 int 36137 main () 36138 { 36139 36140 ; 36141 return 0; 36142 } 36143 _ACEOF 36144 if ac_fn_cxx_try_compile "$LINENO"; then : 36145 ac_cv_prog_cxx_g=yes 36146 else 36147 CXXFLAGS="" 36148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36149 /* end confdefs.h. */ 36150 36151 int 36152 main () 36153 { 36154 36155 ; 36156 return 0; 36157 } 36158 _ACEOF 36159 if ac_fn_cxx_try_compile "$LINENO"; then : 36160 36161 else 36162 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36163 CXXFLAGS="-g" 36164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36165 /* end confdefs.h. */ 36166 36167 int 36168 main () 36169 { 36170 36171 ; 36172 return 0; 36173 } 36174 _ACEOF 36175 if ac_fn_cxx_try_compile "$LINENO"; then : 36176 ac_cv_prog_cxx_g=yes 36177 fi 36178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36179 fi 36180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36181 fi 36182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36183 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36184 fi 36185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 36186 $as_echo "$ac_cv_prog_cxx_g" >&6; } 36187 if test "$ac_test_CXXFLAGS" = set; then 36188 CXXFLAGS=$ac_save_CXXFLAGS 36189 elif test $ac_cv_prog_cxx_g = yes; then 36190 if test "$GXX" = yes; then 36191 CXXFLAGS="-g -O2" 36192 else 36193 CXXFLAGS="-g" 36194 fi 36195 else 36196 if test "$GXX" = yes; then 36197 CXXFLAGS="-O2" 36198 else 36199 CXXFLAGS= 36200 fi 36201 fi 36202 ac_ext=cpp 36203 ac_cpp='$CXXCPP $CPPFLAGS' 36204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36207 36208 36209 # This is the compiler version number on the form X.Y[.Z] 36210 36211 36212 36213 36214 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 36215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 36216 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 36217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 36218 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 36219 fi 36220 36221 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 36222 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 36223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 36224 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36225 fi 36226 36227 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 36228 { $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 36229 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36230 fi 36231 36232 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 36233 36234 36235 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 36236 36237 36238 36239 36240 36241 36242 36243 36244 36245 36246 36247 36248 36249 36250 36251 36252 36253 36254 36255 36256 36257 36258 36259 36260 36261 36262 36263 36264 36265 36266 36267 36268 36269 36270 36271 36272 36273 36274 36275 36276 36277 36278 36279 36280 36281 36282 36283 36284 36285 # Execute function body 36286 36287 # Need to assign to a variable since m4 is blocked from modifying parts in []. 36288 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 36289 36290 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 36291 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 36292 fi 36293 36294 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 36295 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 36296 fi 36297 36298 # Version comparison method inspired by http://stackoverflow.com/a/24067243 36299 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 36300 36301 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 36302 : 36303 36304 else 36305 : 36306 36307 { $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 36308 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 36309 36310 36311 fi 36312 36313 36314 36315 36316 36317 36318 36319 36320 36321 36322 36323 36324 36325 36326 fi 36327 36328 # 36329 # Setup the preprocessor (CPP and CXXCPP) 36330 # 36331 ac_ext=c 36332 ac_cpp='$CPP $CPPFLAGS' 36333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36335 ac_compiler_gnu=$ac_cv_c_compiler_gnu 36336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 36337 $as_echo_n "checking how to run the C preprocessor... " >&6; } 36338 # On Suns, sometimes $CPP names a directory. 36339 if test -n "$CPP" && test -d "$CPP"; then 36340 CPP= 36341 fi 36342 if test -z "$CPP"; then 36343 if ${ac_cv_prog_CPP+:} false; then : 36344 $as_echo_n "(cached) " >&6 36345 else 36346 # Double quotes because CPP needs to be expanded 36347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 36348 do 36349 ac_preproc_ok=false 36350 for ac_c_preproc_warn_flag in '' yes 36351 do 36352 # Use a header file that comes with gcc, so configuring glibc 36353 # with a fresh cross-compiler works. 36354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36355 # <limits.h> exists even on freestanding compilers. 36356 # On the NeXT, cc -E runs the code through the compiler's parser, 36357 # not just through cpp. "Syntax error" is here to catch this case. 36358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36359 /* end confdefs.h. */ 36360 #ifdef __STDC__ 36361 # include <limits.h> 36362 #else 36363 # include <assert.h> 36364 #endif 36365 Syntax error 36366 _ACEOF 36367 if ac_fn_c_try_cpp "$LINENO"; then : 36368 36369 else 36370 # Broken: fails on valid input. 36371 continue 36372 fi 36373 rm -f conftest.err conftest.i conftest.$ac_ext 36374 36375 # OK, works on sane cases. Now check whether nonexistent headers 36376 # can be detected and how. 36377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36378 /* end confdefs.h. */ 36379 #include <ac_nonexistent.h> 36380 _ACEOF 36381 if ac_fn_c_try_cpp "$LINENO"; then : 36382 # Broken: success on invalid input. 36383 continue 36384 else 36385 # Passes both tests. 36386 ac_preproc_ok=: 36387 break 36388 fi 36389 rm -f conftest.err conftest.i conftest.$ac_ext 36390 36391 done 36392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36393 rm -f conftest.i conftest.err conftest.$ac_ext 36394 if $ac_preproc_ok; then : 36395 break 36396 fi 36397 36398 done 36399 ac_cv_prog_CPP=$CPP 36400 36401 fi 36402 CPP=$ac_cv_prog_CPP 36403 else 36404 ac_cv_prog_CPP=$CPP 36405 fi 36406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 36407 $as_echo "$CPP" >&6; } 36408 ac_preproc_ok=false 36409 for ac_c_preproc_warn_flag in '' yes 36410 do 36411 # Use a header file that comes with gcc, so configuring glibc 36412 # with a fresh cross-compiler works. 36413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36414 # <limits.h> exists even on freestanding compilers. 36415 # On the NeXT, cc -E runs the code through the compiler's parser, 36416 # not just through cpp. "Syntax error" is here to catch this case. 36417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36418 /* end confdefs.h. */ 36419 #ifdef __STDC__ 36420 # include <limits.h> 36421 #else 36422 # include <assert.h> 36423 #endif 36424 Syntax error 36425 _ACEOF 36426 if ac_fn_c_try_cpp "$LINENO"; then : 36427 36428 else 36429 # Broken: fails on valid input. 36430 continue 36431 fi 36432 rm -f conftest.err conftest.i conftest.$ac_ext 36433 36434 # OK, works on sane cases. Now check whether nonexistent headers 36435 # can be detected and how. 36436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36437 /* end confdefs.h. */ 36438 #include <ac_nonexistent.h> 36439 _ACEOF 36440 if ac_fn_c_try_cpp "$LINENO"; then : 36441 # Broken: success on invalid input. 36442 continue 36443 else 36444 # Passes both tests. 36445 ac_preproc_ok=: 36446 break 36447 fi 36448 rm -f conftest.err conftest.i conftest.$ac_ext 36449 36450 done 36451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36452 rm -f conftest.i conftest.err conftest.$ac_ext 36453 if $ac_preproc_ok; then : 36454 36455 else 36456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36457 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36458 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 36459 See \`config.log' for more details" "$LINENO" 5; } 36460 fi 36461 36462 ac_ext=cpp 36463 ac_cpp='$CXXCPP $CPPFLAGS' 36464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36467 36468 36469 # Only process if variable expands to non-empty 36470 36471 if test "x$CPP" != x; then 36472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36473 36474 # First separate the path from the arguments. This will split at the first 36475 # space. 36476 complete="$CPP" 36477 path="${complete%% *}" 36478 tmp="$complete EOL" 36479 arguments="${tmp#* }" 36480 36481 # Input might be given as Windows format, start by converting to 36482 # unix format. 36483 new_path=`$CYGPATH -u "$path"` 36484 36485 # Now try to locate executable using which 36486 new_path=`$WHICH "$new_path" 2> /dev/null` 36487 # bat and cmd files are not always considered executable in cygwin causing which 36488 # to not find them 36489 if test "x$new_path" = x \ 36490 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36491 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36492 new_path=`$CYGPATH -u "$path"` 36493 fi 36494 if test "x$new_path" = x; then 36495 # Oops. Which didn't find the executable. 36496 # The splitting of arguments from the executable at a space might have been incorrect, 36497 # since paths with space are more likely in Windows. Give it another try with the whole 36498 # argument. 36499 path="$complete" 36500 arguments="EOL" 36501 new_path=`$CYGPATH -u "$path"` 36502 new_path=`$WHICH "$new_path" 2> /dev/null` 36503 # bat and cmd files are not always considered executable in cygwin causing which 36504 # to not find them 36505 if test "x$new_path" = x \ 36506 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36507 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36508 new_path=`$CYGPATH -u "$path"` 36509 fi 36510 if test "x$new_path" = x; then 36511 # It's still not found. Now this is an unrecoverable error. 36512 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36513 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36514 has_space=`$ECHO "$complete" | $GREP " "` 36515 if test "x$has_space" != x; then 36516 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36517 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36518 fi 36519 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36520 fi 36521 fi 36522 36523 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36524 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36525 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36526 # "foo.exe" is OK but "foo" is an error. 36527 # 36528 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36529 # It is also a way to make sure we got the proper file name for the real test later on. 36530 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36531 if test "x$test_shortpath" = x; then 36532 # Short path failed, file does not exist as specified. 36533 # Try adding .exe or .cmd 36534 if test -f "${new_path}.exe"; then 36535 input_to_shortpath="${new_path}.exe" 36536 elif test -f "${new_path}.cmd"; then 36537 input_to_shortpath="${new_path}.cmd" 36538 else 36539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 36540 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 36541 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36542 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36543 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36544 fi 36545 else 36546 input_to_shortpath="$new_path" 36547 fi 36548 36549 # Call helper function which possibly converts this using DOS-style short mode. 36550 # If so, the updated path is stored in $new_path. 36551 new_path="$input_to_shortpath" 36552 36553 input_path="$input_to_shortpath" 36554 # Check if we need to convert this using DOS-style short mode. If the path 36555 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36556 # take no chances and rewrite it. 36557 # Note: m4 eats our [], so we need to use [ and ] instead. 36558 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36559 if test "x$has_forbidden_chars" != x; then 36560 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36561 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36562 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36563 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36564 # Going to short mode and back again did indeed matter. Since short mode is 36565 # case insensitive, let's make it lowercase to improve readability. 36566 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36567 # Now convert it back to Unix-style (cygpath) 36568 input_path=`$CYGPATH -u "$shortmode_path"` 36569 new_path="$input_path" 36570 fi 36571 fi 36572 36573 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36574 if test "x$test_cygdrive_prefix" = x; then 36575 # As a simple fix, exclude /usr/bin since it's not a real path. 36576 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36577 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36578 # a path prefixed by /cygdrive for fixpath to work. 36579 new_path="$CYGWIN_ROOT_PATH$input_path" 36580 fi 36581 fi 36582 36583 # remove trailing .exe if any 36584 new_path="${new_path/%.exe/}" 36585 36586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36587 36588 # First separate the path from the arguments. This will split at the first 36589 # space. 36590 complete="$CPP" 36591 path="${complete%% *}" 36592 tmp="$complete EOL" 36593 arguments="${tmp#* }" 36594 36595 # Input might be given as Windows format, start by converting to 36596 # unix format. 36597 new_path="$path" 36598 36599 windows_path="$new_path" 36600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36601 unix_path=`$CYGPATH -u "$windows_path"` 36602 new_path="$unix_path" 36603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36604 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36605 new_path="$unix_path" 36606 fi 36607 36608 36609 # Now try to locate executable using which 36610 new_path=`$WHICH "$new_path" 2> /dev/null` 36611 36612 if test "x$new_path" = x; then 36613 # Oops. Which didn't find the executable. 36614 # The splitting of arguments from the executable at a space might have been incorrect, 36615 # since paths with space are more likely in Windows. Give it another try with the whole 36616 # argument. 36617 path="$complete" 36618 arguments="EOL" 36619 new_path="$path" 36620 36621 windows_path="$new_path" 36622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36623 unix_path=`$CYGPATH -u "$windows_path"` 36624 new_path="$unix_path" 36625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36626 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36627 new_path="$unix_path" 36628 fi 36629 36630 36631 new_path=`$WHICH "$new_path" 2> /dev/null` 36632 # bat and cmd files are not always considered executable in MSYS causing which 36633 # to not find them 36634 if test "x$new_path" = x \ 36635 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36636 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36637 new_path="$path" 36638 36639 windows_path="$new_path" 36640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36641 unix_path=`$CYGPATH -u "$windows_path"` 36642 new_path="$unix_path" 36643 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36644 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36645 new_path="$unix_path" 36646 fi 36647 36648 fi 36649 36650 if test "x$new_path" = x; then 36651 # It's still not found. Now this is an unrecoverable error. 36652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36653 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36654 has_space=`$ECHO "$complete" | $GREP " "` 36655 if test "x$has_space" != x; then 36656 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36657 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36658 fi 36659 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36660 fi 36661 fi 36662 36663 # Now new_path has a complete unix path to the binary 36664 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36665 # Keep paths in /bin as-is, but remove trailing .exe if any 36666 new_path="${new_path/%.exe/}" 36667 # Do not save /bin paths to all_fixpath_prefixes! 36668 else 36669 # Not in mixed or Windows style, start by that. 36670 new_path=`cmd //c echo $new_path` 36671 36672 input_path="$new_path" 36673 # Check if we need to convert this using DOS-style short mode. If the path 36674 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36675 # take no chances and rewrite it. 36676 # Note: m4 eats our [], so we need to use [ and ] instead. 36677 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36678 if test "x$has_forbidden_chars" != x; then 36679 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36680 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36681 fi 36682 36683 # Output is in $new_path 36684 36685 windows_path="$new_path" 36686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36687 unix_path=`$CYGPATH -u "$windows_path"` 36688 new_path="$unix_path" 36689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36690 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36691 new_path="$unix_path" 36692 fi 36693 36694 # remove trailing .exe if any 36695 new_path="${new_path/%.exe/}" 36696 36697 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36698 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36699 fi 36700 36701 else 36702 # We're on a unix platform. Hooray! :) 36703 # First separate the path from the arguments. This will split at the first 36704 # space. 36705 complete="$CPP" 36706 path="${complete%% *}" 36707 tmp="$complete EOL" 36708 arguments="${tmp#* }" 36709 36710 # Cannot rely on the command "which" here since it doesn't always work. 36711 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36712 if test -z "$is_absolute_path"; then 36713 # Path to executable is not absolute. Find it. 36714 IFS_save="$IFS" 36715 IFS=: 36716 for p in $PATH; do 36717 if test -f "$p/$path" && test -x "$p/$path"; then 36718 new_path="$p/$path" 36719 break 36720 fi 36721 done 36722 IFS="$IFS_save" 36723 else 36724 # This is an absolute path, we can use it without further modifications. 36725 new_path="$path" 36726 fi 36727 36728 if test "x$new_path" = x; then 36729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36730 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36731 has_space=`$ECHO "$complete" | $GREP " "` 36732 if test "x$has_space" != x; then 36733 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36734 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36735 fi 36736 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36737 fi 36738 fi 36739 36740 # Now join together the path and the arguments once again 36741 if test "x$arguments" != xEOL; then 36742 new_complete="$new_path ${arguments% *}" 36743 else 36744 new_complete="$new_path" 36745 fi 36746 36747 if test "x$complete" != "x$new_complete"; then 36748 CPP="$new_complete" 36749 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 36750 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 36751 fi 36752 fi 36753 36754 ac_ext=cpp 36755 ac_cpp='$CXXCPP $CPPFLAGS' 36756 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36757 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36758 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 36760 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 36761 if test -z "$CXXCPP"; then 36762 if ${ac_cv_prog_CXXCPP+:} false; then : 36763 $as_echo_n "(cached) " >&6 36764 else 36765 # Double quotes because CXXCPP needs to be expanded 36766 for CXXCPP in "$CXX -E" "/lib/cpp" 36767 do 36768 ac_preproc_ok=false 36769 for ac_cxx_preproc_warn_flag in '' yes 36770 do 36771 # Use a header file that comes with gcc, so configuring glibc 36772 # with a fresh cross-compiler works. 36773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36774 # <limits.h> exists even on freestanding compilers. 36775 # On the NeXT, cc -E runs the code through the compiler's parser, 36776 # not just through cpp. "Syntax error" is here to catch this case. 36777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36778 /* end confdefs.h. */ 36779 #ifdef __STDC__ 36780 # include <limits.h> 36781 #else 36782 # include <assert.h> 36783 #endif 36784 Syntax error 36785 _ACEOF 36786 if ac_fn_cxx_try_cpp "$LINENO"; then : 36787 36788 else 36789 # Broken: fails on valid input. 36790 continue 36791 fi 36792 rm -f conftest.err conftest.i conftest.$ac_ext 36793 36794 # OK, works on sane cases. Now check whether nonexistent headers 36795 # can be detected and how. 36796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36797 /* end confdefs.h. */ 36798 #include <ac_nonexistent.h> 36799 _ACEOF 36800 if ac_fn_cxx_try_cpp "$LINENO"; then : 36801 # Broken: success on invalid input. 36802 continue 36803 else 36804 # Passes both tests. 36805 ac_preproc_ok=: 36806 break 36807 fi 36808 rm -f conftest.err conftest.i conftest.$ac_ext 36809 36810 done 36811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36812 rm -f conftest.i conftest.err conftest.$ac_ext 36813 if $ac_preproc_ok; then : 36814 break 36815 fi 36816 36817 done 36818 ac_cv_prog_CXXCPP=$CXXCPP 36819 36820 fi 36821 CXXCPP=$ac_cv_prog_CXXCPP 36822 else 36823 ac_cv_prog_CXXCPP=$CXXCPP 36824 fi 36825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 36826 $as_echo "$CXXCPP" >&6; } 36827 ac_preproc_ok=false 36828 for ac_cxx_preproc_warn_flag in '' yes 36829 do 36830 # Use a header file that comes with gcc, so configuring glibc 36831 # with a fresh cross-compiler works. 36832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36833 # <limits.h> exists even on freestanding compilers. 36834 # On the NeXT, cc -E runs the code through the compiler's parser, 36835 # not just through cpp. "Syntax error" is here to catch this case. 36836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36837 /* end confdefs.h. */ 36838 #ifdef __STDC__ 36839 # include <limits.h> 36840 #else 36841 # include <assert.h> 36842 #endif 36843 Syntax error 36844 _ACEOF 36845 if ac_fn_cxx_try_cpp "$LINENO"; then : 36846 36847 else 36848 # Broken: fails on valid input. 36849 continue 36850 fi 36851 rm -f conftest.err conftest.i conftest.$ac_ext 36852 36853 # OK, works on sane cases. Now check whether nonexistent headers 36854 # can be detected and how. 36855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36856 /* end confdefs.h. */ 36857 #include <ac_nonexistent.h> 36858 _ACEOF 36859 if ac_fn_cxx_try_cpp "$LINENO"; then : 36860 # Broken: success on invalid input. 36861 continue 36862 else 36863 # Passes both tests. 36864 ac_preproc_ok=: 36865 break 36866 fi 36867 rm -f conftest.err conftest.i conftest.$ac_ext 36868 36869 done 36870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36871 rm -f conftest.i conftest.err conftest.$ac_ext 36872 if $ac_preproc_ok; then : 36873 36874 else 36875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36877 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 36878 See \`config.log' for more details" "$LINENO" 5; } 36879 fi 36880 36881 ac_ext=cpp 36882 ac_cpp='$CXXCPP $CPPFLAGS' 36883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36886 36887 36888 # Only process if variable expands to non-empty 36889 36890 if test "x$CXXCPP" != x; then 36891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36892 36893 # First separate the path from the arguments. This will split at the first 36894 # space. 36895 complete="$CXXCPP" 36896 path="${complete%% *}" 36897 tmp="$complete EOL" 36898 arguments="${tmp#* }" 36899 36900 # Input might be given as Windows format, start by converting to 36901 # unix format. 36902 new_path=`$CYGPATH -u "$path"` 36903 36904 # Now try to locate executable using which 36905 new_path=`$WHICH "$new_path" 2> /dev/null` 36906 # bat and cmd files are not always considered executable in cygwin causing which 36907 # to not find them 36908 if test "x$new_path" = x \ 36909 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36910 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36911 new_path=`$CYGPATH -u "$path"` 36912 fi 36913 if test "x$new_path" = x; then 36914 # Oops. Which didn't find the executable. 36915 # The splitting of arguments from the executable at a space might have been incorrect, 36916 # since paths with space are more likely in Windows. Give it another try with the whole 36917 # argument. 36918 path="$complete" 36919 arguments="EOL" 36920 new_path=`$CYGPATH -u "$path"` 36921 new_path=`$WHICH "$new_path" 2> /dev/null` 36922 # bat and cmd files are not always considered executable in cygwin causing which 36923 # to not find them 36924 if test "x$new_path" = x \ 36925 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36926 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36927 new_path=`$CYGPATH -u "$path"` 36928 fi 36929 if test "x$new_path" = x; then 36930 # It's still not found. Now this is an unrecoverable error. 36931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36932 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36933 has_space=`$ECHO "$complete" | $GREP " "` 36934 if test "x$has_space" != x; then 36935 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36936 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36937 fi 36938 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36939 fi 36940 fi 36941 36942 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36943 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36944 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36945 # "foo.exe" is OK but "foo" is an error. 36946 # 36947 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36948 # It is also a way to make sure we got the proper file name for the real test later on. 36949 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36950 if test "x$test_shortpath" = x; then 36951 # Short path failed, file does not exist as specified. 36952 # Try adding .exe or .cmd 36953 if test -f "${new_path}.exe"; then 36954 input_to_shortpath="${new_path}.exe" 36955 elif test -f "${new_path}.cmd"; then 36956 input_to_shortpath="${new_path}.cmd" 36957 else 36958 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36959 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36960 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36961 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36962 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36963 fi 36964 else 36965 input_to_shortpath="$new_path" 36966 fi 36967 36968 # Call helper function which possibly converts this using DOS-style short mode. 36969 # If so, the updated path is stored in $new_path. 36970 new_path="$input_to_shortpath" 36971 36972 input_path="$input_to_shortpath" 36973 # Check if we need to convert this using DOS-style short mode. If the path 36974 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36975 # take no chances and rewrite it. 36976 # Note: m4 eats our [], so we need to use [ and ] instead. 36977 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36978 if test "x$has_forbidden_chars" != x; then 36979 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36980 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36981 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36982 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36983 # Going to short mode and back again did indeed matter. Since short mode is 36984 # case insensitive, let's make it lowercase to improve readability. 36985 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36986 # Now convert it back to Unix-style (cygpath) 36987 input_path=`$CYGPATH -u "$shortmode_path"` 36988 new_path="$input_path" 36989 fi 36990 fi 36991 36992 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36993 if test "x$test_cygdrive_prefix" = x; then 36994 # As a simple fix, exclude /usr/bin since it's not a real path. 36995 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36996 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36997 # a path prefixed by /cygdrive for fixpath to work. 36998 new_path="$CYGWIN_ROOT_PATH$input_path" 36999 fi 37000 fi 37001 37002 # remove trailing .exe if any 37003 new_path="${new_path/%.exe/}" 37004 37005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37006 37007 # First separate the path from the arguments. This will split at the first 37008 # space. 37009 complete="$CXXCPP" 37010 path="${complete%% *}" 37011 tmp="$complete EOL" 37012 arguments="${tmp#* }" 37013 37014 # Input might be given as Windows format, start by converting to 37015 # unix format. 37016 new_path="$path" 37017 37018 windows_path="$new_path" 37019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37020 unix_path=`$CYGPATH -u "$windows_path"` 37021 new_path="$unix_path" 37022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37024 new_path="$unix_path" 37025 fi 37026 37027 37028 # Now try to locate executable using which 37029 new_path=`$WHICH "$new_path" 2> /dev/null` 37030 37031 if test "x$new_path" = x; then 37032 # Oops. Which didn't find the executable. 37033 # The splitting of arguments from the executable at a space might have been incorrect, 37034 # since paths with space are more likely in Windows. Give it another try with the whole 37035 # argument. 37036 path="$complete" 37037 arguments="EOL" 37038 new_path="$path" 37039 37040 windows_path="$new_path" 37041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37042 unix_path=`$CYGPATH -u "$windows_path"` 37043 new_path="$unix_path" 37044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37045 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37046 new_path="$unix_path" 37047 fi 37048 37049 37050 new_path=`$WHICH "$new_path" 2> /dev/null` 37051 # bat and cmd files are not always considered executable in MSYS causing which 37052 # to not find them 37053 if test "x$new_path" = x \ 37054 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37055 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37056 new_path="$path" 37057 37058 windows_path="$new_path" 37059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37060 unix_path=`$CYGPATH -u "$windows_path"` 37061 new_path="$unix_path" 37062 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37063 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37064 new_path="$unix_path" 37065 fi 37066 37067 fi 37068 37069 if test "x$new_path" = x; then 37070 # It's still not found. Now this is an unrecoverable error. 37071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37072 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37073 has_space=`$ECHO "$complete" | $GREP " "` 37074 if test "x$has_space" != x; then 37075 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37076 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37077 fi 37078 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37079 fi 37080 fi 37081 37082 # Now new_path has a complete unix path to the binary 37083 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37084 # Keep paths in /bin as-is, but remove trailing .exe if any 37085 new_path="${new_path/%.exe/}" 37086 # Do not save /bin paths to all_fixpath_prefixes! 37087 else 37088 # Not in mixed or Windows style, start by that. 37089 new_path=`cmd //c echo $new_path` 37090 37091 input_path="$new_path" 37092 # Check if we need to convert this using DOS-style short mode. If the path 37093 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37094 # take no chances and rewrite it. 37095 # Note: m4 eats our [], so we need to use [ and ] instead. 37096 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37097 if test "x$has_forbidden_chars" != x; then 37098 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37099 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37100 fi 37101 37102 # Output is in $new_path 37103 37104 windows_path="$new_path" 37105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37106 unix_path=`$CYGPATH -u "$windows_path"` 37107 new_path="$unix_path" 37108 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37109 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37110 new_path="$unix_path" 37111 fi 37112 37113 # remove trailing .exe if any 37114 new_path="${new_path/%.exe/}" 37115 37116 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37117 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37118 fi 37119 37120 else 37121 # We're on a unix platform. Hooray! :) 37122 # First separate the path from the arguments. This will split at the first 37123 # space. 37124 complete="$CXXCPP" 37125 path="${complete%% *}" 37126 tmp="$complete EOL" 37127 arguments="${tmp#* }" 37128 37129 # Cannot rely on the command "which" here since it doesn't always work. 37130 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37131 if test -z "$is_absolute_path"; then 37132 # Path to executable is not absolute. Find it. 37133 IFS_save="$IFS" 37134 IFS=: 37135 for p in $PATH; do 37136 if test -f "$p/$path" && test -x "$p/$path"; then 37137 new_path="$p/$path" 37138 break 37139 fi 37140 done 37141 IFS="$IFS_save" 37142 else 37143 # This is an absolute path, we can use it without further modifications. 37144 new_path="$path" 37145 fi 37146 37147 if test "x$new_path" = x; then 37148 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37149 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37150 has_space=`$ECHO "$complete" | $GREP " "` 37151 if test "x$has_space" != x; then 37152 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37153 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37154 fi 37155 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37156 fi 37157 fi 37158 37159 # Now join together the path and the arguments once again 37160 if test "x$arguments" != xEOL; then 37161 new_complete="$new_path ${arguments% *}" 37162 else 37163 new_complete="$new_path" 37164 fi 37165 37166 if test "x$complete" != "x$new_complete"; then 37167 CXXCPP="$new_complete" 37168 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 37169 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 37170 fi 37171 fi 37172 37173 37174 # 37175 # Setup the linker (LD) 37176 # 37177 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37178 # In the Microsoft toolchain we have a separate LD command "link". 37179 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 37180 # a cygwin program for something completely different. 37181 # Extract the first word of "link", so it can be a program name with args. 37182 set dummy link; ac_word=$2 37183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37184 $as_echo_n "checking for $ac_word... " >&6; } 37185 if ${ac_cv_prog_LD+:} false; then : 37186 $as_echo_n "(cached) " >&6 37187 else 37188 if test -n "$LD"; then 37189 ac_cv_prog_LD="$LD" # Let the user override the test. 37190 else 37191 ac_prog_rejected=no 37192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37193 for as_dir in $PATH 37194 do 37195 IFS=$as_save_IFS 37196 test -z "$as_dir" && as_dir=. 37197 for ac_exec_ext in '' $ac_executable_extensions; do 37198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37199 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 37200 ac_prog_rejected=yes 37201 continue 37202 fi 37203 ac_cv_prog_LD="link" 37204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37205 break 2 37206 fi 37207 done 37208 done 37209 IFS=$as_save_IFS 37210 37211 if test $ac_prog_rejected = yes; then 37212 # We found a bogon in the path, so make sure we never use it. 37213 set dummy $ac_cv_prog_LD 37214 shift 37215 if test $# != 0; then 37216 # We chose a different compiler from the bogus one. 37217 # However, it has the same basename, so the bogon will be chosen 37218 # first if we set LD to just the basename; use the full file name. 37219 shift 37220 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 37221 fi 37222 fi 37223 fi 37224 fi 37225 LD=$ac_cv_prog_LD 37226 if test -n "$LD"; then 37227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 37228 $as_echo "$LD" >&6; } 37229 else 37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37231 $as_echo "no" >&6; } 37232 fi 37233 37234 37235 37236 # Only process if variable expands to non-empty 37237 37238 if test "x$LD" != x; then 37239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37240 37241 # First separate the path from the arguments. This will split at the first 37242 # space. 37243 complete="$LD" 37244 path="${complete%% *}" 37245 tmp="$complete EOL" 37246 arguments="${tmp#* }" 37247 37248 # Input might be given as Windows format, start by converting to 37249 # unix format. 37250 new_path=`$CYGPATH -u "$path"` 37251 37252 # Now try to locate executable using which 37253 new_path=`$WHICH "$new_path" 2> /dev/null` 37254 # bat and cmd files are not always considered executable in cygwin causing which 37255 # to not find them 37256 if test "x$new_path" = x \ 37257 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37258 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37259 new_path=`$CYGPATH -u "$path"` 37260 fi 37261 if test "x$new_path" = x; then 37262 # Oops. Which didn't find the executable. 37263 # The splitting of arguments from the executable at a space might have been incorrect, 37264 # since paths with space are more likely in Windows. Give it another try with the whole 37265 # argument. 37266 path="$complete" 37267 arguments="EOL" 37268 new_path=`$CYGPATH -u "$path"` 37269 new_path=`$WHICH "$new_path" 2> /dev/null` 37270 # bat and cmd files are not always considered executable in cygwin causing which 37271 # to not find them 37272 if test "x$new_path" = x \ 37273 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37274 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37275 new_path=`$CYGPATH -u "$path"` 37276 fi 37277 if test "x$new_path" = x; then 37278 # It's still not found. Now this is an unrecoverable error. 37279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37280 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37281 has_space=`$ECHO "$complete" | $GREP " "` 37282 if test "x$has_space" != x; then 37283 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37284 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37285 fi 37286 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37287 fi 37288 fi 37289 37290 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37291 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37292 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37293 # "foo.exe" is OK but "foo" is an error. 37294 # 37295 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37296 # It is also a way to make sure we got the proper file name for the real test later on. 37297 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37298 if test "x$test_shortpath" = x; then 37299 # Short path failed, file does not exist as specified. 37300 # Try adding .exe or .cmd 37301 if test -f "${new_path}.exe"; then 37302 input_to_shortpath="${new_path}.exe" 37303 elif test -f "${new_path}.cmd"; then 37304 input_to_shortpath="${new_path}.cmd" 37305 else 37306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 37307 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 37308 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37309 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37310 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37311 fi 37312 else 37313 input_to_shortpath="$new_path" 37314 fi 37315 37316 # Call helper function which possibly converts this using DOS-style short mode. 37317 # If so, the updated path is stored in $new_path. 37318 new_path="$input_to_shortpath" 37319 37320 input_path="$input_to_shortpath" 37321 # Check if we need to convert this using DOS-style short mode. If the path 37322 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37323 # take no chances and rewrite it. 37324 # Note: m4 eats our [], so we need to use [ and ] instead. 37325 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37326 if test "x$has_forbidden_chars" != x; then 37327 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37328 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37329 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37330 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37331 # Going to short mode and back again did indeed matter. Since short mode is 37332 # case insensitive, let's make it lowercase to improve readability. 37333 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37334 # Now convert it back to Unix-style (cygpath) 37335 input_path=`$CYGPATH -u "$shortmode_path"` 37336 new_path="$input_path" 37337 fi 37338 fi 37339 37340 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37341 if test "x$test_cygdrive_prefix" = x; then 37342 # As a simple fix, exclude /usr/bin since it's not a real path. 37343 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37344 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37345 # a path prefixed by /cygdrive for fixpath to work. 37346 new_path="$CYGWIN_ROOT_PATH$input_path" 37347 fi 37348 fi 37349 37350 # remove trailing .exe if any 37351 new_path="${new_path/%.exe/}" 37352 37353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37354 37355 # First separate the path from the arguments. This will split at the first 37356 # space. 37357 complete="$LD" 37358 path="${complete%% *}" 37359 tmp="$complete EOL" 37360 arguments="${tmp#* }" 37361 37362 # Input might be given as Windows format, start by converting to 37363 # unix format. 37364 new_path="$path" 37365 37366 windows_path="$new_path" 37367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37368 unix_path=`$CYGPATH -u "$windows_path"` 37369 new_path="$unix_path" 37370 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37371 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37372 new_path="$unix_path" 37373 fi 37374 37375 37376 # Now try to locate executable using which 37377 new_path=`$WHICH "$new_path" 2> /dev/null` 37378 37379 if test "x$new_path" = x; then 37380 # Oops. Which didn't find the executable. 37381 # The splitting of arguments from the executable at a space might have been incorrect, 37382 # since paths with space are more likely in Windows. Give it another try with the whole 37383 # argument. 37384 path="$complete" 37385 arguments="EOL" 37386 new_path="$path" 37387 37388 windows_path="$new_path" 37389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37390 unix_path=`$CYGPATH -u "$windows_path"` 37391 new_path="$unix_path" 37392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37393 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37394 new_path="$unix_path" 37395 fi 37396 37397 37398 new_path=`$WHICH "$new_path" 2> /dev/null` 37399 # bat and cmd files are not always considered executable in MSYS causing which 37400 # to not find them 37401 if test "x$new_path" = x \ 37402 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37403 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37404 new_path="$path" 37405 37406 windows_path="$new_path" 37407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37408 unix_path=`$CYGPATH -u "$windows_path"` 37409 new_path="$unix_path" 37410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37411 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37412 new_path="$unix_path" 37413 fi 37414 37415 fi 37416 37417 if test "x$new_path" = x; then 37418 # It's still not found. Now this is an unrecoverable error. 37419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37420 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37421 has_space=`$ECHO "$complete" | $GREP " "` 37422 if test "x$has_space" != x; then 37423 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37424 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37425 fi 37426 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37427 fi 37428 fi 37429 37430 # Now new_path has a complete unix path to the binary 37431 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37432 # Keep paths in /bin as-is, but remove trailing .exe if any 37433 new_path="${new_path/%.exe/}" 37434 # Do not save /bin paths to all_fixpath_prefixes! 37435 else 37436 # Not in mixed or Windows style, start by that. 37437 new_path=`cmd //c echo $new_path` 37438 37439 input_path="$new_path" 37440 # Check if we need to convert this using DOS-style short mode. If the path 37441 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37442 # take no chances and rewrite it. 37443 # Note: m4 eats our [], so we need to use [ and ] instead. 37444 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37445 if test "x$has_forbidden_chars" != x; then 37446 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37447 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37448 fi 37449 37450 # Output is in $new_path 37451 37452 windows_path="$new_path" 37453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37454 unix_path=`$CYGPATH -u "$windows_path"` 37455 new_path="$unix_path" 37456 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37457 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37458 new_path="$unix_path" 37459 fi 37460 37461 # remove trailing .exe if any 37462 new_path="${new_path/%.exe/}" 37463 37464 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37465 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37466 fi 37467 37468 else 37469 # We're on a unix platform. Hooray! :) 37470 # First separate the path from the arguments. This will split at the first 37471 # space. 37472 complete="$LD" 37473 path="${complete%% *}" 37474 tmp="$complete EOL" 37475 arguments="${tmp#* }" 37476 37477 # Cannot rely on the command "which" here since it doesn't always work. 37478 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37479 if test -z "$is_absolute_path"; then 37480 # Path to executable is not absolute. Find it. 37481 IFS_save="$IFS" 37482 IFS=: 37483 for p in $PATH; do 37484 if test -f "$p/$path" && test -x "$p/$path"; then 37485 new_path="$p/$path" 37486 break 37487 fi 37488 done 37489 IFS="$IFS_save" 37490 else 37491 # This is an absolute path, we can use it without further modifications. 37492 new_path="$path" 37493 fi 37494 37495 if test "x$new_path" = x; then 37496 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37497 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37498 has_space=`$ECHO "$complete" | $GREP " "` 37499 if test "x$has_space" != x; then 37500 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37501 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37502 fi 37503 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37504 fi 37505 fi 37506 37507 # Now join together the path and the arguments once again 37508 if test "x$arguments" != xEOL; then 37509 new_complete="$new_path ${arguments% *}" 37510 else 37511 new_complete="$new_path" 37512 fi 37513 37514 if test "x$complete" != "x$new_complete"; then 37515 LD="$new_complete" 37516 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 37517 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 37518 fi 37519 fi 37520 37521 # Verify that we indeed succeeded with this trick. 37522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 37523 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 37524 "$LD" --version > /dev/null 37525 if test $? -eq 0 ; then 37526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37527 $as_echo "no" >&6; } 37528 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 37529 else 37530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37531 $as_echo "yes" >&6; } 37532 fi 37533 LDCXX="$LD" 37534 else 37535 # All other toolchains use the compiler to link. 37536 LD="$CC" 37537 LDCXX="$CXX" 37538 fi 37539 37540 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 37541 37542 37543 # 37544 # Setup the assembler (AS) 37545 # 37546 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 37547 37548 37549 # Publish this variable in the help. 37550 37551 37552 if [ -z "${AS+x}" ]; then 37553 # The variable is not set by user, try to locate tool using the code snippet 37554 for ac_prog in as 37555 do 37556 # Extract the first word of "$ac_prog", so it can be a program name with args. 37557 set dummy $ac_prog; ac_word=$2 37558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37559 $as_echo_n "checking for $ac_word... " >&6; } 37560 if ${ac_cv_path_AS+:} false; then : 37561 $as_echo_n "(cached) " >&6 37562 else 37563 case $AS in 37564 [\\/]* | ?:[\\/]*) 37565 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37566 ;; 37567 *) 37568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37569 for as_dir in $PATH 37570 do 37571 IFS=$as_save_IFS 37572 test -z "$as_dir" && as_dir=. 37573 for ac_exec_ext in '' $ac_executable_extensions; do 37574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37575 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37577 break 2 37578 fi 37579 done 37580 done 37581 IFS=$as_save_IFS 37582 37583 ;; 37584 esac 37585 fi 37586 AS=$ac_cv_path_AS 37587 if test -n "$AS"; then 37588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37589 $as_echo "$AS" >&6; } 37590 else 37591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37592 $as_echo "no" >&6; } 37593 fi 37594 37595 37596 test -n "$AS" && break 37597 done 37598 37599 else 37600 # The variable is set, but is it from the command line or the environment? 37601 37602 # Try to remove the string !AS! from our list. 37603 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 37604 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37605 # If it failed, the variable was not from the command line. Ignore it, 37606 # but warn the user (except for BASH, which is always set by the calling BASH). 37607 if test "xAS" != xBASH; then 37608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 37609 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 37610 fi 37611 # Try to locate tool using the code snippet 37612 for ac_prog in as 37613 do 37614 # Extract the first word of "$ac_prog", so it can be a program name with args. 37615 set dummy $ac_prog; ac_word=$2 37616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37617 $as_echo_n "checking for $ac_word... " >&6; } 37618 if ${ac_cv_path_AS+:} false; then : 37619 $as_echo_n "(cached) " >&6 37620 else 37621 case $AS in 37622 [\\/]* | ?:[\\/]*) 37623 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37624 ;; 37625 *) 37626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37627 for as_dir in $PATH 37628 do 37629 IFS=$as_save_IFS 37630 test -z "$as_dir" && as_dir=. 37631 for ac_exec_ext in '' $ac_executable_extensions; do 37632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37633 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37635 break 2 37636 fi 37637 done 37638 done 37639 IFS=$as_save_IFS 37640 37641 ;; 37642 esac 37643 fi 37644 AS=$ac_cv_path_AS 37645 if test -n "$AS"; then 37646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37647 $as_echo "$AS" >&6; } 37648 else 37649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37650 $as_echo "no" >&6; } 37651 fi 37652 37653 37654 test -n "$AS" && break 37655 done 37656 37657 else 37658 # If it succeeded, then it was overridden by the user. We will use it 37659 # for the tool. 37660 37661 # First remove it from the list of overridden variables, so we can test 37662 # for unknown variables in the end. 37663 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37664 37665 # Check if we try to supply an empty value 37666 if test "x$AS" = x; then 37667 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 37668 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 37669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37670 $as_echo_n "checking for AS... " >&6; } 37671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37672 $as_echo "disabled" >&6; } 37673 else 37674 # Check if the provided tool contains a complete path. 37675 tool_specified="$AS" 37676 tool_basename="${tool_specified##*/}" 37677 if test "x$tool_basename" = "x$tool_specified"; then 37678 # A command without a complete path is provided, search $PATH. 37679 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 37680 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 37681 # Extract the first word of "$tool_basename", so it can be a program name with args. 37682 set dummy $tool_basename; ac_word=$2 37683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37684 $as_echo_n "checking for $ac_word... " >&6; } 37685 if ${ac_cv_path_AS+:} false; then : 37686 $as_echo_n "(cached) " >&6 37687 else 37688 case $AS in 37689 [\\/]* | ?:[\\/]*) 37690 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37691 ;; 37692 *) 37693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37694 for as_dir in $PATH 37695 do 37696 IFS=$as_save_IFS 37697 test -z "$as_dir" && as_dir=. 37698 for ac_exec_ext in '' $ac_executable_extensions; do 37699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37700 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37702 break 2 37703 fi 37704 done 37705 done 37706 IFS=$as_save_IFS 37707 37708 ;; 37709 esac 37710 fi 37711 AS=$ac_cv_path_AS 37712 if test -n "$AS"; then 37713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37714 $as_echo "$AS" >&6; } 37715 else 37716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37717 $as_echo "no" >&6; } 37718 fi 37719 37720 37721 if test "x$AS" = x; then 37722 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37723 fi 37724 else 37725 # Otherwise we believe it is a complete path. Use it as it is. 37726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 37727 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 37728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37729 $as_echo_n "checking for AS... " >&6; } 37730 if test ! -x "$tool_specified"; then 37731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37732 $as_echo "not found" >&6; } 37733 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 37734 fi 37735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37736 $as_echo "$tool_specified" >&6; } 37737 fi 37738 fi 37739 fi 37740 37741 fi 37742 37743 37744 37745 # Only process if variable expands to non-empty 37746 37747 if test "x$AS" != x; then 37748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37749 37750 # First separate the path from the arguments. This will split at the first 37751 # space. 37752 complete="$AS" 37753 path="${complete%% *}" 37754 tmp="$complete EOL" 37755 arguments="${tmp#* }" 37756 37757 # Input might be given as Windows format, start by converting to 37758 # unix format. 37759 new_path=`$CYGPATH -u "$path"` 37760 37761 # Now try to locate executable using which 37762 new_path=`$WHICH "$new_path" 2> /dev/null` 37763 # bat and cmd files are not always considered executable in cygwin causing which 37764 # to not find them 37765 if test "x$new_path" = x \ 37766 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37767 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37768 new_path=`$CYGPATH -u "$path"` 37769 fi 37770 if test "x$new_path" = x; then 37771 # Oops. Which didn't find the executable. 37772 # The splitting of arguments from the executable at a space might have been incorrect, 37773 # since paths with space are more likely in Windows. Give it another try with the whole 37774 # argument. 37775 path="$complete" 37776 arguments="EOL" 37777 new_path=`$CYGPATH -u "$path"` 37778 new_path=`$WHICH "$new_path" 2> /dev/null` 37779 # bat and cmd files are not always considered executable in cygwin causing which 37780 # to not find them 37781 if test "x$new_path" = x \ 37782 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37783 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37784 new_path=`$CYGPATH -u "$path"` 37785 fi 37786 if test "x$new_path" = x; then 37787 # It's still not found. Now this is an unrecoverable error. 37788 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37789 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37790 has_space=`$ECHO "$complete" | $GREP " "` 37791 if test "x$has_space" != x; then 37792 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37793 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37794 fi 37795 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37796 fi 37797 fi 37798 37799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37802 # "foo.exe" is OK but "foo" is an error. 37803 # 37804 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37805 # It is also a way to make sure we got the proper file name for the real test later on. 37806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37807 if test "x$test_shortpath" = x; then 37808 # Short path failed, file does not exist as specified. 37809 # Try adding .exe or .cmd 37810 if test -f "${new_path}.exe"; then 37811 input_to_shortpath="${new_path}.exe" 37812 elif test -f "${new_path}.cmd"; then 37813 input_to_shortpath="${new_path}.cmd" 37814 else 37815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 37816 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 37817 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37818 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37819 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37820 fi 37821 else 37822 input_to_shortpath="$new_path" 37823 fi 37824 37825 # Call helper function which possibly converts this using DOS-style short mode. 37826 # If so, the updated path is stored in $new_path. 37827 new_path="$input_to_shortpath" 37828 37829 input_path="$input_to_shortpath" 37830 # Check if we need to convert this using DOS-style short mode. If the path 37831 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37832 # take no chances and rewrite it. 37833 # Note: m4 eats our [], so we need to use [ and ] instead. 37834 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37835 if test "x$has_forbidden_chars" != x; then 37836 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37837 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37838 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37839 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37840 # Going to short mode and back again did indeed matter. Since short mode is 37841 # case insensitive, let's make it lowercase to improve readability. 37842 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37843 # Now convert it back to Unix-style (cygpath) 37844 input_path=`$CYGPATH -u "$shortmode_path"` 37845 new_path="$input_path" 37846 fi 37847 fi 37848 37849 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37850 if test "x$test_cygdrive_prefix" = x; then 37851 # As a simple fix, exclude /usr/bin since it's not a real path. 37852 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37853 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37854 # a path prefixed by /cygdrive for fixpath to work. 37855 new_path="$CYGWIN_ROOT_PATH$input_path" 37856 fi 37857 fi 37858 37859 # remove trailing .exe if any 37860 new_path="${new_path/%.exe/}" 37861 37862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37863 37864 # First separate the path from the arguments. This will split at the first 37865 # space. 37866 complete="$AS" 37867 path="${complete%% *}" 37868 tmp="$complete EOL" 37869 arguments="${tmp#* }" 37870 37871 # Input might be given as Windows format, start by converting to 37872 # unix format. 37873 new_path="$path" 37874 37875 windows_path="$new_path" 37876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37877 unix_path=`$CYGPATH -u "$windows_path"` 37878 new_path="$unix_path" 37879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37880 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37881 new_path="$unix_path" 37882 fi 37883 37884 37885 # Now try to locate executable using which 37886 new_path=`$WHICH "$new_path" 2> /dev/null` 37887 37888 if test "x$new_path" = x; then 37889 # Oops. Which didn't find the executable. 37890 # The splitting of arguments from the executable at a space might have been incorrect, 37891 # since paths with space are more likely in Windows. Give it another try with the whole 37892 # argument. 37893 path="$complete" 37894 arguments="EOL" 37895 new_path="$path" 37896 37897 windows_path="$new_path" 37898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37899 unix_path=`$CYGPATH -u "$windows_path"` 37900 new_path="$unix_path" 37901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37903 new_path="$unix_path" 37904 fi 37905 37906 37907 new_path=`$WHICH "$new_path" 2> /dev/null` 37908 # bat and cmd files are not always considered executable in MSYS causing which 37909 # to not find them 37910 if test "x$new_path" = x \ 37911 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37912 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37913 new_path="$path" 37914 37915 windows_path="$new_path" 37916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37917 unix_path=`$CYGPATH -u "$windows_path"` 37918 new_path="$unix_path" 37919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37921 new_path="$unix_path" 37922 fi 37923 37924 fi 37925 37926 if test "x$new_path" = x; then 37927 # It's still not found. Now this is an unrecoverable error. 37928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37929 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37930 has_space=`$ECHO "$complete" | $GREP " "` 37931 if test "x$has_space" != x; then 37932 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37933 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37934 fi 37935 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37936 fi 37937 fi 37938 37939 # Now new_path has a complete unix path to the binary 37940 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37941 # Keep paths in /bin as-is, but remove trailing .exe if any 37942 new_path="${new_path/%.exe/}" 37943 # Do not save /bin paths to all_fixpath_prefixes! 37944 else 37945 # Not in mixed or Windows style, start by that. 37946 new_path=`cmd //c echo $new_path` 37947 37948 input_path="$new_path" 37949 # Check if we need to convert this using DOS-style short mode. If the path 37950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37951 # take no chances and rewrite it. 37952 # Note: m4 eats our [], so we need to use [ and ] instead. 37953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37954 if test "x$has_forbidden_chars" != x; then 37955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37956 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37957 fi 37958 37959 # Output is in $new_path 37960 37961 windows_path="$new_path" 37962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37963 unix_path=`$CYGPATH -u "$windows_path"` 37964 new_path="$unix_path" 37965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37967 new_path="$unix_path" 37968 fi 37969 37970 # remove trailing .exe if any 37971 new_path="${new_path/%.exe/}" 37972 37973 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37974 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37975 fi 37976 37977 else 37978 # We're on a unix platform. Hooray! :) 37979 # First separate the path from the arguments. This will split at the first 37980 # space. 37981 complete="$AS" 37982 path="${complete%% *}" 37983 tmp="$complete EOL" 37984 arguments="${tmp#* }" 37985 37986 # Cannot rely on the command "which" here since it doesn't always work. 37987 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37988 if test -z "$is_absolute_path"; then 37989 # Path to executable is not absolute. Find it. 37990 IFS_save="$IFS" 37991 IFS=: 37992 for p in $PATH; do 37993 if test -f "$p/$path" && test -x "$p/$path"; then 37994 new_path="$p/$path" 37995 break 37996 fi 37997 done 37998 IFS="$IFS_save" 37999 else 38000 # This is an absolute path, we can use it without further modifications. 38001 new_path="$path" 38002 fi 38003 38004 if test "x$new_path" = x; then 38005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 38006 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 38007 has_space=`$ECHO "$complete" | $GREP " "` 38008 if test "x$has_space" != x; then 38009 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38010 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38011 fi 38012 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 38013 fi 38014 fi 38015 38016 # Now join together the path and the arguments once again 38017 if test "x$arguments" != xEOL; then 38018 new_complete="$new_path ${arguments% *}" 38019 else 38020 new_complete="$new_path" 38021 fi 38022 38023 if test "x$complete" != "x$new_complete"; then 38024 AS="$new_complete" 38025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 38026 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 38027 fi 38028 fi 38029 38030 if test "x$AS" = x; then 38031 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 38032 fi 38033 else 38034 # FIXME: is this correct for microsoft? 38035 AS="$CC -c" 38036 fi 38037 38038 38039 # 38040 # Setup the archiver (AR) 38041 # 38042 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38043 # The corresponding ar tool is lib.exe (used to create static libraries) 38044 # Extract the first word of "lib", so it can be a program name with args. 38045 set dummy lib; ac_word=$2 38046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38047 $as_echo_n "checking for $ac_word... " >&6; } 38048 if ${ac_cv_prog_AR+:} false; then : 38049 $as_echo_n "(cached) " >&6 38050 else 38051 if test -n "$AR"; then 38052 ac_cv_prog_AR="$AR" # Let the user override the test. 38053 else 38054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38055 for as_dir in $PATH 38056 do 38057 IFS=$as_save_IFS 38058 test -z "$as_dir" && as_dir=. 38059 for ac_exec_ext in '' $ac_executable_extensions; do 38060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38061 ac_cv_prog_AR="lib" 38062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38063 break 2 38064 fi 38065 done 38066 done 38067 IFS=$as_save_IFS 38068 38069 fi 38070 fi 38071 AR=$ac_cv_prog_AR 38072 if test -n "$AR"; then 38073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38074 $as_echo "$AR" >&6; } 38075 else 38076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38077 $as_echo "no" >&6; } 38078 fi 38079 38080 38081 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 38082 38083 38084 # Publish this variable in the help. 38085 38086 38087 if [ -z "${AR+x}" ]; then 38088 # The variable is not set by user, try to locate tool using the code snippet 38089 if test -n "$ac_tool_prefix"; then 38090 for ac_prog in ar gcc-ar 38091 do 38092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38095 $as_echo_n "checking for $ac_word... " >&6; } 38096 if ${ac_cv_prog_AR+:} false; then : 38097 $as_echo_n "(cached) " >&6 38098 else 38099 if test -n "$AR"; then 38100 ac_cv_prog_AR="$AR" # Let the user override the test. 38101 else 38102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38103 for as_dir in $PATH 38104 do 38105 IFS=$as_save_IFS 38106 test -z "$as_dir" && as_dir=. 38107 for ac_exec_ext in '' $ac_executable_extensions; do 38108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38109 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38111 break 2 38112 fi 38113 done 38114 done 38115 IFS=$as_save_IFS 38116 38117 fi 38118 fi 38119 AR=$ac_cv_prog_AR 38120 if test -n "$AR"; then 38121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38122 $as_echo "$AR" >&6; } 38123 else 38124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38125 $as_echo "no" >&6; } 38126 fi 38127 38128 38129 test -n "$AR" && break 38130 done 38131 fi 38132 if test -z "$AR"; then 38133 ac_ct_AR=$AR 38134 for ac_prog in ar gcc-ar 38135 do 38136 # Extract the first word of "$ac_prog", so it can be a program name with args. 38137 set dummy $ac_prog; ac_word=$2 38138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38139 $as_echo_n "checking for $ac_word... " >&6; } 38140 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38141 $as_echo_n "(cached) " >&6 38142 else 38143 if test -n "$ac_ct_AR"; then 38144 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38145 else 38146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38147 for as_dir in $PATH 38148 do 38149 IFS=$as_save_IFS 38150 test -z "$as_dir" && as_dir=. 38151 for ac_exec_ext in '' $ac_executable_extensions; do 38152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38153 ac_cv_prog_ac_ct_AR="$ac_prog" 38154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38155 break 2 38156 fi 38157 done 38158 done 38159 IFS=$as_save_IFS 38160 38161 fi 38162 fi 38163 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38164 if test -n "$ac_ct_AR"; then 38165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38166 $as_echo "$ac_ct_AR" >&6; } 38167 else 38168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38169 $as_echo "no" >&6; } 38170 fi 38171 38172 38173 test -n "$ac_ct_AR" && break 38174 done 38175 38176 if test "x$ac_ct_AR" = x; then 38177 AR="" 38178 else 38179 case $cross_compiling:$ac_tool_warned in 38180 yes:) 38181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38183 ac_tool_warned=yes ;; 38184 esac 38185 AR=$ac_ct_AR 38186 fi 38187 fi 38188 38189 else 38190 # The variable is set, but is it from the command line or the environment? 38191 38192 # Try to remove the string !AR! from our list. 38193 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38194 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38195 # If it failed, the variable was not from the command line. Ignore it, 38196 # but warn the user (except for BASH, which is always set by the calling BASH). 38197 if test "xAR" != xBASH; then 38198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38199 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38200 fi 38201 # Try to locate tool using the code snippet 38202 if test -n "$ac_tool_prefix"; then 38203 for ac_prog in ar gcc-ar 38204 do 38205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38208 $as_echo_n "checking for $ac_word... " >&6; } 38209 if ${ac_cv_prog_AR+:} false; then : 38210 $as_echo_n "(cached) " >&6 38211 else 38212 if test -n "$AR"; then 38213 ac_cv_prog_AR="$AR" # Let the user override the test. 38214 else 38215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38216 for as_dir in $PATH 38217 do 38218 IFS=$as_save_IFS 38219 test -z "$as_dir" && as_dir=. 38220 for ac_exec_ext in '' $ac_executable_extensions; do 38221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38222 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38224 break 2 38225 fi 38226 done 38227 done 38228 IFS=$as_save_IFS 38229 38230 fi 38231 fi 38232 AR=$ac_cv_prog_AR 38233 if test -n "$AR"; then 38234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38235 $as_echo "$AR" >&6; } 38236 else 38237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38238 $as_echo "no" >&6; } 38239 fi 38240 38241 38242 test -n "$AR" && break 38243 done 38244 fi 38245 if test -z "$AR"; then 38246 ac_ct_AR=$AR 38247 for ac_prog in ar gcc-ar 38248 do 38249 # Extract the first word of "$ac_prog", so it can be a program name with args. 38250 set dummy $ac_prog; ac_word=$2 38251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38252 $as_echo_n "checking for $ac_word... " >&6; } 38253 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38254 $as_echo_n "(cached) " >&6 38255 else 38256 if test -n "$ac_ct_AR"; then 38257 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38258 else 38259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38260 for as_dir in $PATH 38261 do 38262 IFS=$as_save_IFS 38263 test -z "$as_dir" && as_dir=. 38264 for ac_exec_ext in '' $ac_executable_extensions; do 38265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38266 ac_cv_prog_ac_ct_AR="$ac_prog" 38267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38268 break 2 38269 fi 38270 done 38271 done 38272 IFS=$as_save_IFS 38273 38274 fi 38275 fi 38276 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38277 if test -n "$ac_ct_AR"; then 38278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38279 $as_echo "$ac_ct_AR" >&6; } 38280 else 38281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38282 $as_echo "no" >&6; } 38283 fi 38284 38285 38286 test -n "$ac_ct_AR" && break 38287 done 38288 38289 if test "x$ac_ct_AR" = x; then 38290 AR="" 38291 else 38292 case $cross_compiling:$ac_tool_warned in 38293 yes:) 38294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38296 ac_tool_warned=yes ;; 38297 esac 38298 AR=$ac_ct_AR 38299 fi 38300 fi 38301 38302 else 38303 # If it succeeded, then it was overridden by the user. We will use it 38304 # for the tool. 38305 38306 # First remove it from the list of overridden variables, so we can test 38307 # for unknown variables in the end. 38308 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38309 38310 # Check if we try to supply an empty value 38311 if test "x$AR" = x; then 38312 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38313 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38315 $as_echo_n "checking for AR... " >&6; } 38316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38317 $as_echo "disabled" >&6; } 38318 else 38319 # Check if the provided tool contains a complete path. 38320 tool_specified="$AR" 38321 tool_basename="${tool_specified##*/}" 38322 if test "x$tool_basename" = "x$tool_specified"; then 38323 # A command without a complete path is provided, search $PATH. 38324 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38325 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38326 # Extract the first word of "$tool_basename", so it can be a program name with args. 38327 set dummy $tool_basename; ac_word=$2 38328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38329 $as_echo_n "checking for $ac_word... " >&6; } 38330 if ${ac_cv_path_AR+:} false; then : 38331 $as_echo_n "(cached) " >&6 38332 else 38333 case $AR in 38334 [\\/]* | ?:[\\/]*) 38335 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38336 ;; 38337 *) 38338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38339 for as_dir in $PATH 38340 do 38341 IFS=$as_save_IFS 38342 test -z "$as_dir" && as_dir=. 38343 for ac_exec_ext in '' $ac_executable_extensions; do 38344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38345 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38347 break 2 38348 fi 38349 done 38350 done 38351 IFS=$as_save_IFS 38352 38353 ;; 38354 esac 38355 fi 38356 AR=$ac_cv_path_AR 38357 if test -n "$AR"; then 38358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38359 $as_echo "$AR" >&6; } 38360 else 38361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38362 $as_echo "no" >&6; } 38363 fi 38364 38365 38366 if test "x$AR" = x; then 38367 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38368 fi 38369 else 38370 # Otherwise we believe it is a complete path. Use it as it is. 38371 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38372 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38374 $as_echo_n "checking for AR... " >&6; } 38375 if test ! -x "$tool_specified"; then 38376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38377 $as_echo "not found" >&6; } 38378 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38379 fi 38380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38381 $as_echo "$tool_specified" >&6; } 38382 fi 38383 fi 38384 fi 38385 38386 fi 38387 38388 38389 else 38390 38391 38392 # Publish this variable in the help. 38393 38394 38395 if [ -z "${AR+x}" ]; then 38396 # The variable is not set by user, try to locate tool using the code snippet 38397 if test -n "$ac_tool_prefix"; then 38398 for ac_prog in ar 38399 do 38400 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38403 $as_echo_n "checking for $ac_word... " >&6; } 38404 if ${ac_cv_prog_AR+:} false; then : 38405 $as_echo_n "(cached) " >&6 38406 else 38407 if test -n "$AR"; then 38408 ac_cv_prog_AR="$AR" # Let the user override the test. 38409 else 38410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38411 for as_dir in $PATH 38412 do 38413 IFS=$as_save_IFS 38414 test -z "$as_dir" && as_dir=. 38415 for ac_exec_ext in '' $ac_executable_extensions; do 38416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38417 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38419 break 2 38420 fi 38421 done 38422 done 38423 IFS=$as_save_IFS 38424 38425 fi 38426 fi 38427 AR=$ac_cv_prog_AR 38428 if test -n "$AR"; then 38429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38430 $as_echo "$AR" >&6; } 38431 else 38432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38433 $as_echo "no" >&6; } 38434 fi 38435 38436 38437 test -n "$AR" && break 38438 done 38439 fi 38440 if test -z "$AR"; then 38441 ac_ct_AR=$AR 38442 for ac_prog in ar 38443 do 38444 # Extract the first word of "$ac_prog", so it can be a program name with args. 38445 set dummy $ac_prog; ac_word=$2 38446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38447 $as_echo_n "checking for $ac_word... " >&6; } 38448 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38449 $as_echo_n "(cached) " >&6 38450 else 38451 if test -n "$ac_ct_AR"; then 38452 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38453 else 38454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38455 for as_dir in $PATH 38456 do 38457 IFS=$as_save_IFS 38458 test -z "$as_dir" && as_dir=. 38459 for ac_exec_ext in '' $ac_executable_extensions; do 38460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38461 ac_cv_prog_ac_ct_AR="$ac_prog" 38462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38463 break 2 38464 fi 38465 done 38466 done 38467 IFS=$as_save_IFS 38468 38469 fi 38470 fi 38471 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38472 if test -n "$ac_ct_AR"; then 38473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38474 $as_echo "$ac_ct_AR" >&6; } 38475 else 38476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38477 $as_echo "no" >&6; } 38478 fi 38479 38480 38481 test -n "$ac_ct_AR" && break 38482 done 38483 38484 if test "x$ac_ct_AR" = x; then 38485 AR="" 38486 else 38487 case $cross_compiling:$ac_tool_warned in 38488 yes:) 38489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38491 ac_tool_warned=yes ;; 38492 esac 38493 AR=$ac_ct_AR 38494 fi 38495 fi 38496 38497 else 38498 # The variable is set, but is it from the command line or the environment? 38499 38500 # Try to remove the string !AR! from our list. 38501 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38502 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38503 # If it failed, the variable was not from the command line. Ignore it, 38504 # but warn the user (except for BASH, which is always set by the calling BASH). 38505 if test "xAR" != xBASH; then 38506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38507 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38508 fi 38509 # Try to locate tool using the code snippet 38510 if test -n "$ac_tool_prefix"; then 38511 for ac_prog in ar 38512 do 38513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38514 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38516 $as_echo_n "checking for $ac_word... " >&6; } 38517 if ${ac_cv_prog_AR+:} false; then : 38518 $as_echo_n "(cached) " >&6 38519 else 38520 if test -n "$AR"; then 38521 ac_cv_prog_AR="$AR" # Let the user override the test. 38522 else 38523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38524 for as_dir in $PATH 38525 do 38526 IFS=$as_save_IFS 38527 test -z "$as_dir" && as_dir=. 38528 for ac_exec_ext in '' $ac_executable_extensions; do 38529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38530 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38532 break 2 38533 fi 38534 done 38535 done 38536 IFS=$as_save_IFS 38537 38538 fi 38539 fi 38540 AR=$ac_cv_prog_AR 38541 if test -n "$AR"; then 38542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38543 $as_echo "$AR" >&6; } 38544 else 38545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38546 $as_echo "no" >&6; } 38547 fi 38548 38549 38550 test -n "$AR" && break 38551 done 38552 fi 38553 if test -z "$AR"; then 38554 ac_ct_AR=$AR 38555 for ac_prog in ar 38556 do 38557 # Extract the first word of "$ac_prog", so it can be a program name with args. 38558 set dummy $ac_prog; ac_word=$2 38559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38560 $as_echo_n "checking for $ac_word... " >&6; } 38561 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38562 $as_echo_n "(cached) " >&6 38563 else 38564 if test -n "$ac_ct_AR"; then 38565 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38566 else 38567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38568 for as_dir in $PATH 38569 do 38570 IFS=$as_save_IFS 38571 test -z "$as_dir" && as_dir=. 38572 for ac_exec_ext in '' $ac_executable_extensions; do 38573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38574 ac_cv_prog_ac_ct_AR="$ac_prog" 38575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38576 break 2 38577 fi 38578 done 38579 done 38580 IFS=$as_save_IFS 38581 38582 fi 38583 fi 38584 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38585 if test -n "$ac_ct_AR"; then 38586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38587 $as_echo "$ac_ct_AR" >&6; } 38588 else 38589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38590 $as_echo "no" >&6; } 38591 fi 38592 38593 38594 test -n "$ac_ct_AR" && break 38595 done 38596 38597 if test "x$ac_ct_AR" = x; then 38598 AR="" 38599 else 38600 case $cross_compiling:$ac_tool_warned in 38601 yes:) 38602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38604 ac_tool_warned=yes ;; 38605 esac 38606 AR=$ac_ct_AR 38607 fi 38608 fi 38609 38610 else 38611 # If it succeeded, then it was overridden by the user. We will use it 38612 # for the tool. 38613 38614 # First remove it from the list of overridden variables, so we can test 38615 # for unknown variables in the end. 38616 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38617 38618 # Check if we try to supply an empty value 38619 if test "x$AR" = x; then 38620 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38621 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38623 $as_echo_n "checking for AR... " >&6; } 38624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38625 $as_echo "disabled" >&6; } 38626 else 38627 # Check if the provided tool contains a complete path. 38628 tool_specified="$AR" 38629 tool_basename="${tool_specified##*/}" 38630 if test "x$tool_basename" = "x$tool_specified"; then 38631 # A command without a complete path is provided, search $PATH. 38632 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38633 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38634 # Extract the first word of "$tool_basename", so it can be a program name with args. 38635 set dummy $tool_basename; ac_word=$2 38636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38637 $as_echo_n "checking for $ac_word... " >&6; } 38638 if ${ac_cv_path_AR+:} false; then : 38639 $as_echo_n "(cached) " >&6 38640 else 38641 case $AR in 38642 [\\/]* | ?:[\\/]*) 38643 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38644 ;; 38645 *) 38646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38647 for as_dir in $PATH 38648 do 38649 IFS=$as_save_IFS 38650 test -z "$as_dir" && as_dir=. 38651 for ac_exec_ext in '' $ac_executable_extensions; do 38652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38653 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38655 break 2 38656 fi 38657 done 38658 done 38659 IFS=$as_save_IFS 38660 38661 ;; 38662 esac 38663 fi 38664 AR=$ac_cv_path_AR 38665 if test -n "$AR"; then 38666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38667 $as_echo "$AR" >&6; } 38668 else 38669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38670 $as_echo "no" >&6; } 38671 fi 38672 38673 38674 if test "x$AR" = x; then 38675 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38676 fi 38677 else 38678 # Otherwise we believe it is a complete path. Use it as it is. 38679 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38680 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38682 $as_echo_n "checking for AR... " >&6; } 38683 if test ! -x "$tool_specified"; then 38684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38685 $as_echo "not found" >&6; } 38686 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38687 fi 38688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38689 $as_echo "$tool_specified" >&6; } 38690 fi 38691 fi 38692 fi 38693 38694 fi 38695 38696 38697 fi 38698 38699 # Only process if variable expands to non-empty 38700 38701 if test "x$AR" != x; then 38702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38703 38704 # First separate the path from the arguments. This will split at the first 38705 # space. 38706 complete="$AR" 38707 path="${complete%% *}" 38708 tmp="$complete EOL" 38709 arguments="${tmp#* }" 38710 38711 # Input might be given as Windows format, start by converting to 38712 # unix format. 38713 new_path=`$CYGPATH -u "$path"` 38714 38715 # Now try to locate executable using which 38716 new_path=`$WHICH "$new_path" 2> /dev/null` 38717 # bat and cmd files are not always considered executable in cygwin causing which 38718 # to not find them 38719 if test "x$new_path" = x \ 38720 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38721 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38722 new_path=`$CYGPATH -u "$path"` 38723 fi 38724 if test "x$new_path" = x; then 38725 # Oops. Which didn't find the executable. 38726 # The splitting of arguments from the executable at a space might have been incorrect, 38727 # since paths with space are more likely in Windows. Give it another try with the whole 38728 # argument. 38729 path="$complete" 38730 arguments="EOL" 38731 new_path=`$CYGPATH -u "$path"` 38732 new_path=`$WHICH "$new_path" 2> /dev/null` 38733 # bat and cmd files are not always considered executable in cygwin causing which 38734 # to not find them 38735 if test "x$new_path" = x \ 38736 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38737 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38738 new_path=`$CYGPATH -u "$path"` 38739 fi 38740 if test "x$new_path" = x; then 38741 # It's still not found. Now this is an unrecoverable error. 38742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38743 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38744 has_space=`$ECHO "$complete" | $GREP " "` 38745 if test "x$has_space" != x; then 38746 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38747 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38748 fi 38749 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38750 fi 38751 fi 38752 38753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38756 # "foo.exe" is OK but "foo" is an error. 38757 # 38758 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38759 # It is also a way to make sure we got the proper file name for the real test later on. 38760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38761 if test "x$test_shortpath" = x; then 38762 # Short path failed, file does not exist as specified. 38763 # Try adding .exe or .cmd 38764 if test -f "${new_path}.exe"; then 38765 input_to_shortpath="${new_path}.exe" 38766 elif test -f "${new_path}.cmd"; then 38767 input_to_shortpath="${new_path}.cmd" 38768 else 38769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 38770 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 38771 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38772 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38773 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38774 fi 38775 else 38776 input_to_shortpath="$new_path" 38777 fi 38778 38779 # Call helper function which possibly converts this using DOS-style short mode. 38780 # If so, the updated path is stored in $new_path. 38781 new_path="$input_to_shortpath" 38782 38783 input_path="$input_to_shortpath" 38784 # Check if we need to convert this using DOS-style short mode. If the path 38785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38786 # take no chances and rewrite it. 38787 # Note: m4 eats our [], so we need to use [ and ] instead. 38788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38789 if test "x$has_forbidden_chars" != x; then 38790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38791 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38792 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38793 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38794 # Going to short mode and back again did indeed matter. Since short mode is 38795 # case insensitive, let's make it lowercase to improve readability. 38796 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38797 # Now convert it back to Unix-style (cygpath) 38798 input_path=`$CYGPATH -u "$shortmode_path"` 38799 new_path="$input_path" 38800 fi 38801 fi 38802 38803 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38804 if test "x$test_cygdrive_prefix" = x; then 38805 # As a simple fix, exclude /usr/bin since it's not a real path. 38806 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38807 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38808 # a path prefixed by /cygdrive for fixpath to work. 38809 new_path="$CYGWIN_ROOT_PATH$input_path" 38810 fi 38811 fi 38812 38813 # remove trailing .exe if any 38814 new_path="${new_path/%.exe/}" 38815 38816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38817 38818 # First separate the path from the arguments. This will split at the first 38819 # space. 38820 complete="$AR" 38821 path="${complete%% *}" 38822 tmp="$complete EOL" 38823 arguments="${tmp#* }" 38824 38825 # Input might be given as Windows format, start by converting to 38826 # unix format. 38827 new_path="$path" 38828 38829 windows_path="$new_path" 38830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38831 unix_path=`$CYGPATH -u "$windows_path"` 38832 new_path="$unix_path" 38833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38835 new_path="$unix_path" 38836 fi 38837 38838 38839 # Now try to locate executable using which 38840 new_path=`$WHICH "$new_path" 2> /dev/null` 38841 38842 if test "x$new_path" = x; then 38843 # Oops. Which didn't find the executable. 38844 # The splitting of arguments from the executable at a space might have been incorrect, 38845 # since paths with space are more likely in Windows. Give it another try with the whole 38846 # argument. 38847 path="$complete" 38848 arguments="EOL" 38849 new_path="$path" 38850 38851 windows_path="$new_path" 38852 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38853 unix_path=`$CYGPATH -u "$windows_path"` 38854 new_path="$unix_path" 38855 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38856 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38857 new_path="$unix_path" 38858 fi 38859 38860 38861 new_path=`$WHICH "$new_path" 2> /dev/null` 38862 # bat and cmd files are not always considered executable in MSYS causing which 38863 # to not find them 38864 if test "x$new_path" = x \ 38865 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38866 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38867 new_path="$path" 38868 38869 windows_path="$new_path" 38870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38871 unix_path=`$CYGPATH -u "$windows_path"` 38872 new_path="$unix_path" 38873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38875 new_path="$unix_path" 38876 fi 38877 38878 fi 38879 38880 if test "x$new_path" = x; then 38881 # It's still not found. Now this is an unrecoverable error. 38882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38883 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38884 has_space=`$ECHO "$complete" | $GREP " "` 38885 if test "x$has_space" != x; then 38886 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38887 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38888 fi 38889 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38890 fi 38891 fi 38892 38893 # Now new_path has a complete unix path to the binary 38894 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38895 # Keep paths in /bin as-is, but remove trailing .exe if any 38896 new_path="${new_path/%.exe/}" 38897 # Do not save /bin paths to all_fixpath_prefixes! 38898 else 38899 # Not in mixed or Windows style, start by that. 38900 new_path=`cmd //c echo $new_path` 38901 38902 input_path="$new_path" 38903 # Check if we need to convert this using DOS-style short mode. If the path 38904 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38905 # take no chances and rewrite it. 38906 # Note: m4 eats our [], so we need to use [ and ] instead. 38907 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38908 if test "x$has_forbidden_chars" != x; then 38909 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38910 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38911 fi 38912 38913 # Output is in $new_path 38914 38915 windows_path="$new_path" 38916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38917 unix_path=`$CYGPATH -u "$windows_path"` 38918 new_path="$unix_path" 38919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38921 new_path="$unix_path" 38922 fi 38923 38924 # remove trailing .exe if any 38925 new_path="${new_path/%.exe/}" 38926 38927 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38928 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38929 fi 38930 38931 else 38932 # We're on a unix platform. Hooray! :) 38933 # First separate the path from the arguments. This will split at the first 38934 # space. 38935 complete="$AR" 38936 path="${complete%% *}" 38937 tmp="$complete EOL" 38938 arguments="${tmp#* }" 38939 38940 # Cannot rely on the command "which" here since it doesn't always work. 38941 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38942 if test -z "$is_absolute_path"; then 38943 # Path to executable is not absolute. Find it. 38944 IFS_save="$IFS" 38945 IFS=: 38946 for p in $PATH; do 38947 if test -f "$p/$path" && test -x "$p/$path"; then 38948 new_path="$p/$path" 38949 break 38950 fi 38951 done 38952 IFS="$IFS_save" 38953 else 38954 # This is an absolute path, we can use it without further modifications. 38955 new_path="$path" 38956 fi 38957 38958 if test "x$new_path" = x; then 38959 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38960 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38961 has_space=`$ECHO "$complete" | $GREP " "` 38962 if test "x$has_space" != x; then 38963 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38964 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38965 fi 38966 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38967 fi 38968 fi 38969 38970 # Now join together the path and the arguments once again 38971 if test "x$arguments" != xEOL; then 38972 new_complete="$new_path ${arguments% *}" 38973 else 38974 new_complete="$new_path" 38975 fi 38976 38977 if test "x$complete" != "x$new_complete"; then 38978 AR="$new_complete" 38979 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38980 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38981 fi 38982 fi 38983 38984 38985 38986 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 38987 38988 38989 # Publish this variable in the help. 38990 38991 38992 if [ -z "${LIPO+x}" ]; then 38993 # The variable is not set by user, try to locate tool using the code snippet 38994 for ac_prog in lipo 38995 do 38996 # Extract the first word of "$ac_prog", so it can be a program name with args. 38997 set dummy $ac_prog; ac_word=$2 38998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38999 $as_echo_n "checking for $ac_word... " >&6; } 39000 if ${ac_cv_path_LIPO+:} false; then : 39001 $as_echo_n "(cached) " >&6 39002 else 39003 case $LIPO in 39004 [\\/]* | ?:[\\/]*) 39005 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39006 ;; 39007 *) 39008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39009 for as_dir in $PATH 39010 do 39011 IFS=$as_save_IFS 39012 test -z "$as_dir" && as_dir=. 39013 for ac_exec_ext in '' $ac_executable_extensions; do 39014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39015 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39017 break 2 39018 fi 39019 done 39020 done 39021 IFS=$as_save_IFS 39022 39023 ;; 39024 esac 39025 fi 39026 LIPO=$ac_cv_path_LIPO 39027 if test -n "$LIPO"; then 39028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39029 $as_echo "$LIPO" >&6; } 39030 else 39031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39032 $as_echo "no" >&6; } 39033 fi 39034 39035 39036 test -n "$LIPO" && break 39037 done 39038 39039 else 39040 # The variable is set, but is it from the command line or the environment? 39041 39042 # Try to remove the string !LIPO! from our list. 39043 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 39044 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39045 # If it failed, the variable was not from the command line. Ignore it, 39046 # but warn the user (except for BASH, which is always set by the calling BASH). 39047 if test "xLIPO" != xBASH; then 39048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 39049 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 39050 fi 39051 # Try to locate tool using the code snippet 39052 for ac_prog in lipo 39053 do 39054 # Extract the first word of "$ac_prog", so it can be a program name with args. 39055 set dummy $ac_prog; ac_word=$2 39056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39057 $as_echo_n "checking for $ac_word... " >&6; } 39058 if ${ac_cv_path_LIPO+:} false; then : 39059 $as_echo_n "(cached) " >&6 39060 else 39061 case $LIPO in 39062 [\\/]* | ?:[\\/]*) 39063 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39064 ;; 39065 *) 39066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39067 for as_dir in $PATH 39068 do 39069 IFS=$as_save_IFS 39070 test -z "$as_dir" && as_dir=. 39071 for ac_exec_ext in '' $ac_executable_extensions; do 39072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39073 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39075 break 2 39076 fi 39077 done 39078 done 39079 IFS=$as_save_IFS 39080 39081 ;; 39082 esac 39083 fi 39084 LIPO=$ac_cv_path_LIPO 39085 if test -n "$LIPO"; then 39086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39087 $as_echo "$LIPO" >&6; } 39088 else 39089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39090 $as_echo "no" >&6; } 39091 fi 39092 39093 39094 test -n "$LIPO" && break 39095 done 39096 39097 else 39098 # If it succeeded, then it was overridden by the user. We will use it 39099 # for the tool. 39100 39101 # First remove it from the list of overridden variables, so we can test 39102 # for unknown variables in the end. 39103 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39104 39105 # Check if we try to supply an empty value 39106 if test "x$LIPO" = x; then 39107 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 39108 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 39109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39110 $as_echo_n "checking for LIPO... " >&6; } 39111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39112 $as_echo "disabled" >&6; } 39113 else 39114 # Check if the provided tool contains a complete path. 39115 tool_specified="$LIPO" 39116 tool_basename="${tool_specified##*/}" 39117 if test "x$tool_basename" = "x$tool_specified"; then 39118 # A command without a complete path is provided, search $PATH. 39119 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 39120 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 39121 # Extract the first word of "$tool_basename", so it can be a program name with args. 39122 set dummy $tool_basename; ac_word=$2 39123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39124 $as_echo_n "checking for $ac_word... " >&6; } 39125 if ${ac_cv_path_LIPO+:} false; then : 39126 $as_echo_n "(cached) " >&6 39127 else 39128 case $LIPO in 39129 [\\/]* | ?:[\\/]*) 39130 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39131 ;; 39132 *) 39133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39134 for as_dir in $PATH 39135 do 39136 IFS=$as_save_IFS 39137 test -z "$as_dir" && as_dir=. 39138 for ac_exec_ext in '' $ac_executable_extensions; do 39139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39140 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39142 break 2 39143 fi 39144 done 39145 done 39146 IFS=$as_save_IFS 39147 39148 ;; 39149 esac 39150 fi 39151 LIPO=$ac_cv_path_LIPO 39152 if test -n "$LIPO"; then 39153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39154 $as_echo "$LIPO" >&6; } 39155 else 39156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39157 $as_echo "no" >&6; } 39158 fi 39159 39160 39161 if test "x$LIPO" = x; then 39162 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39163 fi 39164 else 39165 # Otherwise we believe it is a complete path. Use it as it is. 39166 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 39167 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 39168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39169 $as_echo_n "checking for LIPO... " >&6; } 39170 if test ! -x "$tool_specified"; then 39171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39172 $as_echo "not found" >&6; } 39173 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 39174 fi 39175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39176 $as_echo "$tool_specified" >&6; } 39177 fi 39178 fi 39179 fi 39180 39181 fi 39182 39183 39184 39185 # Only process if variable expands to non-empty 39186 39187 if test "x$LIPO" != x; then 39188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39189 39190 # First separate the path from the arguments. This will split at the first 39191 # space. 39192 complete="$LIPO" 39193 path="${complete%% *}" 39194 tmp="$complete EOL" 39195 arguments="${tmp#* }" 39196 39197 # Input might be given as Windows format, start by converting to 39198 # unix format. 39199 new_path=`$CYGPATH -u "$path"` 39200 39201 # Now try to locate executable using which 39202 new_path=`$WHICH "$new_path" 2> /dev/null` 39203 # bat and cmd files are not always considered executable in cygwin causing which 39204 # to not find them 39205 if test "x$new_path" = x \ 39206 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39207 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39208 new_path=`$CYGPATH -u "$path"` 39209 fi 39210 if test "x$new_path" = x; then 39211 # Oops. Which didn't find the executable. 39212 # The splitting of arguments from the executable at a space might have been incorrect, 39213 # since paths with space are more likely in Windows. Give it another try with the whole 39214 # argument. 39215 path="$complete" 39216 arguments="EOL" 39217 new_path=`$CYGPATH -u "$path"` 39218 new_path=`$WHICH "$new_path" 2> /dev/null` 39219 # bat and cmd files are not always considered executable in cygwin causing which 39220 # to not find them 39221 if test "x$new_path" = x \ 39222 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39223 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39224 new_path=`$CYGPATH -u "$path"` 39225 fi 39226 if test "x$new_path" = x; then 39227 # It's still not found. Now this is an unrecoverable error. 39228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39229 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39230 has_space=`$ECHO "$complete" | $GREP " "` 39231 if test "x$has_space" != x; then 39232 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39233 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39234 fi 39235 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39236 fi 39237 fi 39238 39239 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39240 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39241 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39242 # "foo.exe" is OK but "foo" is an error. 39243 # 39244 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39245 # It is also a way to make sure we got the proper file name for the real test later on. 39246 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39247 if test "x$test_shortpath" = x; then 39248 # Short path failed, file does not exist as specified. 39249 # Try adding .exe or .cmd 39250 if test -f "${new_path}.exe"; then 39251 input_to_shortpath="${new_path}.exe" 39252 elif test -f "${new_path}.cmd"; then 39253 input_to_shortpath="${new_path}.cmd" 39254 else 39255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 39256 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 39257 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39258 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39259 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39260 fi 39261 else 39262 input_to_shortpath="$new_path" 39263 fi 39264 39265 # Call helper function which possibly converts this using DOS-style short mode. 39266 # If so, the updated path is stored in $new_path. 39267 new_path="$input_to_shortpath" 39268 39269 input_path="$input_to_shortpath" 39270 # Check if we need to convert this using DOS-style short mode. If the path 39271 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39272 # take no chances and rewrite it. 39273 # Note: m4 eats our [], so we need to use [ and ] instead. 39274 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39275 if test "x$has_forbidden_chars" != x; then 39276 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39277 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39278 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39279 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39280 # Going to short mode and back again did indeed matter. Since short mode is 39281 # case insensitive, let's make it lowercase to improve readability. 39282 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39283 # Now convert it back to Unix-style (cygpath) 39284 input_path=`$CYGPATH -u "$shortmode_path"` 39285 new_path="$input_path" 39286 fi 39287 fi 39288 39289 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39290 if test "x$test_cygdrive_prefix" = x; then 39291 # As a simple fix, exclude /usr/bin since it's not a real path. 39292 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39293 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39294 # a path prefixed by /cygdrive for fixpath to work. 39295 new_path="$CYGWIN_ROOT_PATH$input_path" 39296 fi 39297 fi 39298 39299 # remove trailing .exe if any 39300 new_path="${new_path/%.exe/}" 39301 39302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39303 39304 # First separate the path from the arguments. This will split at the first 39305 # space. 39306 complete="$LIPO" 39307 path="${complete%% *}" 39308 tmp="$complete EOL" 39309 arguments="${tmp#* }" 39310 39311 # Input might be given as Windows format, start by converting to 39312 # unix format. 39313 new_path="$path" 39314 39315 windows_path="$new_path" 39316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39317 unix_path=`$CYGPATH -u "$windows_path"` 39318 new_path="$unix_path" 39319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39321 new_path="$unix_path" 39322 fi 39323 39324 39325 # Now try to locate executable using which 39326 new_path=`$WHICH "$new_path" 2> /dev/null` 39327 39328 if test "x$new_path" = x; then 39329 # Oops. Which didn't find the executable. 39330 # The splitting of arguments from the executable at a space might have been incorrect, 39331 # since paths with space are more likely in Windows. Give it another try with the whole 39332 # argument. 39333 path="$complete" 39334 arguments="EOL" 39335 new_path="$path" 39336 39337 windows_path="$new_path" 39338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39339 unix_path=`$CYGPATH -u "$windows_path"` 39340 new_path="$unix_path" 39341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39343 new_path="$unix_path" 39344 fi 39345 39346 39347 new_path=`$WHICH "$new_path" 2> /dev/null` 39348 # bat and cmd files are not always considered executable in MSYS causing which 39349 # to not find them 39350 if test "x$new_path" = x \ 39351 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39352 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39353 new_path="$path" 39354 39355 windows_path="$new_path" 39356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39357 unix_path=`$CYGPATH -u "$windows_path"` 39358 new_path="$unix_path" 39359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39360 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39361 new_path="$unix_path" 39362 fi 39363 39364 fi 39365 39366 if test "x$new_path" = x; then 39367 # It's still not found. Now this is an unrecoverable error. 39368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39369 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39370 has_space=`$ECHO "$complete" | $GREP " "` 39371 if test "x$has_space" != x; then 39372 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39373 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39374 fi 39375 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39376 fi 39377 fi 39378 39379 # Now new_path has a complete unix path to the binary 39380 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39381 # Keep paths in /bin as-is, but remove trailing .exe if any 39382 new_path="${new_path/%.exe/}" 39383 # Do not save /bin paths to all_fixpath_prefixes! 39384 else 39385 # Not in mixed or Windows style, start by that. 39386 new_path=`cmd //c echo $new_path` 39387 39388 input_path="$new_path" 39389 # Check if we need to convert this using DOS-style short mode. If the path 39390 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39391 # take no chances and rewrite it. 39392 # Note: m4 eats our [], so we need to use [ and ] instead. 39393 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39394 if test "x$has_forbidden_chars" != x; then 39395 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39396 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39397 fi 39398 39399 # Output is in $new_path 39400 39401 windows_path="$new_path" 39402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39403 unix_path=`$CYGPATH -u "$windows_path"` 39404 new_path="$unix_path" 39405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39407 new_path="$unix_path" 39408 fi 39409 39410 # remove trailing .exe if any 39411 new_path="${new_path/%.exe/}" 39412 39413 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39414 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39415 fi 39416 39417 else 39418 # We're on a unix platform. Hooray! :) 39419 # First separate the path from the arguments. This will split at the first 39420 # space. 39421 complete="$LIPO" 39422 path="${complete%% *}" 39423 tmp="$complete EOL" 39424 arguments="${tmp#* }" 39425 39426 # Cannot rely on the command "which" here since it doesn't always work. 39427 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39428 if test -z "$is_absolute_path"; then 39429 # Path to executable is not absolute. Find it. 39430 IFS_save="$IFS" 39431 IFS=: 39432 for p in $PATH; do 39433 if test -f "$p/$path" && test -x "$p/$path"; then 39434 new_path="$p/$path" 39435 break 39436 fi 39437 done 39438 IFS="$IFS_save" 39439 else 39440 # This is an absolute path, we can use it without further modifications. 39441 new_path="$path" 39442 fi 39443 39444 if test "x$new_path" = x; then 39445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39446 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39447 has_space=`$ECHO "$complete" | $GREP " "` 39448 if test "x$has_space" != x; then 39449 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39450 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39451 fi 39452 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39453 fi 39454 fi 39455 39456 # Now join together the path and the arguments once again 39457 if test "x$arguments" != xEOL; then 39458 new_complete="$new_path ${arguments% *}" 39459 else 39460 new_complete="$new_path" 39461 fi 39462 39463 if test "x$complete" != "x$new_complete"; then 39464 LIPO="$new_complete" 39465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 39466 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 39467 fi 39468 fi 39469 39470 39471 39472 39473 # Publish this variable in the help. 39474 39475 39476 if [ -z "${OTOOL+x}" ]; then 39477 # The variable is not set by user, try to locate tool using the code snippet 39478 for ac_prog in otool 39479 do 39480 # Extract the first word of "$ac_prog", so it can be a program name with args. 39481 set dummy $ac_prog; ac_word=$2 39482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39483 $as_echo_n "checking for $ac_word... " >&6; } 39484 if ${ac_cv_path_OTOOL+:} false; then : 39485 $as_echo_n "(cached) " >&6 39486 else 39487 case $OTOOL in 39488 [\\/]* | ?:[\\/]*) 39489 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39490 ;; 39491 *) 39492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39493 for as_dir in $PATH 39494 do 39495 IFS=$as_save_IFS 39496 test -z "$as_dir" && as_dir=. 39497 for ac_exec_ext in '' $ac_executable_extensions; do 39498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39499 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39501 break 2 39502 fi 39503 done 39504 done 39505 IFS=$as_save_IFS 39506 39507 ;; 39508 esac 39509 fi 39510 OTOOL=$ac_cv_path_OTOOL 39511 if test -n "$OTOOL"; then 39512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39513 $as_echo "$OTOOL" >&6; } 39514 else 39515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39516 $as_echo "no" >&6; } 39517 fi 39518 39519 39520 test -n "$OTOOL" && break 39521 done 39522 39523 else 39524 # The variable is set, but is it from the command line or the environment? 39525 39526 # Try to remove the string !OTOOL! from our list. 39527 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 39528 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39529 # If it failed, the variable was not from the command line. Ignore it, 39530 # but warn the user (except for BASH, which is always set by the calling BASH). 39531 if test "xOTOOL" != xBASH; then 39532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 39533 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 39534 fi 39535 # Try to locate tool using the code snippet 39536 for ac_prog in otool 39537 do 39538 # Extract the first word of "$ac_prog", so it can be a program name with args. 39539 set dummy $ac_prog; ac_word=$2 39540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39541 $as_echo_n "checking for $ac_word... " >&6; } 39542 if ${ac_cv_path_OTOOL+:} false; then : 39543 $as_echo_n "(cached) " >&6 39544 else 39545 case $OTOOL in 39546 [\\/]* | ?:[\\/]*) 39547 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39548 ;; 39549 *) 39550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39551 for as_dir in $PATH 39552 do 39553 IFS=$as_save_IFS 39554 test -z "$as_dir" && as_dir=. 39555 for ac_exec_ext in '' $ac_executable_extensions; do 39556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39557 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39559 break 2 39560 fi 39561 done 39562 done 39563 IFS=$as_save_IFS 39564 39565 ;; 39566 esac 39567 fi 39568 OTOOL=$ac_cv_path_OTOOL 39569 if test -n "$OTOOL"; then 39570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39571 $as_echo "$OTOOL" >&6; } 39572 else 39573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39574 $as_echo "no" >&6; } 39575 fi 39576 39577 39578 test -n "$OTOOL" && break 39579 done 39580 39581 else 39582 # If it succeeded, then it was overridden by the user. We will use it 39583 # for the tool. 39584 39585 # First remove it from the list of overridden variables, so we can test 39586 # for unknown variables in the end. 39587 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39588 39589 # Check if we try to supply an empty value 39590 if test "x$OTOOL" = x; then 39591 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 39592 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 39593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 39594 $as_echo_n "checking for OTOOL... " >&6; } 39595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39596 $as_echo "disabled" >&6; } 39597 else 39598 # Check if the provided tool contains a complete path. 39599 tool_specified="$OTOOL" 39600 tool_basename="${tool_specified##*/}" 39601 if test "x$tool_basename" = "x$tool_specified"; then 39602 # A command without a complete path is provided, search $PATH. 39603 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 39604 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 39605 # Extract the first word of "$tool_basename", so it can be a program name with args. 39606 set dummy $tool_basename; ac_word=$2 39607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39608 $as_echo_n "checking for $ac_word... " >&6; } 39609 if ${ac_cv_path_OTOOL+:} false; then : 39610 $as_echo_n "(cached) " >&6 39611 else 39612 case $OTOOL in 39613 [\\/]* | ?:[\\/]*) 39614 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39615 ;; 39616 *) 39617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39618 for as_dir in $PATH 39619 do 39620 IFS=$as_save_IFS 39621 test -z "$as_dir" && as_dir=. 39622 for ac_exec_ext in '' $ac_executable_extensions; do 39623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39624 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39626 break 2 39627 fi 39628 done 39629 done 39630 IFS=$as_save_IFS 39631 39632 ;; 39633 esac 39634 fi 39635 OTOOL=$ac_cv_path_OTOOL 39636 if test -n "$OTOOL"; then 39637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39638 $as_echo "$OTOOL" >&6; } 39639 else 39640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39641 $as_echo "no" >&6; } 39642 fi 39643 39644 39645 if test "x$OTOOL" = x; then 39646 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39647 fi 39648 else 39649 # Otherwise we believe it is a complete path. Use it as it is. 39650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 39651 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 39652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 39653 $as_echo_n "checking for OTOOL... " >&6; } 39654 if test ! -x "$tool_specified"; then 39655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39656 $as_echo "not found" >&6; } 39657 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 39658 fi 39659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39660 $as_echo "$tool_specified" >&6; } 39661 fi 39662 fi 39663 fi 39664 39665 fi 39666 39667 39668 39669 if test "x$OTOOL" = x; then 39670 as_fn_error $? "Could not find required tool for OTOOL" "$LINENO" 5 39671 fi 39672 39673 39674 39675 # Only process if variable expands to non-empty 39676 39677 if test "x$OTOOL" != x; then 39678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39679 39680 # First separate the path from the arguments. This will split at the first 39681 # space. 39682 complete="$OTOOL" 39683 path="${complete%% *}" 39684 tmp="$complete EOL" 39685 arguments="${tmp#* }" 39686 39687 # Input might be given as Windows format, start by converting to 39688 # unix format. 39689 new_path=`$CYGPATH -u "$path"` 39690 39691 # Now try to locate executable using which 39692 new_path=`$WHICH "$new_path" 2> /dev/null` 39693 # bat and cmd files are not always considered executable in cygwin causing which 39694 # to not find them 39695 if test "x$new_path" = x \ 39696 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39697 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39698 new_path=`$CYGPATH -u "$path"` 39699 fi 39700 if test "x$new_path" = x; then 39701 # Oops. Which didn't find the executable. 39702 # The splitting of arguments from the executable at a space might have been incorrect, 39703 # since paths with space are more likely in Windows. Give it another try with the whole 39704 # argument. 39705 path="$complete" 39706 arguments="EOL" 39707 new_path=`$CYGPATH -u "$path"` 39708 new_path=`$WHICH "$new_path" 2> /dev/null` 39709 # bat and cmd files are not always considered executable in cygwin causing which 39710 # to not find them 39711 if test "x$new_path" = x \ 39712 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39713 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39714 new_path=`$CYGPATH -u "$path"` 39715 fi 39716 if test "x$new_path" = x; then 39717 # It's still not found. Now this is an unrecoverable error. 39718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39719 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39720 has_space=`$ECHO "$complete" | $GREP " "` 39721 if test "x$has_space" != x; then 39722 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39723 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39724 fi 39725 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39726 fi 39727 fi 39728 39729 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39730 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39731 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39732 # "foo.exe" is OK but "foo" is an error. 39733 # 39734 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39735 # It is also a way to make sure we got the proper file name for the real test later on. 39736 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39737 if test "x$test_shortpath" = x; then 39738 # Short path failed, file does not exist as specified. 39739 # Try adding .exe or .cmd 39740 if test -f "${new_path}.exe"; then 39741 input_to_shortpath="${new_path}.exe" 39742 elif test -f "${new_path}.cmd"; then 39743 input_to_shortpath="${new_path}.cmd" 39744 else 39745 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$new_path\", is invalid." >&5 39746 $as_echo "$as_me: The path of OTOOL, which resolves as \"$new_path\", is invalid." >&6;} 39747 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39748 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39749 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39750 fi 39751 else 39752 input_to_shortpath="$new_path" 39753 fi 39754 39755 # Call helper function which possibly converts this using DOS-style short mode. 39756 # If so, the updated path is stored in $new_path. 39757 new_path="$input_to_shortpath" 39758 39759 input_path="$input_to_shortpath" 39760 # Check if we need to convert this using DOS-style short mode. If the path 39761 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39762 # take no chances and rewrite it. 39763 # Note: m4 eats our [], so we need to use [ and ] instead. 39764 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39765 if test "x$has_forbidden_chars" != x; then 39766 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39767 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39768 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39769 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39770 # Going to short mode and back again did indeed matter. Since short mode is 39771 # case insensitive, let's make it lowercase to improve readability. 39772 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39773 # Now convert it back to Unix-style (cygpath) 39774 input_path=`$CYGPATH -u "$shortmode_path"` 39775 new_path="$input_path" 39776 fi 39777 fi 39778 39779 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39780 if test "x$test_cygdrive_prefix" = x; then 39781 # As a simple fix, exclude /usr/bin since it's not a real path. 39782 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39783 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39784 # a path prefixed by /cygdrive for fixpath to work. 39785 new_path="$CYGWIN_ROOT_PATH$input_path" 39786 fi 39787 fi 39788 39789 # remove trailing .exe if any 39790 new_path="${new_path/%.exe/}" 39791 39792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39793 39794 # First separate the path from the arguments. This will split at the first 39795 # space. 39796 complete="$OTOOL" 39797 path="${complete%% *}" 39798 tmp="$complete EOL" 39799 arguments="${tmp#* }" 39800 39801 # Input might be given as Windows format, start by converting to 39802 # unix format. 39803 new_path="$path" 39804 39805 windows_path="$new_path" 39806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39807 unix_path=`$CYGPATH -u "$windows_path"` 39808 new_path="$unix_path" 39809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39810 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39811 new_path="$unix_path" 39812 fi 39813 39814 39815 # Now try to locate executable using which 39816 new_path=`$WHICH "$new_path" 2> /dev/null` 39817 39818 if test "x$new_path" = x; then 39819 # Oops. Which didn't find the executable. 39820 # The splitting of arguments from the executable at a space might have been incorrect, 39821 # since paths with space are more likely in Windows. Give it another try with the whole 39822 # argument. 39823 path="$complete" 39824 arguments="EOL" 39825 new_path="$path" 39826 39827 windows_path="$new_path" 39828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39829 unix_path=`$CYGPATH -u "$windows_path"` 39830 new_path="$unix_path" 39831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39832 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39833 new_path="$unix_path" 39834 fi 39835 39836 39837 new_path=`$WHICH "$new_path" 2> /dev/null` 39838 # bat and cmd files are not always considered executable in MSYS causing which 39839 # to not find them 39840 if test "x$new_path" = x \ 39841 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39842 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39843 new_path="$path" 39844 39845 windows_path="$new_path" 39846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39847 unix_path=`$CYGPATH -u "$windows_path"` 39848 new_path="$unix_path" 39849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39850 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39851 new_path="$unix_path" 39852 fi 39853 39854 fi 39855 39856 if test "x$new_path" = x; then 39857 # It's still not found. Now this is an unrecoverable error. 39858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39859 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39860 has_space=`$ECHO "$complete" | $GREP " "` 39861 if test "x$has_space" != x; then 39862 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39863 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39864 fi 39865 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39866 fi 39867 fi 39868 39869 # Now new_path has a complete unix path to the binary 39870 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39871 # Keep paths in /bin as-is, but remove trailing .exe if any 39872 new_path="${new_path/%.exe/}" 39873 # Do not save /bin paths to all_fixpath_prefixes! 39874 else 39875 # Not in mixed or Windows style, start by that. 39876 new_path=`cmd //c echo $new_path` 39877 39878 input_path="$new_path" 39879 # Check if we need to convert this using DOS-style short mode. If the path 39880 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39881 # take no chances and rewrite it. 39882 # Note: m4 eats our [], so we need to use [ and ] instead. 39883 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39884 if test "x$has_forbidden_chars" != x; then 39885 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39886 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39887 fi 39888 39889 # Output is in $new_path 39890 39891 windows_path="$new_path" 39892 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39893 unix_path=`$CYGPATH -u "$windows_path"` 39894 new_path="$unix_path" 39895 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39896 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39897 new_path="$unix_path" 39898 fi 39899 39900 # remove trailing .exe if any 39901 new_path="${new_path/%.exe/}" 39902 39903 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39904 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39905 fi 39906 39907 else 39908 # We're on a unix platform. Hooray! :) 39909 # First separate the path from the arguments. This will split at the first 39910 # space. 39911 complete="$OTOOL" 39912 path="${complete%% *}" 39913 tmp="$complete EOL" 39914 arguments="${tmp#* }" 39915 39916 # Cannot rely on the command "which" here since it doesn't always work. 39917 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39918 if test -z "$is_absolute_path"; then 39919 # Path to executable is not absolute. Find it. 39920 IFS_save="$IFS" 39921 IFS=: 39922 for p in $PATH; do 39923 if test -f "$p/$path" && test -x "$p/$path"; then 39924 new_path="$p/$path" 39925 break 39926 fi 39927 done 39928 IFS="$IFS_save" 39929 else 39930 # This is an absolute path, we can use it without further modifications. 39931 new_path="$path" 39932 fi 39933 39934 if test "x$new_path" = x; then 39935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39936 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39937 has_space=`$ECHO "$complete" | $GREP " "` 39938 if test "x$has_space" != x; then 39939 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39940 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39941 fi 39942 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39943 fi 39944 fi 39945 39946 # Now join together the path and the arguments once again 39947 if test "x$arguments" != xEOL; then 39948 new_complete="$new_path ${arguments% *}" 39949 else 39950 new_complete="$new_path" 39951 fi 39952 39953 if test "x$complete" != "x$new_complete"; then 39954 OTOOL="$new_complete" 39955 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OTOOL to \"$new_complete\"" >&5 39956 $as_echo "$as_me: Rewriting OTOOL to \"$new_complete\"" >&6;} 39957 fi 39958 fi 39959 39960 39961 39962 39963 # Publish this variable in the help. 39964 39965 39966 if [ -z "${INSTALL_NAME_TOOL+x}" ]; then 39967 # The variable is not set by user, try to locate tool using the code snippet 39968 for ac_prog in install_name_tool 39969 do 39970 # Extract the first word of "$ac_prog", so it can be a program name with args. 39971 set dummy $ac_prog; ac_word=$2 39972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39973 $as_echo_n "checking for $ac_word... " >&6; } 39974 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 39975 $as_echo_n "(cached) " >&6 39976 else 39977 case $INSTALL_NAME_TOOL in 39978 [\\/]* | ?:[\\/]*) 39979 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 39980 ;; 39981 *) 39982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39983 for as_dir in $PATH 39984 do 39985 IFS=$as_save_IFS 39986 test -z "$as_dir" && as_dir=. 39987 for ac_exec_ext in '' $ac_executable_extensions; do 39988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39989 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 39990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39991 break 2 39992 fi 39993 done 39994 done 39995 IFS=$as_save_IFS 39996 39997 ;; 39998 esac 39999 fi 40000 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 40001 if test -n "$INSTALL_NAME_TOOL"; then 40002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 40003 $as_echo "$INSTALL_NAME_TOOL" >&6; } 40004 else 40005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40006 $as_echo "no" >&6; } 40007 fi 40008 40009 40010 test -n "$INSTALL_NAME_TOOL" && break 40011 done 40012 40013 else 40014 # The variable is set, but is it from the command line or the environment? 40015 40016 # Try to remove the string !INSTALL_NAME_TOOL! from our list. 40017 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!INSTALL_NAME_TOOL!/} 40018 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40019 # If it failed, the variable was not from the command line. Ignore it, 40020 # but warn the user (except for BASH, which is always set by the calling BASH). 40021 if test "xINSTALL_NAME_TOOL" != xBASH; then 40022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of INSTALL_NAME_TOOL from the environment. Use command line variables instead." >&5 40023 $as_echo "$as_me: WARNING: Ignoring value of INSTALL_NAME_TOOL from the environment. Use command line variables instead." >&2;} 40024 fi 40025 # Try to locate tool using the code snippet 40026 for ac_prog in install_name_tool 40027 do 40028 # Extract the first word of "$ac_prog", so it can be a program name with args. 40029 set dummy $ac_prog; ac_word=$2 40030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40031 $as_echo_n "checking for $ac_word... " >&6; } 40032 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 40033 $as_echo_n "(cached) " >&6 40034 else 40035 case $INSTALL_NAME_TOOL in 40036 [\\/]* | ?:[\\/]*) 40037 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 40038 ;; 40039 *) 40040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40041 for as_dir in $PATH 40042 do 40043 IFS=$as_save_IFS 40044 test -z "$as_dir" && as_dir=. 40045 for ac_exec_ext in '' $ac_executable_extensions; do 40046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40047 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 40048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40049 break 2 40050 fi 40051 done 40052 done 40053 IFS=$as_save_IFS 40054 40055 ;; 40056 esac 40057 fi 40058 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 40059 if test -n "$INSTALL_NAME_TOOL"; then 40060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 40061 $as_echo "$INSTALL_NAME_TOOL" >&6; } 40062 else 40063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40064 $as_echo "no" >&6; } 40065 fi 40066 40067 40068 test -n "$INSTALL_NAME_TOOL" && break 40069 done 40070 40071 else 40072 # If it succeeded, then it was overridden by the user. We will use it 40073 # for the tool. 40074 40075 # First remove it from the list of overridden variables, so we can test 40076 # for unknown variables in the end. 40077 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40078 40079 # Check if we try to supply an empty value 40080 if test "x$INSTALL_NAME_TOOL" = x; then 40081 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool INSTALL_NAME_TOOL= (no value)" >&5 40082 $as_echo "$as_me: Setting user supplied tool INSTALL_NAME_TOOL= (no value)" >&6;} 40083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INSTALL_NAME_TOOL" >&5 40084 $as_echo_n "checking for INSTALL_NAME_TOOL... " >&6; } 40085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40086 $as_echo "disabled" >&6; } 40087 else 40088 # Check if the provided tool contains a complete path. 40089 tool_specified="$INSTALL_NAME_TOOL" 40090 tool_basename="${tool_specified##*/}" 40091 if test "x$tool_basename" = "x$tool_specified"; then 40092 # A command without a complete path is provided, search $PATH. 40093 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool INSTALL_NAME_TOOL=$tool_basename" >&5 40094 $as_echo "$as_me: Will search for user supplied tool INSTALL_NAME_TOOL=$tool_basename" >&6;} 40095 # Extract the first word of "$tool_basename", so it can be a program name with args. 40096 set dummy $tool_basename; ac_word=$2 40097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40098 $as_echo_n "checking for $ac_word... " >&6; } 40099 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 40100 $as_echo_n "(cached) " >&6 40101 else 40102 case $INSTALL_NAME_TOOL in 40103 [\\/]* | ?:[\\/]*) 40104 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 40105 ;; 40106 *) 40107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40108 for as_dir in $PATH 40109 do 40110 IFS=$as_save_IFS 40111 test -z "$as_dir" && as_dir=. 40112 for ac_exec_ext in '' $ac_executable_extensions; do 40113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40114 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 40115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40116 break 2 40117 fi 40118 done 40119 done 40120 IFS=$as_save_IFS 40121 40122 ;; 40123 esac 40124 fi 40125 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 40126 if test -n "$INSTALL_NAME_TOOL"; then 40127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 40128 $as_echo "$INSTALL_NAME_TOOL" >&6; } 40129 else 40130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40131 $as_echo "no" >&6; } 40132 fi 40133 40134 40135 if test "x$INSTALL_NAME_TOOL" = x; then 40136 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40137 fi 40138 else 40139 # Otherwise we believe it is a complete path. Use it as it is. 40140 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool INSTALL_NAME_TOOL=$tool_specified" >&5 40141 $as_echo "$as_me: Will use user supplied tool INSTALL_NAME_TOOL=$tool_specified" >&6;} 40142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INSTALL_NAME_TOOL" >&5 40143 $as_echo_n "checking for INSTALL_NAME_TOOL... " >&6; } 40144 if test ! -x "$tool_specified"; then 40145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40146 $as_echo "not found" >&6; } 40147 as_fn_error $? "User supplied tool INSTALL_NAME_TOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 40148 fi 40149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40150 $as_echo "$tool_specified" >&6; } 40151 fi 40152 fi 40153 fi 40154 40155 fi 40156 40157 40158 40159 if test "x$INSTALL_NAME_TOOL" = x; then 40160 as_fn_error $? "Could not find required tool for INSTALL_NAME_TOOL" "$LINENO" 5 40161 fi 40162 40163 40164 40165 # Only process if variable expands to non-empty 40166 40167 if test "x$INSTALL_NAME_TOOL" != x; then 40168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40169 40170 # First separate the path from the arguments. This will split at the first 40171 # space. 40172 complete="$INSTALL_NAME_TOOL" 40173 path="${complete%% *}" 40174 tmp="$complete EOL" 40175 arguments="${tmp#* }" 40176 40177 # Input might be given as Windows format, start by converting to 40178 # unix format. 40179 new_path=`$CYGPATH -u "$path"` 40180 40181 # Now try to locate executable using which 40182 new_path=`$WHICH "$new_path" 2> /dev/null` 40183 # bat and cmd files are not always considered executable in cygwin causing which 40184 # to not find them 40185 if test "x$new_path" = x \ 40186 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40187 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40188 new_path=`$CYGPATH -u "$path"` 40189 fi 40190 if test "x$new_path" = x; then 40191 # Oops. Which didn't find the executable. 40192 # The splitting of arguments from the executable at a space might have been incorrect, 40193 # since paths with space are more likely in Windows. Give it another try with the whole 40194 # argument. 40195 path="$complete" 40196 arguments="EOL" 40197 new_path=`$CYGPATH -u "$path"` 40198 new_path=`$WHICH "$new_path" 2> /dev/null` 40199 # bat and cmd files are not always considered executable in cygwin causing which 40200 # to not find them 40201 if test "x$new_path" = x \ 40202 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40203 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40204 new_path=`$CYGPATH -u "$path"` 40205 fi 40206 if test "x$new_path" = x; then 40207 # It's still not found. Now this is an unrecoverable error. 40208 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40209 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40210 has_space=`$ECHO "$complete" | $GREP " "` 40211 if test "x$has_space" != x; then 40212 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40213 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40214 fi 40215 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40216 fi 40217 fi 40218 40219 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40220 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40221 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40222 # "foo.exe" is OK but "foo" is an error. 40223 # 40224 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40225 # It is also a way to make sure we got the proper file name for the real test later on. 40226 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40227 if test "x$test_shortpath" = x; then 40228 # Short path failed, file does not exist as specified. 40229 # Try adding .exe or .cmd 40230 if test -f "${new_path}.exe"; then 40231 input_to_shortpath="${new_path}.exe" 40232 elif test -f "${new_path}.cmd"; then 40233 input_to_shortpath="${new_path}.cmd" 40234 else 40235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$new_path\", is invalid." >&5 40236 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$new_path\", is invalid." >&6;} 40237 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40238 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40239 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40240 fi 40241 else 40242 input_to_shortpath="$new_path" 40243 fi 40244 40245 # Call helper function which possibly converts this using DOS-style short mode. 40246 # If so, the updated path is stored in $new_path. 40247 new_path="$input_to_shortpath" 40248 40249 input_path="$input_to_shortpath" 40250 # Check if we need to convert this using DOS-style short mode. If the path 40251 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40252 # take no chances and rewrite it. 40253 # Note: m4 eats our [], so we need to use [ and ] instead. 40254 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40255 if test "x$has_forbidden_chars" != x; then 40256 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40257 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40258 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40259 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40260 # Going to short mode and back again did indeed matter. Since short mode is 40261 # case insensitive, let's make it lowercase to improve readability. 40262 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40263 # Now convert it back to Unix-style (cygpath) 40264 input_path=`$CYGPATH -u "$shortmode_path"` 40265 new_path="$input_path" 40266 fi 40267 fi 40268 40269 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40270 if test "x$test_cygdrive_prefix" = x; then 40271 # As a simple fix, exclude /usr/bin since it's not a real path. 40272 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40273 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40274 # a path prefixed by /cygdrive for fixpath to work. 40275 new_path="$CYGWIN_ROOT_PATH$input_path" 40276 fi 40277 fi 40278 40279 # remove trailing .exe if any 40280 new_path="${new_path/%.exe/}" 40281 40282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40283 40284 # First separate the path from the arguments. This will split at the first 40285 # space. 40286 complete="$INSTALL_NAME_TOOL" 40287 path="${complete%% *}" 40288 tmp="$complete EOL" 40289 arguments="${tmp#* }" 40290 40291 # Input might be given as Windows format, start by converting to 40292 # unix format. 40293 new_path="$path" 40294 40295 windows_path="$new_path" 40296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40297 unix_path=`$CYGPATH -u "$windows_path"` 40298 new_path="$unix_path" 40299 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40300 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40301 new_path="$unix_path" 40302 fi 40303 40304 40305 # Now try to locate executable using which 40306 new_path=`$WHICH "$new_path" 2> /dev/null` 40307 40308 if test "x$new_path" = x; then 40309 # Oops. Which didn't find the executable. 40310 # The splitting of arguments from the executable at a space might have been incorrect, 40311 # since paths with space are more likely in Windows. Give it another try with the whole 40312 # argument. 40313 path="$complete" 40314 arguments="EOL" 40315 new_path="$path" 40316 40317 windows_path="$new_path" 40318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40319 unix_path=`$CYGPATH -u "$windows_path"` 40320 new_path="$unix_path" 40321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40322 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40323 new_path="$unix_path" 40324 fi 40325 40326 40327 new_path=`$WHICH "$new_path" 2> /dev/null` 40328 # bat and cmd files are not always considered executable in MSYS causing which 40329 # to not find them 40330 if test "x$new_path" = x \ 40331 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40332 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40333 new_path="$path" 40334 40335 windows_path="$new_path" 40336 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40337 unix_path=`$CYGPATH -u "$windows_path"` 40338 new_path="$unix_path" 40339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40340 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40341 new_path="$unix_path" 40342 fi 40343 40344 fi 40345 40346 if test "x$new_path" = x; then 40347 # It's still not found. Now this is an unrecoverable error. 40348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40349 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40350 has_space=`$ECHO "$complete" | $GREP " "` 40351 if test "x$has_space" != x; then 40352 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40353 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40354 fi 40355 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40356 fi 40357 fi 40358 40359 # Now new_path has a complete unix path to the binary 40360 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40361 # Keep paths in /bin as-is, but remove trailing .exe if any 40362 new_path="${new_path/%.exe/}" 40363 # Do not save /bin paths to all_fixpath_prefixes! 40364 else 40365 # Not in mixed or Windows style, start by that. 40366 new_path=`cmd //c echo $new_path` 40367 40368 input_path="$new_path" 40369 # Check if we need to convert this using DOS-style short mode. If the path 40370 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40371 # take no chances and rewrite it. 40372 # Note: m4 eats our [], so we need to use [ and ] instead. 40373 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40374 if test "x$has_forbidden_chars" != x; then 40375 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40376 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40377 fi 40378 40379 # Output is in $new_path 40380 40381 windows_path="$new_path" 40382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40383 unix_path=`$CYGPATH -u "$windows_path"` 40384 new_path="$unix_path" 40385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40386 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40387 new_path="$unix_path" 40388 fi 40389 40390 # remove trailing .exe if any 40391 new_path="${new_path/%.exe/}" 40392 40393 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40394 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40395 fi 40396 40397 else 40398 # We're on a unix platform. Hooray! :) 40399 # First separate the path from the arguments. This will split at the first 40400 # space. 40401 complete="$INSTALL_NAME_TOOL" 40402 path="${complete%% *}" 40403 tmp="$complete EOL" 40404 arguments="${tmp#* }" 40405 40406 # Cannot rely on the command "which" here since it doesn't always work. 40407 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40408 if test -z "$is_absolute_path"; then 40409 # Path to executable is not absolute. Find it. 40410 IFS_save="$IFS" 40411 IFS=: 40412 for p in $PATH; do 40413 if test -f "$p/$path" && test -x "$p/$path"; then 40414 new_path="$p/$path" 40415 break 40416 fi 40417 done 40418 IFS="$IFS_save" 40419 else 40420 # This is an absolute path, we can use it without further modifications. 40421 new_path="$path" 40422 fi 40423 40424 if test "x$new_path" = x; then 40425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40426 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40427 has_space=`$ECHO "$complete" | $GREP " "` 40428 if test "x$has_space" != x; then 40429 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40430 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40431 fi 40432 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40433 fi 40434 fi 40435 40436 # Now join together the path and the arguments once again 40437 if test "x$arguments" != xEOL; then 40438 new_complete="$new_path ${arguments% *}" 40439 else 40440 new_complete="$new_path" 40441 fi 40442 40443 if test "x$complete" != "x$new_complete"; then 40444 INSTALL_NAME_TOOL="$new_complete" 40445 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting INSTALL_NAME_TOOL to \"$new_complete\"" >&5 40446 $as_echo "$as_me: Rewriting INSTALL_NAME_TOOL to \"$new_complete\"" >&6;} 40447 fi 40448 fi 40449 40450 fi 40451 40452 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40453 # Extract the first word of "mt", so it can be a program name with args. 40454 set dummy mt; ac_word=$2 40455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40456 $as_echo_n "checking for $ac_word... " >&6; } 40457 if ${ac_cv_prog_MT+:} false; then : 40458 $as_echo_n "(cached) " >&6 40459 else 40460 if test -n "$MT"; then 40461 ac_cv_prog_MT="$MT" # Let the user override the test. 40462 else 40463 ac_prog_rejected=no 40464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40465 for as_dir in $PATH 40466 do 40467 IFS=$as_save_IFS 40468 test -z "$as_dir" && as_dir=. 40469 for ac_exec_ext in '' $ac_executable_extensions; do 40470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40471 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 40472 ac_prog_rejected=yes 40473 continue 40474 fi 40475 ac_cv_prog_MT="mt" 40476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40477 break 2 40478 fi 40479 done 40480 done 40481 IFS=$as_save_IFS 40482 40483 if test $ac_prog_rejected = yes; then 40484 # We found a bogon in the path, so make sure we never use it. 40485 set dummy $ac_cv_prog_MT 40486 shift 40487 if test $# != 0; then 40488 # We chose a different compiler from the bogus one. 40489 # However, it has the same basename, so the bogon will be chosen 40490 # first if we set MT to just the basename; use the full file name. 40491 shift 40492 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 40493 fi 40494 fi 40495 fi 40496 fi 40497 MT=$ac_cv_prog_MT 40498 if test -n "$MT"; then 40499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 40500 $as_echo "$MT" >&6; } 40501 else 40502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40503 $as_echo "no" >&6; } 40504 fi 40505 40506 40507 40508 # Only process if variable expands to non-empty 40509 40510 if test "x$MT" != x; then 40511 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40512 40513 # First separate the path from the arguments. This will split at the first 40514 # space. 40515 complete="$MT" 40516 path="${complete%% *}" 40517 tmp="$complete EOL" 40518 arguments="${tmp#* }" 40519 40520 # Input might be given as Windows format, start by converting to 40521 # unix format. 40522 new_path=`$CYGPATH -u "$path"` 40523 40524 # Now try to locate executable using which 40525 new_path=`$WHICH "$new_path" 2> /dev/null` 40526 # bat and cmd files are not always considered executable in cygwin causing which 40527 # to not find them 40528 if test "x$new_path" = x \ 40529 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40530 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40531 new_path=`$CYGPATH -u "$path"` 40532 fi 40533 if test "x$new_path" = x; then 40534 # Oops. Which didn't find the executable. 40535 # The splitting of arguments from the executable at a space might have been incorrect, 40536 # since paths with space are more likely in Windows. Give it another try with the whole 40537 # argument. 40538 path="$complete" 40539 arguments="EOL" 40540 new_path=`$CYGPATH -u "$path"` 40541 new_path=`$WHICH "$new_path" 2> /dev/null` 40542 # bat and cmd files are not always considered executable in cygwin causing which 40543 # to not find them 40544 if test "x$new_path" = x \ 40545 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40546 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40547 new_path=`$CYGPATH -u "$path"` 40548 fi 40549 if test "x$new_path" = x; then 40550 # It's still not found. Now this is an unrecoverable error. 40551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40552 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40553 has_space=`$ECHO "$complete" | $GREP " "` 40554 if test "x$has_space" != x; then 40555 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40556 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40557 fi 40558 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40559 fi 40560 fi 40561 40562 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40563 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40564 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40565 # "foo.exe" is OK but "foo" is an error. 40566 # 40567 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40568 # It is also a way to make sure we got the proper file name for the real test later on. 40569 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40570 if test "x$test_shortpath" = x; then 40571 # Short path failed, file does not exist as specified. 40572 # Try adding .exe or .cmd 40573 if test -f "${new_path}.exe"; then 40574 input_to_shortpath="${new_path}.exe" 40575 elif test -f "${new_path}.cmd"; then 40576 input_to_shortpath="${new_path}.cmd" 40577 else 40578 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 40579 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 40580 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40581 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40582 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40583 fi 40584 else 40585 input_to_shortpath="$new_path" 40586 fi 40587 40588 # Call helper function which possibly converts this using DOS-style short mode. 40589 # If so, the updated path is stored in $new_path. 40590 new_path="$input_to_shortpath" 40591 40592 input_path="$input_to_shortpath" 40593 # Check if we need to convert this using DOS-style short mode. If the path 40594 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40595 # take no chances and rewrite it. 40596 # Note: m4 eats our [], so we need to use [ and ] instead. 40597 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40598 if test "x$has_forbidden_chars" != x; then 40599 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40600 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40601 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40602 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40603 # Going to short mode and back again did indeed matter. Since short mode is 40604 # case insensitive, let's make it lowercase to improve readability. 40605 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40606 # Now convert it back to Unix-style (cygpath) 40607 input_path=`$CYGPATH -u "$shortmode_path"` 40608 new_path="$input_path" 40609 fi 40610 fi 40611 40612 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40613 if test "x$test_cygdrive_prefix" = x; then 40614 # As a simple fix, exclude /usr/bin since it's not a real path. 40615 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40616 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40617 # a path prefixed by /cygdrive for fixpath to work. 40618 new_path="$CYGWIN_ROOT_PATH$input_path" 40619 fi 40620 fi 40621 40622 # remove trailing .exe if any 40623 new_path="${new_path/%.exe/}" 40624 40625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40626 40627 # First separate the path from the arguments. This will split at the first 40628 # space. 40629 complete="$MT" 40630 path="${complete%% *}" 40631 tmp="$complete EOL" 40632 arguments="${tmp#* }" 40633 40634 # Input might be given as Windows format, start by converting to 40635 # unix format. 40636 new_path="$path" 40637 40638 windows_path="$new_path" 40639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40640 unix_path=`$CYGPATH -u "$windows_path"` 40641 new_path="$unix_path" 40642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40643 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40644 new_path="$unix_path" 40645 fi 40646 40647 40648 # Now try to locate executable using which 40649 new_path=`$WHICH "$new_path" 2> /dev/null` 40650 40651 if test "x$new_path" = x; then 40652 # Oops. Which didn't find the executable. 40653 # The splitting of arguments from the executable at a space might have been incorrect, 40654 # since paths with space are more likely in Windows. Give it another try with the whole 40655 # argument. 40656 path="$complete" 40657 arguments="EOL" 40658 new_path="$path" 40659 40660 windows_path="$new_path" 40661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40662 unix_path=`$CYGPATH -u "$windows_path"` 40663 new_path="$unix_path" 40664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40666 new_path="$unix_path" 40667 fi 40668 40669 40670 new_path=`$WHICH "$new_path" 2> /dev/null` 40671 # bat and cmd files are not always considered executable in MSYS causing which 40672 # to not find them 40673 if test "x$new_path" = x \ 40674 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40675 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40676 new_path="$path" 40677 40678 windows_path="$new_path" 40679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40680 unix_path=`$CYGPATH -u "$windows_path"` 40681 new_path="$unix_path" 40682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40683 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40684 new_path="$unix_path" 40685 fi 40686 40687 fi 40688 40689 if test "x$new_path" = x; then 40690 # It's still not found. Now this is an unrecoverable error. 40691 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40692 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40693 has_space=`$ECHO "$complete" | $GREP " "` 40694 if test "x$has_space" != x; then 40695 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40696 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40697 fi 40698 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40699 fi 40700 fi 40701 40702 # Now new_path has a complete unix path to the binary 40703 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40704 # Keep paths in /bin as-is, but remove trailing .exe if any 40705 new_path="${new_path/%.exe/}" 40706 # Do not save /bin paths to all_fixpath_prefixes! 40707 else 40708 # Not in mixed or Windows style, start by that. 40709 new_path=`cmd //c echo $new_path` 40710 40711 input_path="$new_path" 40712 # Check if we need to convert this using DOS-style short mode. If the path 40713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40714 # take no chances and rewrite it. 40715 # Note: m4 eats our [], so we need to use [ and ] instead. 40716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40717 if test "x$has_forbidden_chars" != x; then 40718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40719 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40720 fi 40721 40722 # Output is in $new_path 40723 40724 windows_path="$new_path" 40725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40726 unix_path=`$CYGPATH -u "$windows_path"` 40727 new_path="$unix_path" 40728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40729 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40730 new_path="$unix_path" 40731 fi 40732 40733 # remove trailing .exe if any 40734 new_path="${new_path/%.exe/}" 40735 40736 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40737 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40738 fi 40739 40740 else 40741 # We're on a unix platform. Hooray! :) 40742 # First separate the path from the arguments. This will split at the first 40743 # space. 40744 complete="$MT" 40745 path="${complete%% *}" 40746 tmp="$complete EOL" 40747 arguments="${tmp#* }" 40748 40749 # Cannot rely on the command "which" here since it doesn't always work. 40750 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40751 if test -z "$is_absolute_path"; then 40752 # Path to executable is not absolute. Find it. 40753 IFS_save="$IFS" 40754 IFS=: 40755 for p in $PATH; do 40756 if test -f "$p/$path" && test -x "$p/$path"; then 40757 new_path="$p/$path" 40758 break 40759 fi 40760 done 40761 IFS="$IFS_save" 40762 else 40763 # This is an absolute path, we can use it without further modifications. 40764 new_path="$path" 40765 fi 40766 40767 if test "x$new_path" = x; then 40768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40769 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40770 has_space=`$ECHO "$complete" | $GREP " "` 40771 if test "x$has_space" != x; then 40772 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40773 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40774 fi 40775 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40776 fi 40777 fi 40778 40779 # Now join together the path and the arguments once again 40780 if test "x$arguments" != xEOL; then 40781 new_complete="$new_path ${arguments% *}" 40782 else 40783 new_complete="$new_path" 40784 fi 40785 40786 if test "x$complete" != "x$new_complete"; then 40787 MT="$new_complete" 40788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 40789 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 40790 fi 40791 fi 40792 40793 # Setup the resource compiler (RC) 40794 # Extract the first word of "rc", so it can be a program name with args. 40795 set dummy rc; ac_word=$2 40796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40797 $as_echo_n "checking for $ac_word... " >&6; } 40798 if ${ac_cv_prog_RC+:} false; then : 40799 $as_echo_n "(cached) " >&6 40800 else 40801 if test -n "$RC"; then 40802 ac_cv_prog_RC="$RC" # Let the user override the test. 40803 else 40804 ac_prog_rejected=no 40805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40806 for as_dir in $PATH 40807 do 40808 IFS=$as_save_IFS 40809 test -z "$as_dir" && as_dir=. 40810 for ac_exec_ext in '' $ac_executable_extensions; do 40811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40812 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 40813 ac_prog_rejected=yes 40814 continue 40815 fi 40816 ac_cv_prog_RC="rc" 40817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40818 break 2 40819 fi 40820 done 40821 done 40822 IFS=$as_save_IFS 40823 40824 if test $ac_prog_rejected = yes; then 40825 # We found a bogon in the path, so make sure we never use it. 40826 set dummy $ac_cv_prog_RC 40827 shift 40828 if test $# != 0; then 40829 # We chose a different compiler from the bogus one. 40830 # However, it has the same basename, so the bogon will be chosen 40831 # first if we set RC to just the basename; use the full file name. 40832 shift 40833 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 40834 fi 40835 fi 40836 fi 40837 fi 40838 RC=$ac_cv_prog_RC 40839 if test -n "$RC"; then 40840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 40841 $as_echo "$RC" >&6; } 40842 else 40843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40844 $as_echo "no" >&6; } 40845 fi 40846 40847 40848 40849 # Only process if variable expands to non-empty 40850 40851 if test "x$RC" != x; then 40852 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40853 40854 # First separate the path from the arguments. This will split at the first 40855 # space. 40856 complete="$RC" 40857 path="${complete%% *}" 40858 tmp="$complete EOL" 40859 arguments="${tmp#* }" 40860 40861 # Input might be given as Windows format, start by converting to 40862 # unix format. 40863 new_path=`$CYGPATH -u "$path"` 40864 40865 # Now try to locate executable using which 40866 new_path=`$WHICH "$new_path" 2> /dev/null` 40867 # bat and cmd files are not always considered executable in cygwin causing which 40868 # to not find them 40869 if test "x$new_path" = x \ 40870 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40871 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40872 new_path=`$CYGPATH -u "$path"` 40873 fi 40874 if test "x$new_path" = x; then 40875 # Oops. Which didn't find the executable. 40876 # The splitting of arguments from the executable at a space might have been incorrect, 40877 # since paths with space are more likely in Windows. Give it another try with the whole 40878 # argument. 40879 path="$complete" 40880 arguments="EOL" 40881 new_path=`$CYGPATH -u "$path"` 40882 new_path=`$WHICH "$new_path" 2> /dev/null` 40883 # bat and cmd files are not always considered executable in cygwin causing which 40884 # to not find them 40885 if test "x$new_path" = x \ 40886 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40887 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40888 new_path=`$CYGPATH -u "$path"` 40889 fi 40890 if test "x$new_path" = x; then 40891 # It's still not found. Now this is an unrecoverable error. 40892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40893 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40894 has_space=`$ECHO "$complete" | $GREP " "` 40895 if test "x$has_space" != x; then 40896 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40897 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40898 fi 40899 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40900 fi 40901 fi 40902 40903 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40904 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40905 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40906 # "foo.exe" is OK but "foo" is an error. 40907 # 40908 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40909 # It is also a way to make sure we got the proper file name for the real test later on. 40910 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40911 if test "x$test_shortpath" = x; then 40912 # Short path failed, file does not exist as specified. 40913 # Try adding .exe or .cmd 40914 if test -f "${new_path}.exe"; then 40915 input_to_shortpath="${new_path}.exe" 40916 elif test -f "${new_path}.cmd"; then 40917 input_to_shortpath="${new_path}.cmd" 40918 else 40919 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 40920 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 40921 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40922 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40923 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40924 fi 40925 else 40926 input_to_shortpath="$new_path" 40927 fi 40928 40929 # Call helper function which possibly converts this using DOS-style short mode. 40930 # If so, the updated path is stored in $new_path. 40931 new_path="$input_to_shortpath" 40932 40933 input_path="$input_to_shortpath" 40934 # Check if we need to convert this using DOS-style short mode. If the path 40935 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40936 # take no chances and rewrite it. 40937 # Note: m4 eats our [], so we need to use [ and ] instead. 40938 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40939 if test "x$has_forbidden_chars" != x; then 40940 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40941 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40942 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40943 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40944 # Going to short mode and back again did indeed matter. Since short mode is 40945 # case insensitive, let's make it lowercase to improve readability. 40946 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40947 # Now convert it back to Unix-style (cygpath) 40948 input_path=`$CYGPATH -u "$shortmode_path"` 40949 new_path="$input_path" 40950 fi 40951 fi 40952 40953 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40954 if test "x$test_cygdrive_prefix" = x; then 40955 # As a simple fix, exclude /usr/bin since it's not a real path. 40956 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40957 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40958 # a path prefixed by /cygdrive for fixpath to work. 40959 new_path="$CYGWIN_ROOT_PATH$input_path" 40960 fi 40961 fi 40962 40963 # remove trailing .exe if any 40964 new_path="${new_path/%.exe/}" 40965 40966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40967 40968 # First separate the path from the arguments. This will split at the first 40969 # space. 40970 complete="$RC" 40971 path="${complete%% *}" 40972 tmp="$complete EOL" 40973 arguments="${tmp#* }" 40974 40975 # Input might be given as Windows format, start by converting to 40976 # unix format. 40977 new_path="$path" 40978 40979 windows_path="$new_path" 40980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40981 unix_path=`$CYGPATH -u "$windows_path"` 40982 new_path="$unix_path" 40983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40985 new_path="$unix_path" 40986 fi 40987 40988 40989 # Now try to locate executable using which 40990 new_path=`$WHICH "$new_path" 2> /dev/null` 40991 40992 if test "x$new_path" = x; then 40993 # Oops. Which didn't find the executable. 40994 # The splitting of arguments from the executable at a space might have been incorrect, 40995 # since paths with space are more likely in Windows. Give it another try with the whole 40996 # argument. 40997 path="$complete" 40998 arguments="EOL" 40999 new_path="$path" 41000 41001 windows_path="$new_path" 41002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41003 unix_path=`$CYGPATH -u "$windows_path"` 41004 new_path="$unix_path" 41005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41006 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41007 new_path="$unix_path" 41008 fi 41009 41010 41011 new_path=`$WHICH "$new_path" 2> /dev/null` 41012 # bat and cmd files are not always considered executable in MSYS causing which 41013 # to not find them 41014 if test "x$new_path" = x \ 41015 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41016 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41017 new_path="$path" 41018 41019 windows_path="$new_path" 41020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41021 unix_path=`$CYGPATH -u "$windows_path"` 41022 new_path="$unix_path" 41023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41025 new_path="$unix_path" 41026 fi 41027 41028 fi 41029 41030 if test "x$new_path" = x; then 41031 # It's still not found. Now this is an unrecoverable error. 41032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 41033 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 41034 has_space=`$ECHO "$complete" | $GREP " "` 41035 if test "x$has_space" != x; then 41036 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41037 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41038 fi 41039 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 41040 fi 41041 fi 41042 41043 # Now new_path has a complete unix path to the binary 41044 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41045 # Keep paths in /bin as-is, but remove trailing .exe if any 41046 new_path="${new_path/%.exe/}" 41047 # Do not save /bin paths to all_fixpath_prefixes! 41048 else 41049 # Not in mixed or Windows style, start by that. 41050 new_path=`cmd //c echo $new_path` 41051 41052 input_path="$new_path" 41053 # Check if we need to convert this using DOS-style short mode. If the path 41054 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41055 # take no chances and rewrite it. 41056 # Note: m4 eats our [], so we need to use [ and ] instead. 41057 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41058 if test "x$has_forbidden_chars" != x; then 41059 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41060 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41061 fi 41062 41063 # Output is in $new_path 41064 41065 windows_path="$new_path" 41066 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41067 unix_path=`$CYGPATH -u "$windows_path"` 41068 new_path="$unix_path" 41069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41070 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41071 new_path="$unix_path" 41072 fi 41073 41074 # remove trailing .exe if any 41075 new_path="${new_path/%.exe/}" 41076 41077 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41078 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41079 fi 41080 41081 else 41082 # We're on a unix platform. Hooray! :) 41083 # First separate the path from the arguments. This will split at the first 41084 # space. 41085 complete="$RC" 41086 path="${complete%% *}" 41087 tmp="$complete EOL" 41088 arguments="${tmp#* }" 41089 41090 # Cannot rely on the command "which" here since it doesn't always work. 41091 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41092 if test -z "$is_absolute_path"; then 41093 # Path to executable is not absolute. Find it. 41094 IFS_save="$IFS" 41095 IFS=: 41096 for p in $PATH; do 41097 if test -f "$p/$path" && test -x "$p/$path"; then 41098 new_path="$p/$path" 41099 break 41100 fi 41101 done 41102 IFS="$IFS_save" 41103 else 41104 # This is an absolute path, we can use it without further modifications. 41105 new_path="$path" 41106 fi 41107 41108 if test "x$new_path" = x; then 41109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 41110 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 41111 has_space=`$ECHO "$complete" | $GREP " "` 41112 if test "x$has_space" != x; then 41113 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41114 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41115 fi 41116 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 41117 fi 41118 fi 41119 41120 # Now join together the path and the arguments once again 41121 if test "x$arguments" != xEOL; then 41122 new_complete="$new_path ${arguments% *}" 41123 else 41124 new_complete="$new_path" 41125 fi 41126 41127 if test "x$complete" != "x$new_complete"; then 41128 RC="$new_complete" 41129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 41130 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 41131 fi 41132 fi 41133 41134 # Extract the first word of "dumpbin", so it can be a program name with args. 41135 set dummy dumpbin; ac_word=$2 41136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41137 $as_echo_n "checking for $ac_word... " >&6; } 41138 if ${ac_cv_prog_DUMPBIN+:} false; then : 41139 $as_echo_n "(cached) " >&6 41140 else 41141 if test -n "$DUMPBIN"; then 41142 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 41143 else 41144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41145 for as_dir in $PATH 41146 do 41147 IFS=$as_save_IFS 41148 test -z "$as_dir" && as_dir=. 41149 for ac_exec_ext in '' $ac_executable_extensions; do 41150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41151 ac_cv_prog_DUMPBIN="dumpbin" 41152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41153 break 2 41154 fi 41155 done 41156 done 41157 IFS=$as_save_IFS 41158 41159 fi 41160 fi 41161 DUMPBIN=$ac_cv_prog_DUMPBIN 41162 if test -n "$DUMPBIN"; then 41163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 41164 $as_echo "$DUMPBIN" >&6; } 41165 else 41166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41167 $as_echo "no" >&6; } 41168 fi 41169 41170 41171 41172 # Only process if variable expands to non-empty 41173 41174 if test "x$DUMPBIN" != x; then 41175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41176 41177 # First separate the path from the arguments. This will split at the first 41178 # space. 41179 complete="$DUMPBIN" 41180 path="${complete%% *}" 41181 tmp="$complete EOL" 41182 arguments="${tmp#* }" 41183 41184 # Input might be given as Windows format, start by converting to 41185 # unix format. 41186 new_path=`$CYGPATH -u "$path"` 41187 41188 # Now try to locate executable using which 41189 new_path=`$WHICH "$new_path" 2> /dev/null` 41190 # bat and cmd files are not always considered executable in cygwin causing which 41191 # to not find them 41192 if test "x$new_path" = x \ 41193 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41194 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41195 new_path=`$CYGPATH -u "$path"` 41196 fi 41197 if test "x$new_path" = x; then 41198 # Oops. Which didn't find the executable. 41199 # The splitting of arguments from the executable at a space might have been incorrect, 41200 # since paths with space are more likely in Windows. Give it another try with the whole 41201 # argument. 41202 path="$complete" 41203 arguments="EOL" 41204 new_path=`$CYGPATH -u "$path"` 41205 new_path=`$WHICH "$new_path" 2> /dev/null` 41206 # bat and cmd files are not always considered executable in cygwin causing which 41207 # to not find them 41208 if test "x$new_path" = x \ 41209 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41210 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41211 new_path=`$CYGPATH -u "$path"` 41212 fi 41213 if test "x$new_path" = x; then 41214 # It's still not found. Now this is an unrecoverable error. 41215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41216 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41217 has_space=`$ECHO "$complete" | $GREP " "` 41218 if test "x$has_space" != x; then 41219 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41220 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41221 fi 41222 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41223 fi 41224 fi 41225 41226 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41227 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41228 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41229 # "foo.exe" is OK but "foo" is an error. 41230 # 41231 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41232 # It is also a way to make sure we got the proper file name for the real test later on. 41233 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41234 if test "x$test_shortpath" = x; then 41235 # Short path failed, file does not exist as specified. 41236 # Try adding .exe or .cmd 41237 if test -f "${new_path}.exe"; then 41238 input_to_shortpath="${new_path}.exe" 41239 elif test -f "${new_path}.cmd"; then 41240 input_to_shortpath="${new_path}.cmd" 41241 else 41242 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 41243 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 41244 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41245 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41246 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41247 fi 41248 else 41249 input_to_shortpath="$new_path" 41250 fi 41251 41252 # Call helper function which possibly converts this using DOS-style short mode. 41253 # If so, the updated path is stored in $new_path. 41254 new_path="$input_to_shortpath" 41255 41256 input_path="$input_to_shortpath" 41257 # Check if we need to convert this using DOS-style short mode. If the path 41258 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41259 # take no chances and rewrite it. 41260 # Note: m4 eats our [], so we need to use [ and ] instead. 41261 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41262 if test "x$has_forbidden_chars" != x; then 41263 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41264 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41265 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41266 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41267 # Going to short mode and back again did indeed matter. Since short mode is 41268 # case insensitive, let's make it lowercase to improve readability. 41269 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41270 # Now convert it back to Unix-style (cygpath) 41271 input_path=`$CYGPATH -u "$shortmode_path"` 41272 new_path="$input_path" 41273 fi 41274 fi 41275 41276 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41277 if test "x$test_cygdrive_prefix" = x; then 41278 # As a simple fix, exclude /usr/bin since it's not a real path. 41279 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41280 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41281 # a path prefixed by /cygdrive for fixpath to work. 41282 new_path="$CYGWIN_ROOT_PATH$input_path" 41283 fi 41284 fi 41285 41286 # remove trailing .exe if any 41287 new_path="${new_path/%.exe/}" 41288 41289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41290 41291 # First separate the path from the arguments. This will split at the first 41292 # space. 41293 complete="$DUMPBIN" 41294 path="${complete%% *}" 41295 tmp="$complete EOL" 41296 arguments="${tmp#* }" 41297 41298 # Input might be given as Windows format, start by converting to 41299 # unix format. 41300 new_path="$path" 41301 41302 windows_path="$new_path" 41303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41304 unix_path=`$CYGPATH -u "$windows_path"` 41305 new_path="$unix_path" 41306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41307 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41308 new_path="$unix_path" 41309 fi 41310 41311 41312 # Now try to locate executable using which 41313 new_path=`$WHICH "$new_path" 2> /dev/null` 41314 41315 if test "x$new_path" = x; then 41316 # Oops. Which didn't find the executable. 41317 # The splitting of arguments from the executable at a space might have been incorrect, 41318 # since paths with space are more likely in Windows. Give it another try with the whole 41319 # argument. 41320 path="$complete" 41321 arguments="EOL" 41322 new_path="$path" 41323 41324 windows_path="$new_path" 41325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41326 unix_path=`$CYGPATH -u "$windows_path"` 41327 new_path="$unix_path" 41328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41330 new_path="$unix_path" 41331 fi 41332 41333 41334 new_path=`$WHICH "$new_path" 2> /dev/null` 41335 # bat and cmd files are not always considered executable in MSYS causing which 41336 # to not find them 41337 if test "x$new_path" = x \ 41338 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41339 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41340 new_path="$path" 41341 41342 windows_path="$new_path" 41343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41344 unix_path=`$CYGPATH -u "$windows_path"` 41345 new_path="$unix_path" 41346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41348 new_path="$unix_path" 41349 fi 41350 41351 fi 41352 41353 if test "x$new_path" = x; then 41354 # It's still not found. Now this is an unrecoverable error. 41355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41356 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41357 has_space=`$ECHO "$complete" | $GREP " "` 41358 if test "x$has_space" != x; then 41359 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41360 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41361 fi 41362 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41363 fi 41364 fi 41365 41366 # Now new_path has a complete unix path to the binary 41367 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41368 # Keep paths in /bin as-is, but remove trailing .exe if any 41369 new_path="${new_path/%.exe/}" 41370 # Do not save /bin paths to all_fixpath_prefixes! 41371 else 41372 # Not in mixed or Windows style, start by that. 41373 new_path=`cmd //c echo $new_path` 41374 41375 input_path="$new_path" 41376 # Check if we need to convert this using DOS-style short mode. If the path 41377 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41378 # take no chances and rewrite it. 41379 # Note: m4 eats our [], so we need to use [ and ] instead. 41380 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41381 if test "x$has_forbidden_chars" != x; then 41382 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41383 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41384 fi 41385 41386 # Output is in $new_path 41387 41388 windows_path="$new_path" 41389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41390 unix_path=`$CYGPATH -u "$windows_path"` 41391 new_path="$unix_path" 41392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41393 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41394 new_path="$unix_path" 41395 fi 41396 41397 # remove trailing .exe if any 41398 new_path="${new_path/%.exe/}" 41399 41400 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41401 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41402 fi 41403 41404 else 41405 # We're on a unix platform. Hooray! :) 41406 # First separate the path from the arguments. This will split at the first 41407 # space. 41408 complete="$DUMPBIN" 41409 path="${complete%% *}" 41410 tmp="$complete EOL" 41411 arguments="${tmp#* }" 41412 41413 # Cannot rely on the command "which" here since it doesn't always work. 41414 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41415 if test -z "$is_absolute_path"; then 41416 # Path to executable is not absolute. Find it. 41417 IFS_save="$IFS" 41418 IFS=: 41419 for p in $PATH; do 41420 if test -f "$p/$path" && test -x "$p/$path"; then 41421 new_path="$p/$path" 41422 break 41423 fi 41424 done 41425 IFS="$IFS_save" 41426 else 41427 # This is an absolute path, we can use it without further modifications. 41428 new_path="$path" 41429 fi 41430 41431 if test "x$new_path" = x; then 41432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41433 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41434 has_space=`$ECHO "$complete" | $GREP " "` 41435 if test "x$has_space" != x; then 41436 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41437 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41438 fi 41439 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41440 fi 41441 fi 41442 41443 # Now join together the path and the arguments once again 41444 if test "x$arguments" != xEOL; then 41445 new_complete="$new_path ${arguments% *}" 41446 else 41447 new_complete="$new_path" 41448 fi 41449 41450 if test "x$complete" != "x$new_complete"; then 41451 DUMPBIN="$new_complete" 41452 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 41453 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 41454 fi 41455 fi 41456 41457 # We need to check for 'msbuild.exe' because at the place where we expect to 41458 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 41459 # won't find the 'msbuild.exe' executable in that case (and the 41460 # 'ac_executable_extensions' is unusable due to performance reasons). 41461 # Notice that we intentionally don't fix up the path to MSBUILD because we 41462 # will call it in a DOS shell during freetype detection on Windows (see 41463 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 41464 # Extract the first word of "msbuild.exe", so it can be a program name with args. 41465 set dummy msbuild.exe; ac_word=$2 41466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41467 $as_echo_n "checking for $ac_word... " >&6; } 41468 if ${ac_cv_prog_MSBUILD+:} false; then : 41469 $as_echo_n "(cached) " >&6 41470 else 41471 if test -n "$MSBUILD"; then 41472 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 41473 else 41474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41475 for as_dir in $PATH 41476 do 41477 IFS=$as_save_IFS 41478 test -z "$as_dir" && as_dir=. 41479 for ac_exec_ext in '' $ac_executable_extensions; do 41480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41481 ac_cv_prog_MSBUILD="msbuild.exe" 41482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41483 break 2 41484 fi 41485 done 41486 done 41487 IFS=$as_save_IFS 41488 41489 fi 41490 fi 41491 MSBUILD=$ac_cv_prog_MSBUILD 41492 if test -n "$MSBUILD"; then 41493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 41494 $as_echo "$MSBUILD" >&6; } 41495 else 41496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41497 $as_echo "no" >&6; } 41498 fi 41499 41500 41501 fi 41502 41503 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41504 41505 41506 # Publish this variable in the help. 41507 41508 41509 if [ -z "${STRIP+x}" ]; then 41510 # The variable is not set by user, try to locate tool using the code snippet 41511 for ac_prog in strip 41512 do 41513 # Extract the first word of "$ac_prog", so it can be a program name with args. 41514 set dummy $ac_prog; ac_word=$2 41515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41516 $as_echo_n "checking for $ac_word... " >&6; } 41517 if ${ac_cv_path_STRIP+:} false; then : 41518 $as_echo_n "(cached) " >&6 41519 else 41520 case $STRIP in 41521 [\\/]* | ?:[\\/]*) 41522 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41523 ;; 41524 *) 41525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41526 for as_dir in $PATH 41527 do 41528 IFS=$as_save_IFS 41529 test -z "$as_dir" && as_dir=. 41530 for ac_exec_ext in '' $ac_executable_extensions; do 41531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41532 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41534 break 2 41535 fi 41536 done 41537 done 41538 IFS=$as_save_IFS 41539 41540 ;; 41541 esac 41542 fi 41543 STRIP=$ac_cv_path_STRIP 41544 if test -n "$STRIP"; then 41545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41546 $as_echo "$STRIP" >&6; } 41547 else 41548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41549 $as_echo "no" >&6; } 41550 fi 41551 41552 41553 test -n "$STRIP" && break 41554 done 41555 41556 else 41557 # The variable is set, but is it from the command line or the environment? 41558 41559 # Try to remove the string !STRIP! from our list. 41560 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 41561 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41562 # If it failed, the variable was not from the command line. Ignore it, 41563 # but warn the user (except for BASH, which is always set by the calling BASH). 41564 if test "xSTRIP" != xBASH; then 41565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 41566 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 41567 fi 41568 # Try to locate tool using the code snippet 41569 for ac_prog in strip 41570 do 41571 # Extract the first word of "$ac_prog", so it can be a program name with args. 41572 set dummy $ac_prog; ac_word=$2 41573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41574 $as_echo_n "checking for $ac_word... " >&6; } 41575 if ${ac_cv_path_STRIP+:} false; then : 41576 $as_echo_n "(cached) " >&6 41577 else 41578 case $STRIP in 41579 [\\/]* | ?:[\\/]*) 41580 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41581 ;; 41582 *) 41583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41584 for as_dir in $PATH 41585 do 41586 IFS=$as_save_IFS 41587 test -z "$as_dir" && as_dir=. 41588 for ac_exec_ext in '' $ac_executable_extensions; do 41589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41590 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41592 break 2 41593 fi 41594 done 41595 done 41596 IFS=$as_save_IFS 41597 41598 ;; 41599 esac 41600 fi 41601 STRIP=$ac_cv_path_STRIP 41602 if test -n "$STRIP"; then 41603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41604 $as_echo "$STRIP" >&6; } 41605 else 41606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41607 $as_echo "no" >&6; } 41608 fi 41609 41610 41611 test -n "$STRIP" && break 41612 done 41613 41614 else 41615 # If it succeeded, then it was overridden by the user. We will use it 41616 # for the tool. 41617 41618 # First remove it from the list of overridden variables, so we can test 41619 # for unknown variables in the end. 41620 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41621 41622 # Check if we try to supply an empty value 41623 if test "x$STRIP" = x; then 41624 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 41625 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 41626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41627 $as_echo_n "checking for STRIP... " >&6; } 41628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41629 $as_echo "disabled" >&6; } 41630 else 41631 # Check if the provided tool contains a complete path. 41632 tool_specified="$STRIP" 41633 tool_basename="${tool_specified##*/}" 41634 if test "x$tool_basename" = "x$tool_specified"; then 41635 # A command without a complete path is provided, search $PATH. 41636 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 41637 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 41638 # Extract the first word of "$tool_basename", so it can be a program name with args. 41639 set dummy $tool_basename; ac_word=$2 41640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41641 $as_echo_n "checking for $ac_word... " >&6; } 41642 if ${ac_cv_path_STRIP+:} false; then : 41643 $as_echo_n "(cached) " >&6 41644 else 41645 case $STRIP in 41646 [\\/]* | ?:[\\/]*) 41647 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41648 ;; 41649 *) 41650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41651 for as_dir in $PATH 41652 do 41653 IFS=$as_save_IFS 41654 test -z "$as_dir" && as_dir=. 41655 for ac_exec_ext in '' $ac_executable_extensions; do 41656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41657 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41659 break 2 41660 fi 41661 done 41662 done 41663 IFS=$as_save_IFS 41664 41665 ;; 41666 esac 41667 fi 41668 STRIP=$ac_cv_path_STRIP 41669 if test -n "$STRIP"; then 41670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41671 $as_echo "$STRIP" >&6; } 41672 else 41673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41674 $as_echo "no" >&6; } 41675 fi 41676 41677 41678 if test "x$STRIP" = x; then 41679 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41680 fi 41681 else 41682 # Otherwise we believe it is a complete path. Use it as it is. 41683 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 41684 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 41685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41686 $as_echo_n "checking for STRIP... " >&6; } 41687 if test ! -x "$tool_specified"; then 41688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41689 $as_echo "not found" >&6; } 41690 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 41691 fi 41692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41693 $as_echo "$tool_specified" >&6; } 41694 fi 41695 fi 41696 fi 41697 41698 fi 41699 41700 41701 41702 # Only process if variable expands to non-empty 41703 41704 if test "x$STRIP" != x; then 41705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41706 41707 # First separate the path from the arguments. This will split at the first 41708 # space. 41709 complete="$STRIP" 41710 path="${complete%% *}" 41711 tmp="$complete EOL" 41712 arguments="${tmp#* }" 41713 41714 # Input might be given as Windows format, start by converting to 41715 # unix format. 41716 new_path=`$CYGPATH -u "$path"` 41717 41718 # Now try to locate executable using which 41719 new_path=`$WHICH "$new_path" 2> /dev/null` 41720 # bat and cmd files are not always considered executable in cygwin causing which 41721 # to not find them 41722 if test "x$new_path" = x \ 41723 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41724 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41725 new_path=`$CYGPATH -u "$path"` 41726 fi 41727 if test "x$new_path" = x; then 41728 # Oops. Which didn't find the executable. 41729 # The splitting of arguments from the executable at a space might have been incorrect, 41730 # since paths with space are more likely in Windows. Give it another try with the whole 41731 # argument. 41732 path="$complete" 41733 arguments="EOL" 41734 new_path=`$CYGPATH -u "$path"` 41735 new_path=`$WHICH "$new_path" 2> /dev/null` 41736 # bat and cmd files are not always considered executable in cygwin causing which 41737 # to not find them 41738 if test "x$new_path" = x \ 41739 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41740 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41741 new_path=`$CYGPATH -u "$path"` 41742 fi 41743 if test "x$new_path" = x; then 41744 # It's still not found. Now this is an unrecoverable error. 41745 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41746 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41747 has_space=`$ECHO "$complete" | $GREP " "` 41748 if test "x$has_space" != x; then 41749 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41750 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41751 fi 41752 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41753 fi 41754 fi 41755 41756 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41757 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41758 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41759 # "foo.exe" is OK but "foo" is an error. 41760 # 41761 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41762 # It is also a way to make sure we got the proper file name for the real test later on. 41763 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41764 if test "x$test_shortpath" = x; then 41765 # Short path failed, file does not exist as specified. 41766 # Try adding .exe or .cmd 41767 if test -f "${new_path}.exe"; then 41768 input_to_shortpath="${new_path}.exe" 41769 elif test -f "${new_path}.cmd"; then 41770 input_to_shortpath="${new_path}.cmd" 41771 else 41772 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 41773 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 41774 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41775 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41776 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41777 fi 41778 else 41779 input_to_shortpath="$new_path" 41780 fi 41781 41782 # Call helper function which possibly converts this using DOS-style short mode. 41783 # If so, the updated path is stored in $new_path. 41784 new_path="$input_to_shortpath" 41785 41786 input_path="$input_to_shortpath" 41787 # Check if we need to convert this using DOS-style short mode. If the path 41788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41789 # take no chances and rewrite it. 41790 # Note: m4 eats our [], so we need to use [ and ] instead. 41791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41792 if test "x$has_forbidden_chars" != x; then 41793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41794 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41795 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41796 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41797 # Going to short mode and back again did indeed matter. Since short mode is 41798 # case insensitive, let's make it lowercase to improve readability. 41799 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41800 # Now convert it back to Unix-style (cygpath) 41801 input_path=`$CYGPATH -u "$shortmode_path"` 41802 new_path="$input_path" 41803 fi 41804 fi 41805 41806 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41807 if test "x$test_cygdrive_prefix" = x; then 41808 # As a simple fix, exclude /usr/bin since it's not a real path. 41809 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41810 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41811 # a path prefixed by /cygdrive for fixpath to work. 41812 new_path="$CYGWIN_ROOT_PATH$input_path" 41813 fi 41814 fi 41815 41816 # remove trailing .exe if any 41817 new_path="${new_path/%.exe/}" 41818 41819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41820 41821 # First separate the path from the arguments. This will split at the first 41822 # space. 41823 complete="$STRIP" 41824 path="${complete%% *}" 41825 tmp="$complete EOL" 41826 arguments="${tmp#* }" 41827 41828 # Input might be given as Windows format, start by converting to 41829 # unix format. 41830 new_path="$path" 41831 41832 windows_path="$new_path" 41833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41834 unix_path=`$CYGPATH -u "$windows_path"` 41835 new_path="$unix_path" 41836 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41837 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41838 new_path="$unix_path" 41839 fi 41840 41841 41842 # Now try to locate executable using which 41843 new_path=`$WHICH "$new_path" 2> /dev/null` 41844 41845 if test "x$new_path" = x; then 41846 # Oops. Which didn't find the executable. 41847 # The splitting of arguments from the executable at a space might have been incorrect, 41848 # since paths with space are more likely in Windows. Give it another try with the whole 41849 # argument. 41850 path="$complete" 41851 arguments="EOL" 41852 new_path="$path" 41853 41854 windows_path="$new_path" 41855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41856 unix_path=`$CYGPATH -u "$windows_path"` 41857 new_path="$unix_path" 41858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41859 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41860 new_path="$unix_path" 41861 fi 41862 41863 41864 new_path=`$WHICH "$new_path" 2> /dev/null` 41865 # bat and cmd files are not always considered executable in MSYS causing which 41866 # to not find them 41867 if test "x$new_path" = x \ 41868 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41869 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41870 new_path="$path" 41871 41872 windows_path="$new_path" 41873 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41874 unix_path=`$CYGPATH -u "$windows_path"` 41875 new_path="$unix_path" 41876 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41877 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41878 new_path="$unix_path" 41879 fi 41880 41881 fi 41882 41883 if test "x$new_path" = x; then 41884 # It's still not found. Now this is an unrecoverable error. 41885 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41886 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41887 has_space=`$ECHO "$complete" | $GREP " "` 41888 if test "x$has_space" != x; then 41889 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41890 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41891 fi 41892 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41893 fi 41894 fi 41895 41896 # Now new_path has a complete unix path to the binary 41897 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41898 # Keep paths in /bin as-is, but remove trailing .exe if any 41899 new_path="${new_path/%.exe/}" 41900 # Do not save /bin paths to all_fixpath_prefixes! 41901 else 41902 # Not in mixed or Windows style, start by that. 41903 new_path=`cmd //c echo $new_path` 41904 41905 input_path="$new_path" 41906 # Check if we need to convert this using DOS-style short mode. If the path 41907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41908 # take no chances and rewrite it. 41909 # Note: m4 eats our [], so we need to use [ and ] instead. 41910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41911 if test "x$has_forbidden_chars" != x; then 41912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41913 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41914 fi 41915 41916 # Output is in $new_path 41917 41918 windows_path="$new_path" 41919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41920 unix_path=`$CYGPATH -u "$windows_path"` 41921 new_path="$unix_path" 41922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41924 new_path="$unix_path" 41925 fi 41926 41927 # remove trailing .exe if any 41928 new_path="${new_path/%.exe/}" 41929 41930 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41931 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41932 fi 41933 41934 else 41935 # We're on a unix platform. Hooray! :) 41936 # First separate the path from the arguments. This will split at the first 41937 # space. 41938 complete="$STRIP" 41939 path="${complete%% *}" 41940 tmp="$complete EOL" 41941 arguments="${tmp#* }" 41942 41943 # Cannot rely on the command "which" here since it doesn't always work. 41944 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41945 if test -z "$is_absolute_path"; then 41946 # Path to executable is not absolute. Find it. 41947 IFS_save="$IFS" 41948 IFS=: 41949 for p in $PATH; do 41950 if test -f "$p/$path" && test -x "$p/$path"; then 41951 new_path="$p/$path" 41952 break 41953 fi 41954 done 41955 IFS="$IFS_save" 41956 else 41957 # This is an absolute path, we can use it without further modifications. 41958 new_path="$path" 41959 fi 41960 41961 if test "x$new_path" = x; then 41962 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41963 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41964 has_space=`$ECHO "$complete" | $GREP " "` 41965 if test "x$has_space" != x; then 41966 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41967 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41968 fi 41969 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41970 fi 41971 fi 41972 41973 # Now join together the path and the arguments once again 41974 if test "x$arguments" != xEOL; then 41975 new_complete="$new_path ${arguments% *}" 41976 else 41977 new_complete="$new_path" 41978 fi 41979 41980 if test "x$complete" != "x$new_complete"; then 41981 STRIP="$new_complete" 41982 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41983 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41984 fi 41985 fi 41986 41987 41988 41989 # Publish this variable in the help. 41990 41991 41992 if [ -z "${NM+x}" ]; then 41993 # The variable is not set by user, try to locate tool using the code snippet 41994 for ac_prog in nm 41995 do 41996 # Extract the first word of "$ac_prog", so it can be a program name with args. 41997 set dummy $ac_prog; ac_word=$2 41998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41999 $as_echo_n "checking for $ac_word... " >&6; } 42000 if ${ac_cv_path_NM+:} false; then : 42001 $as_echo_n "(cached) " >&6 42002 else 42003 case $NM in 42004 [\\/]* | ?:[\\/]*) 42005 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42006 ;; 42007 *) 42008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42009 for as_dir in $PATH 42010 do 42011 IFS=$as_save_IFS 42012 test -z "$as_dir" && as_dir=. 42013 for ac_exec_ext in '' $ac_executable_extensions; do 42014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42015 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42017 break 2 42018 fi 42019 done 42020 done 42021 IFS=$as_save_IFS 42022 42023 ;; 42024 esac 42025 fi 42026 NM=$ac_cv_path_NM 42027 if test -n "$NM"; then 42028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42029 $as_echo "$NM" >&6; } 42030 else 42031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42032 $as_echo "no" >&6; } 42033 fi 42034 42035 42036 test -n "$NM" && break 42037 done 42038 42039 else 42040 # The variable is set, but is it from the command line or the environment? 42041 42042 # Try to remove the string !NM! from our list. 42043 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42044 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42045 # If it failed, the variable was not from the command line. Ignore it, 42046 # but warn the user (except for BASH, which is always set by the calling BASH). 42047 if test "xNM" != xBASH; then 42048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42049 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42050 fi 42051 # Try to locate tool using the code snippet 42052 for ac_prog in nm 42053 do 42054 # Extract the first word of "$ac_prog", so it can be a program name with args. 42055 set dummy $ac_prog; ac_word=$2 42056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42057 $as_echo_n "checking for $ac_word... " >&6; } 42058 if ${ac_cv_path_NM+:} false; then : 42059 $as_echo_n "(cached) " >&6 42060 else 42061 case $NM in 42062 [\\/]* | ?:[\\/]*) 42063 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42064 ;; 42065 *) 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_path_NM="$as_dir/$ac_word$ac_exec_ext" 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 ;; 42082 esac 42083 fi 42084 NM=$ac_cv_path_NM 42085 if test -n "$NM"; then 42086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42087 $as_echo "$NM" >&6; } 42088 else 42089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42090 $as_echo "no" >&6; } 42091 fi 42092 42093 42094 test -n "$NM" && break 42095 done 42096 42097 else 42098 # If it succeeded, then it was overridden by the user. We will use it 42099 # for the tool. 42100 42101 # First remove it from the list of overridden variables, so we can test 42102 # for unknown variables in the end. 42103 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42104 42105 # Check if we try to supply an empty value 42106 if test "x$NM" = x; then 42107 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42108 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42110 $as_echo_n "checking for NM... " >&6; } 42111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42112 $as_echo "disabled" >&6; } 42113 else 42114 # Check if the provided tool contains a complete path. 42115 tool_specified="$NM" 42116 tool_basename="${tool_specified##*/}" 42117 if test "x$tool_basename" = "x$tool_specified"; then 42118 # A command without a complete path is provided, search $PATH. 42119 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42120 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42121 # Extract the first word of "$tool_basename", so it can be a program name with args. 42122 set dummy $tool_basename; ac_word=$2 42123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42124 $as_echo_n "checking for $ac_word... " >&6; } 42125 if ${ac_cv_path_NM+:} false; then : 42126 $as_echo_n "(cached) " >&6 42127 else 42128 case $NM in 42129 [\\/]* | ?:[\\/]*) 42130 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42131 ;; 42132 *) 42133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42134 for as_dir in $PATH 42135 do 42136 IFS=$as_save_IFS 42137 test -z "$as_dir" && as_dir=. 42138 for ac_exec_ext in '' $ac_executable_extensions; do 42139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42140 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42142 break 2 42143 fi 42144 done 42145 done 42146 IFS=$as_save_IFS 42147 42148 ;; 42149 esac 42150 fi 42151 NM=$ac_cv_path_NM 42152 if test -n "$NM"; then 42153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42154 $as_echo "$NM" >&6; } 42155 else 42156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42157 $as_echo "no" >&6; } 42158 fi 42159 42160 42161 if test "x$NM" = x; then 42162 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42163 fi 42164 else 42165 # Otherwise we believe it is a complete path. Use it as it is. 42166 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42167 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42169 $as_echo_n "checking for NM... " >&6; } 42170 if test ! -x "$tool_specified"; then 42171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42172 $as_echo "not found" >&6; } 42173 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42174 fi 42175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42176 $as_echo "$tool_specified" >&6; } 42177 fi 42178 fi 42179 fi 42180 42181 fi 42182 42183 42184 42185 # Only process if variable expands to non-empty 42186 42187 if test "x$NM" != x; then 42188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42189 42190 # First separate the path from the arguments. This will split at the first 42191 # space. 42192 complete="$NM" 42193 path="${complete%% *}" 42194 tmp="$complete EOL" 42195 arguments="${tmp#* }" 42196 42197 # Input might be given as Windows format, start by converting to 42198 # unix format. 42199 new_path=`$CYGPATH -u "$path"` 42200 42201 # Now try to locate executable using which 42202 new_path=`$WHICH "$new_path" 2> /dev/null` 42203 # bat and cmd files are not always considered executable in cygwin causing which 42204 # to not find them 42205 if test "x$new_path" = x \ 42206 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42207 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42208 new_path=`$CYGPATH -u "$path"` 42209 fi 42210 if test "x$new_path" = x; then 42211 # Oops. Which didn't find the executable. 42212 # The splitting of arguments from the executable at a space might have been incorrect, 42213 # since paths with space are more likely in Windows. Give it another try with the whole 42214 # argument. 42215 path="$complete" 42216 arguments="EOL" 42217 new_path=`$CYGPATH -u "$path"` 42218 new_path=`$WHICH "$new_path" 2> /dev/null` 42219 # bat and cmd files are not always considered executable in cygwin causing which 42220 # to not find them 42221 if test "x$new_path" = x \ 42222 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42223 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42224 new_path=`$CYGPATH -u "$path"` 42225 fi 42226 if test "x$new_path" = x; then 42227 # It's still not found. Now this is an unrecoverable error. 42228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42229 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42230 has_space=`$ECHO "$complete" | $GREP " "` 42231 if test "x$has_space" != x; then 42232 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42233 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42234 fi 42235 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42236 fi 42237 fi 42238 42239 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42240 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42241 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42242 # "foo.exe" is OK but "foo" is an error. 42243 # 42244 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42245 # It is also a way to make sure we got the proper file name for the real test later on. 42246 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42247 if test "x$test_shortpath" = x; then 42248 # Short path failed, file does not exist as specified. 42249 # Try adding .exe or .cmd 42250 if test -f "${new_path}.exe"; then 42251 input_to_shortpath="${new_path}.exe" 42252 elif test -f "${new_path}.cmd"; then 42253 input_to_shortpath="${new_path}.cmd" 42254 else 42255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 42256 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 42257 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42258 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42259 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42260 fi 42261 else 42262 input_to_shortpath="$new_path" 42263 fi 42264 42265 # Call helper function which possibly converts this using DOS-style short mode. 42266 # If so, the updated path is stored in $new_path. 42267 new_path="$input_to_shortpath" 42268 42269 input_path="$input_to_shortpath" 42270 # Check if we need to convert this using DOS-style short mode. If the path 42271 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42272 # take no chances and rewrite it. 42273 # Note: m4 eats our [], so we need to use [ and ] instead. 42274 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42275 if test "x$has_forbidden_chars" != x; then 42276 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42277 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42278 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42279 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42280 # Going to short mode and back again did indeed matter. Since short mode is 42281 # case insensitive, let's make it lowercase to improve readability. 42282 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42283 # Now convert it back to Unix-style (cygpath) 42284 input_path=`$CYGPATH -u "$shortmode_path"` 42285 new_path="$input_path" 42286 fi 42287 fi 42288 42289 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42290 if test "x$test_cygdrive_prefix" = x; then 42291 # As a simple fix, exclude /usr/bin since it's not a real path. 42292 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42293 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42294 # a path prefixed by /cygdrive for fixpath to work. 42295 new_path="$CYGWIN_ROOT_PATH$input_path" 42296 fi 42297 fi 42298 42299 # remove trailing .exe if any 42300 new_path="${new_path/%.exe/}" 42301 42302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42303 42304 # First separate the path from the arguments. This will split at the first 42305 # space. 42306 complete="$NM" 42307 path="${complete%% *}" 42308 tmp="$complete EOL" 42309 arguments="${tmp#* }" 42310 42311 # Input might be given as Windows format, start by converting to 42312 # unix format. 42313 new_path="$path" 42314 42315 windows_path="$new_path" 42316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42317 unix_path=`$CYGPATH -u "$windows_path"` 42318 new_path="$unix_path" 42319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42321 new_path="$unix_path" 42322 fi 42323 42324 42325 # Now try to locate executable using which 42326 new_path=`$WHICH "$new_path" 2> /dev/null` 42327 42328 if test "x$new_path" = x; then 42329 # Oops. Which didn't find the executable. 42330 # The splitting of arguments from the executable at a space might have been incorrect, 42331 # since paths with space are more likely in Windows. Give it another try with the whole 42332 # argument. 42333 path="$complete" 42334 arguments="EOL" 42335 new_path="$path" 42336 42337 windows_path="$new_path" 42338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42339 unix_path=`$CYGPATH -u "$windows_path"` 42340 new_path="$unix_path" 42341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42343 new_path="$unix_path" 42344 fi 42345 42346 42347 new_path=`$WHICH "$new_path" 2> /dev/null` 42348 # bat and cmd files are not always considered executable in MSYS causing which 42349 # to not find them 42350 if test "x$new_path" = x \ 42351 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42352 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42353 new_path="$path" 42354 42355 windows_path="$new_path" 42356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42357 unix_path=`$CYGPATH -u "$windows_path"` 42358 new_path="$unix_path" 42359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42360 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42361 new_path="$unix_path" 42362 fi 42363 42364 fi 42365 42366 if test "x$new_path" = x; then 42367 # It's still not found. Now this is an unrecoverable error. 42368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42369 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42370 has_space=`$ECHO "$complete" | $GREP " "` 42371 if test "x$has_space" != x; then 42372 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42373 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42374 fi 42375 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42376 fi 42377 fi 42378 42379 # Now new_path has a complete unix path to the binary 42380 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42381 # Keep paths in /bin as-is, but remove trailing .exe if any 42382 new_path="${new_path/%.exe/}" 42383 # Do not save /bin paths to all_fixpath_prefixes! 42384 else 42385 # Not in mixed or Windows style, start by that. 42386 new_path=`cmd //c echo $new_path` 42387 42388 input_path="$new_path" 42389 # Check if we need to convert this using DOS-style short mode. If the path 42390 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42391 # take no chances and rewrite it. 42392 # Note: m4 eats our [], so we need to use [ and ] instead. 42393 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42394 if test "x$has_forbidden_chars" != x; then 42395 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42396 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42397 fi 42398 42399 # Output is in $new_path 42400 42401 windows_path="$new_path" 42402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42403 unix_path=`$CYGPATH -u "$windows_path"` 42404 new_path="$unix_path" 42405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42407 new_path="$unix_path" 42408 fi 42409 42410 # remove trailing .exe if any 42411 new_path="${new_path/%.exe/}" 42412 42413 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42414 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42415 fi 42416 42417 else 42418 # We're on a unix platform. Hooray! :) 42419 # First separate the path from the arguments. This will split at the first 42420 # space. 42421 complete="$NM" 42422 path="${complete%% *}" 42423 tmp="$complete EOL" 42424 arguments="${tmp#* }" 42425 42426 # Cannot rely on the command "which" here since it doesn't always work. 42427 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42428 if test -z "$is_absolute_path"; then 42429 # Path to executable is not absolute. Find it. 42430 IFS_save="$IFS" 42431 IFS=: 42432 for p in $PATH; do 42433 if test -f "$p/$path" && test -x "$p/$path"; then 42434 new_path="$p/$path" 42435 break 42436 fi 42437 done 42438 IFS="$IFS_save" 42439 else 42440 # This is an absolute path, we can use it without further modifications. 42441 new_path="$path" 42442 fi 42443 42444 if test "x$new_path" = x; then 42445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42446 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42447 has_space=`$ECHO "$complete" | $GREP " "` 42448 if test "x$has_space" != x; then 42449 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42450 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42451 fi 42452 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42453 fi 42454 fi 42455 42456 # Now join together the path and the arguments once again 42457 if test "x$arguments" != xEOL; then 42458 new_complete="$new_path ${arguments% *}" 42459 else 42460 new_complete="$new_path" 42461 fi 42462 42463 if test "x$complete" != "x$new_complete"; then 42464 NM="$new_complete" 42465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42466 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42467 fi 42468 fi 42469 42470 42471 42472 # Publish this variable in the help. 42473 42474 42475 if [ -z "${GNM+x}" ]; then 42476 # The variable is not set by user, try to locate tool using the code snippet 42477 for ac_prog in gnm 42478 do 42479 # Extract the first word of "$ac_prog", so it can be a program name with args. 42480 set dummy $ac_prog; ac_word=$2 42481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42482 $as_echo_n "checking for $ac_word... " >&6; } 42483 if ${ac_cv_path_GNM+:} false; then : 42484 $as_echo_n "(cached) " >&6 42485 else 42486 case $GNM in 42487 [\\/]* | ?:[\\/]*) 42488 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42489 ;; 42490 *) 42491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42492 for as_dir in $PATH 42493 do 42494 IFS=$as_save_IFS 42495 test -z "$as_dir" && as_dir=. 42496 for ac_exec_ext in '' $ac_executable_extensions; do 42497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42498 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42500 break 2 42501 fi 42502 done 42503 done 42504 IFS=$as_save_IFS 42505 42506 ;; 42507 esac 42508 fi 42509 GNM=$ac_cv_path_GNM 42510 if test -n "$GNM"; then 42511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42512 $as_echo "$GNM" >&6; } 42513 else 42514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42515 $as_echo "no" >&6; } 42516 fi 42517 42518 42519 test -n "$GNM" && break 42520 done 42521 42522 else 42523 # The variable is set, but is it from the command line or the environment? 42524 42525 # Try to remove the string !GNM! from our list. 42526 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 42527 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42528 # If it failed, the variable was not from the command line. Ignore it, 42529 # but warn the user (except for BASH, which is always set by the calling BASH). 42530 if test "xGNM" != xBASH; then 42531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 42532 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 42533 fi 42534 # Try to locate tool using the code snippet 42535 for ac_prog in gnm 42536 do 42537 # Extract the first word of "$ac_prog", so it can be a program name with args. 42538 set dummy $ac_prog; ac_word=$2 42539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42540 $as_echo_n "checking for $ac_word... " >&6; } 42541 if ${ac_cv_path_GNM+:} false; then : 42542 $as_echo_n "(cached) " >&6 42543 else 42544 case $GNM in 42545 [\\/]* | ?:[\\/]*) 42546 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42547 ;; 42548 *) 42549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42550 for as_dir in $PATH 42551 do 42552 IFS=$as_save_IFS 42553 test -z "$as_dir" && as_dir=. 42554 for ac_exec_ext in '' $ac_executable_extensions; do 42555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42556 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42558 break 2 42559 fi 42560 done 42561 done 42562 IFS=$as_save_IFS 42563 42564 ;; 42565 esac 42566 fi 42567 GNM=$ac_cv_path_GNM 42568 if test -n "$GNM"; then 42569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42570 $as_echo "$GNM" >&6; } 42571 else 42572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42573 $as_echo "no" >&6; } 42574 fi 42575 42576 42577 test -n "$GNM" && break 42578 done 42579 42580 else 42581 # If it succeeded, then it was overridden by the user. We will use it 42582 # for the tool. 42583 42584 # First remove it from the list of overridden variables, so we can test 42585 # for unknown variables in the end. 42586 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42587 42588 # Check if we try to supply an empty value 42589 if test "x$GNM" = x; then 42590 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 42591 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 42592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 42593 $as_echo_n "checking for GNM... " >&6; } 42594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42595 $as_echo "disabled" >&6; } 42596 else 42597 # Check if the provided tool contains a complete path. 42598 tool_specified="$GNM" 42599 tool_basename="${tool_specified##*/}" 42600 if test "x$tool_basename" = "x$tool_specified"; then 42601 # A command without a complete path is provided, search $PATH. 42602 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 42603 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 42604 # Extract the first word of "$tool_basename", so it can be a program name with args. 42605 set dummy $tool_basename; ac_word=$2 42606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42607 $as_echo_n "checking for $ac_word... " >&6; } 42608 if ${ac_cv_path_GNM+:} false; then : 42609 $as_echo_n "(cached) " >&6 42610 else 42611 case $GNM in 42612 [\\/]* | ?:[\\/]*) 42613 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42614 ;; 42615 *) 42616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42617 for as_dir in $PATH 42618 do 42619 IFS=$as_save_IFS 42620 test -z "$as_dir" && as_dir=. 42621 for ac_exec_ext in '' $ac_executable_extensions; do 42622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42623 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42625 break 2 42626 fi 42627 done 42628 done 42629 IFS=$as_save_IFS 42630 42631 ;; 42632 esac 42633 fi 42634 GNM=$ac_cv_path_GNM 42635 if test -n "$GNM"; then 42636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42637 $as_echo "$GNM" >&6; } 42638 else 42639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42640 $as_echo "no" >&6; } 42641 fi 42642 42643 42644 if test "x$GNM" = x; then 42645 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42646 fi 42647 else 42648 # Otherwise we believe it is a complete path. Use it as it is. 42649 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 42650 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 42651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 42652 $as_echo_n "checking for GNM... " >&6; } 42653 if test ! -x "$tool_specified"; then 42654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42655 $as_echo "not found" >&6; } 42656 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 42657 fi 42658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42659 $as_echo "$tool_specified" >&6; } 42660 fi 42661 fi 42662 fi 42663 42664 fi 42665 42666 42667 42668 # Only process if variable expands to non-empty 42669 42670 if test "x$GNM" != x; then 42671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42672 42673 # First separate the path from the arguments. This will split at the first 42674 # space. 42675 complete="$GNM" 42676 path="${complete%% *}" 42677 tmp="$complete EOL" 42678 arguments="${tmp#* }" 42679 42680 # Input might be given as Windows format, start by converting to 42681 # unix format. 42682 new_path=`$CYGPATH -u "$path"` 42683 42684 # Now try to locate executable using which 42685 new_path=`$WHICH "$new_path" 2> /dev/null` 42686 # bat and cmd files are not always considered executable in cygwin causing which 42687 # to not find them 42688 if test "x$new_path" = x \ 42689 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42690 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42691 new_path=`$CYGPATH -u "$path"` 42692 fi 42693 if test "x$new_path" = x; then 42694 # Oops. Which didn't find the executable. 42695 # The splitting of arguments from the executable at a space might have been incorrect, 42696 # since paths with space are more likely in Windows. Give it another try with the whole 42697 # argument. 42698 path="$complete" 42699 arguments="EOL" 42700 new_path=`$CYGPATH -u "$path"` 42701 new_path=`$WHICH "$new_path" 2> /dev/null` 42702 # bat and cmd files are not always considered executable in cygwin causing which 42703 # to not find them 42704 if test "x$new_path" = x \ 42705 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42706 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42707 new_path=`$CYGPATH -u "$path"` 42708 fi 42709 if test "x$new_path" = x; then 42710 # It's still not found. Now this is an unrecoverable error. 42711 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42712 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42713 has_space=`$ECHO "$complete" | $GREP " "` 42714 if test "x$has_space" != x; then 42715 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42716 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42717 fi 42718 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42719 fi 42720 fi 42721 42722 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42723 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42724 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42725 # "foo.exe" is OK but "foo" is an error. 42726 # 42727 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42728 # It is also a way to make sure we got the proper file name for the real test later on. 42729 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42730 if test "x$test_shortpath" = x; then 42731 # Short path failed, file does not exist as specified. 42732 # Try adding .exe or .cmd 42733 if test -f "${new_path}.exe"; then 42734 input_to_shortpath="${new_path}.exe" 42735 elif test -f "${new_path}.cmd"; then 42736 input_to_shortpath="${new_path}.cmd" 42737 else 42738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 42739 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 42740 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42741 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42742 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42743 fi 42744 else 42745 input_to_shortpath="$new_path" 42746 fi 42747 42748 # Call helper function which possibly converts this using DOS-style short mode. 42749 # If so, the updated path is stored in $new_path. 42750 new_path="$input_to_shortpath" 42751 42752 input_path="$input_to_shortpath" 42753 # Check if we need to convert this using DOS-style short mode. If the path 42754 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42755 # take no chances and rewrite it. 42756 # Note: m4 eats our [], so we need to use [ and ] instead. 42757 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42758 if test "x$has_forbidden_chars" != x; then 42759 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42760 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42761 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42762 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42763 # Going to short mode and back again did indeed matter. Since short mode is 42764 # case insensitive, let's make it lowercase to improve readability. 42765 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42766 # Now convert it back to Unix-style (cygpath) 42767 input_path=`$CYGPATH -u "$shortmode_path"` 42768 new_path="$input_path" 42769 fi 42770 fi 42771 42772 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42773 if test "x$test_cygdrive_prefix" = x; then 42774 # As a simple fix, exclude /usr/bin since it's not a real path. 42775 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42776 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42777 # a path prefixed by /cygdrive for fixpath to work. 42778 new_path="$CYGWIN_ROOT_PATH$input_path" 42779 fi 42780 fi 42781 42782 # remove trailing .exe if any 42783 new_path="${new_path/%.exe/}" 42784 42785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42786 42787 # First separate the path from the arguments. This will split at the first 42788 # space. 42789 complete="$GNM" 42790 path="${complete%% *}" 42791 tmp="$complete EOL" 42792 arguments="${tmp#* }" 42793 42794 # Input might be given as Windows format, start by converting to 42795 # unix format. 42796 new_path="$path" 42797 42798 windows_path="$new_path" 42799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42800 unix_path=`$CYGPATH -u "$windows_path"` 42801 new_path="$unix_path" 42802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42804 new_path="$unix_path" 42805 fi 42806 42807 42808 # Now try to locate executable using which 42809 new_path=`$WHICH "$new_path" 2> /dev/null` 42810 42811 if test "x$new_path" = x; then 42812 # Oops. Which didn't find the executable. 42813 # The splitting of arguments from the executable at a space might have been incorrect, 42814 # since paths with space are more likely in Windows. Give it another try with the whole 42815 # argument. 42816 path="$complete" 42817 arguments="EOL" 42818 new_path="$path" 42819 42820 windows_path="$new_path" 42821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42822 unix_path=`$CYGPATH -u "$windows_path"` 42823 new_path="$unix_path" 42824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42826 new_path="$unix_path" 42827 fi 42828 42829 42830 new_path=`$WHICH "$new_path" 2> /dev/null` 42831 # bat and cmd files are not always considered executable in MSYS causing which 42832 # to not find them 42833 if test "x$new_path" = x \ 42834 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42835 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42836 new_path="$path" 42837 42838 windows_path="$new_path" 42839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42840 unix_path=`$CYGPATH -u "$windows_path"` 42841 new_path="$unix_path" 42842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42844 new_path="$unix_path" 42845 fi 42846 42847 fi 42848 42849 if test "x$new_path" = x; then 42850 # It's still not found. Now this is an unrecoverable error. 42851 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42852 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42853 has_space=`$ECHO "$complete" | $GREP " "` 42854 if test "x$has_space" != x; then 42855 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42856 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42857 fi 42858 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42859 fi 42860 fi 42861 42862 # Now new_path has a complete unix path to the binary 42863 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42864 # Keep paths in /bin as-is, but remove trailing .exe if any 42865 new_path="${new_path/%.exe/}" 42866 # Do not save /bin paths to all_fixpath_prefixes! 42867 else 42868 # Not in mixed or Windows style, start by that. 42869 new_path=`cmd //c echo $new_path` 42870 42871 input_path="$new_path" 42872 # Check if we need to convert this using DOS-style short mode. If the path 42873 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42874 # take no chances and rewrite it. 42875 # Note: m4 eats our [], so we need to use [ and ] instead. 42876 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42877 if test "x$has_forbidden_chars" != x; then 42878 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42879 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42880 fi 42881 42882 # Output is in $new_path 42883 42884 windows_path="$new_path" 42885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42886 unix_path=`$CYGPATH -u "$windows_path"` 42887 new_path="$unix_path" 42888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42890 new_path="$unix_path" 42891 fi 42892 42893 # remove trailing .exe if any 42894 new_path="${new_path/%.exe/}" 42895 42896 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42897 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42898 fi 42899 42900 else 42901 # We're on a unix platform. Hooray! :) 42902 # First separate the path from the arguments. This will split at the first 42903 # space. 42904 complete="$GNM" 42905 path="${complete%% *}" 42906 tmp="$complete EOL" 42907 arguments="${tmp#* }" 42908 42909 # Cannot rely on the command "which" here since it doesn't always work. 42910 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42911 if test -z "$is_absolute_path"; then 42912 # Path to executable is not absolute. Find it. 42913 IFS_save="$IFS" 42914 IFS=: 42915 for p in $PATH; do 42916 if test -f "$p/$path" && test -x "$p/$path"; then 42917 new_path="$p/$path" 42918 break 42919 fi 42920 done 42921 IFS="$IFS_save" 42922 else 42923 # This is an absolute path, we can use it without further modifications. 42924 new_path="$path" 42925 fi 42926 42927 if test "x$new_path" = x; then 42928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42929 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42930 has_space=`$ECHO "$complete" | $GREP " "` 42931 if test "x$has_space" != x; then 42932 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42933 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42934 fi 42935 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42936 fi 42937 fi 42938 42939 # Now join together the path and the arguments once again 42940 if test "x$arguments" != xEOL; then 42941 new_complete="$new_path ${arguments% *}" 42942 else 42943 new_complete="$new_path" 42944 fi 42945 42946 if test "x$complete" != "x$new_complete"; then 42947 GNM="$new_complete" 42948 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 42949 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 42950 fi 42951 fi 42952 42953 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 42954 # FIXME: we should unify this with the solaris case above. 42955 42956 42957 # Publish this variable in the help. 42958 42959 42960 if [ -z "${STRIP+x}" ]; then 42961 # The variable is not set by user, try to locate tool using the code snippet 42962 if test -n "$ac_tool_prefix"; then 42963 for ac_prog in strip 42964 do 42965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42968 $as_echo_n "checking for $ac_word... " >&6; } 42969 if ${ac_cv_prog_STRIP+:} false; then : 42970 $as_echo_n "(cached) " >&6 42971 else 42972 if test -n "$STRIP"; then 42973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42974 else 42975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42976 for as_dir in $PATH 42977 do 42978 IFS=$as_save_IFS 42979 test -z "$as_dir" && as_dir=. 42980 for ac_exec_ext in '' $ac_executable_extensions; do 42981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42982 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42984 break 2 42985 fi 42986 done 42987 done 42988 IFS=$as_save_IFS 42989 42990 fi 42991 fi 42992 STRIP=$ac_cv_prog_STRIP 42993 if test -n "$STRIP"; then 42994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42995 $as_echo "$STRIP" >&6; } 42996 else 42997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42998 $as_echo "no" >&6; } 42999 fi 43000 43001 43002 test -n "$STRIP" && break 43003 done 43004 fi 43005 if test -z "$STRIP"; then 43006 ac_ct_STRIP=$STRIP 43007 for ac_prog in strip 43008 do 43009 # Extract the first word of "$ac_prog", so it can be a program name with args. 43010 set dummy $ac_prog; ac_word=$2 43011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43012 $as_echo_n "checking for $ac_word... " >&6; } 43013 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 43014 $as_echo_n "(cached) " >&6 43015 else 43016 if test -n "$ac_ct_STRIP"; then 43017 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 43018 else 43019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43020 for as_dir in $PATH 43021 do 43022 IFS=$as_save_IFS 43023 test -z "$as_dir" && as_dir=. 43024 for ac_exec_ext in '' $ac_executable_extensions; do 43025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43026 ac_cv_prog_ac_ct_STRIP="$ac_prog" 43027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43028 break 2 43029 fi 43030 done 43031 done 43032 IFS=$as_save_IFS 43033 43034 fi 43035 fi 43036 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 43037 if test -n "$ac_ct_STRIP"; then 43038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 43039 $as_echo "$ac_ct_STRIP" >&6; } 43040 else 43041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43042 $as_echo "no" >&6; } 43043 fi 43044 43045 43046 test -n "$ac_ct_STRIP" && break 43047 done 43048 43049 if test "x$ac_ct_STRIP" = x; then 43050 STRIP="" 43051 else 43052 case $cross_compiling:$ac_tool_warned in 43053 yes:) 43054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43056 ac_tool_warned=yes ;; 43057 esac 43058 STRIP=$ac_ct_STRIP 43059 fi 43060 fi 43061 43062 else 43063 # The variable is set, but is it from the command line or the environment? 43064 43065 # Try to remove the string !STRIP! from our list. 43066 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 43067 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43068 # If it failed, the variable was not from the command line. Ignore it, 43069 # but warn the user (except for BASH, which is always set by the calling BASH). 43070 if test "xSTRIP" != xBASH; then 43071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 43072 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 43073 fi 43074 # Try to locate tool using the code snippet 43075 if test -n "$ac_tool_prefix"; then 43076 for ac_prog in strip 43077 do 43078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43081 $as_echo_n "checking for $ac_word... " >&6; } 43082 if ${ac_cv_prog_STRIP+:} false; then : 43083 $as_echo_n "(cached) " >&6 43084 else 43085 if test -n "$STRIP"; then 43086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 43087 else 43088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43089 for as_dir in $PATH 43090 do 43091 IFS=$as_save_IFS 43092 test -z "$as_dir" && as_dir=. 43093 for ac_exec_ext in '' $ac_executable_extensions; do 43094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43095 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 43096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43097 break 2 43098 fi 43099 done 43100 done 43101 IFS=$as_save_IFS 43102 43103 fi 43104 fi 43105 STRIP=$ac_cv_prog_STRIP 43106 if test -n "$STRIP"; then 43107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 43108 $as_echo "$STRIP" >&6; } 43109 else 43110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43111 $as_echo "no" >&6; } 43112 fi 43113 43114 43115 test -n "$STRIP" && break 43116 done 43117 fi 43118 if test -z "$STRIP"; then 43119 ac_ct_STRIP=$STRIP 43120 for ac_prog in strip 43121 do 43122 # Extract the first word of "$ac_prog", so it can be a program name with args. 43123 set dummy $ac_prog; ac_word=$2 43124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43125 $as_echo_n "checking for $ac_word... " >&6; } 43126 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 43127 $as_echo_n "(cached) " >&6 43128 else 43129 if test -n "$ac_ct_STRIP"; then 43130 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 43131 else 43132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43133 for as_dir in $PATH 43134 do 43135 IFS=$as_save_IFS 43136 test -z "$as_dir" && as_dir=. 43137 for ac_exec_ext in '' $ac_executable_extensions; do 43138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43139 ac_cv_prog_ac_ct_STRIP="$ac_prog" 43140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43141 break 2 43142 fi 43143 done 43144 done 43145 IFS=$as_save_IFS 43146 43147 fi 43148 fi 43149 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 43150 if test -n "$ac_ct_STRIP"; then 43151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 43152 $as_echo "$ac_ct_STRIP" >&6; } 43153 else 43154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43155 $as_echo "no" >&6; } 43156 fi 43157 43158 43159 test -n "$ac_ct_STRIP" && break 43160 done 43161 43162 if test "x$ac_ct_STRIP" = x; then 43163 STRIP="" 43164 else 43165 case $cross_compiling:$ac_tool_warned in 43166 yes:) 43167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43169 ac_tool_warned=yes ;; 43170 esac 43171 STRIP=$ac_ct_STRIP 43172 fi 43173 fi 43174 43175 else 43176 # If it succeeded, then it was overridden by the user. We will use it 43177 # for the tool. 43178 43179 # First remove it from the list of overridden variables, so we can test 43180 # for unknown variables in the end. 43181 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43182 43183 # Check if we try to supply an empty value 43184 if test "x$STRIP" = x; then 43185 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 43186 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 43187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 43188 $as_echo_n "checking for STRIP... " >&6; } 43189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43190 $as_echo "disabled" >&6; } 43191 else 43192 # Check if the provided tool contains a complete path. 43193 tool_specified="$STRIP" 43194 tool_basename="${tool_specified##*/}" 43195 if test "x$tool_basename" = "x$tool_specified"; then 43196 # A command without a complete path is provided, search $PATH. 43197 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 43198 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 43199 # Extract the first word of "$tool_basename", so it can be a program name with args. 43200 set dummy $tool_basename; ac_word=$2 43201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43202 $as_echo_n "checking for $ac_word... " >&6; } 43203 if ${ac_cv_path_STRIP+:} false; then : 43204 $as_echo_n "(cached) " >&6 43205 else 43206 case $STRIP in 43207 [\\/]* | ?:[\\/]*) 43208 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 43209 ;; 43210 *) 43211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43212 for as_dir in $PATH 43213 do 43214 IFS=$as_save_IFS 43215 test -z "$as_dir" && as_dir=. 43216 for ac_exec_ext in '' $ac_executable_extensions; do 43217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43218 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 43219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43220 break 2 43221 fi 43222 done 43223 done 43224 IFS=$as_save_IFS 43225 43226 ;; 43227 esac 43228 fi 43229 STRIP=$ac_cv_path_STRIP 43230 if test -n "$STRIP"; then 43231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 43232 $as_echo "$STRIP" >&6; } 43233 else 43234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43235 $as_echo "no" >&6; } 43236 fi 43237 43238 43239 if test "x$STRIP" = x; then 43240 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43241 fi 43242 else 43243 # Otherwise we believe it is a complete path. Use it as it is. 43244 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 43245 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 43246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 43247 $as_echo_n "checking for STRIP... " >&6; } 43248 if test ! -x "$tool_specified"; then 43249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43250 $as_echo "not found" >&6; } 43251 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 43252 fi 43253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43254 $as_echo "$tool_specified" >&6; } 43255 fi 43256 fi 43257 fi 43258 43259 fi 43260 43261 43262 43263 # Only process if variable expands to non-empty 43264 43265 if test "x$STRIP" != x; then 43266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43267 43268 # First separate the path from the arguments. This will split at the first 43269 # space. 43270 complete="$STRIP" 43271 path="${complete%% *}" 43272 tmp="$complete EOL" 43273 arguments="${tmp#* }" 43274 43275 # Input might be given as Windows format, start by converting to 43276 # unix format. 43277 new_path=`$CYGPATH -u "$path"` 43278 43279 # Now try to locate executable using which 43280 new_path=`$WHICH "$new_path" 2> /dev/null` 43281 # bat and cmd files are not always considered executable in cygwin causing which 43282 # to not find them 43283 if test "x$new_path" = x \ 43284 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43285 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43286 new_path=`$CYGPATH -u "$path"` 43287 fi 43288 if test "x$new_path" = x; then 43289 # Oops. Which didn't find the executable. 43290 # The splitting of arguments from the executable at a space might have been incorrect, 43291 # since paths with space are more likely in Windows. Give it another try with the whole 43292 # argument. 43293 path="$complete" 43294 arguments="EOL" 43295 new_path=`$CYGPATH -u "$path"` 43296 new_path=`$WHICH "$new_path" 2> /dev/null` 43297 # bat and cmd files are not always considered executable in cygwin causing which 43298 # to not find them 43299 if test "x$new_path" = x \ 43300 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43301 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43302 new_path=`$CYGPATH -u "$path"` 43303 fi 43304 if test "x$new_path" = x; then 43305 # It's still not found. Now this is an unrecoverable error. 43306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43307 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43308 has_space=`$ECHO "$complete" | $GREP " "` 43309 if test "x$has_space" != x; then 43310 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43311 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43312 fi 43313 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43314 fi 43315 fi 43316 43317 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43318 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43319 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43320 # "foo.exe" is OK but "foo" is an error. 43321 # 43322 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43323 # It is also a way to make sure we got the proper file name for the real test later on. 43324 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43325 if test "x$test_shortpath" = x; then 43326 # Short path failed, file does not exist as specified. 43327 # Try adding .exe or .cmd 43328 if test -f "${new_path}.exe"; then 43329 input_to_shortpath="${new_path}.exe" 43330 elif test -f "${new_path}.cmd"; then 43331 input_to_shortpath="${new_path}.cmd" 43332 else 43333 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 43334 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 43335 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43336 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43337 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43338 fi 43339 else 43340 input_to_shortpath="$new_path" 43341 fi 43342 43343 # Call helper function which possibly converts this using DOS-style short mode. 43344 # If so, the updated path is stored in $new_path. 43345 new_path="$input_to_shortpath" 43346 43347 input_path="$input_to_shortpath" 43348 # Check if we need to convert this using DOS-style short mode. If the path 43349 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43350 # take no chances and rewrite it. 43351 # Note: m4 eats our [], so we need to use [ and ] instead. 43352 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43353 if test "x$has_forbidden_chars" != x; then 43354 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43355 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43356 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43357 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43358 # Going to short mode and back again did indeed matter. Since short mode is 43359 # case insensitive, let's make it lowercase to improve readability. 43360 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43361 # Now convert it back to Unix-style (cygpath) 43362 input_path=`$CYGPATH -u "$shortmode_path"` 43363 new_path="$input_path" 43364 fi 43365 fi 43366 43367 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43368 if test "x$test_cygdrive_prefix" = x; then 43369 # As a simple fix, exclude /usr/bin since it's not a real path. 43370 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43371 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43372 # a path prefixed by /cygdrive for fixpath to work. 43373 new_path="$CYGWIN_ROOT_PATH$input_path" 43374 fi 43375 fi 43376 43377 # remove trailing .exe if any 43378 new_path="${new_path/%.exe/}" 43379 43380 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43381 43382 # First separate the path from the arguments. This will split at the first 43383 # space. 43384 complete="$STRIP" 43385 path="${complete%% *}" 43386 tmp="$complete EOL" 43387 arguments="${tmp#* }" 43388 43389 # Input might be given as Windows format, start by converting to 43390 # unix format. 43391 new_path="$path" 43392 43393 windows_path="$new_path" 43394 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43395 unix_path=`$CYGPATH -u "$windows_path"` 43396 new_path="$unix_path" 43397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43398 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43399 new_path="$unix_path" 43400 fi 43401 43402 43403 # Now try to locate executable using which 43404 new_path=`$WHICH "$new_path" 2> /dev/null` 43405 43406 if test "x$new_path" = x; then 43407 # Oops. Which didn't find the executable. 43408 # The splitting of arguments from the executable at a space might have been incorrect, 43409 # since paths with space are more likely in Windows. Give it another try with the whole 43410 # argument. 43411 path="$complete" 43412 arguments="EOL" 43413 new_path="$path" 43414 43415 windows_path="$new_path" 43416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43417 unix_path=`$CYGPATH -u "$windows_path"` 43418 new_path="$unix_path" 43419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43420 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43421 new_path="$unix_path" 43422 fi 43423 43424 43425 new_path=`$WHICH "$new_path" 2> /dev/null` 43426 # bat and cmd files are not always considered executable in MSYS causing which 43427 # to not find them 43428 if test "x$new_path" = x \ 43429 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43430 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43431 new_path="$path" 43432 43433 windows_path="$new_path" 43434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43435 unix_path=`$CYGPATH -u "$windows_path"` 43436 new_path="$unix_path" 43437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43438 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43439 new_path="$unix_path" 43440 fi 43441 43442 fi 43443 43444 if test "x$new_path" = x; then 43445 # It's still not found. Now this is an unrecoverable error. 43446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43447 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43448 has_space=`$ECHO "$complete" | $GREP " "` 43449 if test "x$has_space" != x; then 43450 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43451 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43452 fi 43453 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43454 fi 43455 fi 43456 43457 # Now new_path has a complete unix path to the binary 43458 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43459 # Keep paths in /bin as-is, but remove trailing .exe if any 43460 new_path="${new_path/%.exe/}" 43461 # Do not save /bin paths to all_fixpath_prefixes! 43462 else 43463 # Not in mixed or Windows style, start by that. 43464 new_path=`cmd //c echo $new_path` 43465 43466 input_path="$new_path" 43467 # Check if we need to convert this using DOS-style short mode. If the path 43468 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43469 # take no chances and rewrite it. 43470 # Note: m4 eats our [], so we need to use [ and ] instead. 43471 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43472 if test "x$has_forbidden_chars" != x; then 43473 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43474 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43475 fi 43476 43477 # Output is in $new_path 43478 43479 windows_path="$new_path" 43480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43481 unix_path=`$CYGPATH -u "$windows_path"` 43482 new_path="$unix_path" 43483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43484 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43485 new_path="$unix_path" 43486 fi 43487 43488 # remove trailing .exe if any 43489 new_path="${new_path/%.exe/}" 43490 43491 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43492 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43493 fi 43494 43495 else 43496 # We're on a unix platform. Hooray! :) 43497 # First separate the path from the arguments. This will split at the first 43498 # space. 43499 complete="$STRIP" 43500 path="${complete%% *}" 43501 tmp="$complete EOL" 43502 arguments="${tmp#* }" 43503 43504 # Cannot rely on the command "which" here since it doesn't always work. 43505 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43506 if test -z "$is_absolute_path"; then 43507 # Path to executable is not absolute. Find it. 43508 IFS_save="$IFS" 43509 IFS=: 43510 for p in $PATH; do 43511 if test -f "$p/$path" && test -x "$p/$path"; then 43512 new_path="$p/$path" 43513 break 43514 fi 43515 done 43516 IFS="$IFS_save" 43517 else 43518 # This is an absolute path, we can use it without further modifications. 43519 new_path="$path" 43520 fi 43521 43522 if test "x$new_path" = x; then 43523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43524 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43525 has_space=`$ECHO "$complete" | $GREP " "` 43526 if test "x$has_space" != x; then 43527 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43528 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43529 fi 43530 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43531 fi 43532 fi 43533 43534 # Now join together the path and the arguments once again 43535 if test "x$arguments" != xEOL; then 43536 new_complete="$new_path ${arguments% *}" 43537 else 43538 new_complete="$new_path" 43539 fi 43540 43541 if test "x$complete" != "x$new_complete"; then 43542 STRIP="$new_complete" 43543 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 43544 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 43545 fi 43546 fi 43547 43548 if test "x$TOOLCHAIN_TYPE" = xgcc; then 43549 43550 43551 # Publish this variable in the help. 43552 43553 43554 if [ -z "${NM+x}" ]; then 43555 # The variable is not set by user, try to locate tool using the code snippet 43556 if test -n "$ac_tool_prefix"; then 43557 for ac_prog in nm gcc-nm 43558 do 43559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43562 $as_echo_n "checking for $ac_word... " >&6; } 43563 if ${ac_cv_prog_NM+:} false; then : 43564 $as_echo_n "(cached) " >&6 43565 else 43566 if test -n "$NM"; then 43567 ac_cv_prog_NM="$NM" # Let the user override the test. 43568 else 43569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43570 for as_dir in $PATH 43571 do 43572 IFS=$as_save_IFS 43573 test -z "$as_dir" && as_dir=. 43574 for ac_exec_ext in '' $ac_executable_extensions; do 43575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43576 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43578 break 2 43579 fi 43580 done 43581 done 43582 IFS=$as_save_IFS 43583 43584 fi 43585 fi 43586 NM=$ac_cv_prog_NM 43587 if test -n "$NM"; then 43588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43589 $as_echo "$NM" >&6; } 43590 else 43591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43592 $as_echo "no" >&6; } 43593 fi 43594 43595 43596 test -n "$NM" && break 43597 done 43598 fi 43599 if test -z "$NM"; then 43600 ac_ct_NM=$NM 43601 for ac_prog in nm gcc-nm 43602 do 43603 # Extract the first word of "$ac_prog", so it can be a program name with args. 43604 set dummy $ac_prog; ac_word=$2 43605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43606 $as_echo_n "checking for $ac_word... " >&6; } 43607 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43608 $as_echo_n "(cached) " >&6 43609 else 43610 if test -n "$ac_ct_NM"; then 43611 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43612 else 43613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43614 for as_dir in $PATH 43615 do 43616 IFS=$as_save_IFS 43617 test -z "$as_dir" && as_dir=. 43618 for ac_exec_ext in '' $ac_executable_extensions; do 43619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43620 ac_cv_prog_ac_ct_NM="$ac_prog" 43621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43622 break 2 43623 fi 43624 done 43625 done 43626 IFS=$as_save_IFS 43627 43628 fi 43629 fi 43630 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43631 if test -n "$ac_ct_NM"; then 43632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43633 $as_echo "$ac_ct_NM" >&6; } 43634 else 43635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43636 $as_echo "no" >&6; } 43637 fi 43638 43639 43640 test -n "$ac_ct_NM" && break 43641 done 43642 43643 if test "x$ac_ct_NM" = x; then 43644 NM="" 43645 else 43646 case $cross_compiling:$ac_tool_warned in 43647 yes:) 43648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43650 ac_tool_warned=yes ;; 43651 esac 43652 NM=$ac_ct_NM 43653 fi 43654 fi 43655 43656 else 43657 # The variable is set, but is it from the command line or the environment? 43658 43659 # Try to remove the string !NM! from our list. 43660 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43661 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43662 # If it failed, the variable was not from the command line. Ignore it, 43663 # but warn the user (except for BASH, which is always set by the calling BASH). 43664 if test "xNM" != xBASH; then 43665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43666 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43667 fi 43668 # Try to locate tool using the code snippet 43669 if test -n "$ac_tool_prefix"; then 43670 for ac_prog in nm gcc-nm 43671 do 43672 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43673 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43675 $as_echo_n "checking for $ac_word... " >&6; } 43676 if ${ac_cv_prog_NM+:} false; then : 43677 $as_echo_n "(cached) " >&6 43678 else 43679 if test -n "$NM"; then 43680 ac_cv_prog_NM="$NM" # Let the user override the test. 43681 else 43682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43683 for as_dir in $PATH 43684 do 43685 IFS=$as_save_IFS 43686 test -z "$as_dir" && as_dir=. 43687 for ac_exec_ext in '' $ac_executable_extensions; do 43688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43689 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43691 break 2 43692 fi 43693 done 43694 done 43695 IFS=$as_save_IFS 43696 43697 fi 43698 fi 43699 NM=$ac_cv_prog_NM 43700 if test -n "$NM"; then 43701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43702 $as_echo "$NM" >&6; } 43703 else 43704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43705 $as_echo "no" >&6; } 43706 fi 43707 43708 43709 test -n "$NM" && break 43710 done 43711 fi 43712 if test -z "$NM"; then 43713 ac_ct_NM=$NM 43714 for ac_prog in nm gcc-nm 43715 do 43716 # Extract the first word of "$ac_prog", so it can be a program name with args. 43717 set dummy $ac_prog; ac_word=$2 43718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43719 $as_echo_n "checking for $ac_word... " >&6; } 43720 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43721 $as_echo_n "(cached) " >&6 43722 else 43723 if test -n "$ac_ct_NM"; then 43724 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43725 else 43726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43727 for as_dir in $PATH 43728 do 43729 IFS=$as_save_IFS 43730 test -z "$as_dir" && as_dir=. 43731 for ac_exec_ext in '' $ac_executable_extensions; do 43732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43733 ac_cv_prog_ac_ct_NM="$ac_prog" 43734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43735 break 2 43736 fi 43737 done 43738 done 43739 IFS=$as_save_IFS 43740 43741 fi 43742 fi 43743 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43744 if test -n "$ac_ct_NM"; then 43745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43746 $as_echo "$ac_ct_NM" >&6; } 43747 else 43748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43749 $as_echo "no" >&6; } 43750 fi 43751 43752 43753 test -n "$ac_ct_NM" && break 43754 done 43755 43756 if test "x$ac_ct_NM" = x; then 43757 NM="" 43758 else 43759 case $cross_compiling:$ac_tool_warned in 43760 yes:) 43761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43763 ac_tool_warned=yes ;; 43764 esac 43765 NM=$ac_ct_NM 43766 fi 43767 fi 43768 43769 else 43770 # If it succeeded, then it was overridden by the user. We will use it 43771 # for the tool. 43772 43773 # First remove it from the list of overridden variables, so we can test 43774 # for unknown variables in the end. 43775 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43776 43777 # Check if we try to supply an empty value 43778 if test "x$NM" = x; then 43779 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 43780 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 43781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43782 $as_echo_n "checking for NM... " >&6; } 43783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43784 $as_echo "disabled" >&6; } 43785 else 43786 # Check if the provided tool contains a complete path. 43787 tool_specified="$NM" 43788 tool_basename="${tool_specified##*/}" 43789 if test "x$tool_basename" = "x$tool_specified"; then 43790 # A command without a complete path is provided, search $PATH. 43791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 43792 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 43793 # Extract the first word of "$tool_basename", so it can be a program name with args. 43794 set dummy $tool_basename; ac_word=$2 43795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43796 $as_echo_n "checking for $ac_word... " >&6; } 43797 if ${ac_cv_path_NM+:} false; then : 43798 $as_echo_n "(cached) " >&6 43799 else 43800 case $NM in 43801 [\\/]* | ?:[\\/]*) 43802 ac_cv_path_NM="$NM" # Let the user override the test with a path. 43803 ;; 43804 *) 43805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43806 for as_dir in $PATH 43807 do 43808 IFS=$as_save_IFS 43809 test -z "$as_dir" && as_dir=. 43810 for ac_exec_ext in '' $ac_executable_extensions; do 43811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43812 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 43813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43814 break 2 43815 fi 43816 done 43817 done 43818 IFS=$as_save_IFS 43819 43820 ;; 43821 esac 43822 fi 43823 NM=$ac_cv_path_NM 43824 if test -n "$NM"; then 43825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43826 $as_echo "$NM" >&6; } 43827 else 43828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43829 $as_echo "no" >&6; } 43830 fi 43831 43832 43833 if test "x$NM" = x; then 43834 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43835 fi 43836 else 43837 # Otherwise we believe it is a complete path. Use it as it is. 43838 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 43839 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 43840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43841 $as_echo_n "checking for NM... " >&6; } 43842 if test ! -x "$tool_specified"; then 43843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43844 $as_echo "not found" >&6; } 43845 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 43846 fi 43847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43848 $as_echo "$tool_specified" >&6; } 43849 fi 43850 fi 43851 fi 43852 43853 fi 43854 43855 43856 else 43857 43858 43859 # Publish this variable in the help. 43860 43861 43862 if [ -z "${NM+x}" ]; then 43863 # The variable is not set by user, try to locate tool using the code snippet 43864 if test -n "$ac_tool_prefix"; then 43865 for ac_prog in nm 43866 do 43867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43870 $as_echo_n "checking for $ac_word... " >&6; } 43871 if ${ac_cv_prog_NM+:} false; then : 43872 $as_echo_n "(cached) " >&6 43873 else 43874 if test -n "$NM"; then 43875 ac_cv_prog_NM="$NM" # Let the user override the test. 43876 else 43877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43878 for as_dir in $PATH 43879 do 43880 IFS=$as_save_IFS 43881 test -z "$as_dir" && as_dir=. 43882 for ac_exec_ext in '' $ac_executable_extensions; do 43883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43884 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43886 break 2 43887 fi 43888 done 43889 done 43890 IFS=$as_save_IFS 43891 43892 fi 43893 fi 43894 NM=$ac_cv_prog_NM 43895 if test -n "$NM"; then 43896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43897 $as_echo "$NM" >&6; } 43898 else 43899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43900 $as_echo "no" >&6; } 43901 fi 43902 43903 43904 test -n "$NM" && break 43905 done 43906 fi 43907 if test -z "$NM"; then 43908 ac_ct_NM=$NM 43909 for ac_prog in nm 43910 do 43911 # Extract the first word of "$ac_prog", so it can be a program name with args. 43912 set dummy $ac_prog; ac_word=$2 43913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43914 $as_echo_n "checking for $ac_word... " >&6; } 43915 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43916 $as_echo_n "(cached) " >&6 43917 else 43918 if test -n "$ac_ct_NM"; then 43919 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43920 else 43921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43922 for as_dir in $PATH 43923 do 43924 IFS=$as_save_IFS 43925 test -z "$as_dir" && as_dir=. 43926 for ac_exec_ext in '' $ac_executable_extensions; do 43927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43928 ac_cv_prog_ac_ct_NM="$ac_prog" 43929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43930 break 2 43931 fi 43932 done 43933 done 43934 IFS=$as_save_IFS 43935 43936 fi 43937 fi 43938 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43939 if test -n "$ac_ct_NM"; then 43940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43941 $as_echo "$ac_ct_NM" >&6; } 43942 else 43943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43944 $as_echo "no" >&6; } 43945 fi 43946 43947 43948 test -n "$ac_ct_NM" && break 43949 done 43950 43951 if test "x$ac_ct_NM" = x; then 43952 NM="" 43953 else 43954 case $cross_compiling:$ac_tool_warned in 43955 yes:) 43956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43958 ac_tool_warned=yes ;; 43959 esac 43960 NM=$ac_ct_NM 43961 fi 43962 fi 43963 43964 else 43965 # The variable is set, but is it from the command line or the environment? 43966 43967 # Try to remove the string !NM! from our list. 43968 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43969 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43970 # If it failed, the variable was not from the command line. Ignore it, 43971 # but warn the user (except for BASH, which is always set by the calling BASH). 43972 if test "xNM" != xBASH; then 43973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43974 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43975 fi 43976 # Try to locate tool using the code snippet 43977 if test -n "$ac_tool_prefix"; then 43978 for ac_prog in nm 43979 do 43980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43983 $as_echo_n "checking for $ac_word... " >&6; } 43984 if ${ac_cv_prog_NM+:} false; then : 43985 $as_echo_n "(cached) " >&6 43986 else 43987 if test -n "$NM"; then 43988 ac_cv_prog_NM="$NM" # Let the user override the test. 43989 else 43990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43991 for as_dir in $PATH 43992 do 43993 IFS=$as_save_IFS 43994 test -z "$as_dir" && as_dir=. 43995 for ac_exec_ext in '' $ac_executable_extensions; do 43996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43997 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43999 break 2 44000 fi 44001 done 44002 done 44003 IFS=$as_save_IFS 44004 44005 fi 44006 fi 44007 NM=$ac_cv_prog_NM 44008 if test -n "$NM"; then 44009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 44010 $as_echo "$NM" >&6; } 44011 else 44012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44013 $as_echo "no" >&6; } 44014 fi 44015 44016 44017 test -n "$NM" && break 44018 done 44019 fi 44020 if test -z "$NM"; then 44021 ac_ct_NM=$NM 44022 for ac_prog in nm 44023 do 44024 # Extract the first word of "$ac_prog", so it can be a program name with args. 44025 set dummy $ac_prog; ac_word=$2 44026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44027 $as_echo_n "checking for $ac_word... " >&6; } 44028 if ${ac_cv_prog_ac_ct_NM+:} false; then : 44029 $as_echo_n "(cached) " >&6 44030 else 44031 if test -n "$ac_ct_NM"; then 44032 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 44033 else 44034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44035 for as_dir in $PATH 44036 do 44037 IFS=$as_save_IFS 44038 test -z "$as_dir" && as_dir=. 44039 for ac_exec_ext in '' $ac_executable_extensions; do 44040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44041 ac_cv_prog_ac_ct_NM="$ac_prog" 44042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44043 break 2 44044 fi 44045 done 44046 done 44047 IFS=$as_save_IFS 44048 44049 fi 44050 fi 44051 ac_ct_NM=$ac_cv_prog_ac_ct_NM 44052 if test -n "$ac_ct_NM"; then 44053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 44054 $as_echo "$ac_ct_NM" >&6; } 44055 else 44056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44057 $as_echo "no" >&6; } 44058 fi 44059 44060 44061 test -n "$ac_ct_NM" && break 44062 done 44063 44064 if test "x$ac_ct_NM" = x; then 44065 NM="" 44066 else 44067 case $cross_compiling:$ac_tool_warned in 44068 yes:) 44069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44071 ac_tool_warned=yes ;; 44072 esac 44073 NM=$ac_ct_NM 44074 fi 44075 fi 44076 44077 else 44078 # If it succeeded, then it was overridden by the user. We will use it 44079 # for the tool. 44080 44081 # First remove it from the list of overridden variables, so we can test 44082 # for unknown variables in the end. 44083 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44084 44085 # Check if we try to supply an empty value 44086 if test "x$NM" = x; then 44087 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 44088 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 44089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 44090 $as_echo_n "checking for NM... " >&6; } 44091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44092 $as_echo "disabled" >&6; } 44093 else 44094 # Check if the provided tool contains a complete path. 44095 tool_specified="$NM" 44096 tool_basename="${tool_specified##*/}" 44097 if test "x$tool_basename" = "x$tool_specified"; then 44098 # A command without a complete path is provided, search $PATH. 44099 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 44100 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 44101 # Extract the first word of "$tool_basename", so it can be a program name with args. 44102 set dummy $tool_basename; ac_word=$2 44103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44104 $as_echo_n "checking for $ac_word... " >&6; } 44105 if ${ac_cv_path_NM+:} false; then : 44106 $as_echo_n "(cached) " >&6 44107 else 44108 case $NM in 44109 [\\/]* | ?:[\\/]*) 44110 ac_cv_path_NM="$NM" # Let the user override the test with a path. 44111 ;; 44112 *) 44113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44114 for as_dir in $PATH 44115 do 44116 IFS=$as_save_IFS 44117 test -z "$as_dir" && as_dir=. 44118 for ac_exec_ext in '' $ac_executable_extensions; do 44119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44120 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 44121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44122 break 2 44123 fi 44124 done 44125 done 44126 IFS=$as_save_IFS 44127 44128 ;; 44129 esac 44130 fi 44131 NM=$ac_cv_path_NM 44132 if test -n "$NM"; then 44133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 44134 $as_echo "$NM" >&6; } 44135 else 44136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44137 $as_echo "no" >&6; } 44138 fi 44139 44140 44141 if test "x$NM" = x; then 44142 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44143 fi 44144 else 44145 # Otherwise we believe it is a complete path. Use it as it is. 44146 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 44147 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 44148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 44149 $as_echo_n "checking for NM... " >&6; } 44150 if test ! -x "$tool_specified"; then 44151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44152 $as_echo "not found" >&6; } 44153 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 44154 fi 44155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44156 $as_echo "$tool_specified" >&6; } 44157 fi 44158 fi 44159 fi 44160 44161 fi 44162 44163 44164 fi 44165 44166 # Only process if variable expands to non-empty 44167 44168 if test "x$NM" != x; then 44169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44170 44171 # First separate the path from the arguments. This will split at the first 44172 # space. 44173 complete="$NM" 44174 path="${complete%% *}" 44175 tmp="$complete EOL" 44176 arguments="${tmp#* }" 44177 44178 # Input might be given as Windows format, start by converting to 44179 # unix format. 44180 new_path=`$CYGPATH -u "$path"` 44181 44182 # Now try to locate executable using which 44183 new_path=`$WHICH "$new_path" 2> /dev/null` 44184 # bat and cmd files are not always considered executable in cygwin causing which 44185 # to not find them 44186 if test "x$new_path" = x \ 44187 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44188 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44189 new_path=`$CYGPATH -u "$path"` 44190 fi 44191 if test "x$new_path" = x; then 44192 # Oops. Which didn't find the executable. 44193 # The splitting of arguments from the executable at a space might have been incorrect, 44194 # since paths with space are more likely in Windows. Give it another try with the whole 44195 # argument. 44196 path="$complete" 44197 arguments="EOL" 44198 new_path=`$CYGPATH -u "$path"` 44199 new_path=`$WHICH "$new_path" 2> /dev/null` 44200 # bat and cmd files are not always considered executable in cygwin causing which 44201 # to not find them 44202 if test "x$new_path" = x \ 44203 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44204 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44205 new_path=`$CYGPATH -u "$path"` 44206 fi 44207 if test "x$new_path" = x; then 44208 # It's still not found. Now this is an unrecoverable error. 44209 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44210 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44211 has_space=`$ECHO "$complete" | $GREP " "` 44212 if test "x$has_space" != x; then 44213 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44214 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44215 fi 44216 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44217 fi 44218 fi 44219 44220 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44221 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44222 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44223 # "foo.exe" is OK but "foo" is an error. 44224 # 44225 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44226 # It is also a way to make sure we got the proper file name for the real test later on. 44227 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44228 if test "x$test_shortpath" = x; then 44229 # Short path failed, file does not exist as specified. 44230 # Try adding .exe or .cmd 44231 if test -f "${new_path}.exe"; then 44232 input_to_shortpath="${new_path}.exe" 44233 elif test -f "${new_path}.cmd"; then 44234 input_to_shortpath="${new_path}.cmd" 44235 else 44236 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 44237 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 44238 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44239 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44240 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44241 fi 44242 else 44243 input_to_shortpath="$new_path" 44244 fi 44245 44246 # Call helper function which possibly converts this using DOS-style short mode. 44247 # If so, the updated path is stored in $new_path. 44248 new_path="$input_to_shortpath" 44249 44250 input_path="$input_to_shortpath" 44251 # Check if we need to convert this using DOS-style short mode. If the path 44252 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44253 # take no chances and rewrite it. 44254 # Note: m4 eats our [], so we need to use [ and ] instead. 44255 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44256 if test "x$has_forbidden_chars" != x; then 44257 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44258 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44259 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44260 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44261 # Going to short mode and back again did indeed matter. Since short mode is 44262 # case insensitive, let's make it lowercase to improve readability. 44263 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44264 # Now convert it back to Unix-style (cygpath) 44265 input_path=`$CYGPATH -u "$shortmode_path"` 44266 new_path="$input_path" 44267 fi 44268 fi 44269 44270 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44271 if test "x$test_cygdrive_prefix" = x; then 44272 # As a simple fix, exclude /usr/bin since it's not a real path. 44273 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44274 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44275 # a path prefixed by /cygdrive for fixpath to work. 44276 new_path="$CYGWIN_ROOT_PATH$input_path" 44277 fi 44278 fi 44279 44280 # remove trailing .exe if any 44281 new_path="${new_path/%.exe/}" 44282 44283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44284 44285 # First separate the path from the arguments. This will split at the first 44286 # space. 44287 complete="$NM" 44288 path="${complete%% *}" 44289 tmp="$complete EOL" 44290 arguments="${tmp#* }" 44291 44292 # Input might be given as Windows format, start by converting to 44293 # unix format. 44294 new_path="$path" 44295 44296 windows_path="$new_path" 44297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44298 unix_path=`$CYGPATH -u "$windows_path"` 44299 new_path="$unix_path" 44300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44301 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44302 new_path="$unix_path" 44303 fi 44304 44305 44306 # Now try to locate executable using which 44307 new_path=`$WHICH "$new_path" 2> /dev/null` 44308 44309 if test "x$new_path" = x; then 44310 # Oops. Which didn't find the executable. 44311 # The splitting of arguments from the executable at a space might have been incorrect, 44312 # since paths with space are more likely in Windows. Give it another try with the whole 44313 # argument. 44314 path="$complete" 44315 arguments="EOL" 44316 new_path="$path" 44317 44318 windows_path="$new_path" 44319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44320 unix_path=`$CYGPATH -u "$windows_path"` 44321 new_path="$unix_path" 44322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44323 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44324 new_path="$unix_path" 44325 fi 44326 44327 44328 new_path=`$WHICH "$new_path" 2> /dev/null` 44329 # bat and cmd files are not always considered executable in MSYS causing which 44330 # to not find them 44331 if test "x$new_path" = x \ 44332 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44333 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44334 new_path="$path" 44335 44336 windows_path="$new_path" 44337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44338 unix_path=`$CYGPATH -u "$windows_path"` 44339 new_path="$unix_path" 44340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44341 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44342 new_path="$unix_path" 44343 fi 44344 44345 fi 44346 44347 if test "x$new_path" = x; then 44348 # It's still not found. Now this is an unrecoverable error. 44349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44350 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44351 has_space=`$ECHO "$complete" | $GREP " "` 44352 if test "x$has_space" != x; then 44353 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44354 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44355 fi 44356 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44357 fi 44358 fi 44359 44360 # Now new_path has a complete unix path to the binary 44361 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44362 # Keep paths in /bin as-is, but remove trailing .exe if any 44363 new_path="${new_path/%.exe/}" 44364 # Do not save /bin paths to all_fixpath_prefixes! 44365 else 44366 # Not in mixed or Windows style, start by that. 44367 new_path=`cmd //c echo $new_path` 44368 44369 input_path="$new_path" 44370 # Check if we need to convert this using DOS-style short mode. If the path 44371 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44372 # take no chances and rewrite it. 44373 # Note: m4 eats our [], so we need to use [ and ] instead. 44374 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44375 if test "x$has_forbidden_chars" != x; then 44376 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44377 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44378 fi 44379 44380 # Output is in $new_path 44381 44382 windows_path="$new_path" 44383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44384 unix_path=`$CYGPATH -u "$windows_path"` 44385 new_path="$unix_path" 44386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44387 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44388 new_path="$unix_path" 44389 fi 44390 44391 # remove trailing .exe if any 44392 new_path="${new_path/%.exe/}" 44393 44394 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44395 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44396 fi 44397 44398 else 44399 # We're on a unix platform. Hooray! :) 44400 # First separate the path from the arguments. This will split at the first 44401 # space. 44402 complete="$NM" 44403 path="${complete%% *}" 44404 tmp="$complete EOL" 44405 arguments="${tmp#* }" 44406 44407 # Cannot rely on the command "which" here since it doesn't always work. 44408 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44409 if test -z "$is_absolute_path"; then 44410 # Path to executable is not absolute. Find it. 44411 IFS_save="$IFS" 44412 IFS=: 44413 for p in $PATH; do 44414 if test -f "$p/$path" && test -x "$p/$path"; then 44415 new_path="$p/$path" 44416 break 44417 fi 44418 done 44419 IFS="$IFS_save" 44420 else 44421 # This is an absolute path, we can use it without further modifications. 44422 new_path="$path" 44423 fi 44424 44425 if test "x$new_path" = x; then 44426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44427 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44428 has_space=`$ECHO "$complete" | $GREP " "` 44429 if test "x$has_space" != x; then 44430 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44431 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44432 fi 44433 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44434 fi 44435 fi 44436 44437 # Now join together the path and the arguments once again 44438 if test "x$arguments" != xEOL; then 44439 new_complete="$new_path ${arguments% *}" 44440 else 44441 new_complete="$new_path" 44442 fi 44443 44444 if test "x$complete" != "x$new_complete"; then 44445 NM="$new_complete" 44446 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 44447 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 44448 fi 44449 fi 44450 44451 GNM="$NM" 44452 44453 fi 44454 44455 # objcopy is used for moving debug symbols to separate files when 44456 # full debug symbols are enabled. 44457 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 44458 44459 44460 # Publish this variable in the help. 44461 44462 44463 if [ -z "${OBJCOPY+x}" ]; then 44464 # The variable is not set by user, try to locate tool using the code snippet 44465 if test -n "$ac_tool_prefix"; then 44466 for ac_prog in gobjcopy objcopy 44467 do 44468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44471 $as_echo_n "checking for $ac_word... " >&6; } 44472 if ${ac_cv_prog_OBJCOPY+:} false; then : 44473 $as_echo_n "(cached) " >&6 44474 else 44475 if test -n "$OBJCOPY"; then 44476 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 44477 else 44478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44479 for as_dir in $PATH 44480 do 44481 IFS=$as_save_IFS 44482 test -z "$as_dir" && as_dir=. 44483 for ac_exec_ext in '' $ac_executable_extensions; do 44484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44485 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 44486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44487 break 2 44488 fi 44489 done 44490 done 44491 IFS=$as_save_IFS 44492 44493 fi 44494 fi 44495 OBJCOPY=$ac_cv_prog_OBJCOPY 44496 if test -n "$OBJCOPY"; then 44497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44498 $as_echo "$OBJCOPY" >&6; } 44499 else 44500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44501 $as_echo "no" >&6; } 44502 fi 44503 44504 44505 test -n "$OBJCOPY" && break 44506 done 44507 fi 44508 if test -z "$OBJCOPY"; then 44509 ac_ct_OBJCOPY=$OBJCOPY 44510 for ac_prog in gobjcopy objcopy 44511 do 44512 # Extract the first word of "$ac_prog", so it can be a program name with args. 44513 set dummy $ac_prog; ac_word=$2 44514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44515 $as_echo_n "checking for $ac_word... " >&6; } 44516 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 44517 $as_echo_n "(cached) " >&6 44518 else 44519 if test -n "$ac_ct_OBJCOPY"; then 44520 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 44521 else 44522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44523 for as_dir in $PATH 44524 do 44525 IFS=$as_save_IFS 44526 test -z "$as_dir" && as_dir=. 44527 for ac_exec_ext in '' $ac_executable_extensions; do 44528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44529 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 44530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44531 break 2 44532 fi 44533 done 44534 done 44535 IFS=$as_save_IFS 44536 44537 fi 44538 fi 44539 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 44540 if test -n "$ac_ct_OBJCOPY"; then 44541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 44542 $as_echo "$ac_ct_OBJCOPY" >&6; } 44543 else 44544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44545 $as_echo "no" >&6; } 44546 fi 44547 44548 44549 test -n "$ac_ct_OBJCOPY" && break 44550 done 44551 44552 if test "x$ac_ct_OBJCOPY" = x; then 44553 OBJCOPY="" 44554 else 44555 case $cross_compiling:$ac_tool_warned in 44556 yes:) 44557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44559 ac_tool_warned=yes ;; 44560 esac 44561 OBJCOPY=$ac_ct_OBJCOPY 44562 fi 44563 fi 44564 44565 else 44566 # The variable is set, but is it from the command line or the environment? 44567 44568 # Try to remove the string !OBJCOPY! from our list. 44569 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 44570 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44571 # If it failed, the variable was not from the command line. Ignore it, 44572 # but warn the user (except for BASH, which is always set by the calling BASH). 44573 if test "xOBJCOPY" != xBASH; then 44574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 44575 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 44576 fi 44577 # Try to locate tool using the code snippet 44578 if test -n "$ac_tool_prefix"; then 44579 for ac_prog in gobjcopy objcopy 44580 do 44581 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44584 $as_echo_n "checking for $ac_word... " >&6; } 44585 if ${ac_cv_prog_OBJCOPY+:} false; then : 44586 $as_echo_n "(cached) " >&6 44587 else 44588 if test -n "$OBJCOPY"; then 44589 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 44590 else 44591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44592 for as_dir in $PATH 44593 do 44594 IFS=$as_save_IFS 44595 test -z "$as_dir" && as_dir=. 44596 for ac_exec_ext in '' $ac_executable_extensions; do 44597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44598 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 44599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44600 break 2 44601 fi 44602 done 44603 done 44604 IFS=$as_save_IFS 44605 44606 fi 44607 fi 44608 OBJCOPY=$ac_cv_prog_OBJCOPY 44609 if test -n "$OBJCOPY"; then 44610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44611 $as_echo "$OBJCOPY" >&6; } 44612 else 44613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44614 $as_echo "no" >&6; } 44615 fi 44616 44617 44618 test -n "$OBJCOPY" && break 44619 done 44620 fi 44621 if test -z "$OBJCOPY"; then 44622 ac_ct_OBJCOPY=$OBJCOPY 44623 for ac_prog in gobjcopy objcopy 44624 do 44625 # Extract the first word of "$ac_prog", so it can be a program name with args. 44626 set dummy $ac_prog; ac_word=$2 44627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44628 $as_echo_n "checking for $ac_word... " >&6; } 44629 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 44630 $as_echo_n "(cached) " >&6 44631 else 44632 if test -n "$ac_ct_OBJCOPY"; then 44633 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 44634 else 44635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44636 for as_dir in $PATH 44637 do 44638 IFS=$as_save_IFS 44639 test -z "$as_dir" && as_dir=. 44640 for ac_exec_ext in '' $ac_executable_extensions; do 44641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44642 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 44643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44644 break 2 44645 fi 44646 done 44647 done 44648 IFS=$as_save_IFS 44649 44650 fi 44651 fi 44652 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 44653 if test -n "$ac_ct_OBJCOPY"; then 44654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 44655 $as_echo "$ac_ct_OBJCOPY" >&6; } 44656 else 44657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44658 $as_echo "no" >&6; } 44659 fi 44660 44661 44662 test -n "$ac_ct_OBJCOPY" && break 44663 done 44664 44665 if test "x$ac_ct_OBJCOPY" = x; then 44666 OBJCOPY="" 44667 else 44668 case $cross_compiling:$ac_tool_warned in 44669 yes:) 44670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44672 ac_tool_warned=yes ;; 44673 esac 44674 OBJCOPY=$ac_ct_OBJCOPY 44675 fi 44676 fi 44677 44678 else 44679 # If it succeeded, then it was overridden by the user. We will use it 44680 # for the tool. 44681 44682 # First remove it from the list of overridden variables, so we can test 44683 # for unknown variables in the end. 44684 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44685 44686 # Check if we try to supply an empty value 44687 if test "x$OBJCOPY" = x; then 44688 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 44689 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 44690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 44691 $as_echo_n "checking for OBJCOPY... " >&6; } 44692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44693 $as_echo "disabled" >&6; } 44694 else 44695 # Check if the provided tool contains a complete path. 44696 tool_specified="$OBJCOPY" 44697 tool_basename="${tool_specified##*/}" 44698 if test "x$tool_basename" = "x$tool_specified"; then 44699 # A command without a complete path is provided, search $PATH. 44700 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 44701 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 44702 # Extract the first word of "$tool_basename", so it can be a program name with args. 44703 set dummy $tool_basename; ac_word=$2 44704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44705 $as_echo_n "checking for $ac_word... " >&6; } 44706 if ${ac_cv_path_OBJCOPY+:} false; then : 44707 $as_echo_n "(cached) " >&6 44708 else 44709 case $OBJCOPY in 44710 [\\/]* | ?:[\\/]*) 44711 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 44712 ;; 44713 *) 44714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44715 for as_dir in $PATH 44716 do 44717 IFS=$as_save_IFS 44718 test -z "$as_dir" && as_dir=. 44719 for ac_exec_ext in '' $ac_executable_extensions; do 44720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44721 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 44722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44723 break 2 44724 fi 44725 done 44726 done 44727 IFS=$as_save_IFS 44728 44729 ;; 44730 esac 44731 fi 44732 OBJCOPY=$ac_cv_path_OBJCOPY 44733 if test -n "$OBJCOPY"; then 44734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44735 $as_echo "$OBJCOPY" >&6; } 44736 else 44737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44738 $as_echo "no" >&6; } 44739 fi 44740 44741 44742 if test "x$OBJCOPY" = x; then 44743 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44744 fi 44745 else 44746 # Otherwise we believe it is a complete path. Use it as it is. 44747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 44748 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 44749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 44750 $as_echo_n "checking for OBJCOPY... " >&6; } 44751 if test ! -x "$tool_specified"; then 44752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44753 $as_echo "not found" >&6; } 44754 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 44755 fi 44756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44757 $as_echo "$tool_specified" >&6; } 44758 fi 44759 fi 44760 fi 44761 44762 fi 44763 44764 44765 # Only call fixup if objcopy was found. 44766 if test -n "$OBJCOPY"; then 44767 44768 # Only process if variable expands to non-empty 44769 44770 if test "x$OBJCOPY" != x; then 44771 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44772 44773 # First separate the path from the arguments. This will split at the first 44774 # space. 44775 complete="$OBJCOPY" 44776 path="${complete%% *}" 44777 tmp="$complete EOL" 44778 arguments="${tmp#* }" 44779 44780 # Input might be given as Windows format, start by converting to 44781 # unix format. 44782 new_path=`$CYGPATH -u "$path"` 44783 44784 # Now try to locate executable using which 44785 new_path=`$WHICH "$new_path" 2> /dev/null` 44786 # bat and cmd files are not always considered executable in cygwin causing which 44787 # to not find them 44788 if test "x$new_path" = x \ 44789 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44790 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44791 new_path=`$CYGPATH -u "$path"` 44792 fi 44793 if test "x$new_path" = x; then 44794 # Oops. Which didn't find the executable. 44795 # The splitting of arguments from the executable at a space might have been incorrect, 44796 # since paths with space are more likely in Windows. Give it another try with the whole 44797 # argument. 44798 path="$complete" 44799 arguments="EOL" 44800 new_path=`$CYGPATH -u "$path"` 44801 new_path=`$WHICH "$new_path" 2> /dev/null` 44802 # bat and cmd files are not always considered executable in cygwin causing which 44803 # to not find them 44804 if test "x$new_path" = x \ 44805 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44806 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44807 new_path=`$CYGPATH -u "$path"` 44808 fi 44809 if test "x$new_path" = x; then 44810 # It's still not found. Now this is an unrecoverable error. 44811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44812 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44813 has_space=`$ECHO "$complete" | $GREP " "` 44814 if test "x$has_space" != x; then 44815 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44816 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44817 fi 44818 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44819 fi 44820 fi 44821 44822 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44823 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44824 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44825 # "foo.exe" is OK but "foo" is an error. 44826 # 44827 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44828 # It is also a way to make sure we got the proper file name for the real test later on. 44829 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44830 if test "x$test_shortpath" = x; then 44831 # Short path failed, file does not exist as specified. 44832 # Try adding .exe or .cmd 44833 if test -f "${new_path}.exe"; then 44834 input_to_shortpath="${new_path}.exe" 44835 elif test -f "${new_path}.cmd"; then 44836 input_to_shortpath="${new_path}.cmd" 44837 else 44838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 44839 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 44840 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44841 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44842 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44843 fi 44844 else 44845 input_to_shortpath="$new_path" 44846 fi 44847 44848 # Call helper function which possibly converts this using DOS-style short mode. 44849 # If so, the updated path is stored in $new_path. 44850 new_path="$input_to_shortpath" 44851 44852 input_path="$input_to_shortpath" 44853 # Check if we need to convert this using DOS-style short mode. If the path 44854 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44855 # take no chances and rewrite it. 44856 # Note: m4 eats our [], so we need to use [ and ] instead. 44857 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44858 if test "x$has_forbidden_chars" != x; then 44859 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44860 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44861 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44862 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44863 # Going to short mode and back again did indeed matter. Since short mode is 44864 # case insensitive, let's make it lowercase to improve readability. 44865 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44866 # Now convert it back to Unix-style (cygpath) 44867 input_path=`$CYGPATH -u "$shortmode_path"` 44868 new_path="$input_path" 44869 fi 44870 fi 44871 44872 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44873 if test "x$test_cygdrive_prefix" = x; then 44874 # As a simple fix, exclude /usr/bin since it's not a real path. 44875 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44876 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44877 # a path prefixed by /cygdrive for fixpath to work. 44878 new_path="$CYGWIN_ROOT_PATH$input_path" 44879 fi 44880 fi 44881 44882 # remove trailing .exe if any 44883 new_path="${new_path/%.exe/}" 44884 44885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44886 44887 # First separate the path from the arguments. This will split at the first 44888 # space. 44889 complete="$OBJCOPY" 44890 path="${complete%% *}" 44891 tmp="$complete EOL" 44892 arguments="${tmp#* }" 44893 44894 # Input might be given as Windows format, start by converting to 44895 # unix format. 44896 new_path="$path" 44897 44898 windows_path="$new_path" 44899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44900 unix_path=`$CYGPATH -u "$windows_path"` 44901 new_path="$unix_path" 44902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44903 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44904 new_path="$unix_path" 44905 fi 44906 44907 44908 # Now try to locate executable using which 44909 new_path=`$WHICH "$new_path" 2> /dev/null` 44910 44911 if test "x$new_path" = x; then 44912 # Oops. Which didn't find the executable. 44913 # The splitting of arguments from the executable at a space might have been incorrect, 44914 # since paths with space are more likely in Windows. Give it another try with the whole 44915 # argument. 44916 path="$complete" 44917 arguments="EOL" 44918 new_path="$path" 44919 44920 windows_path="$new_path" 44921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44922 unix_path=`$CYGPATH -u "$windows_path"` 44923 new_path="$unix_path" 44924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44925 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44926 new_path="$unix_path" 44927 fi 44928 44929 44930 new_path=`$WHICH "$new_path" 2> /dev/null` 44931 # bat and cmd files are not always considered executable in MSYS causing which 44932 # to not find them 44933 if test "x$new_path" = x \ 44934 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44935 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44936 new_path="$path" 44937 44938 windows_path="$new_path" 44939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44940 unix_path=`$CYGPATH -u "$windows_path"` 44941 new_path="$unix_path" 44942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44943 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44944 new_path="$unix_path" 44945 fi 44946 44947 fi 44948 44949 if test "x$new_path" = x; then 44950 # It's still not found. Now this is an unrecoverable error. 44951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44952 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44953 has_space=`$ECHO "$complete" | $GREP " "` 44954 if test "x$has_space" != x; then 44955 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44956 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44957 fi 44958 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44959 fi 44960 fi 44961 44962 # Now new_path has a complete unix path to the binary 44963 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44964 # Keep paths in /bin as-is, but remove trailing .exe if any 44965 new_path="${new_path/%.exe/}" 44966 # Do not save /bin paths to all_fixpath_prefixes! 44967 else 44968 # Not in mixed or Windows style, start by that. 44969 new_path=`cmd //c echo $new_path` 44970 44971 input_path="$new_path" 44972 # Check if we need to convert this using DOS-style short mode. If the path 44973 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44974 # take no chances and rewrite it. 44975 # Note: m4 eats our [], so we need to use [ and ] instead. 44976 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44977 if test "x$has_forbidden_chars" != x; then 44978 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44979 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44980 fi 44981 44982 # Output is in $new_path 44983 44984 windows_path="$new_path" 44985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44986 unix_path=`$CYGPATH -u "$windows_path"` 44987 new_path="$unix_path" 44988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44989 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44990 new_path="$unix_path" 44991 fi 44992 44993 # remove trailing .exe if any 44994 new_path="${new_path/%.exe/}" 44995 44996 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44997 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44998 fi 44999 45000 else 45001 # We're on a unix platform. Hooray! :) 45002 # First separate the path from the arguments. This will split at the first 45003 # space. 45004 complete="$OBJCOPY" 45005 path="${complete%% *}" 45006 tmp="$complete EOL" 45007 arguments="${tmp#* }" 45008 45009 # Cannot rely on the command "which" here since it doesn't always work. 45010 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45011 if test -z "$is_absolute_path"; then 45012 # Path to executable is not absolute. Find it. 45013 IFS_save="$IFS" 45014 IFS=: 45015 for p in $PATH; do 45016 if test -f "$p/$path" && test -x "$p/$path"; then 45017 new_path="$p/$path" 45018 break 45019 fi 45020 done 45021 IFS="$IFS_save" 45022 else 45023 # This is an absolute path, we can use it without further modifications. 45024 new_path="$path" 45025 fi 45026 45027 if test "x$new_path" = x; then 45028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 45029 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 45030 has_space=`$ECHO "$complete" | $GREP " "` 45031 if test "x$has_space" != x; then 45032 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45033 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45034 fi 45035 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 45036 fi 45037 fi 45038 45039 # Now join together the path and the arguments once again 45040 if test "x$arguments" != xEOL; then 45041 new_complete="$new_path ${arguments% *}" 45042 else 45043 new_complete="$new_path" 45044 fi 45045 45046 if test "x$complete" != "x$new_complete"; then 45047 OBJCOPY="$new_complete" 45048 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 45049 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 45050 fi 45051 fi 45052 45053 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 45054 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 45055 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 45056 # - version number is last blank separate word on first line 45057 # - version number formats that have been seen: 45058 # - <major>.<minor> 45059 # - <major>.<minor>.<micro> 45060 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 45061 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 45062 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 45063 -e 's/.* //' \ 45064 -e '/^[01]\./b bad' \ 45065 -e '/^2\./{' \ 45066 -e ' s/^2\.//' \ 45067 -e ' /^[0-9]$/b bad' \ 45068 -e ' /^[0-9]\./b bad' \ 45069 -e ' /^1[0-9]$/b bad' \ 45070 -e ' /^1[0-9]\./b bad' \ 45071 -e ' /^20\./b bad' \ 45072 -e ' /^21\.0$/b bad' \ 45073 -e ' /^21\.0\./b bad' \ 45074 -e '}' \ 45075 -e ':good' \ 45076 -e 's/.*/VALID_VERSION/p' \ 45077 -e 'q' \ 45078 -e ':bad' \ 45079 -e 's/.*/BAD_VERSION/p' \ 45080 -e 'q'` 45081 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 45082 OBJCOPY= 45083 { $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 45084 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 45085 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 45086 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 45087 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 45088 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 45089 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 45090 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 45091 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 45092 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 45093 fi 45094 fi 45095 fi 45096 fi 45097 45098 45099 45100 # Publish this variable in the help. 45101 45102 45103 if [ -z "${OBJDUMP+x}" ]; then 45104 # The variable is not set by user, try to locate tool using the code snippet 45105 if test -n "$ac_tool_prefix"; then 45106 for ac_prog in gobjdump objdump 45107 do 45108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 45109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 45110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45111 $as_echo_n "checking for $ac_word... " >&6; } 45112 if ${ac_cv_prog_OBJDUMP+:} false; then : 45113 $as_echo_n "(cached) " >&6 45114 else 45115 if test -n "$OBJDUMP"; then 45116 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 45117 else 45118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45119 for as_dir in $PATH 45120 do 45121 IFS=$as_save_IFS 45122 test -z "$as_dir" && as_dir=. 45123 for ac_exec_ext in '' $ac_executable_extensions; do 45124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45125 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 45126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45127 break 2 45128 fi 45129 done 45130 done 45131 IFS=$as_save_IFS 45132 45133 fi 45134 fi 45135 OBJDUMP=$ac_cv_prog_OBJDUMP 45136 if test -n "$OBJDUMP"; then 45137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45138 $as_echo "$OBJDUMP" >&6; } 45139 else 45140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45141 $as_echo "no" >&6; } 45142 fi 45143 45144 45145 test -n "$OBJDUMP" && break 45146 done 45147 fi 45148 if test -z "$OBJDUMP"; then 45149 ac_ct_OBJDUMP=$OBJDUMP 45150 for ac_prog in gobjdump objdump 45151 do 45152 # Extract the first word of "$ac_prog", so it can be a program name with args. 45153 set dummy $ac_prog; 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_prog_ac_ct_OBJDUMP+:} false; then : 45157 $as_echo_n "(cached) " >&6 45158 else 45159 if test -n "$ac_ct_OBJDUMP"; then 45160 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 45161 else 45162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45163 for as_dir in $PATH 45164 do 45165 IFS=$as_save_IFS 45166 test -z "$as_dir" && as_dir=. 45167 for ac_exec_ext in '' $ac_executable_extensions; do 45168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45169 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 45170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45171 break 2 45172 fi 45173 done 45174 done 45175 IFS=$as_save_IFS 45176 45177 fi 45178 fi 45179 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 45180 if test -n "$ac_ct_OBJDUMP"; then 45181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 45182 $as_echo "$ac_ct_OBJDUMP" >&6; } 45183 else 45184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45185 $as_echo "no" >&6; } 45186 fi 45187 45188 45189 test -n "$ac_ct_OBJDUMP" && break 45190 done 45191 45192 if test "x$ac_ct_OBJDUMP" = x; then 45193 OBJDUMP="" 45194 else 45195 case $cross_compiling:$ac_tool_warned in 45196 yes:) 45197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45199 ac_tool_warned=yes ;; 45200 esac 45201 OBJDUMP=$ac_ct_OBJDUMP 45202 fi 45203 fi 45204 45205 else 45206 # The variable is set, but is it from the command line or the environment? 45207 45208 # Try to remove the string !OBJDUMP! from our list. 45209 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 45210 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45211 # If it failed, the variable was not from the command line. Ignore it, 45212 # but warn the user (except for BASH, which is always set by the calling BASH). 45213 if test "xOBJDUMP" != xBASH; then 45214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 45215 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 45216 fi 45217 # Try to locate tool using the code snippet 45218 if test -n "$ac_tool_prefix"; then 45219 for ac_prog in gobjdump objdump 45220 do 45221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 45222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 45223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45224 $as_echo_n "checking for $ac_word... " >&6; } 45225 if ${ac_cv_prog_OBJDUMP+:} false; then : 45226 $as_echo_n "(cached) " >&6 45227 else 45228 if test -n "$OBJDUMP"; then 45229 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 45230 else 45231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45232 for as_dir in $PATH 45233 do 45234 IFS=$as_save_IFS 45235 test -z "$as_dir" && as_dir=. 45236 for ac_exec_ext in '' $ac_executable_extensions; do 45237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45238 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 45239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45240 break 2 45241 fi 45242 done 45243 done 45244 IFS=$as_save_IFS 45245 45246 fi 45247 fi 45248 OBJDUMP=$ac_cv_prog_OBJDUMP 45249 if test -n "$OBJDUMP"; then 45250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45251 $as_echo "$OBJDUMP" >&6; } 45252 else 45253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45254 $as_echo "no" >&6; } 45255 fi 45256 45257 45258 test -n "$OBJDUMP" && break 45259 done 45260 fi 45261 if test -z "$OBJDUMP"; then 45262 ac_ct_OBJDUMP=$OBJDUMP 45263 for ac_prog in gobjdump objdump 45264 do 45265 # Extract the first word of "$ac_prog", so it can be a program name with args. 45266 set dummy $ac_prog; ac_word=$2 45267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45268 $as_echo_n "checking for $ac_word... " >&6; } 45269 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 45270 $as_echo_n "(cached) " >&6 45271 else 45272 if test -n "$ac_ct_OBJDUMP"; then 45273 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 45274 else 45275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45276 for as_dir in $PATH 45277 do 45278 IFS=$as_save_IFS 45279 test -z "$as_dir" && as_dir=. 45280 for ac_exec_ext in '' $ac_executable_extensions; do 45281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45282 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 45283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45284 break 2 45285 fi 45286 done 45287 done 45288 IFS=$as_save_IFS 45289 45290 fi 45291 fi 45292 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 45293 if test -n "$ac_ct_OBJDUMP"; then 45294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 45295 $as_echo "$ac_ct_OBJDUMP" >&6; } 45296 else 45297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45298 $as_echo "no" >&6; } 45299 fi 45300 45301 45302 test -n "$ac_ct_OBJDUMP" && break 45303 done 45304 45305 if test "x$ac_ct_OBJDUMP" = x; then 45306 OBJDUMP="" 45307 else 45308 case $cross_compiling:$ac_tool_warned in 45309 yes:) 45310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45312 ac_tool_warned=yes ;; 45313 esac 45314 OBJDUMP=$ac_ct_OBJDUMP 45315 fi 45316 fi 45317 45318 else 45319 # If it succeeded, then it was overridden by the user. We will use it 45320 # for the tool. 45321 45322 # First remove it from the list of overridden variables, so we can test 45323 # for unknown variables in the end. 45324 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45325 45326 # Check if we try to supply an empty value 45327 if test "x$OBJDUMP" = x; then 45328 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 45329 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 45330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 45331 $as_echo_n "checking for OBJDUMP... " >&6; } 45332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45333 $as_echo "disabled" >&6; } 45334 else 45335 # Check if the provided tool contains a complete path. 45336 tool_specified="$OBJDUMP" 45337 tool_basename="${tool_specified##*/}" 45338 if test "x$tool_basename" = "x$tool_specified"; then 45339 # A command without a complete path is provided, search $PATH. 45340 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 45341 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 45342 # Extract the first word of "$tool_basename", so it can be a program name with args. 45343 set dummy $tool_basename; ac_word=$2 45344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45345 $as_echo_n "checking for $ac_word... " >&6; } 45346 if ${ac_cv_path_OBJDUMP+:} false; then : 45347 $as_echo_n "(cached) " >&6 45348 else 45349 case $OBJDUMP in 45350 [\\/]* | ?:[\\/]*) 45351 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 45352 ;; 45353 *) 45354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45355 for as_dir in $PATH 45356 do 45357 IFS=$as_save_IFS 45358 test -z "$as_dir" && as_dir=. 45359 for ac_exec_ext in '' $ac_executable_extensions; do 45360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45361 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 45362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45363 break 2 45364 fi 45365 done 45366 done 45367 IFS=$as_save_IFS 45368 45369 ;; 45370 esac 45371 fi 45372 OBJDUMP=$ac_cv_path_OBJDUMP 45373 if test -n "$OBJDUMP"; then 45374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45375 $as_echo "$OBJDUMP" >&6; } 45376 else 45377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45378 $as_echo "no" >&6; } 45379 fi 45380 45381 45382 if test "x$OBJDUMP" = x; then 45383 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45384 fi 45385 else 45386 # Otherwise we believe it is a complete path. Use it as it is. 45387 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 45388 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 45389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 45390 $as_echo_n "checking for OBJDUMP... " >&6; } 45391 if test ! -x "$tool_specified"; then 45392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45393 $as_echo "not found" >&6; } 45394 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 45395 fi 45396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45397 $as_echo "$tool_specified" >&6; } 45398 fi 45399 fi 45400 fi 45401 45402 fi 45403 45404 45405 if test "x$OBJDUMP" != x; then 45406 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 45407 # bails if argument is missing. 45408 45409 # Only process if variable expands to non-empty 45410 45411 if test "x$OBJDUMP" != x; then 45412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45413 45414 # First separate the path from the arguments. This will split at the first 45415 # space. 45416 complete="$OBJDUMP" 45417 path="${complete%% *}" 45418 tmp="$complete EOL" 45419 arguments="${tmp#* }" 45420 45421 # Input might be given as Windows format, start by converting to 45422 # unix format. 45423 new_path=`$CYGPATH -u "$path"` 45424 45425 # Now try to locate executable using which 45426 new_path=`$WHICH "$new_path" 2> /dev/null` 45427 # bat and cmd files are not always considered executable in cygwin causing which 45428 # to not find them 45429 if test "x$new_path" = x \ 45430 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45431 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45432 new_path=`$CYGPATH -u "$path"` 45433 fi 45434 if test "x$new_path" = x; then 45435 # Oops. Which didn't find the executable. 45436 # The splitting of arguments from the executable at a space might have been incorrect, 45437 # since paths with space are more likely in Windows. Give it another try with the whole 45438 # argument. 45439 path="$complete" 45440 arguments="EOL" 45441 new_path=`$CYGPATH -u "$path"` 45442 new_path=`$WHICH "$new_path" 2> /dev/null` 45443 # bat and cmd files are not always considered executable in cygwin causing which 45444 # to not find them 45445 if test "x$new_path" = x \ 45446 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45447 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45448 new_path=`$CYGPATH -u "$path"` 45449 fi 45450 if test "x$new_path" = x; then 45451 # It's still not found. Now this is an unrecoverable error. 45452 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45453 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45454 has_space=`$ECHO "$complete" | $GREP " "` 45455 if test "x$has_space" != x; then 45456 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45457 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45458 fi 45459 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45460 fi 45461 fi 45462 45463 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45464 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45465 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45466 # "foo.exe" is OK but "foo" is an error. 45467 # 45468 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45469 # It is also a way to make sure we got the proper file name for the real test later on. 45470 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45471 if test "x$test_shortpath" = x; then 45472 # Short path failed, file does not exist as specified. 45473 # Try adding .exe or .cmd 45474 if test -f "${new_path}.exe"; then 45475 input_to_shortpath="${new_path}.exe" 45476 elif test -f "${new_path}.cmd"; then 45477 input_to_shortpath="${new_path}.cmd" 45478 else 45479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 45480 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 45481 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45482 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45483 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45484 fi 45485 else 45486 input_to_shortpath="$new_path" 45487 fi 45488 45489 # Call helper function which possibly converts this using DOS-style short mode. 45490 # If so, the updated path is stored in $new_path. 45491 new_path="$input_to_shortpath" 45492 45493 input_path="$input_to_shortpath" 45494 # Check if we need to convert this using DOS-style short mode. If the path 45495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45496 # take no chances and rewrite it. 45497 # Note: m4 eats our [], so we need to use [ and ] instead. 45498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45499 if test "x$has_forbidden_chars" != x; then 45500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45501 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45502 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45503 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45504 # Going to short mode and back again did indeed matter. Since short mode is 45505 # case insensitive, let's make it lowercase to improve readability. 45506 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45507 # Now convert it back to Unix-style (cygpath) 45508 input_path=`$CYGPATH -u "$shortmode_path"` 45509 new_path="$input_path" 45510 fi 45511 fi 45512 45513 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45514 if test "x$test_cygdrive_prefix" = x; then 45515 # As a simple fix, exclude /usr/bin since it's not a real path. 45516 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45517 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45518 # a path prefixed by /cygdrive for fixpath to work. 45519 new_path="$CYGWIN_ROOT_PATH$input_path" 45520 fi 45521 fi 45522 45523 # remove trailing .exe if any 45524 new_path="${new_path/%.exe/}" 45525 45526 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45527 45528 # First separate the path from the arguments. This will split at the first 45529 # space. 45530 complete="$OBJDUMP" 45531 path="${complete%% *}" 45532 tmp="$complete EOL" 45533 arguments="${tmp#* }" 45534 45535 # Input might be given as Windows format, start by converting to 45536 # unix format. 45537 new_path="$path" 45538 45539 windows_path="$new_path" 45540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45541 unix_path=`$CYGPATH -u "$windows_path"` 45542 new_path="$unix_path" 45543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45545 new_path="$unix_path" 45546 fi 45547 45548 45549 # Now try to locate executable using which 45550 new_path=`$WHICH "$new_path" 2> /dev/null` 45551 45552 if test "x$new_path" = x; then 45553 # Oops. Which didn't find the executable. 45554 # The splitting of arguments from the executable at a space might have been incorrect, 45555 # since paths with space are more likely in Windows. Give it another try with the whole 45556 # argument. 45557 path="$complete" 45558 arguments="EOL" 45559 new_path="$path" 45560 45561 windows_path="$new_path" 45562 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45563 unix_path=`$CYGPATH -u "$windows_path"` 45564 new_path="$unix_path" 45565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45566 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45567 new_path="$unix_path" 45568 fi 45569 45570 45571 new_path=`$WHICH "$new_path" 2> /dev/null` 45572 # bat and cmd files are not always considered executable in MSYS causing which 45573 # to not find them 45574 if test "x$new_path" = x \ 45575 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45576 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45577 new_path="$path" 45578 45579 windows_path="$new_path" 45580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45581 unix_path=`$CYGPATH -u "$windows_path"` 45582 new_path="$unix_path" 45583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45584 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45585 new_path="$unix_path" 45586 fi 45587 45588 fi 45589 45590 if test "x$new_path" = x; then 45591 # It's still not found. Now this is an unrecoverable error. 45592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45593 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45594 has_space=`$ECHO "$complete" | $GREP " "` 45595 if test "x$has_space" != x; then 45596 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45597 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45598 fi 45599 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45600 fi 45601 fi 45602 45603 # Now new_path has a complete unix path to the binary 45604 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45605 # Keep paths in /bin as-is, but remove trailing .exe if any 45606 new_path="${new_path/%.exe/}" 45607 # Do not save /bin paths to all_fixpath_prefixes! 45608 else 45609 # Not in mixed or Windows style, start by that. 45610 new_path=`cmd //c echo $new_path` 45611 45612 input_path="$new_path" 45613 # Check if we need to convert this using DOS-style short mode. If the path 45614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45615 # take no chances and rewrite it. 45616 # Note: m4 eats our [], so we need to use [ and ] instead. 45617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45618 if test "x$has_forbidden_chars" != x; then 45619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45620 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45621 fi 45622 45623 # Output is in $new_path 45624 45625 windows_path="$new_path" 45626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45627 unix_path=`$CYGPATH -u "$windows_path"` 45628 new_path="$unix_path" 45629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45630 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45631 new_path="$unix_path" 45632 fi 45633 45634 # remove trailing .exe if any 45635 new_path="${new_path/%.exe/}" 45636 45637 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45638 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45639 fi 45640 45641 else 45642 # We're on a unix platform. Hooray! :) 45643 # First separate the path from the arguments. This will split at the first 45644 # space. 45645 complete="$OBJDUMP" 45646 path="${complete%% *}" 45647 tmp="$complete EOL" 45648 arguments="${tmp#* }" 45649 45650 # Cannot rely on the command "which" here since it doesn't always work. 45651 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45652 if test -z "$is_absolute_path"; then 45653 # Path to executable is not absolute. Find it. 45654 IFS_save="$IFS" 45655 IFS=: 45656 for p in $PATH; do 45657 if test -f "$p/$path" && test -x "$p/$path"; then 45658 new_path="$p/$path" 45659 break 45660 fi 45661 done 45662 IFS="$IFS_save" 45663 else 45664 # This is an absolute path, we can use it without further modifications. 45665 new_path="$path" 45666 fi 45667 45668 if test "x$new_path" = x; then 45669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45670 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45671 has_space=`$ECHO "$complete" | $GREP " "` 45672 if test "x$has_space" != x; then 45673 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45674 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45675 fi 45676 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45677 fi 45678 fi 45679 45680 # Now join together the path and the arguments once again 45681 if test "x$arguments" != xEOL; then 45682 new_complete="$new_path ${arguments% *}" 45683 else 45684 new_complete="$new_path" 45685 fi 45686 45687 if test "x$complete" != "x$new_complete"; then 45688 OBJDUMP="$new_complete" 45689 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 45690 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 45691 fi 45692 fi 45693 45694 fi 45695 45696 45697 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 45698 # to remain in place. Otherwise the compiler will not work in some siutations 45699 # in later configure checks. 45700 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 45701 PATH="$OLD_PATH" 45702 fi 45703 45704 # Restore the flags to the user specified values. 45705 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 45706 CFLAGS="$ORG_CFLAGS" 45707 CXXFLAGS="$ORG_CXXFLAGS" 45708 45709 45710 # Finally do some processing after the detection phase 45711 45712 if test "x$COMPILE_TYPE" = "xcross"; then 45713 # Now we need to find a C/C++ compiler that can build executables for the 45714 # build platform. We can't use the AC_PROG_CC macro, since it can only be 45715 # used once. Also, we need to do this without adding a tools dir to the 45716 # path, otherwise we might pick up cross-compilers which don't use standard 45717 # naming. 45718 45719 OLDPATH="$PATH" 45720 45721 45722 # Check whether --with-build-devkit was given. 45723 if test "${with_build_devkit+set}" = set; then : 45724 withval=$with_build_devkit; 45725 fi 45726 45727 if test "x$with_build_devkit" = "xyes"; then 45728 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 45729 elif test -n "$with_build_devkit"; then 45730 if test ! -d "$with_build_devkit"; then 45731 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 45732 else 45733 45734 # Only process if variable expands to non-empty 45735 45736 if test "x$with_build_devkit" != x; then 45737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45738 45739 # Input might be given as Windows format, start by converting to 45740 # unix format. 45741 path="$with_build_devkit" 45742 new_path=`$CYGPATH -u "$path"` 45743 45744 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45745 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45746 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45747 # "foo.exe" is OK but "foo" is an error. 45748 # 45749 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45750 # It is also a way to make sure we got the proper file name for the real test later on. 45751 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45752 if test "x$test_shortpath" = x; then 45753 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 45754 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 45755 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 45756 fi 45757 45758 # Call helper function which possibly converts this using DOS-style short mode. 45759 # If so, the updated path is stored in $new_path. 45760 45761 input_path="$new_path" 45762 # Check if we need to convert this using DOS-style short mode. If the path 45763 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45764 # take no chances and rewrite it. 45765 # Note: m4 eats our [], so we need to use [ and ] instead. 45766 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45767 if test "x$has_forbidden_chars" != x; then 45768 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45769 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45770 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45771 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45772 # Going to short mode and back again did indeed matter. Since short mode is 45773 # case insensitive, let's make it lowercase to improve readability. 45774 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45775 # Now convert it back to Unix-style (cygpath) 45776 input_path=`$CYGPATH -u "$shortmode_path"` 45777 new_path="$input_path" 45778 fi 45779 fi 45780 45781 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45782 if test "x$test_cygdrive_prefix" = x; then 45783 # As a simple fix, exclude /usr/bin since it's not a real path. 45784 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45785 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45786 # a path prefixed by /cygdrive for fixpath to work. 45787 new_path="$CYGWIN_ROOT_PATH$input_path" 45788 fi 45789 fi 45790 45791 45792 if test "x$path" != "x$new_path"; then 45793 with_build_devkit="$new_path" 45794 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 45795 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 45796 fi 45797 45798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45799 45800 path="$with_build_devkit" 45801 has_colon=`$ECHO $path | $GREP ^.:` 45802 new_path="$path" 45803 if test "x$has_colon" = x; then 45804 # Not in mixed or Windows style, start by that. 45805 new_path=`cmd //c echo $path` 45806 fi 45807 45808 45809 input_path="$new_path" 45810 # Check if we need to convert this using DOS-style short mode. If the path 45811 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45812 # take no chances and rewrite it. 45813 # Note: m4 eats our [], so we need to use [ and ] instead. 45814 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45815 if test "x$has_forbidden_chars" != x; then 45816 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45817 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45818 fi 45819 45820 45821 windows_path="$new_path" 45822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45823 unix_path=`$CYGPATH -u "$windows_path"` 45824 new_path="$unix_path" 45825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45827 new_path="$unix_path" 45828 fi 45829 45830 if test "x$path" != "x$new_path"; then 45831 with_build_devkit="$new_path" 45832 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 45833 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 45834 fi 45835 45836 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45837 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45838 45839 else 45840 # We're on a unix platform. Hooray! :) 45841 path="$with_build_devkit" 45842 has_space=`$ECHO "$path" | $GREP " "` 45843 if test "x$has_space" != x; then 45844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 45845 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 45846 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45847 fi 45848 45849 # Use eval to expand a potential ~ 45850 eval path="$path" 45851 if test ! -f "$path" && test ! -d "$path"; then 45852 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 45853 fi 45854 45855 if test -d "$path"; then 45856 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 45857 else 45858 dir="`$DIRNAME "$path"`" 45859 base="`$BASENAME "$path"`" 45860 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 45861 fi 45862 fi 45863 fi 45864 45865 BUILD_DEVKIT_ROOT="$with_build_devkit" 45866 # Check for a meta data info file in the root of the devkit 45867 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 45868 # Process devkit.info so that existing devkit variables are not 45869 # modified by this 45870 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 45871 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 45872 -e "s/\$host/\$build/g" \ 45873 $BUILD_DEVKIT_ROOT/devkit.info \ 45874 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45875 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45876 # This potentially sets the following: 45877 # A descriptive name of the devkit 45878 45879 if test "x$BUILD_DEVKIT_NAME" = x; then 45880 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 45881 fi 45882 45883 # Corresponds to --with-extra-path 45884 45885 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 45886 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 45887 fi 45888 45889 # Corresponds to --with-toolchain-path 45890 45891 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45892 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 45893 fi 45894 45895 # Corresponds to --with-sysroot 45896 45897 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 45898 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 45899 fi 45900 45901 # Skip the Window specific parts 45902 fi 45903 45904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 45905 $as_echo_n "checking for build platform devkit... " >&6; } 45906 if test "x$BUILD_DEVKIT_NAME" != x; then 45907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 45908 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 45909 else 45910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 45911 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 45912 fi 45913 45914 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 45915 45916 if test "x$BUILD_SYSROOT" != "x"; then 45917 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 45918 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 45919 # Solaris Studio does not have a concept of sysroot. Instead we must 45920 # make sure the default include and lib dirs are appended to each 45921 # compile and link command line. Must also add -I-xbuiltin to enable 45922 # inlining of system functions and intrinsics. 45923 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 45924 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 45925 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 45926 fi 45927 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 45928 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 45929 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 45930 elif test "x$TOOLCHAIN_TYPE" = xclang; then 45931 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 45932 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 45933 fi 45934 # The global CFLAGS and LDFLAGS variables need these for configure to function 45935 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 45936 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 45937 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 45938 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 45939 fi 45940 45941 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 45942 # We also need -iframework<path>/System/Library/Frameworks 45943 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45944 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45945 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 45946 # set this here so it doesn't have to be peppered throughout the forest 45947 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45948 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45949 fi 45950 45951 45952 45953 45954 45955 # Fallback default of just /bin if DEVKIT_PATH is not defined 45956 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45957 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 45958 fi 45959 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 45960 fi 45961 fi 45962 45963 # FIXME: we should list the discovered compilers as an exclude pattern! 45964 # If we do that, we can do this detection before POST_DETECTION, and still 45965 # find the build compilers in the tools dir, if needed. 45966 45967 45968 45969 # Publish this variable in the help. 45970 45971 45972 if [ -z "${BUILD_CC+x}" ]; then 45973 # The variable is not set by user, try to locate tool using the code snippet 45974 for ac_prog in cl cc gcc 45975 do 45976 # Extract the first word of "$ac_prog", so it can be a program name with args. 45977 set dummy $ac_prog; ac_word=$2 45978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45979 $as_echo_n "checking for $ac_word... " >&6; } 45980 if ${ac_cv_path_BUILD_CC+:} false; then : 45981 $as_echo_n "(cached) " >&6 45982 else 45983 case $BUILD_CC in 45984 [\\/]* | ?:[\\/]*) 45985 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45986 ;; 45987 *) 45988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45989 for as_dir in $PATH 45990 do 45991 IFS=$as_save_IFS 45992 test -z "$as_dir" && as_dir=. 45993 for ac_exec_ext in '' $ac_executable_extensions; do 45994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45995 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45997 break 2 45998 fi 45999 done 46000 done 46001 IFS=$as_save_IFS 46002 46003 ;; 46004 esac 46005 fi 46006 BUILD_CC=$ac_cv_path_BUILD_CC 46007 if test -n "$BUILD_CC"; then 46008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 46009 $as_echo "$BUILD_CC" >&6; } 46010 else 46011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46012 $as_echo "no" >&6; } 46013 fi 46014 46015 46016 test -n "$BUILD_CC" && break 46017 done 46018 46019 else 46020 # The variable is set, but is it from the command line or the environment? 46021 46022 # Try to remove the string !BUILD_CC! from our list. 46023 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 46024 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46025 # If it failed, the variable was not from the command line. Ignore it, 46026 # but warn the user (except for BASH, which is always set by the calling BASH). 46027 if test "xBUILD_CC" != xBASH; then 46028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 46029 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 46030 fi 46031 # Try to locate tool using the code snippet 46032 for ac_prog in cl cc gcc 46033 do 46034 # Extract the first word of "$ac_prog", so it can be a program name with args. 46035 set dummy $ac_prog; ac_word=$2 46036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46037 $as_echo_n "checking for $ac_word... " >&6; } 46038 if ${ac_cv_path_BUILD_CC+:} false; then : 46039 $as_echo_n "(cached) " >&6 46040 else 46041 case $BUILD_CC in 46042 [\\/]* | ?:[\\/]*) 46043 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 46044 ;; 46045 *) 46046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46047 for as_dir in $PATH 46048 do 46049 IFS=$as_save_IFS 46050 test -z "$as_dir" && as_dir=. 46051 for ac_exec_ext in '' $ac_executable_extensions; do 46052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46053 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 46054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46055 break 2 46056 fi 46057 done 46058 done 46059 IFS=$as_save_IFS 46060 46061 ;; 46062 esac 46063 fi 46064 BUILD_CC=$ac_cv_path_BUILD_CC 46065 if test -n "$BUILD_CC"; then 46066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 46067 $as_echo "$BUILD_CC" >&6; } 46068 else 46069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46070 $as_echo "no" >&6; } 46071 fi 46072 46073 46074 test -n "$BUILD_CC" && break 46075 done 46076 46077 else 46078 # If it succeeded, then it was overridden by the user. We will use it 46079 # for the tool. 46080 46081 # First remove it from the list of overridden variables, so we can test 46082 # for unknown variables in the end. 46083 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46084 46085 # Check if we try to supply an empty value 46086 if test "x$BUILD_CC" = x; then 46087 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 46088 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 46089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 46090 $as_echo_n "checking for BUILD_CC... " >&6; } 46091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46092 $as_echo "disabled" >&6; } 46093 else 46094 # Check if the provided tool contains a complete path. 46095 tool_specified="$BUILD_CC" 46096 tool_basename="${tool_specified##*/}" 46097 if test "x$tool_basename" = "x$tool_specified"; then 46098 # A command without a complete path is provided, search $PATH. 46099 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 46100 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 46101 # Extract the first word of "$tool_basename", so it can be a program name with args. 46102 set dummy $tool_basename; ac_word=$2 46103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46104 $as_echo_n "checking for $ac_word... " >&6; } 46105 if ${ac_cv_path_BUILD_CC+:} false; then : 46106 $as_echo_n "(cached) " >&6 46107 else 46108 case $BUILD_CC in 46109 [\\/]* | ?:[\\/]*) 46110 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 46111 ;; 46112 *) 46113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46114 for as_dir in $PATH 46115 do 46116 IFS=$as_save_IFS 46117 test -z "$as_dir" && as_dir=. 46118 for ac_exec_ext in '' $ac_executable_extensions; do 46119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46120 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 46121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46122 break 2 46123 fi 46124 done 46125 done 46126 IFS=$as_save_IFS 46127 46128 ;; 46129 esac 46130 fi 46131 BUILD_CC=$ac_cv_path_BUILD_CC 46132 if test -n "$BUILD_CC"; then 46133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 46134 $as_echo "$BUILD_CC" >&6; } 46135 else 46136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46137 $as_echo "no" >&6; } 46138 fi 46139 46140 46141 if test "x$BUILD_CC" = x; then 46142 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46143 fi 46144 else 46145 # Otherwise we believe it is a complete path. Use it as it is. 46146 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 46147 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 46148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 46149 $as_echo_n "checking for BUILD_CC... " >&6; } 46150 if test ! -x "$tool_specified"; then 46151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46152 $as_echo "not found" >&6; } 46153 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 46154 fi 46155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46156 $as_echo "$tool_specified" >&6; } 46157 fi 46158 fi 46159 fi 46160 46161 fi 46162 46163 46164 46165 if test "x$BUILD_CC" = x; then 46166 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 46167 fi 46168 46169 46170 46171 # Only process if variable expands to non-empty 46172 46173 if test "x$BUILD_CC" != x; then 46174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46175 46176 # First separate the path from the arguments. This will split at the first 46177 # space. 46178 complete="$BUILD_CC" 46179 path="${complete%% *}" 46180 tmp="$complete EOL" 46181 arguments="${tmp#* }" 46182 46183 # Input might be given as Windows format, start by converting to 46184 # unix format. 46185 new_path=`$CYGPATH -u "$path"` 46186 46187 # Now try to locate executable using which 46188 new_path=`$WHICH "$new_path" 2> /dev/null` 46189 # bat and cmd files are not always considered executable in cygwin causing which 46190 # to not find them 46191 if test "x$new_path" = x \ 46192 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46193 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46194 new_path=`$CYGPATH -u "$path"` 46195 fi 46196 if test "x$new_path" = x; then 46197 # Oops. Which didn't find the executable. 46198 # The splitting of arguments from the executable at a space might have been incorrect, 46199 # since paths with space are more likely in Windows. Give it another try with the whole 46200 # argument. 46201 path="$complete" 46202 arguments="EOL" 46203 new_path=`$CYGPATH -u "$path"` 46204 new_path=`$WHICH "$new_path" 2> /dev/null` 46205 # bat and cmd files are not always considered executable in cygwin causing which 46206 # to not find them 46207 if test "x$new_path" = x \ 46208 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46209 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46210 new_path=`$CYGPATH -u "$path"` 46211 fi 46212 if test "x$new_path" = x; then 46213 # It's still not found. Now this is an unrecoverable error. 46214 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46215 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46216 has_space=`$ECHO "$complete" | $GREP " "` 46217 if test "x$has_space" != x; then 46218 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46219 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46220 fi 46221 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46222 fi 46223 fi 46224 46225 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46226 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46227 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46228 # "foo.exe" is OK but "foo" is an error. 46229 # 46230 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46231 # It is also a way to make sure we got the proper file name for the real test later on. 46232 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46233 if test "x$test_shortpath" = x; then 46234 # Short path failed, file does not exist as specified. 46235 # Try adding .exe or .cmd 46236 if test -f "${new_path}.exe"; then 46237 input_to_shortpath="${new_path}.exe" 46238 elif test -f "${new_path}.cmd"; then 46239 input_to_shortpath="${new_path}.cmd" 46240 else 46241 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 46242 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 46243 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46244 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46245 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46246 fi 46247 else 46248 input_to_shortpath="$new_path" 46249 fi 46250 46251 # Call helper function which possibly converts this using DOS-style short mode. 46252 # If so, the updated path is stored in $new_path. 46253 new_path="$input_to_shortpath" 46254 46255 input_path="$input_to_shortpath" 46256 # Check if we need to convert this using DOS-style short mode. If the path 46257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46258 # take no chances and rewrite it. 46259 # Note: m4 eats our [], so we need to use [ and ] instead. 46260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46261 if test "x$has_forbidden_chars" != x; then 46262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46263 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46264 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46265 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46266 # Going to short mode and back again did indeed matter. Since short mode is 46267 # case insensitive, let's make it lowercase to improve readability. 46268 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46269 # Now convert it back to Unix-style (cygpath) 46270 input_path=`$CYGPATH -u "$shortmode_path"` 46271 new_path="$input_path" 46272 fi 46273 fi 46274 46275 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46276 if test "x$test_cygdrive_prefix" = x; then 46277 # As a simple fix, exclude /usr/bin since it's not a real path. 46278 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46279 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46280 # a path prefixed by /cygdrive for fixpath to work. 46281 new_path="$CYGWIN_ROOT_PATH$input_path" 46282 fi 46283 fi 46284 46285 # remove trailing .exe if any 46286 new_path="${new_path/%.exe/}" 46287 46288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46289 46290 # First separate the path from the arguments. This will split at the first 46291 # space. 46292 complete="$BUILD_CC" 46293 path="${complete%% *}" 46294 tmp="$complete EOL" 46295 arguments="${tmp#* }" 46296 46297 # Input might be given as Windows format, start by converting to 46298 # unix format. 46299 new_path="$path" 46300 46301 windows_path="$new_path" 46302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46303 unix_path=`$CYGPATH -u "$windows_path"` 46304 new_path="$unix_path" 46305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46306 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46307 new_path="$unix_path" 46308 fi 46309 46310 46311 # Now try to locate executable using which 46312 new_path=`$WHICH "$new_path" 2> /dev/null` 46313 46314 if test "x$new_path" = x; then 46315 # Oops. Which didn't find the executable. 46316 # The splitting of arguments from the executable at a space might have been incorrect, 46317 # since paths with space are more likely in Windows. Give it another try with the whole 46318 # argument. 46319 path="$complete" 46320 arguments="EOL" 46321 new_path="$path" 46322 46323 windows_path="$new_path" 46324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46325 unix_path=`$CYGPATH -u "$windows_path"` 46326 new_path="$unix_path" 46327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46328 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46329 new_path="$unix_path" 46330 fi 46331 46332 46333 new_path=`$WHICH "$new_path" 2> /dev/null` 46334 # bat and cmd files are not always considered executable in MSYS causing which 46335 # to not find them 46336 if test "x$new_path" = x \ 46337 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46338 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46339 new_path="$path" 46340 46341 windows_path="$new_path" 46342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46343 unix_path=`$CYGPATH -u "$windows_path"` 46344 new_path="$unix_path" 46345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46347 new_path="$unix_path" 46348 fi 46349 46350 fi 46351 46352 if test "x$new_path" = x; then 46353 # It's still not found. Now this is an unrecoverable error. 46354 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46355 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46356 has_space=`$ECHO "$complete" | $GREP " "` 46357 if test "x$has_space" != x; then 46358 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46359 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46360 fi 46361 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46362 fi 46363 fi 46364 46365 # Now new_path has a complete unix path to the binary 46366 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46367 # Keep paths in /bin as-is, but remove trailing .exe if any 46368 new_path="${new_path/%.exe/}" 46369 # Do not save /bin paths to all_fixpath_prefixes! 46370 else 46371 # Not in mixed or Windows style, start by that. 46372 new_path=`cmd //c echo $new_path` 46373 46374 input_path="$new_path" 46375 # Check if we need to convert this using DOS-style short mode. If the path 46376 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46377 # take no chances and rewrite it. 46378 # Note: m4 eats our [], so we need to use [ and ] instead. 46379 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46380 if test "x$has_forbidden_chars" != x; then 46381 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46382 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46383 fi 46384 46385 # Output is in $new_path 46386 46387 windows_path="$new_path" 46388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46389 unix_path=`$CYGPATH -u "$windows_path"` 46390 new_path="$unix_path" 46391 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46392 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46393 new_path="$unix_path" 46394 fi 46395 46396 # remove trailing .exe if any 46397 new_path="${new_path/%.exe/}" 46398 46399 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46400 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46401 fi 46402 46403 else 46404 # We're on a unix platform. Hooray! :) 46405 # First separate the path from the arguments. This will split at the first 46406 # space. 46407 complete="$BUILD_CC" 46408 path="${complete%% *}" 46409 tmp="$complete EOL" 46410 arguments="${tmp#* }" 46411 46412 # Cannot rely on the command "which" here since it doesn't always work. 46413 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46414 if test -z "$is_absolute_path"; then 46415 # Path to executable is not absolute. Find it. 46416 IFS_save="$IFS" 46417 IFS=: 46418 for p in $PATH; do 46419 if test -f "$p/$path" && test -x "$p/$path"; then 46420 new_path="$p/$path" 46421 break 46422 fi 46423 done 46424 IFS="$IFS_save" 46425 else 46426 # This is an absolute path, we can use it without further modifications. 46427 new_path="$path" 46428 fi 46429 46430 if test "x$new_path" = x; then 46431 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46432 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46433 has_space=`$ECHO "$complete" | $GREP " "` 46434 if test "x$has_space" != x; then 46435 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46436 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46437 fi 46438 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46439 fi 46440 fi 46441 46442 # Now join together the path and the arguments once again 46443 if test "x$arguments" != xEOL; then 46444 new_complete="$new_path ${arguments% *}" 46445 else 46446 new_complete="$new_path" 46447 fi 46448 46449 if test "x$complete" != "x$new_complete"; then 46450 BUILD_CC="$new_complete" 46451 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 46452 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 46453 fi 46454 fi 46455 46456 46457 46458 46459 # Publish this variable in the help. 46460 46461 46462 if [ -z "${BUILD_CXX+x}" ]; then 46463 # The variable is not set by user, try to locate tool using the code snippet 46464 for ac_prog in cl CC g++ 46465 do 46466 # Extract the first word of "$ac_prog", so it can be a program name with args. 46467 set dummy $ac_prog; ac_word=$2 46468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46469 $as_echo_n "checking for $ac_word... " >&6; } 46470 if ${ac_cv_path_BUILD_CXX+:} false; then : 46471 $as_echo_n "(cached) " >&6 46472 else 46473 case $BUILD_CXX in 46474 [\\/]* | ?:[\\/]*) 46475 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46476 ;; 46477 *) 46478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46479 for as_dir in $PATH 46480 do 46481 IFS=$as_save_IFS 46482 test -z "$as_dir" && as_dir=. 46483 for ac_exec_ext in '' $ac_executable_extensions; do 46484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46485 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46487 break 2 46488 fi 46489 done 46490 done 46491 IFS=$as_save_IFS 46492 46493 ;; 46494 esac 46495 fi 46496 BUILD_CXX=$ac_cv_path_BUILD_CXX 46497 if test -n "$BUILD_CXX"; then 46498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46499 $as_echo "$BUILD_CXX" >&6; } 46500 else 46501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46502 $as_echo "no" >&6; } 46503 fi 46504 46505 46506 test -n "$BUILD_CXX" && break 46507 done 46508 46509 else 46510 # The variable is set, but is it from the command line or the environment? 46511 46512 # Try to remove the string !BUILD_CXX! from our list. 46513 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 46514 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46515 # If it failed, the variable was not from the command line. Ignore it, 46516 # but warn the user (except for BASH, which is always set by the calling BASH). 46517 if test "xBUILD_CXX" != xBASH; then 46518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 46519 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 46520 fi 46521 # Try to locate tool using the code snippet 46522 for ac_prog in cl CC g++ 46523 do 46524 # Extract the first word of "$ac_prog", so it can be a program name with args. 46525 set dummy $ac_prog; ac_word=$2 46526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46527 $as_echo_n "checking for $ac_word... " >&6; } 46528 if ${ac_cv_path_BUILD_CXX+:} false; then : 46529 $as_echo_n "(cached) " >&6 46530 else 46531 case $BUILD_CXX in 46532 [\\/]* | ?:[\\/]*) 46533 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46534 ;; 46535 *) 46536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46537 for as_dir in $PATH 46538 do 46539 IFS=$as_save_IFS 46540 test -z "$as_dir" && as_dir=. 46541 for ac_exec_ext in '' $ac_executable_extensions; do 46542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46543 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46545 break 2 46546 fi 46547 done 46548 done 46549 IFS=$as_save_IFS 46550 46551 ;; 46552 esac 46553 fi 46554 BUILD_CXX=$ac_cv_path_BUILD_CXX 46555 if test -n "$BUILD_CXX"; then 46556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46557 $as_echo "$BUILD_CXX" >&6; } 46558 else 46559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46560 $as_echo "no" >&6; } 46561 fi 46562 46563 46564 test -n "$BUILD_CXX" && break 46565 done 46566 46567 else 46568 # If it succeeded, then it was overridden by the user. We will use it 46569 # for the tool. 46570 46571 # First remove it from the list of overridden variables, so we can test 46572 # for unknown variables in the end. 46573 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46574 46575 # Check if we try to supply an empty value 46576 if test "x$BUILD_CXX" = x; then 46577 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 46578 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 46579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 46580 $as_echo_n "checking for BUILD_CXX... " >&6; } 46581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46582 $as_echo "disabled" >&6; } 46583 else 46584 # Check if the provided tool contains a complete path. 46585 tool_specified="$BUILD_CXX" 46586 tool_basename="${tool_specified##*/}" 46587 if test "x$tool_basename" = "x$tool_specified"; then 46588 # A command without a complete path is provided, search $PATH. 46589 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 46590 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 46591 # Extract the first word of "$tool_basename", so it can be a program name with args. 46592 set dummy $tool_basename; ac_word=$2 46593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46594 $as_echo_n "checking for $ac_word... " >&6; } 46595 if ${ac_cv_path_BUILD_CXX+:} false; then : 46596 $as_echo_n "(cached) " >&6 46597 else 46598 case $BUILD_CXX in 46599 [\\/]* | ?:[\\/]*) 46600 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46601 ;; 46602 *) 46603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46604 for as_dir in $PATH 46605 do 46606 IFS=$as_save_IFS 46607 test -z "$as_dir" && as_dir=. 46608 for ac_exec_ext in '' $ac_executable_extensions; do 46609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46610 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46612 break 2 46613 fi 46614 done 46615 done 46616 IFS=$as_save_IFS 46617 46618 ;; 46619 esac 46620 fi 46621 BUILD_CXX=$ac_cv_path_BUILD_CXX 46622 if test -n "$BUILD_CXX"; then 46623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46624 $as_echo "$BUILD_CXX" >&6; } 46625 else 46626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46627 $as_echo "no" >&6; } 46628 fi 46629 46630 46631 if test "x$BUILD_CXX" = x; then 46632 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46633 fi 46634 else 46635 # Otherwise we believe it is a complete path. Use it as it is. 46636 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 46637 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 46638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 46639 $as_echo_n "checking for BUILD_CXX... " >&6; } 46640 if test ! -x "$tool_specified"; then 46641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46642 $as_echo "not found" >&6; } 46643 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 46644 fi 46645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46646 $as_echo "$tool_specified" >&6; } 46647 fi 46648 fi 46649 fi 46650 46651 fi 46652 46653 46654 46655 if test "x$BUILD_CXX" = x; then 46656 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 46657 fi 46658 46659 46660 46661 # Only process if variable expands to non-empty 46662 46663 if test "x$BUILD_CXX" != x; then 46664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46665 46666 # First separate the path from the arguments. This will split at the first 46667 # space. 46668 complete="$BUILD_CXX" 46669 path="${complete%% *}" 46670 tmp="$complete EOL" 46671 arguments="${tmp#* }" 46672 46673 # Input might be given as Windows format, start by converting to 46674 # unix format. 46675 new_path=`$CYGPATH -u "$path"` 46676 46677 # Now try to locate executable using which 46678 new_path=`$WHICH "$new_path" 2> /dev/null` 46679 # bat and cmd files are not always considered executable in cygwin causing which 46680 # to not find them 46681 if test "x$new_path" = x \ 46682 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46683 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46684 new_path=`$CYGPATH -u "$path"` 46685 fi 46686 if test "x$new_path" = x; then 46687 # Oops. Which didn't find the executable. 46688 # The splitting of arguments from the executable at a space might have been incorrect, 46689 # since paths with space are more likely in Windows. Give it another try with the whole 46690 # argument. 46691 path="$complete" 46692 arguments="EOL" 46693 new_path=`$CYGPATH -u "$path"` 46694 new_path=`$WHICH "$new_path" 2> /dev/null` 46695 # bat and cmd files are not always considered executable in cygwin causing which 46696 # to not find them 46697 if test "x$new_path" = x \ 46698 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46699 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46700 new_path=`$CYGPATH -u "$path"` 46701 fi 46702 if test "x$new_path" = x; then 46703 # It's still not found. Now this is an unrecoverable error. 46704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46705 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46706 has_space=`$ECHO "$complete" | $GREP " "` 46707 if test "x$has_space" != x; then 46708 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46709 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46710 fi 46711 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46712 fi 46713 fi 46714 46715 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46716 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46717 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46718 # "foo.exe" is OK but "foo" is an error. 46719 # 46720 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46721 # It is also a way to make sure we got the proper file name for the real test later on. 46722 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46723 if test "x$test_shortpath" = x; then 46724 # Short path failed, file does not exist as specified. 46725 # Try adding .exe or .cmd 46726 if test -f "${new_path}.exe"; then 46727 input_to_shortpath="${new_path}.exe" 46728 elif test -f "${new_path}.cmd"; then 46729 input_to_shortpath="${new_path}.cmd" 46730 else 46731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 46732 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 46733 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46734 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46735 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46736 fi 46737 else 46738 input_to_shortpath="$new_path" 46739 fi 46740 46741 # Call helper function which possibly converts this using DOS-style short mode. 46742 # If so, the updated path is stored in $new_path. 46743 new_path="$input_to_shortpath" 46744 46745 input_path="$input_to_shortpath" 46746 # Check if we need to convert this using DOS-style short mode. If the path 46747 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46748 # take no chances and rewrite it. 46749 # Note: m4 eats our [], so we need to use [ and ] instead. 46750 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46751 if test "x$has_forbidden_chars" != x; then 46752 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46753 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46754 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46755 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46756 # Going to short mode and back again did indeed matter. Since short mode is 46757 # case insensitive, let's make it lowercase to improve readability. 46758 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46759 # Now convert it back to Unix-style (cygpath) 46760 input_path=`$CYGPATH -u "$shortmode_path"` 46761 new_path="$input_path" 46762 fi 46763 fi 46764 46765 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46766 if test "x$test_cygdrive_prefix" = x; then 46767 # As a simple fix, exclude /usr/bin since it's not a real path. 46768 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46769 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46770 # a path prefixed by /cygdrive for fixpath to work. 46771 new_path="$CYGWIN_ROOT_PATH$input_path" 46772 fi 46773 fi 46774 46775 # remove trailing .exe if any 46776 new_path="${new_path/%.exe/}" 46777 46778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46779 46780 # First separate the path from the arguments. This will split at the first 46781 # space. 46782 complete="$BUILD_CXX" 46783 path="${complete%% *}" 46784 tmp="$complete EOL" 46785 arguments="${tmp#* }" 46786 46787 # Input might be given as Windows format, start by converting to 46788 # unix format. 46789 new_path="$path" 46790 46791 windows_path="$new_path" 46792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46793 unix_path=`$CYGPATH -u "$windows_path"` 46794 new_path="$unix_path" 46795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46796 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46797 new_path="$unix_path" 46798 fi 46799 46800 46801 # Now try to locate executable using which 46802 new_path=`$WHICH "$new_path" 2> /dev/null` 46803 46804 if test "x$new_path" = x; then 46805 # Oops. Which didn't find the executable. 46806 # The splitting of arguments from the executable at a space might have been incorrect, 46807 # since paths with space are more likely in Windows. Give it another try with the whole 46808 # argument. 46809 path="$complete" 46810 arguments="EOL" 46811 new_path="$path" 46812 46813 windows_path="$new_path" 46814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46815 unix_path=`$CYGPATH -u "$windows_path"` 46816 new_path="$unix_path" 46817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46818 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46819 new_path="$unix_path" 46820 fi 46821 46822 46823 new_path=`$WHICH "$new_path" 2> /dev/null` 46824 # bat and cmd files are not always considered executable in MSYS causing which 46825 # to not find them 46826 if test "x$new_path" = x \ 46827 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46828 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46829 new_path="$path" 46830 46831 windows_path="$new_path" 46832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46833 unix_path=`$CYGPATH -u "$windows_path"` 46834 new_path="$unix_path" 46835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46837 new_path="$unix_path" 46838 fi 46839 46840 fi 46841 46842 if test "x$new_path" = x; then 46843 # It's still not found. Now this is an unrecoverable error. 46844 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46845 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46846 has_space=`$ECHO "$complete" | $GREP " "` 46847 if test "x$has_space" != x; then 46848 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46849 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46850 fi 46851 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46852 fi 46853 fi 46854 46855 # Now new_path has a complete unix path to the binary 46856 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46857 # Keep paths in /bin as-is, but remove trailing .exe if any 46858 new_path="${new_path/%.exe/}" 46859 # Do not save /bin paths to all_fixpath_prefixes! 46860 else 46861 # Not in mixed or Windows style, start by that. 46862 new_path=`cmd //c echo $new_path` 46863 46864 input_path="$new_path" 46865 # Check if we need to convert this using DOS-style short mode. If the path 46866 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46867 # take no chances and rewrite it. 46868 # Note: m4 eats our [], so we need to use [ and ] instead. 46869 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46870 if test "x$has_forbidden_chars" != x; then 46871 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46872 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46873 fi 46874 46875 # Output is in $new_path 46876 46877 windows_path="$new_path" 46878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46879 unix_path=`$CYGPATH -u "$windows_path"` 46880 new_path="$unix_path" 46881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46882 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46883 new_path="$unix_path" 46884 fi 46885 46886 # remove trailing .exe if any 46887 new_path="${new_path/%.exe/}" 46888 46889 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46890 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46891 fi 46892 46893 else 46894 # We're on a unix platform. Hooray! :) 46895 # First separate the path from the arguments. This will split at the first 46896 # space. 46897 complete="$BUILD_CXX" 46898 path="${complete%% *}" 46899 tmp="$complete EOL" 46900 arguments="${tmp#* }" 46901 46902 # Cannot rely on the command "which" here since it doesn't always work. 46903 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46904 if test -z "$is_absolute_path"; then 46905 # Path to executable is not absolute. Find it. 46906 IFS_save="$IFS" 46907 IFS=: 46908 for p in $PATH; do 46909 if test -f "$p/$path" && test -x "$p/$path"; then 46910 new_path="$p/$path" 46911 break 46912 fi 46913 done 46914 IFS="$IFS_save" 46915 else 46916 # This is an absolute path, we can use it without further modifications. 46917 new_path="$path" 46918 fi 46919 46920 if test "x$new_path" = x; then 46921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46922 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46923 has_space=`$ECHO "$complete" | $GREP " "` 46924 if test "x$has_space" != x; then 46925 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46926 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46927 fi 46928 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46929 fi 46930 fi 46931 46932 # Now join together the path and the arguments once again 46933 if test "x$arguments" != xEOL; then 46934 new_complete="$new_path ${arguments% *}" 46935 else 46936 new_complete="$new_path" 46937 fi 46938 46939 if test "x$complete" != "x$new_complete"; then 46940 BUILD_CXX="$new_complete" 46941 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 46942 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 46943 fi 46944 fi 46945 46946 46947 46948 # Publish this variable in the help. 46949 46950 46951 if [ -z "${BUILD_NM+x}" ]; then 46952 # The variable is not set by user, try to locate tool using the code snippet 46953 for ac_prog in nm gcc-nm 46954 do 46955 # Extract the first word of "$ac_prog", so it can be a program name with args. 46956 set dummy $ac_prog; ac_word=$2 46957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46958 $as_echo_n "checking for $ac_word... " >&6; } 46959 if ${ac_cv_path_BUILD_NM+:} false; then : 46960 $as_echo_n "(cached) " >&6 46961 else 46962 case $BUILD_NM in 46963 [\\/]* | ?:[\\/]*) 46964 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46965 ;; 46966 *) 46967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46968 for as_dir in $PATH 46969 do 46970 IFS=$as_save_IFS 46971 test -z "$as_dir" && as_dir=. 46972 for ac_exec_ext in '' $ac_executable_extensions; do 46973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46974 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46976 break 2 46977 fi 46978 done 46979 done 46980 IFS=$as_save_IFS 46981 46982 ;; 46983 esac 46984 fi 46985 BUILD_NM=$ac_cv_path_BUILD_NM 46986 if test -n "$BUILD_NM"; then 46987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46988 $as_echo "$BUILD_NM" >&6; } 46989 else 46990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46991 $as_echo "no" >&6; } 46992 fi 46993 46994 46995 test -n "$BUILD_NM" && break 46996 done 46997 46998 else 46999 # The variable is set, but is it from the command line or the environment? 47000 47001 # Try to remove the string !BUILD_NM! from our list. 47002 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 47003 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47004 # If it failed, the variable was not from the command line. Ignore it, 47005 # but warn the user (except for BASH, which is always set by the calling BASH). 47006 if test "xBUILD_NM" != xBASH; then 47007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 47008 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 47009 fi 47010 # Try to locate tool using the code snippet 47011 for ac_prog in nm gcc-nm 47012 do 47013 # Extract the first word of "$ac_prog", so it can be a program name with args. 47014 set dummy $ac_prog; ac_word=$2 47015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47016 $as_echo_n "checking for $ac_word... " >&6; } 47017 if ${ac_cv_path_BUILD_NM+:} false; then : 47018 $as_echo_n "(cached) " >&6 47019 else 47020 case $BUILD_NM in 47021 [\\/]* | ?:[\\/]*) 47022 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 47023 ;; 47024 *) 47025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47026 for as_dir in $PATH 47027 do 47028 IFS=$as_save_IFS 47029 test -z "$as_dir" && as_dir=. 47030 for ac_exec_ext in '' $ac_executable_extensions; do 47031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47032 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 47033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47034 break 2 47035 fi 47036 done 47037 done 47038 IFS=$as_save_IFS 47039 47040 ;; 47041 esac 47042 fi 47043 BUILD_NM=$ac_cv_path_BUILD_NM 47044 if test -n "$BUILD_NM"; then 47045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 47046 $as_echo "$BUILD_NM" >&6; } 47047 else 47048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47049 $as_echo "no" >&6; } 47050 fi 47051 47052 47053 test -n "$BUILD_NM" && break 47054 done 47055 47056 else 47057 # If it succeeded, then it was overridden by the user. We will use it 47058 # for the tool. 47059 47060 # First remove it from the list of overridden variables, so we can test 47061 # for unknown variables in the end. 47062 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47063 47064 # Check if we try to supply an empty value 47065 if test "x$BUILD_NM" = x; then 47066 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 47067 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 47068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 47069 $as_echo_n "checking for BUILD_NM... " >&6; } 47070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47071 $as_echo "disabled" >&6; } 47072 else 47073 # Check if the provided tool contains a complete path. 47074 tool_specified="$BUILD_NM" 47075 tool_basename="${tool_specified##*/}" 47076 if test "x$tool_basename" = "x$tool_specified"; then 47077 # A command without a complete path is provided, search $PATH. 47078 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 47079 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 47080 # Extract the first word of "$tool_basename", so it can be a program name with args. 47081 set dummy $tool_basename; ac_word=$2 47082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47083 $as_echo_n "checking for $ac_word... " >&6; } 47084 if ${ac_cv_path_BUILD_NM+:} false; then : 47085 $as_echo_n "(cached) " >&6 47086 else 47087 case $BUILD_NM in 47088 [\\/]* | ?:[\\/]*) 47089 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 47090 ;; 47091 *) 47092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47093 for as_dir in $PATH 47094 do 47095 IFS=$as_save_IFS 47096 test -z "$as_dir" && as_dir=. 47097 for ac_exec_ext in '' $ac_executable_extensions; do 47098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47099 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 47100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47101 break 2 47102 fi 47103 done 47104 done 47105 IFS=$as_save_IFS 47106 47107 ;; 47108 esac 47109 fi 47110 BUILD_NM=$ac_cv_path_BUILD_NM 47111 if test -n "$BUILD_NM"; then 47112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 47113 $as_echo "$BUILD_NM" >&6; } 47114 else 47115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47116 $as_echo "no" >&6; } 47117 fi 47118 47119 47120 if test "x$BUILD_NM" = x; then 47121 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47122 fi 47123 else 47124 # Otherwise we believe it is a complete path. Use it as it is. 47125 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 47126 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 47127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 47128 $as_echo_n "checking for BUILD_NM... " >&6; } 47129 if test ! -x "$tool_specified"; then 47130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47131 $as_echo "not found" >&6; } 47132 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 47133 fi 47134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47135 $as_echo "$tool_specified" >&6; } 47136 fi 47137 fi 47138 fi 47139 47140 fi 47141 47142 47143 47144 # Only process if variable expands to non-empty 47145 47146 if test "x$BUILD_NM" != x; then 47147 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47148 47149 # First separate the path from the arguments. This will split at the first 47150 # space. 47151 complete="$BUILD_NM" 47152 path="${complete%% *}" 47153 tmp="$complete EOL" 47154 arguments="${tmp#* }" 47155 47156 # Input might be given as Windows format, start by converting to 47157 # unix format. 47158 new_path=`$CYGPATH -u "$path"` 47159 47160 # Now try to locate executable using which 47161 new_path=`$WHICH "$new_path" 2> /dev/null` 47162 # bat and cmd files are not always considered executable in cygwin causing which 47163 # to not find them 47164 if test "x$new_path" = x \ 47165 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47166 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47167 new_path=`$CYGPATH -u "$path"` 47168 fi 47169 if test "x$new_path" = x; then 47170 # Oops. Which didn't find the executable. 47171 # The splitting of arguments from the executable at a space might have been incorrect, 47172 # since paths with space are more likely in Windows. Give it another try with the whole 47173 # argument. 47174 path="$complete" 47175 arguments="EOL" 47176 new_path=`$CYGPATH -u "$path"` 47177 new_path=`$WHICH "$new_path" 2> /dev/null` 47178 # bat and cmd files are not always considered executable in cygwin causing which 47179 # to not find them 47180 if test "x$new_path" = x \ 47181 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47182 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47183 new_path=`$CYGPATH -u "$path"` 47184 fi 47185 if test "x$new_path" = x; then 47186 # It's still not found. Now this is an unrecoverable error. 47187 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47188 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47189 has_space=`$ECHO "$complete" | $GREP " "` 47190 if test "x$has_space" != x; then 47191 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47192 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47193 fi 47194 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47195 fi 47196 fi 47197 47198 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47199 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47200 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47201 # "foo.exe" is OK but "foo" is an error. 47202 # 47203 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47204 # It is also a way to make sure we got the proper file name for the real test later on. 47205 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47206 if test "x$test_shortpath" = x; then 47207 # Short path failed, file does not exist as specified. 47208 # Try adding .exe or .cmd 47209 if test -f "${new_path}.exe"; then 47210 input_to_shortpath="${new_path}.exe" 47211 elif test -f "${new_path}.cmd"; then 47212 input_to_shortpath="${new_path}.cmd" 47213 else 47214 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 47215 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 47216 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47217 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47218 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47219 fi 47220 else 47221 input_to_shortpath="$new_path" 47222 fi 47223 47224 # Call helper function which possibly converts this using DOS-style short mode. 47225 # If so, the updated path is stored in $new_path. 47226 new_path="$input_to_shortpath" 47227 47228 input_path="$input_to_shortpath" 47229 # Check if we need to convert this using DOS-style short mode. If the path 47230 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47231 # take no chances and rewrite it. 47232 # Note: m4 eats our [], so we need to use [ and ] instead. 47233 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47234 if test "x$has_forbidden_chars" != x; then 47235 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47236 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47237 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47238 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47239 # Going to short mode and back again did indeed matter. Since short mode is 47240 # case insensitive, let's make it lowercase to improve readability. 47241 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47242 # Now convert it back to Unix-style (cygpath) 47243 input_path=`$CYGPATH -u "$shortmode_path"` 47244 new_path="$input_path" 47245 fi 47246 fi 47247 47248 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47249 if test "x$test_cygdrive_prefix" = x; then 47250 # As a simple fix, exclude /usr/bin since it's not a real path. 47251 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47252 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47253 # a path prefixed by /cygdrive for fixpath to work. 47254 new_path="$CYGWIN_ROOT_PATH$input_path" 47255 fi 47256 fi 47257 47258 # remove trailing .exe if any 47259 new_path="${new_path/%.exe/}" 47260 47261 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47262 47263 # First separate the path from the arguments. This will split at the first 47264 # space. 47265 complete="$BUILD_NM" 47266 path="${complete%% *}" 47267 tmp="$complete EOL" 47268 arguments="${tmp#* }" 47269 47270 # Input might be given as Windows format, start by converting to 47271 # unix format. 47272 new_path="$path" 47273 47274 windows_path="$new_path" 47275 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47276 unix_path=`$CYGPATH -u "$windows_path"` 47277 new_path="$unix_path" 47278 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47279 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47280 new_path="$unix_path" 47281 fi 47282 47283 47284 # Now try to locate executable using which 47285 new_path=`$WHICH "$new_path" 2> /dev/null` 47286 47287 if test "x$new_path" = x; then 47288 # Oops. Which didn't find the executable. 47289 # The splitting of arguments from the executable at a space might have been incorrect, 47290 # since paths with space are more likely in Windows. Give it another try with the whole 47291 # argument. 47292 path="$complete" 47293 arguments="EOL" 47294 new_path="$path" 47295 47296 windows_path="$new_path" 47297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47298 unix_path=`$CYGPATH -u "$windows_path"` 47299 new_path="$unix_path" 47300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47301 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47302 new_path="$unix_path" 47303 fi 47304 47305 47306 new_path=`$WHICH "$new_path" 2> /dev/null` 47307 # bat and cmd files are not always considered executable in MSYS causing which 47308 # to not find them 47309 if test "x$new_path" = x \ 47310 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47311 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47312 new_path="$path" 47313 47314 windows_path="$new_path" 47315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47316 unix_path=`$CYGPATH -u "$windows_path"` 47317 new_path="$unix_path" 47318 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47319 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47320 new_path="$unix_path" 47321 fi 47322 47323 fi 47324 47325 if test "x$new_path" = x; then 47326 # It's still not found. Now this is an unrecoverable error. 47327 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47328 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47329 has_space=`$ECHO "$complete" | $GREP " "` 47330 if test "x$has_space" != x; then 47331 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47332 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47333 fi 47334 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47335 fi 47336 fi 47337 47338 # Now new_path has a complete unix path to the binary 47339 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47340 # Keep paths in /bin as-is, but remove trailing .exe if any 47341 new_path="${new_path/%.exe/}" 47342 # Do not save /bin paths to all_fixpath_prefixes! 47343 else 47344 # Not in mixed or Windows style, start by that. 47345 new_path=`cmd //c echo $new_path` 47346 47347 input_path="$new_path" 47348 # Check if we need to convert this using DOS-style short mode. If the path 47349 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47350 # take no chances and rewrite it. 47351 # Note: m4 eats our [], so we need to use [ and ] instead. 47352 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47353 if test "x$has_forbidden_chars" != x; then 47354 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47355 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47356 fi 47357 47358 # Output is in $new_path 47359 47360 windows_path="$new_path" 47361 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47362 unix_path=`$CYGPATH -u "$windows_path"` 47363 new_path="$unix_path" 47364 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47365 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47366 new_path="$unix_path" 47367 fi 47368 47369 # remove trailing .exe if any 47370 new_path="${new_path/%.exe/}" 47371 47372 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47373 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47374 fi 47375 47376 else 47377 # We're on a unix platform. Hooray! :) 47378 # First separate the path from the arguments. This will split at the first 47379 # space. 47380 complete="$BUILD_NM" 47381 path="${complete%% *}" 47382 tmp="$complete EOL" 47383 arguments="${tmp#* }" 47384 47385 # Cannot rely on the command "which" here since it doesn't always work. 47386 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47387 if test -z "$is_absolute_path"; then 47388 # Path to executable is not absolute. Find it. 47389 IFS_save="$IFS" 47390 IFS=: 47391 for p in $PATH; do 47392 if test -f "$p/$path" && test -x "$p/$path"; then 47393 new_path="$p/$path" 47394 break 47395 fi 47396 done 47397 IFS="$IFS_save" 47398 else 47399 # This is an absolute path, we can use it without further modifications. 47400 new_path="$path" 47401 fi 47402 47403 if test "x$new_path" = x; then 47404 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47405 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47406 has_space=`$ECHO "$complete" | $GREP " "` 47407 if test "x$has_space" != x; then 47408 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47409 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47410 fi 47411 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47412 fi 47413 fi 47414 47415 # Now join together the path and the arguments once again 47416 if test "x$arguments" != xEOL; then 47417 new_complete="$new_path ${arguments% *}" 47418 else 47419 new_complete="$new_path" 47420 fi 47421 47422 if test "x$complete" != "x$new_complete"; then 47423 BUILD_NM="$new_complete" 47424 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 47425 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 47426 fi 47427 fi 47428 47429 47430 47431 # Publish this variable in the help. 47432 47433 47434 if [ -z "${BUILD_AR+x}" ]; then 47435 # The variable is not set by user, try to locate tool using the code snippet 47436 for ac_prog in ar gcc-ar 47437 do 47438 # Extract the first word of "$ac_prog", so it can be a program name with args. 47439 set dummy $ac_prog; ac_word=$2 47440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47441 $as_echo_n "checking for $ac_word... " >&6; } 47442 if ${ac_cv_path_BUILD_AR+:} false; then : 47443 $as_echo_n "(cached) " >&6 47444 else 47445 case $BUILD_AR in 47446 [\\/]* | ?:[\\/]*) 47447 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47448 ;; 47449 *) 47450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47451 for as_dir in $PATH 47452 do 47453 IFS=$as_save_IFS 47454 test -z "$as_dir" && as_dir=. 47455 for ac_exec_ext in '' $ac_executable_extensions; do 47456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47457 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47459 break 2 47460 fi 47461 done 47462 done 47463 IFS=$as_save_IFS 47464 47465 ;; 47466 esac 47467 fi 47468 BUILD_AR=$ac_cv_path_BUILD_AR 47469 if test -n "$BUILD_AR"; then 47470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47471 $as_echo "$BUILD_AR" >&6; } 47472 else 47473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47474 $as_echo "no" >&6; } 47475 fi 47476 47477 47478 test -n "$BUILD_AR" && break 47479 done 47480 47481 else 47482 # The variable is set, but is it from the command line or the environment? 47483 47484 # Try to remove the string !BUILD_AR! from our list. 47485 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 47486 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47487 # If it failed, the variable was not from the command line. Ignore it, 47488 # but warn the user (except for BASH, which is always set by the calling BASH). 47489 if test "xBUILD_AR" != xBASH; then 47490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 47491 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 47492 fi 47493 # Try to locate tool using the code snippet 47494 for ac_prog in ar gcc-ar 47495 do 47496 # Extract the first word of "$ac_prog", so it can be a program name with args. 47497 set dummy $ac_prog; ac_word=$2 47498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47499 $as_echo_n "checking for $ac_word... " >&6; } 47500 if ${ac_cv_path_BUILD_AR+:} false; then : 47501 $as_echo_n "(cached) " >&6 47502 else 47503 case $BUILD_AR in 47504 [\\/]* | ?:[\\/]*) 47505 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47506 ;; 47507 *) 47508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47509 for as_dir in $PATH 47510 do 47511 IFS=$as_save_IFS 47512 test -z "$as_dir" && as_dir=. 47513 for ac_exec_ext in '' $ac_executable_extensions; do 47514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47515 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47517 break 2 47518 fi 47519 done 47520 done 47521 IFS=$as_save_IFS 47522 47523 ;; 47524 esac 47525 fi 47526 BUILD_AR=$ac_cv_path_BUILD_AR 47527 if test -n "$BUILD_AR"; then 47528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47529 $as_echo "$BUILD_AR" >&6; } 47530 else 47531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47532 $as_echo "no" >&6; } 47533 fi 47534 47535 47536 test -n "$BUILD_AR" && break 47537 done 47538 47539 else 47540 # If it succeeded, then it was overridden by the user. We will use it 47541 # for the tool. 47542 47543 # First remove it from the list of overridden variables, so we can test 47544 # for unknown variables in the end. 47545 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47546 47547 # Check if we try to supply an empty value 47548 if test "x$BUILD_AR" = x; then 47549 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 47550 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 47551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 47552 $as_echo_n "checking for BUILD_AR... " >&6; } 47553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47554 $as_echo "disabled" >&6; } 47555 else 47556 # Check if the provided tool contains a complete path. 47557 tool_specified="$BUILD_AR" 47558 tool_basename="${tool_specified##*/}" 47559 if test "x$tool_basename" = "x$tool_specified"; then 47560 # A command without a complete path is provided, search $PATH. 47561 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 47562 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 47563 # Extract the first word of "$tool_basename", so it can be a program name with args. 47564 set dummy $tool_basename; ac_word=$2 47565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47566 $as_echo_n "checking for $ac_word... " >&6; } 47567 if ${ac_cv_path_BUILD_AR+:} false; then : 47568 $as_echo_n "(cached) " >&6 47569 else 47570 case $BUILD_AR in 47571 [\\/]* | ?:[\\/]*) 47572 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47573 ;; 47574 *) 47575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47576 for as_dir in $PATH 47577 do 47578 IFS=$as_save_IFS 47579 test -z "$as_dir" && as_dir=. 47580 for ac_exec_ext in '' $ac_executable_extensions; do 47581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47582 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47584 break 2 47585 fi 47586 done 47587 done 47588 IFS=$as_save_IFS 47589 47590 ;; 47591 esac 47592 fi 47593 BUILD_AR=$ac_cv_path_BUILD_AR 47594 if test -n "$BUILD_AR"; then 47595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47596 $as_echo "$BUILD_AR" >&6; } 47597 else 47598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47599 $as_echo "no" >&6; } 47600 fi 47601 47602 47603 if test "x$BUILD_AR" = x; then 47604 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47605 fi 47606 else 47607 # Otherwise we believe it is a complete path. Use it as it is. 47608 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 47609 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 47610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 47611 $as_echo_n "checking for BUILD_AR... " >&6; } 47612 if test ! -x "$tool_specified"; then 47613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47614 $as_echo "not found" >&6; } 47615 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 47616 fi 47617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47618 $as_echo "$tool_specified" >&6; } 47619 fi 47620 fi 47621 fi 47622 47623 fi 47624 47625 47626 47627 # Only process if variable expands to non-empty 47628 47629 if test "x$BUILD_AR" != x; then 47630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47631 47632 # First separate the path from the arguments. This will split at the first 47633 # space. 47634 complete="$BUILD_AR" 47635 path="${complete%% *}" 47636 tmp="$complete EOL" 47637 arguments="${tmp#* }" 47638 47639 # Input might be given as Windows format, start by converting to 47640 # unix format. 47641 new_path=`$CYGPATH -u "$path"` 47642 47643 # Now try to locate executable using which 47644 new_path=`$WHICH "$new_path" 2> /dev/null` 47645 # bat and cmd files are not always considered executable in cygwin causing which 47646 # to not find them 47647 if test "x$new_path" = x \ 47648 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47649 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47650 new_path=`$CYGPATH -u "$path"` 47651 fi 47652 if test "x$new_path" = x; then 47653 # Oops. Which didn't find the executable. 47654 # The splitting of arguments from the executable at a space might have been incorrect, 47655 # since paths with space are more likely in Windows. Give it another try with the whole 47656 # argument. 47657 path="$complete" 47658 arguments="EOL" 47659 new_path=`$CYGPATH -u "$path"` 47660 new_path=`$WHICH "$new_path" 2> /dev/null` 47661 # bat and cmd files are not always considered executable in cygwin causing which 47662 # to not find them 47663 if test "x$new_path" = x \ 47664 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47665 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47666 new_path=`$CYGPATH -u "$path"` 47667 fi 47668 if test "x$new_path" = x; then 47669 # It's still not found. Now this is an unrecoverable error. 47670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47671 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47672 has_space=`$ECHO "$complete" | $GREP " "` 47673 if test "x$has_space" != x; then 47674 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47675 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47676 fi 47677 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47678 fi 47679 fi 47680 47681 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47682 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47683 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47684 # "foo.exe" is OK but "foo" is an error. 47685 # 47686 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47687 # It is also a way to make sure we got the proper file name for the real test later on. 47688 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47689 if test "x$test_shortpath" = x; then 47690 # Short path failed, file does not exist as specified. 47691 # Try adding .exe or .cmd 47692 if test -f "${new_path}.exe"; then 47693 input_to_shortpath="${new_path}.exe" 47694 elif test -f "${new_path}.cmd"; then 47695 input_to_shortpath="${new_path}.cmd" 47696 else 47697 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 47698 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 47699 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47700 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47701 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47702 fi 47703 else 47704 input_to_shortpath="$new_path" 47705 fi 47706 47707 # Call helper function which possibly converts this using DOS-style short mode. 47708 # If so, the updated path is stored in $new_path. 47709 new_path="$input_to_shortpath" 47710 47711 input_path="$input_to_shortpath" 47712 # Check if we need to convert this using DOS-style short mode. If the path 47713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47714 # take no chances and rewrite it. 47715 # Note: m4 eats our [], so we need to use [ and ] instead. 47716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47717 if test "x$has_forbidden_chars" != x; then 47718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47719 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47720 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47721 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47722 # Going to short mode and back again did indeed matter. Since short mode is 47723 # case insensitive, let's make it lowercase to improve readability. 47724 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47725 # Now convert it back to Unix-style (cygpath) 47726 input_path=`$CYGPATH -u "$shortmode_path"` 47727 new_path="$input_path" 47728 fi 47729 fi 47730 47731 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47732 if test "x$test_cygdrive_prefix" = x; then 47733 # As a simple fix, exclude /usr/bin since it's not a real path. 47734 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47735 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47736 # a path prefixed by /cygdrive for fixpath to work. 47737 new_path="$CYGWIN_ROOT_PATH$input_path" 47738 fi 47739 fi 47740 47741 # remove trailing .exe if any 47742 new_path="${new_path/%.exe/}" 47743 47744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47745 47746 # First separate the path from the arguments. This will split at the first 47747 # space. 47748 complete="$BUILD_AR" 47749 path="${complete%% *}" 47750 tmp="$complete EOL" 47751 arguments="${tmp#* }" 47752 47753 # Input might be given as Windows format, start by converting to 47754 # unix format. 47755 new_path="$path" 47756 47757 windows_path="$new_path" 47758 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47759 unix_path=`$CYGPATH -u "$windows_path"` 47760 new_path="$unix_path" 47761 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47762 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47763 new_path="$unix_path" 47764 fi 47765 47766 47767 # Now try to locate executable using which 47768 new_path=`$WHICH "$new_path" 2> /dev/null` 47769 47770 if test "x$new_path" = x; then 47771 # Oops. Which didn't find the executable. 47772 # The splitting of arguments from the executable at a space might have been incorrect, 47773 # since paths with space are more likely in Windows. Give it another try with the whole 47774 # argument. 47775 path="$complete" 47776 arguments="EOL" 47777 new_path="$path" 47778 47779 windows_path="$new_path" 47780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47781 unix_path=`$CYGPATH -u "$windows_path"` 47782 new_path="$unix_path" 47783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47785 new_path="$unix_path" 47786 fi 47787 47788 47789 new_path=`$WHICH "$new_path" 2> /dev/null` 47790 # bat and cmd files are not always considered executable in MSYS causing which 47791 # to not find them 47792 if test "x$new_path" = x \ 47793 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47794 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47795 new_path="$path" 47796 47797 windows_path="$new_path" 47798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47799 unix_path=`$CYGPATH -u "$windows_path"` 47800 new_path="$unix_path" 47801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47803 new_path="$unix_path" 47804 fi 47805 47806 fi 47807 47808 if test "x$new_path" = x; then 47809 # It's still not found. Now this is an unrecoverable error. 47810 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47811 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47812 has_space=`$ECHO "$complete" | $GREP " "` 47813 if test "x$has_space" != x; then 47814 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47815 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47816 fi 47817 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47818 fi 47819 fi 47820 47821 # Now new_path has a complete unix path to the binary 47822 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47823 # Keep paths in /bin as-is, but remove trailing .exe if any 47824 new_path="${new_path/%.exe/}" 47825 # Do not save /bin paths to all_fixpath_prefixes! 47826 else 47827 # Not in mixed or Windows style, start by that. 47828 new_path=`cmd //c echo $new_path` 47829 47830 input_path="$new_path" 47831 # Check if we need to convert this using DOS-style short mode. If the path 47832 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47833 # take no chances and rewrite it. 47834 # Note: m4 eats our [], so we need to use [ and ] instead. 47835 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47836 if test "x$has_forbidden_chars" != x; then 47837 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47838 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47839 fi 47840 47841 # Output is in $new_path 47842 47843 windows_path="$new_path" 47844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47845 unix_path=`$CYGPATH -u "$windows_path"` 47846 new_path="$unix_path" 47847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47848 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47849 new_path="$unix_path" 47850 fi 47851 47852 # remove trailing .exe if any 47853 new_path="${new_path/%.exe/}" 47854 47855 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47856 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47857 fi 47858 47859 else 47860 # We're on a unix platform. Hooray! :) 47861 # First separate the path from the arguments. This will split at the first 47862 # space. 47863 complete="$BUILD_AR" 47864 path="${complete%% *}" 47865 tmp="$complete EOL" 47866 arguments="${tmp#* }" 47867 47868 # Cannot rely on the command "which" here since it doesn't always work. 47869 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47870 if test -z "$is_absolute_path"; then 47871 # Path to executable is not absolute. Find it. 47872 IFS_save="$IFS" 47873 IFS=: 47874 for p in $PATH; do 47875 if test -f "$p/$path" && test -x "$p/$path"; then 47876 new_path="$p/$path" 47877 break 47878 fi 47879 done 47880 IFS="$IFS_save" 47881 else 47882 # This is an absolute path, we can use it without further modifications. 47883 new_path="$path" 47884 fi 47885 47886 if test "x$new_path" = x; then 47887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47888 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47889 has_space=`$ECHO "$complete" | $GREP " "` 47890 if test "x$has_space" != x; then 47891 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47892 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47893 fi 47894 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47895 fi 47896 fi 47897 47898 # Now join together the path and the arguments once again 47899 if test "x$arguments" != xEOL; then 47900 new_complete="$new_path ${arguments% *}" 47901 else 47902 new_complete="$new_path" 47903 fi 47904 47905 if test "x$complete" != "x$new_complete"; then 47906 BUILD_AR="$new_complete" 47907 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 47908 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 47909 fi 47910 fi 47911 47912 47913 47914 # Publish this variable in the help. 47915 47916 47917 if [ -z "${BUILD_OBJCOPY+x}" ]; then 47918 # The variable is not set by user, try to locate tool using the code snippet 47919 for ac_prog in objcopy 47920 do 47921 # Extract the first word of "$ac_prog", so it can be a program name with args. 47922 set dummy $ac_prog; ac_word=$2 47923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47924 $as_echo_n "checking for $ac_word... " >&6; } 47925 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47926 $as_echo_n "(cached) " >&6 47927 else 47928 case $BUILD_OBJCOPY in 47929 [\\/]* | ?:[\\/]*) 47930 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47931 ;; 47932 *) 47933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47934 for as_dir in $PATH 47935 do 47936 IFS=$as_save_IFS 47937 test -z "$as_dir" && as_dir=. 47938 for ac_exec_ext in '' $ac_executable_extensions; do 47939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47940 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47942 break 2 47943 fi 47944 done 47945 done 47946 IFS=$as_save_IFS 47947 47948 ;; 47949 esac 47950 fi 47951 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47952 if test -n "$BUILD_OBJCOPY"; then 47953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47954 $as_echo "$BUILD_OBJCOPY" >&6; } 47955 else 47956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47957 $as_echo "no" >&6; } 47958 fi 47959 47960 47961 test -n "$BUILD_OBJCOPY" && break 47962 done 47963 47964 else 47965 # The variable is set, but is it from the command line or the environment? 47966 47967 # Try to remove the string !BUILD_OBJCOPY! from our list. 47968 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 47969 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47970 # If it failed, the variable was not from the command line. Ignore it, 47971 # but warn the user (except for BASH, which is always set by the calling BASH). 47972 if test "xBUILD_OBJCOPY" != xBASH; then 47973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 47974 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 47975 fi 47976 # Try to locate tool using the code snippet 47977 for ac_prog in objcopy 47978 do 47979 # Extract the first word of "$ac_prog", so it can be a program name with args. 47980 set dummy $ac_prog; ac_word=$2 47981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47982 $as_echo_n "checking for $ac_word... " >&6; } 47983 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47984 $as_echo_n "(cached) " >&6 47985 else 47986 case $BUILD_OBJCOPY in 47987 [\\/]* | ?:[\\/]*) 47988 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47989 ;; 47990 *) 47991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47992 for as_dir in $PATH 47993 do 47994 IFS=$as_save_IFS 47995 test -z "$as_dir" && as_dir=. 47996 for ac_exec_ext in '' $ac_executable_extensions; do 47997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47998 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48000 break 2 48001 fi 48002 done 48003 done 48004 IFS=$as_save_IFS 48005 48006 ;; 48007 esac 48008 fi 48009 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 48010 if test -n "$BUILD_OBJCOPY"; then 48011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 48012 $as_echo "$BUILD_OBJCOPY" >&6; } 48013 else 48014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48015 $as_echo "no" >&6; } 48016 fi 48017 48018 48019 test -n "$BUILD_OBJCOPY" && break 48020 done 48021 48022 else 48023 # If it succeeded, then it was overridden by the user. We will use it 48024 # for the tool. 48025 48026 # First remove it from the list of overridden variables, so we can test 48027 # for unknown variables in the end. 48028 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48029 48030 # Check if we try to supply an empty value 48031 if test "x$BUILD_OBJCOPY" = x; then 48032 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 48033 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 48034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 48035 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 48036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48037 $as_echo "disabled" >&6; } 48038 else 48039 # Check if the provided tool contains a complete path. 48040 tool_specified="$BUILD_OBJCOPY" 48041 tool_basename="${tool_specified##*/}" 48042 if test "x$tool_basename" = "x$tool_specified"; then 48043 # A command without a complete path is provided, search $PATH. 48044 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 48045 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 48046 # Extract the first word of "$tool_basename", so it can be a program name with args. 48047 set dummy $tool_basename; ac_word=$2 48048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48049 $as_echo_n "checking for $ac_word... " >&6; } 48050 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 48051 $as_echo_n "(cached) " >&6 48052 else 48053 case $BUILD_OBJCOPY in 48054 [\\/]* | ?:[\\/]*) 48055 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 48056 ;; 48057 *) 48058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48059 for as_dir in $PATH 48060 do 48061 IFS=$as_save_IFS 48062 test -z "$as_dir" && as_dir=. 48063 for ac_exec_ext in '' $ac_executable_extensions; do 48064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48065 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 48066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48067 break 2 48068 fi 48069 done 48070 done 48071 IFS=$as_save_IFS 48072 48073 ;; 48074 esac 48075 fi 48076 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 48077 if test -n "$BUILD_OBJCOPY"; then 48078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 48079 $as_echo "$BUILD_OBJCOPY" >&6; } 48080 else 48081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48082 $as_echo "no" >&6; } 48083 fi 48084 48085 48086 if test "x$BUILD_OBJCOPY" = x; then 48087 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48088 fi 48089 else 48090 # Otherwise we believe it is a complete path. Use it as it is. 48091 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 48092 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 48093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 48094 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 48095 if test ! -x "$tool_specified"; then 48096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48097 $as_echo "not found" >&6; } 48098 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 48099 fi 48100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48101 $as_echo "$tool_specified" >&6; } 48102 fi 48103 fi 48104 fi 48105 48106 fi 48107 48108 48109 48110 # Only process if variable expands to non-empty 48111 48112 if test "x$BUILD_OBJCOPY" != x; then 48113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48114 48115 # First separate the path from the arguments. This will split at the first 48116 # space. 48117 complete="$BUILD_OBJCOPY" 48118 path="${complete%% *}" 48119 tmp="$complete EOL" 48120 arguments="${tmp#* }" 48121 48122 # Input might be given as Windows format, start by converting to 48123 # unix format. 48124 new_path=`$CYGPATH -u "$path"` 48125 48126 # Now try to locate executable using which 48127 new_path=`$WHICH "$new_path" 2> /dev/null` 48128 # bat and cmd files are not always considered executable in cygwin causing which 48129 # to not find them 48130 if test "x$new_path" = x \ 48131 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48132 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48133 new_path=`$CYGPATH -u "$path"` 48134 fi 48135 if test "x$new_path" = x; then 48136 # Oops. Which didn't find the executable. 48137 # The splitting of arguments from the executable at a space might have been incorrect, 48138 # since paths with space are more likely in Windows. Give it another try with the whole 48139 # argument. 48140 path="$complete" 48141 arguments="EOL" 48142 new_path=`$CYGPATH -u "$path"` 48143 new_path=`$WHICH "$new_path" 2> /dev/null` 48144 # bat and cmd files are not always considered executable in cygwin causing which 48145 # to not find them 48146 if test "x$new_path" = x \ 48147 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48148 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48149 new_path=`$CYGPATH -u "$path"` 48150 fi 48151 if test "x$new_path" = x; then 48152 # It's still not found. Now this is an unrecoverable error. 48153 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48154 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48155 has_space=`$ECHO "$complete" | $GREP " "` 48156 if test "x$has_space" != x; then 48157 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48158 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48159 fi 48160 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48161 fi 48162 fi 48163 48164 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48165 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48166 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48167 # "foo.exe" is OK but "foo" is an error. 48168 # 48169 # This test is therefore slightly more accurate than "test -f" to check for file presence. 48170 # It is also a way to make sure we got the proper file name for the real test later on. 48171 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48172 if test "x$test_shortpath" = x; then 48173 # Short path failed, file does not exist as specified. 48174 # Try adding .exe or .cmd 48175 if test -f "${new_path}.exe"; then 48176 input_to_shortpath="${new_path}.exe" 48177 elif test -f "${new_path}.cmd"; then 48178 input_to_shortpath="${new_path}.cmd" 48179 else 48180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 48181 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 48182 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 48183 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 48184 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48185 fi 48186 else 48187 input_to_shortpath="$new_path" 48188 fi 48189 48190 # Call helper function which possibly converts this using DOS-style short mode. 48191 # If so, the updated path is stored in $new_path. 48192 new_path="$input_to_shortpath" 48193 48194 input_path="$input_to_shortpath" 48195 # Check if we need to convert this using DOS-style short mode. If the path 48196 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48197 # take no chances and rewrite it. 48198 # Note: m4 eats our [], so we need to use [ and ] instead. 48199 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48200 if test "x$has_forbidden_chars" != x; then 48201 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48202 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48203 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48204 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48205 # Going to short mode and back again did indeed matter. Since short mode is 48206 # case insensitive, let's make it lowercase to improve readability. 48207 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48208 # Now convert it back to Unix-style (cygpath) 48209 input_path=`$CYGPATH -u "$shortmode_path"` 48210 new_path="$input_path" 48211 fi 48212 fi 48213 48214 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48215 if test "x$test_cygdrive_prefix" = x; then 48216 # As a simple fix, exclude /usr/bin since it's not a real path. 48217 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 48218 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48219 # a path prefixed by /cygdrive for fixpath to work. 48220 new_path="$CYGWIN_ROOT_PATH$input_path" 48221 fi 48222 fi 48223 48224 # remove trailing .exe if any 48225 new_path="${new_path/%.exe/}" 48226 48227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48228 48229 # First separate the path from the arguments. This will split at the first 48230 # space. 48231 complete="$BUILD_OBJCOPY" 48232 path="${complete%% *}" 48233 tmp="$complete EOL" 48234 arguments="${tmp#* }" 48235 48236 # Input might be given as Windows format, start by converting to 48237 # unix format. 48238 new_path="$path" 48239 48240 windows_path="$new_path" 48241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48242 unix_path=`$CYGPATH -u "$windows_path"` 48243 new_path="$unix_path" 48244 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48245 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48246 new_path="$unix_path" 48247 fi 48248 48249 48250 # Now try to locate executable using which 48251 new_path=`$WHICH "$new_path" 2> /dev/null` 48252 48253 if test "x$new_path" = x; then 48254 # Oops. Which didn't find the executable. 48255 # The splitting of arguments from the executable at a space might have been incorrect, 48256 # since paths with space are more likely in Windows. Give it another try with the whole 48257 # argument. 48258 path="$complete" 48259 arguments="EOL" 48260 new_path="$path" 48261 48262 windows_path="$new_path" 48263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48264 unix_path=`$CYGPATH -u "$windows_path"` 48265 new_path="$unix_path" 48266 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48267 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48268 new_path="$unix_path" 48269 fi 48270 48271 48272 new_path=`$WHICH "$new_path" 2> /dev/null` 48273 # bat and cmd files are not always considered executable in MSYS causing which 48274 # to not find them 48275 if test "x$new_path" = x \ 48276 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48277 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48278 new_path="$path" 48279 48280 windows_path="$new_path" 48281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48282 unix_path=`$CYGPATH -u "$windows_path"` 48283 new_path="$unix_path" 48284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48286 new_path="$unix_path" 48287 fi 48288 48289 fi 48290 48291 if test "x$new_path" = x; then 48292 # It's still not found. Now this is an unrecoverable error. 48293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48294 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48295 has_space=`$ECHO "$complete" | $GREP " "` 48296 if test "x$has_space" != x; then 48297 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48298 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48299 fi 48300 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48301 fi 48302 fi 48303 48304 # Now new_path has a complete unix path to the binary 48305 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 48306 # Keep paths in /bin as-is, but remove trailing .exe if any 48307 new_path="${new_path/%.exe/}" 48308 # Do not save /bin paths to all_fixpath_prefixes! 48309 else 48310 # Not in mixed or Windows style, start by that. 48311 new_path=`cmd //c echo $new_path` 48312 48313 input_path="$new_path" 48314 # Check if we need to convert this using DOS-style short mode. If the path 48315 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48316 # take no chances and rewrite it. 48317 # Note: m4 eats our [], so we need to use [ and ] instead. 48318 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48319 if test "x$has_forbidden_chars" != x; then 48320 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48321 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48322 fi 48323 48324 # Output is in $new_path 48325 48326 windows_path="$new_path" 48327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48328 unix_path=`$CYGPATH -u "$windows_path"` 48329 new_path="$unix_path" 48330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48331 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48332 new_path="$unix_path" 48333 fi 48334 48335 # remove trailing .exe if any 48336 new_path="${new_path/%.exe/}" 48337 48338 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48339 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48340 fi 48341 48342 else 48343 # We're on a unix platform. Hooray! :) 48344 # First separate the path from the arguments. This will split at the first 48345 # space. 48346 complete="$BUILD_OBJCOPY" 48347 path="${complete%% *}" 48348 tmp="$complete EOL" 48349 arguments="${tmp#* }" 48350 48351 # Cannot rely on the command "which" here since it doesn't always work. 48352 is_absolute_path=`$ECHO "$path" | $GREP ^/` 48353 if test -z "$is_absolute_path"; then 48354 # Path to executable is not absolute. Find it. 48355 IFS_save="$IFS" 48356 IFS=: 48357 for p in $PATH; do 48358 if test -f "$p/$path" && test -x "$p/$path"; then 48359 new_path="$p/$path" 48360 break 48361 fi 48362 done 48363 IFS="$IFS_save" 48364 else 48365 # This is an absolute path, we can use it without further modifications. 48366 new_path="$path" 48367 fi 48368 48369 if test "x$new_path" = x; then 48370 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48371 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48372 has_space=`$ECHO "$complete" | $GREP " "` 48373 if test "x$has_space" != x; then 48374 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 48375 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 48376 fi 48377 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48378 fi 48379 fi 48380 48381 # Now join together the path and the arguments once again 48382 if test "x$arguments" != xEOL; then 48383 new_complete="$new_path ${arguments% *}" 48384 else 48385 new_complete="$new_path" 48386 fi 48387 48388 if test "x$complete" != "x$new_complete"; then 48389 BUILD_OBJCOPY="$new_complete" 48390 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 48391 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 48392 fi 48393 fi 48394 48395 48396 48397 # Publish this variable in the help. 48398 48399 48400 if [ -z "${BUILD_STRIP+x}" ]; then 48401 # The variable is not set by user, try to locate tool using the code snippet 48402 for ac_prog in strip 48403 do 48404 # Extract the first word of "$ac_prog", so it can be a program name with args. 48405 set dummy $ac_prog; ac_word=$2 48406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48407 $as_echo_n "checking for $ac_word... " >&6; } 48408 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48409 $as_echo_n "(cached) " >&6 48410 else 48411 case $BUILD_STRIP in 48412 [\\/]* | ?:[\\/]*) 48413 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48414 ;; 48415 *) 48416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48417 for as_dir in $PATH 48418 do 48419 IFS=$as_save_IFS 48420 test -z "$as_dir" && as_dir=. 48421 for ac_exec_ext in '' $ac_executable_extensions; do 48422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48423 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48425 break 2 48426 fi 48427 done 48428 done 48429 IFS=$as_save_IFS 48430 48431 ;; 48432 esac 48433 fi 48434 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48435 if test -n "$BUILD_STRIP"; then 48436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48437 $as_echo "$BUILD_STRIP" >&6; } 48438 else 48439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48440 $as_echo "no" >&6; } 48441 fi 48442 48443 48444 test -n "$BUILD_STRIP" && break 48445 done 48446 48447 else 48448 # The variable is set, but is it from the command line or the environment? 48449 48450 # Try to remove the string !BUILD_STRIP! from our list. 48451 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 48452 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48453 # If it failed, the variable was not from the command line. Ignore it, 48454 # but warn the user (except for BASH, which is always set by the calling BASH). 48455 if test "xBUILD_STRIP" != xBASH; then 48456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 48457 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 48458 fi 48459 # Try to locate tool using the code snippet 48460 for ac_prog in strip 48461 do 48462 # Extract the first word of "$ac_prog", so it can be a program name with args. 48463 set dummy $ac_prog; ac_word=$2 48464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48465 $as_echo_n "checking for $ac_word... " >&6; } 48466 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48467 $as_echo_n "(cached) " >&6 48468 else 48469 case $BUILD_STRIP in 48470 [\\/]* | ?:[\\/]*) 48471 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48472 ;; 48473 *) 48474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48475 for as_dir in $PATH 48476 do 48477 IFS=$as_save_IFS 48478 test -z "$as_dir" && as_dir=. 48479 for ac_exec_ext in '' $ac_executable_extensions; do 48480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48481 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48483 break 2 48484 fi 48485 done 48486 done 48487 IFS=$as_save_IFS 48488 48489 ;; 48490 esac 48491 fi 48492 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48493 if test -n "$BUILD_STRIP"; then 48494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48495 $as_echo "$BUILD_STRIP" >&6; } 48496 else 48497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48498 $as_echo "no" >&6; } 48499 fi 48500 48501 48502 test -n "$BUILD_STRIP" && break 48503 done 48504 48505 else 48506 # If it succeeded, then it was overridden by the user. We will use it 48507 # for the tool. 48508 48509 # First remove it from the list of overridden variables, so we can test 48510 # for unknown variables in the end. 48511 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48512 48513 # Check if we try to supply an empty value 48514 if test "x$BUILD_STRIP" = x; then 48515 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 48516 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 48517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 48518 $as_echo_n "checking for BUILD_STRIP... " >&6; } 48519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48520 $as_echo "disabled" >&6; } 48521 else 48522 # Check if the provided tool contains a complete path. 48523 tool_specified="$BUILD_STRIP" 48524 tool_basename="${tool_specified##*/}" 48525 if test "x$tool_basename" = "x$tool_specified"; then 48526 # A command without a complete path is provided, search $PATH. 48527 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 48528 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 48529 # Extract the first word of "$tool_basename", so it can be a program name with args. 48530 set dummy $tool_basename; ac_word=$2 48531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48532 $as_echo_n "checking for $ac_word... " >&6; } 48533 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48534 $as_echo_n "(cached) " >&6 48535 else 48536 case $BUILD_STRIP in 48537 [\\/]* | ?:[\\/]*) 48538 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48539 ;; 48540 *) 48541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48542 for as_dir in $PATH 48543 do 48544 IFS=$as_save_IFS 48545 test -z "$as_dir" && as_dir=. 48546 for ac_exec_ext in '' $ac_executable_extensions; do 48547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48548 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48550 break 2 48551 fi 48552 done 48553 done 48554 IFS=$as_save_IFS 48555 48556 ;; 48557 esac 48558 fi 48559 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48560 if test -n "$BUILD_STRIP"; then 48561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48562 $as_echo "$BUILD_STRIP" >&6; } 48563 else 48564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48565 $as_echo "no" >&6; } 48566 fi 48567 48568 48569 if test "x$BUILD_STRIP" = x; then 48570 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48571 fi 48572 else 48573 # Otherwise we believe it is a complete path. Use it as it is. 48574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 48575 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 48576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 48577 $as_echo_n "checking for BUILD_STRIP... " >&6; } 48578 if test ! -x "$tool_specified"; then 48579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48580 $as_echo "not found" >&6; } 48581 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 48582 fi 48583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48584 $as_echo "$tool_specified" >&6; } 48585 fi 48586 fi 48587 fi 48588 48589 fi 48590 48591 48592 48593 # Only process if variable expands to non-empty 48594 48595 if test "x$BUILD_STRIP" != x; then 48596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48597 48598 # First separate the path from the arguments. This will split at the first 48599 # space. 48600 complete="$BUILD_STRIP" 48601 path="${complete%% *}" 48602 tmp="$complete EOL" 48603 arguments="${tmp#* }" 48604 48605 # Input might be given as Windows format, start by converting to 48606 # unix format. 48607 new_path=`$CYGPATH -u "$path"` 48608 48609 # Now try to locate executable using which 48610 new_path=`$WHICH "$new_path" 2> /dev/null` 48611 # bat and cmd files are not always considered executable in cygwin causing which 48612 # to not find them 48613 if test "x$new_path" = x \ 48614 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48615 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48616 new_path=`$CYGPATH -u "$path"` 48617 fi 48618 if test "x$new_path" = x; then 48619 # Oops. Which didn't find the executable. 48620 # The splitting of arguments from the executable at a space might have been incorrect, 48621 # since paths with space are more likely in Windows. Give it another try with the whole 48622 # argument. 48623 path="$complete" 48624 arguments="EOL" 48625 new_path=`$CYGPATH -u "$path"` 48626 new_path=`$WHICH "$new_path" 2> /dev/null` 48627 # bat and cmd files are not always considered executable in cygwin causing which 48628 # to not find them 48629 if test "x$new_path" = x \ 48630 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48631 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48632 new_path=`$CYGPATH -u "$path"` 48633 fi 48634 if test "x$new_path" = x; then 48635 # It's still not found. Now this is an unrecoverable error. 48636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48637 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48638 has_space=`$ECHO "$complete" | $GREP " "` 48639 if test "x$has_space" != x; then 48640 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48641 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48642 fi 48643 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48644 fi 48645 fi 48646 48647 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48648 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48649 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48650 # "foo.exe" is OK but "foo" is an error. 48651 # 48652 # This test is therefore slightly more accurate than "test -f" to check for file presence. 48653 # It is also a way to make sure we got the proper file name for the real test later on. 48654 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48655 if test "x$test_shortpath" = x; then 48656 # Short path failed, file does not exist as specified. 48657 # Try adding .exe or .cmd 48658 if test -f "${new_path}.exe"; then 48659 input_to_shortpath="${new_path}.exe" 48660 elif test -f "${new_path}.cmd"; then 48661 input_to_shortpath="${new_path}.cmd" 48662 else 48663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 48664 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 48665 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 48666 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 48667 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48668 fi 48669 else 48670 input_to_shortpath="$new_path" 48671 fi 48672 48673 # Call helper function which possibly converts this using DOS-style short mode. 48674 # If so, the updated path is stored in $new_path. 48675 new_path="$input_to_shortpath" 48676 48677 input_path="$input_to_shortpath" 48678 # Check if we need to convert this using DOS-style short mode. If the path 48679 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48680 # take no chances and rewrite it. 48681 # Note: m4 eats our [], so we need to use [ and ] instead. 48682 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48683 if test "x$has_forbidden_chars" != x; then 48684 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48685 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48686 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48687 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48688 # Going to short mode and back again did indeed matter. Since short mode is 48689 # case insensitive, let's make it lowercase to improve readability. 48690 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48691 # Now convert it back to Unix-style (cygpath) 48692 input_path=`$CYGPATH -u "$shortmode_path"` 48693 new_path="$input_path" 48694 fi 48695 fi 48696 48697 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48698 if test "x$test_cygdrive_prefix" = x; then 48699 # As a simple fix, exclude /usr/bin since it's not a real path. 48700 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 48701 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48702 # a path prefixed by /cygdrive for fixpath to work. 48703 new_path="$CYGWIN_ROOT_PATH$input_path" 48704 fi 48705 fi 48706 48707 # remove trailing .exe if any 48708 new_path="${new_path/%.exe/}" 48709 48710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48711 48712 # First separate the path from the arguments. This will split at the first 48713 # space. 48714 complete="$BUILD_STRIP" 48715 path="${complete%% *}" 48716 tmp="$complete EOL" 48717 arguments="${tmp#* }" 48718 48719 # Input might be given as Windows format, start by converting to 48720 # unix format. 48721 new_path="$path" 48722 48723 windows_path="$new_path" 48724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48725 unix_path=`$CYGPATH -u "$windows_path"` 48726 new_path="$unix_path" 48727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48729 new_path="$unix_path" 48730 fi 48731 48732 48733 # Now try to locate executable using which 48734 new_path=`$WHICH "$new_path" 2> /dev/null` 48735 48736 if test "x$new_path" = x; then 48737 # Oops. Which didn't find the executable. 48738 # The splitting of arguments from the executable at a space might have been incorrect, 48739 # since paths with space are more likely in Windows. Give it another try with the whole 48740 # argument. 48741 path="$complete" 48742 arguments="EOL" 48743 new_path="$path" 48744 48745 windows_path="$new_path" 48746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48747 unix_path=`$CYGPATH -u "$windows_path"` 48748 new_path="$unix_path" 48749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48751 new_path="$unix_path" 48752 fi 48753 48754 48755 new_path=`$WHICH "$new_path" 2> /dev/null` 48756 # bat and cmd files are not always considered executable in MSYS causing which 48757 # to not find them 48758 if test "x$new_path" = x \ 48759 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48760 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48761 new_path="$path" 48762 48763 windows_path="$new_path" 48764 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48765 unix_path=`$CYGPATH -u "$windows_path"` 48766 new_path="$unix_path" 48767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48768 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48769 new_path="$unix_path" 48770 fi 48771 48772 fi 48773 48774 if test "x$new_path" = x; then 48775 # It's still not found. Now this is an unrecoverable error. 48776 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48777 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48778 has_space=`$ECHO "$complete" | $GREP " "` 48779 if test "x$has_space" != x; then 48780 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48781 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48782 fi 48783 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48784 fi 48785 fi 48786 48787 # Now new_path has a complete unix path to the binary 48788 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 48789 # Keep paths in /bin as-is, but remove trailing .exe if any 48790 new_path="${new_path/%.exe/}" 48791 # Do not save /bin paths to all_fixpath_prefixes! 48792 else 48793 # Not in mixed or Windows style, start by that. 48794 new_path=`cmd //c echo $new_path` 48795 48796 input_path="$new_path" 48797 # Check if we need to convert this using DOS-style short mode. If the path 48798 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48799 # take no chances and rewrite it. 48800 # Note: m4 eats our [], so we need to use [ and ] instead. 48801 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48802 if test "x$has_forbidden_chars" != x; then 48803 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48804 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48805 fi 48806 48807 # Output is in $new_path 48808 48809 windows_path="$new_path" 48810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48811 unix_path=`$CYGPATH -u "$windows_path"` 48812 new_path="$unix_path" 48813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48814 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48815 new_path="$unix_path" 48816 fi 48817 48818 # remove trailing .exe if any 48819 new_path="${new_path/%.exe/}" 48820 48821 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48822 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48823 fi 48824 48825 else 48826 # We're on a unix platform. Hooray! :) 48827 # First separate the path from the arguments. This will split at the first 48828 # space. 48829 complete="$BUILD_STRIP" 48830 path="${complete%% *}" 48831 tmp="$complete EOL" 48832 arguments="${tmp#* }" 48833 48834 # Cannot rely on the command "which" here since it doesn't always work. 48835 is_absolute_path=`$ECHO "$path" | $GREP ^/` 48836 if test -z "$is_absolute_path"; then 48837 # Path to executable is not absolute. Find it. 48838 IFS_save="$IFS" 48839 IFS=: 48840 for p in $PATH; do 48841 if test -f "$p/$path" && test -x "$p/$path"; then 48842 new_path="$p/$path" 48843 break 48844 fi 48845 done 48846 IFS="$IFS_save" 48847 else 48848 # This is an absolute path, we can use it without further modifications. 48849 new_path="$path" 48850 fi 48851 48852 if test "x$new_path" = x; then 48853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48854 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48855 has_space=`$ECHO "$complete" | $GREP " "` 48856 if test "x$has_space" != x; then 48857 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 48858 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 48859 fi 48860 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48861 fi 48862 fi 48863 48864 # Now join together the path and the arguments once again 48865 if test "x$arguments" != xEOL; then 48866 new_complete="$new_path ${arguments% *}" 48867 else 48868 new_complete="$new_path" 48869 fi 48870 48871 if test "x$complete" != "x$new_complete"; then 48872 BUILD_STRIP="$new_complete" 48873 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 48874 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 48875 fi 48876 fi 48877 48878 # Assume the C compiler is the assembler 48879 BUILD_AS="$BUILD_CC -c" 48880 # Just like for the target compiler, use the compiler as linker 48881 BUILD_LD="$BUILD_CC" 48882 BUILD_LDCXX="$BUILD_CXX" 48883 48884 PATH="$OLDPATH" 48885 48886 48887 COMPILER=$BUILD_CC 48888 COMPILER_NAME=BuildC 48889 48890 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48891 # cc -V output typically looks like 48892 # cc: Sun C 5.12 Linux_i386 2011/11/16 48893 # or 48894 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48895 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48896 # Check that this is likely to be the Solaris Studio cc. 48897 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48898 if test $? -ne 0; then 48899 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48900 { $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 48901 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48902 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48903 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48904 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48905 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48906 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48907 fi 48908 # Remove usage instructions (if present), and 48909 # collapse compiler output into a single line 48910 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48911 $SED -e 's/ *[Uu]sage:.*//'` 48912 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48913 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48914 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48915 # xlc -qversion output typically looks like 48916 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48917 # Version: 11.01.0000.0015 48918 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48919 # Check that this is likely to be the IBM XL C compiler. 48920 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48921 if test $? -ne 0; then 48922 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48923 { $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 48924 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48925 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48926 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48927 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48928 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48929 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48930 fi 48931 # Collapse compiler output into a single line 48932 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48933 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48934 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48935 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48936 # There is no specific version flag, but all output starts with a version string. 48937 # First line typically looks something like: 48938 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48939 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48940 # Check that this is likely to be Microsoft CL.EXE. 48941 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48942 if test $? -ne 0; then 48943 { $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 48944 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48945 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48946 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48947 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48948 fi 48949 # Collapse compiler output into a single line 48950 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48951 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48952 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48953 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48954 # gcc --version output typically looks like 48955 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48956 # Copyright (C) 2013 Free Software Foundation, Inc. 48957 # This is free software; see the source for copying conditions. There is NO 48958 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48959 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48960 # Check that this is likely to be GCC. 48961 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48962 if test $? -ne 0; then 48963 { $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 48964 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48965 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48966 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48967 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48968 fi 48969 # Remove Copyright and legalese from version string, and 48970 # collapse into a single line 48971 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48972 $SED -e 's/ *Copyright .*//'` 48973 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48974 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48975 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48976 # clang --version output typically looks like 48977 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48978 # clang version 3.3 (tags/RELEASE_33/final) 48979 # or 48980 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48981 # Target: x86_64-pc-linux-gnu 48982 # Thread model: posix 48983 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48984 # Check that this is likely to be clang 48985 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48986 if test $? -ne 0; then 48987 { $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 48988 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48989 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48990 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48991 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48992 fi 48993 # Collapse compiler output into a single line 48994 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48995 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48996 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48997 else 48998 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48999 fi 49000 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 49001 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 49002 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 49003 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 49004 49005 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 49006 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 49007 49008 49009 COMPILER=$BUILD_CXX 49010 COMPILER_NAME=BuildC++ 49011 49012 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49013 # cc -V output typically looks like 49014 # cc: Sun C 5.12 Linux_i386 2011/11/16 49015 # or 49016 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 49017 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 49018 # Check that this is likely to be the Solaris Studio cc. 49019 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 49020 if test $? -ne 0; then 49021 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 49022 { $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 49023 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49024 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 49025 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 49026 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 49027 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 49028 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49029 fi 49030 # Remove usage instructions (if present), and 49031 # collapse compiler output into a single line 49032 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49033 $SED -e 's/ *[Uu]sage:.*//'` 49034 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49035 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 49036 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 49037 # xlc -qversion output typically looks like 49038 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 49039 # Version: 11.01.0000.0015 49040 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 49041 # Check that this is likely to be the IBM XL C compiler. 49042 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 49043 if test $? -ne 0; then 49044 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 49045 { $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 49046 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49047 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 49048 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 49049 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 49050 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 49051 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49052 fi 49053 # Collapse compiler output into a single line 49054 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 49055 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49056 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 49057 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49058 # There is no specific version flag, but all output starts with a version string. 49059 # First line typically looks something like: 49060 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 49061 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 49062 # Check that this is likely to be Microsoft CL.EXE. 49063 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 49064 if test $? -ne 0; then 49065 { $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 49066 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49067 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 49068 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 49069 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49070 fi 49071 # Collapse compiler output into a single line 49072 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 49073 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49074 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 49075 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 49076 # gcc --version output typically looks like 49077 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 49078 # Copyright (C) 2013 Free Software Foundation, Inc. 49079 # This is free software; see the source for copying conditions. There is NO 49080 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 49081 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 49082 # Check that this is likely to be GCC. 49083 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 49084 if test $? -ne 0; then 49085 { $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 49086 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49087 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 49088 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 49089 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49090 fi 49091 # Remove Copyright and legalese from version string, and 49092 # collapse into a single line 49093 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49094 $SED -e 's/ *Copyright .*//'` 49095 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49096 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 49097 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49098 # clang --version output typically looks like 49099 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 49100 # clang version 3.3 (tags/RELEASE_33/final) 49101 # or 49102 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 49103 # Target: x86_64-pc-linux-gnu 49104 # Thread model: posix 49105 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 49106 # Check that this is likely to be clang 49107 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 49108 if test $? -ne 0; then 49109 { $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 49110 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49111 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 49112 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 49113 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49114 fi 49115 # Collapse compiler output into a single line 49116 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 49117 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49118 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 49119 else 49120 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 49121 fi 49122 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 49123 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 49124 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 49125 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 49126 49127 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 49128 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 49129 49130 49131 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 49132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&5 49133 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 49134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 49135 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 49136 fi 49137 49138 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 49139 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 49140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 49141 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49142 fi 49143 49144 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 49145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 49146 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49147 fi 49148 49149 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 49150 49151 else 49152 # If we are not cross compiling, use the normal target compilers for 49153 # building the build platform executables. 49154 BUILD_CC="$CC" 49155 BUILD_CXX="$CXX" 49156 BUILD_LD="$LD" 49157 BUILD_LDCXX="$LDCXX" 49158 BUILD_NM="$NM" 49159 BUILD_AS="$AS" 49160 BUILD_OBJCOPY="$OBJCOPY" 49161 BUILD_STRIP="$STRIP" 49162 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 49163 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 49164 BUILD_AR="$AR" 49165 49166 49167 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 49168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 49169 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 49170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 49171 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 49172 fi 49173 49174 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 49175 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 49176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 49177 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49178 fi 49179 49180 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 49181 { $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 49182 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49183 fi 49184 49185 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 49186 49187 fi 49188 49189 49190 49191 49192 49193 49194 49195 49196 49197 49198 49199 49200 49201 49202 # The package path is used only on macosx? 49203 # FIXME: clean this up, and/or move it elsewhere. 49204 PACKAGE_PATH=/opt/local 49205 49206 49207 # Check for extra potential brokenness. 49208 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49209 # On Windows, double-check that we got the right compiler. 49210 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 49211 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 49212 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 49213 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 49214 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 49215 fi 49216 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 49217 if test "x$COMPILER_CPU_TEST" != "xx64"; then 49218 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 49219 fi 49220 fi 49221 fi 49222 49223 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49224 # If this is a --hash-style=gnu system, use --hash-style=both, why? 49225 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 49226 # This is later checked when setting flags. 49227 49228 # "-Og" suppported for GCC 4.8 and later 49229 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 49230 49231 49232 49233 49234 49235 49236 49237 49238 49239 49240 49241 49242 49243 49244 49245 49246 49247 49248 49249 49250 49251 49252 49253 49254 49255 49256 49257 49258 49259 49260 49261 49262 49263 49264 49265 49266 49267 49268 49269 49270 49271 49272 49273 49274 49275 49276 49277 # Execute function body 49278 49279 49280 49281 49282 49283 49284 49285 49286 49287 49288 49289 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 # Execute function body 49327 49328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49329 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49330 supports=yes 49331 49332 saved_cflags="$CFLAGS" 49333 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 49334 ac_ext=c 49335 ac_cpp='$CPP $CPPFLAGS' 49336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49338 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49339 49340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49341 /* end confdefs.h. */ 49342 int i; 49343 _ACEOF 49344 if ac_fn_c_try_compile "$LINENO"; then : 49345 49346 else 49347 supports=no 49348 fi 49349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49350 ac_ext=cpp 49351 ac_cpp='$CXXCPP $CPPFLAGS' 49352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49355 49356 CFLAGS="$saved_cflags" 49357 49358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49359 $as_echo "$supports" >&6; } 49360 if test "x$supports" = "xyes" ; then 49361 : 49362 C_COMP_SUPPORTS="yes" 49363 else 49364 : 49365 C_COMP_SUPPORTS="no" 49366 fi 49367 49368 49369 49370 49371 49372 49373 49374 49375 49376 49377 49378 49379 49380 49381 49382 49383 49384 49385 49386 49387 49388 49389 49390 49391 49392 49393 49394 49395 49396 49397 49398 49399 49400 49401 49402 49403 49404 49405 49406 49407 49408 49409 49410 49411 49412 49413 49414 49415 49416 49417 49418 49419 49420 49421 49422 49423 49424 49425 49426 # Execute function body 49427 49428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49429 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49430 supports=yes 49431 49432 saved_cxxflags="$CXXFLAGS" 49433 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 49434 ac_ext=cpp 49435 ac_cpp='$CXXCPP $CPPFLAGS' 49436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49439 49440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49441 /* end confdefs.h. */ 49442 int i; 49443 _ACEOF 49444 if ac_fn_cxx_try_compile "$LINENO"; then : 49445 49446 else 49447 supports=no 49448 fi 49449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49450 ac_ext=cpp 49451 ac_cpp='$CXXCPP $CPPFLAGS' 49452 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49453 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49454 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49455 49456 CXXFLAGS="$saved_cxxflags" 49457 49458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49459 $as_echo "$supports" >&6; } 49460 if test "x$supports" = "xyes" ; then 49461 : 49462 CXX_COMP_SUPPORTS="yes" 49463 else 49464 : 49465 CXX_COMP_SUPPORTS="no" 49466 fi 49467 49468 49469 49470 49471 49472 49473 49474 49475 49476 49477 49478 49479 49480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49481 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49482 supports=no 49483 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49484 49485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49486 $as_echo "$supports" >&6; } 49487 if test "x$supports" = "xyes" ; then 49488 : 49489 HAS_CFLAG_OPTIMIZE_DEBUG=true 49490 else 49491 : 49492 HAS_CFLAG_OPTIMIZE_DEBUG=false 49493 fi 49494 49495 49496 49497 49498 49499 49500 49501 # "-z relro" supported in GNU binutils 2.17 and later 49502 LINKER_RELRO_FLAG="-Wl,-z,relro" 49503 49504 49505 49506 49507 49508 49509 49510 49511 49512 49513 49514 49515 49516 49517 49518 49519 49520 49521 49522 49523 49524 49525 49526 49527 49528 49529 49530 49531 49532 49533 49534 49535 49536 49537 49538 49539 49540 49541 49542 49543 49544 49545 49546 49547 49548 49549 49550 # Execute function body 49551 49552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 49553 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 49554 supports=yes 49555 49556 saved_ldflags="$LDFLAGS" 49557 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 49558 ac_ext=c 49559 ac_cpp='$CPP $CPPFLAGS' 49560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49562 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49563 49564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49565 /* end confdefs.h. */ 49566 49567 int 49568 main () 49569 { 49570 49571 ; 49572 return 0; 49573 } 49574 _ACEOF 49575 if ac_fn_c_try_link "$LINENO"; then : 49576 49577 else 49578 supports=no 49579 fi 49580 rm -f core conftest.err conftest.$ac_objext \ 49581 conftest$ac_exeext conftest.$ac_ext 49582 ac_ext=cpp 49583 ac_cpp='$CXXCPP $CPPFLAGS' 49584 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49585 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49586 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49587 49588 LDFLAGS="$saved_ldflags" 49589 49590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49591 $as_echo "$supports" >&6; } 49592 if test "x$supports" = "xyes" ; then 49593 : 49594 HAS_LINKER_RELRO=true 49595 else 49596 : 49597 HAS_LINKER_RELRO=false 49598 fi 49599 49600 49601 49602 49603 49604 49605 49606 49607 49608 49609 49610 49611 49612 # "-z now" supported in GNU binutils 2.11 and later 49613 LINKER_NOW_FLAG="-Wl,-z,now" 49614 49615 49616 49617 49618 49619 49620 49621 49622 49623 49624 49625 49626 49627 49628 49629 49630 49631 49632 49633 49634 49635 49636 49637 49638 49639 49640 49641 49642 49643 49644 49645 49646 49647 49648 49649 49650 49651 49652 49653 49654 49655 49656 49657 49658 49659 49660 49661 # Execute function body 49662 49663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 49664 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 49665 supports=yes 49666 49667 saved_ldflags="$LDFLAGS" 49668 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 49669 ac_ext=c 49670 ac_cpp='$CPP $CPPFLAGS' 49671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49673 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49674 49675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49676 /* end confdefs.h. */ 49677 49678 int 49679 main () 49680 { 49681 49682 ; 49683 return 0; 49684 } 49685 _ACEOF 49686 if ac_fn_c_try_link "$LINENO"; then : 49687 49688 else 49689 supports=no 49690 fi 49691 rm -f core conftest.err conftest.$ac_objext \ 49692 conftest$ac_exeext conftest.$ac_ext 49693 ac_ext=cpp 49694 ac_cpp='$CXXCPP $CPPFLAGS' 49695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49698 49699 LDFLAGS="$saved_ldflags" 49700 49701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49702 $as_echo "$supports" >&6; } 49703 if test "x$supports" = "xyes" ; then 49704 : 49705 HAS_LINKER_NOW=true 49706 else 49707 : 49708 HAS_LINKER_NOW=false 49709 fi 49710 49711 49712 49713 49714 49715 49716 49717 49718 49719 49720 49721 49722 fi 49723 49724 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 49725 # in executable.' 49726 USING_BROKEN_SUSE_LD=no 49727 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 49728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 49729 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 49730 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 49731 $ECHO "int main() { }" > main.c 49732 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 49733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49734 $as_echo "no" >&6; } 49735 USING_BROKEN_SUSE_LD=no 49736 else 49737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49738 $as_echo "yes" >&6; } 49739 USING_BROKEN_SUSE_LD=yes 49740 fi 49741 $RM version-script.map main.c a.out 49742 fi 49743 49744 49745 # Setup hotspot lecagy names for toolchains 49746 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 49747 if test "x$TOOLCHAIN_TYPE" = xclang; then 49748 HOTSPOT_TOOLCHAIN_TYPE=gcc 49749 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49750 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 49751 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49752 HOTSPOT_TOOLCHAIN_TYPE=visCPP 49753 fi 49754 49755 49756 49757 # Setup the JTReg Regression Test Harness. 49758 49759 49760 # Check whether --with-jtreg was given. 49761 if test "${with_jtreg+set}" = set; then : 49762 withval=$with_jtreg; 49763 fi 49764 49765 49766 if test "x$with_jtreg" = xno; then 49767 # jtreg disabled 49768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49769 $as_echo_n "checking for jtreg test harness... " >&6; } 49770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5 49771 $as_echo "no, disabled" >&6; } 49772 elif test "x$with_jtreg" != xyes && test "x$with_jtreg" != x; then 49773 # An explicit path is specified, use it. 49774 JT_HOME="$with_jtreg" 49775 49776 # Only process if variable expands to non-empty 49777 49778 if test "x$JT_HOME" != x; then 49779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49780 49781 # Input might be given as Windows format, start by converting to 49782 # unix format. 49783 path="$JT_HOME" 49784 new_path=`$CYGPATH -u "$path"` 49785 49786 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49787 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49788 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49789 # "foo.exe" is OK but "foo" is an error. 49790 # 49791 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49792 # It is also a way to make sure we got the proper file name for the real test later on. 49793 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49794 if test "x$test_shortpath" = x; then 49795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49796 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49797 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 49798 fi 49799 49800 # Call helper function which possibly converts this using DOS-style short mode. 49801 # If so, the updated path is stored in $new_path. 49802 49803 input_path="$new_path" 49804 # Check if we need to convert this using DOS-style short mode. If the path 49805 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49806 # take no chances and rewrite it. 49807 # Note: m4 eats our [], so we need to use [ and ] instead. 49808 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49809 if test "x$has_forbidden_chars" != x; then 49810 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49811 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49812 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49813 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49814 # Going to short mode and back again did indeed matter. Since short mode is 49815 # case insensitive, let's make it lowercase to improve readability. 49816 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49817 # Now convert it back to Unix-style (cygpath) 49818 input_path=`$CYGPATH -u "$shortmode_path"` 49819 new_path="$input_path" 49820 fi 49821 fi 49822 49823 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49824 if test "x$test_cygdrive_prefix" = x; then 49825 # As a simple fix, exclude /usr/bin since it's not a real path. 49826 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49827 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49828 # a path prefixed by /cygdrive for fixpath to work. 49829 new_path="$CYGWIN_ROOT_PATH$input_path" 49830 fi 49831 fi 49832 49833 49834 if test "x$path" != "x$new_path"; then 49835 JT_HOME="$new_path" 49836 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49837 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49838 fi 49839 49840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49841 49842 path="$JT_HOME" 49843 has_colon=`$ECHO $path | $GREP ^.:` 49844 new_path="$path" 49845 if test "x$has_colon" = x; then 49846 # Not in mixed or Windows style, start by that. 49847 new_path=`cmd //c echo $path` 49848 fi 49849 49850 49851 input_path="$new_path" 49852 # Check if we need to convert this using DOS-style short mode. If the path 49853 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49854 # take no chances and rewrite it. 49855 # Note: m4 eats our [], so we need to use [ and ] instead. 49856 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49857 if test "x$has_forbidden_chars" != x; then 49858 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49859 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49860 fi 49861 49862 49863 windows_path="$new_path" 49864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49865 unix_path=`$CYGPATH -u "$windows_path"` 49866 new_path="$unix_path" 49867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49868 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49869 new_path="$unix_path" 49870 fi 49871 49872 if test "x$path" != "x$new_path"; then 49873 JT_HOME="$new_path" 49874 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49875 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49876 fi 49877 49878 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49879 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49880 49881 else 49882 # We're on a unix platform. Hooray! :) 49883 path="$JT_HOME" 49884 has_space=`$ECHO "$path" | $GREP " "` 49885 if test "x$has_space" != x; then 49886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49887 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49888 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49889 fi 49890 49891 # Use eval to expand a potential ~ 49892 eval path="$path" 49893 if test ! -f "$path" && test ! -d "$path"; then 49894 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 49895 fi 49896 49897 if test -d "$path"; then 49898 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 49899 else 49900 dir="`$DIRNAME "$path"`" 49901 base="`$BASENAME "$path"`" 49902 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 49903 fi 49904 fi 49905 fi 49906 49907 if test ! -d "$JT_HOME"; then 49908 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not exist" "$LINENO" 5 49909 fi 49910 49911 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49912 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg is not a valid jtreg home" "$LINENO" 5 49913 fi 49914 49915 JTREGEXE="$JT_HOME/bin/jtreg" 49916 if test ! -x "$JTREGEXE"; then 49917 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not contain valid jtreg executable" "$LINENO" 5 49918 fi 49919 49920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49921 $as_echo_n "checking for jtreg test harness... " >&6; } 49922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 49923 $as_echo "$JT_HOME" >&6; } 49924 else 49925 # Try to locate jtreg 49926 if test "x$JT_HOME" != x; then 49927 # JT_HOME set in environment, use it 49928 if test ! -d "$JT_HOME"; then 49929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&5 49930 $as_echo "$as_me: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&2;} 49931 JT_HOME= 49932 else 49933 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&5 49935 $as_echo "$as_me: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&2;} 49936 JT_HOME= 49937 elif test ! -x "$JT_HOME/bin/jtreg"; then 49938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&5 49939 $as_echo "$as_me: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&2;} 49940 JT_HOME= 49941 else 49942 JTREGEXE="$JT_HOME/bin/jtreg" 49943 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using JT_HOME from environment" >&5 49944 $as_echo "$as_me: Located jtreg using JT_HOME from environment" >&6;} 49945 fi 49946 fi 49947 fi 49948 49949 if test "x$JT_HOME" = x; then 49950 # JT_HOME is not set in environment, or was deemed invalid. 49951 # Try to find jtreg on path 49952 49953 49954 # Publish this variable in the help. 49955 49956 49957 if [ -z "${JTREGEXE+x}" ]; then 49958 # The variable is not set by user, try to locate tool using the code snippet 49959 for ac_prog in jtreg 49960 do 49961 # Extract the first word of "$ac_prog", so it can be a program name with args. 49962 set dummy $ac_prog; ac_word=$2 49963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49964 $as_echo_n "checking for $ac_word... " >&6; } 49965 if ${ac_cv_path_JTREGEXE+:} false; then : 49966 $as_echo_n "(cached) " >&6 49967 else 49968 case $JTREGEXE in 49969 [\\/]* | ?:[\\/]*) 49970 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49971 ;; 49972 *) 49973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49974 for as_dir in $PATH 49975 do 49976 IFS=$as_save_IFS 49977 test -z "$as_dir" && as_dir=. 49978 for ac_exec_ext in '' $ac_executable_extensions; do 49979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49980 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49982 break 2 49983 fi 49984 done 49985 done 49986 IFS=$as_save_IFS 49987 49988 ;; 49989 esac 49990 fi 49991 JTREGEXE=$ac_cv_path_JTREGEXE 49992 if test -n "$JTREGEXE"; then 49993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49994 $as_echo "$JTREGEXE" >&6; } 49995 else 49996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49997 $as_echo "no" >&6; } 49998 fi 49999 50000 50001 test -n "$JTREGEXE" && break 50002 done 50003 50004 else 50005 # The variable is set, but is it from the command line or the environment? 50006 50007 # Try to remove the string !JTREGEXE! from our list. 50008 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 50009 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 50010 # If it failed, the variable was not from the command line. Ignore it, 50011 # but warn the user (except for BASH, which is always set by the calling BASH). 50012 if test "xJTREGEXE" != xBASH; then 50013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 50014 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 50015 fi 50016 # Try to locate tool using the code snippet 50017 for ac_prog in jtreg 50018 do 50019 # Extract the first word of "$ac_prog", so it can be a program name with args. 50020 set dummy $ac_prog; ac_word=$2 50021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50022 $as_echo_n "checking for $ac_word... " >&6; } 50023 if ${ac_cv_path_JTREGEXE+:} false; then : 50024 $as_echo_n "(cached) " >&6 50025 else 50026 case $JTREGEXE in 50027 [\\/]* | ?:[\\/]*) 50028 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 50029 ;; 50030 *) 50031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50032 for as_dir in $PATH 50033 do 50034 IFS=$as_save_IFS 50035 test -z "$as_dir" && as_dir=. 50036 for ac_exec_ext in '' $ac_executable_extensions; do 50037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50038 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 50039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50040 break 2 50041 fi 50042 done 50043 done 50044 IFS=$as_save_IFS 50045 50046 ;; 50047 esac 50048 fi 50049 JTREGEXE=$ac_cv_path_JTREGEXE 50050 if test -n "$JTREGEXE"; then 50051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 50052 $as_echo "$JTREGEXE" >&6; } 50053 else 50054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50055 $as_echo "no" >&6; } 50056 fi 50057 50058 50059 test -n "$JTREGEXE" && break 50060 done 50061 50062 else 50063 # If it succeeded, then it was overridden by the user. We will use it 50064 # for the tool. 50065 50066 # First remove it from the list of overridden variables, so we can test 50067 # for unknown variables in the end. 50068 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 50069 50070 # Check if we try to supply an empty value 50071 if test "x$JTREGEXE" = x; then 50072 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 50073 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 50074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 50075 $as_echo_n "checking for JTREGEXE... " >&6; } 50076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 50077 $as_echo "disabled" >&6; } 50078 else 50079 # Check if the provided tool contains a complete path. 50080 tool_specified="$JTREGEXE" 50081 tool_basename="${tool_specified##*/}" 50082 if test "x$tool_basename" = "x$tool_specified"; then 50083 # A command without a complete path is provided, search $PATH. 50084 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 50085 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 50086 # Extract the first word of "$tool_basename", so it can be a program name with args. 50087 set dummy $tool_basename; ac_word=$2 50088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50089 $as_echo_n "checking for $ac_word... " >&6; } 50090 if ${ac_cv_path_JTREGEXE+:} false; then : 50091 $as_echo_n "(cached) " >&6 50092 else 50093 case $JTREGEXE in 50094 [\\/]* | ?:[\\/]*) 50095 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 50096 ;; 50097 *) 50098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50099 for as_dir in $PATH 50100 do 50101 IFS=$as_save_IFS 50102 test -z "$as_dir" && as_dir=. 50103 for ac_exec_ext in '' $ac_executable_extensions; do 50104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50105 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 50106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50107 break 2 50108 fi 50109 done 50110 done 50111 IFS=$as_save_IFS 50112 50113 ;; 50114 esac 50115 fi 50116 JTREGEXE=$ac_cv_path_JTREGEXE 50117 if test -n "$JTREGEXE"; then 50118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 50119 $as_echo "$JTREGEXE" >&6; } 50120 else 50121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50122 $as_echo "no" >&6; } 50123 fi 50124 50125 50126 if test "x$JTREGEXE" = x; then 50127 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 50128 fi 50129 else 50130 # Otherwise we believe it is a complete path. Use it as it is. 50131 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 50132 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 50133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 50134 $as_echo_n "checking for JTREGEXE... " >&6; } 50135 if test ! -x "$tool_specified"; then 50136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 50137 $as_echo "not found" >&6; } 50138 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 50139 fi 50140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 50141 $as_echo "$tool_specified" >&6; } 50142 fi 50143 fi 50144 fi 50145 50146 fi 50147 50148 50149 if test "x$JTREGEXE" != x; then 50150 # That's good, now try to derive JT_HOME 50151 JT_HOME=`(cd $($DIRNAME $JTREGEXE)/.. && pwd)` 50152 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 50153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&5 50154 $as_echo "$as_me: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&2;} 50155 JT_HOME= 50156 JTREGEXE= 50157 else 50158 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using jtreg executable in path" >&5 50159 $as_echo "$as_me: Located jtreg using jtreg executable in path" >&6;} 50160 fi 50161 fi 50162 fi 50163 50164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 50165 $as_echo_n "checking for jtreg test harness... " >&6; } 50166 if test "x$JT_HOME" != x; then 50167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 50168 $as_echo "$JT_HOME" >&6; } 50169 else 50170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found" >&5 50171 $as_echo "no, not found" >&6; } 50172 50173 if test "x$with_jtreg" = xyes; then 50174 as_fn_error $? "--with-jtreg was specified, but no jtreg found." "$LINENO" 5 50175 fi 50176 fi 50177 fi 50178 50179 50180 # Only process if variable expands to non-empty 50181 50182 if test "x$JTREGEXE" != x; then 50183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50184 50185 # First separate the path from the arguments. This will split at the first 50186 # space. 50187 complete="$JTREGEXE" 50188 path="${complete%% *}" 50189 tmp="$complete EOL" 50190 arguments="${tmp#* }" 50191 50192 # Input might be given as Windows format, start by converting to 50193 # unix format. 50194 new_path=`$CYGPATH -u "$path"` 50195 50196 # Now try to locate executable using which 50197 new_path=`$WHICH "$new_path" 2> /dev/null` 50198 # bat and cmd files are not always considered executable in cygwin causing which 50199 # to not find them 50200 if test "x$new_path" = x \ 50201 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50202 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50203 new_path=`$CYGPATH -u "$path"` 50204 fi 50205 if test "x$new_path" = x; then 50206 # Oops. Which didn't find the executable. 50207 # The splitting of arguments from the executable at a space might have been incorrect, 50208 # since paths with space are more likely in Windows. Give it another try with the whole 50209 # argument. 50210 path="$complete" 50211 arguments="EOL" 50212 new_path=`$CYGPATH -u "$path"` 50213 new_path=`$WHICH "$new_path" 2> /dev/null` 50214 # bat and cmd files are not always considered executable in cygwin causing which 50215 # to not find them 50216 if test "x$new_path" = x \ 50217 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50218 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50219 new_path=`$CYGPATH -u "$path"` 50220 fi 50221 if test "x$new_path" = x; then 50222 # It's still not found. Now this is an unrecoverable error. 50223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50224 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50225 has_space=`$ECHO "$complete" | $GREP " "` 50226 if test "x$has_space" != x; then 50227 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 50228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 50229 fi 50230 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50231 fi 50232 fi 50233 50234 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50235 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50236 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50237 # "foo.exe" is OK but "foo" is an error. 50238 # 50239 # This test is therefore slightly more accurate than "test -f" to check for file presence. 50240 # It is also a way to make sure we got the proper file name for the real test later on. 50241 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50242 if test "x$test_shortpath" = x; then 50243 # Short path failed, file does not exist as specified. 50244 # Try adding .exe or .cmd 50245 if test -f "${new_path}.exe"; then 50246 input_to_shortpath="${new_path}.exe" 50247 elif test -f "${new_path}.cmd"; then 50248 input_to_shortpath="${new_path}.cmd" 50249 else 50250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&5 50251 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&6;} 50252 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 50253 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 50254 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50255 fi 50256 else 50257 input_to_shortpath="$new_path" 50258 fi 50259 50260 # Call helper function which possibly converts this using DOS-style short mode. 50261 # If so, the updated path is stored in $new_path. 50262 new_path="$input_to_shortpath" 50263 50264 input_path="$input_to_shortpath" 50265 # Check if we need to convert this using DOS-style short mode. If the path 50266 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50267 # take no chances and rewrite it. 50268 # Note: m4 eats our [], so we need to use [ and ] instead. 50269 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50270 if test "x$has_forbidden_chars" != x; then 50271 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50272 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50273 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50274 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50275 # Going to short mode and back again did indeed matter. Since short mode is 50276 # case insensitive, let's make it lowercase to improve readability. 50277 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50278 # Now convert it back to Unix-style (cygpath) 50279 input_path=`$CYGPATH -u "$shortmode_path"` 50280 new_path="$input_path" 50281 fi 50282 fi 50283 50284 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50285 if test "x$test_cygdrive_prefix" = x; then 50286 # As a simple fix, exclude /usr/bin since it's not a real path. 50287 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 50288 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50289 # a path prefixed by /cygdrive for fixpath to work. 50290 new_path="$CYGWIN_ROOT_PATH$input_path" 50291 fi 50292 fi 50293 50294 # remove trailing .exe if any 50295 new_path="${new_path/%.exe/}" 50296 50297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50298 50299 # First separate the path from the arguments. This will split at the first 50300 # space. 50301 complete="$JTREGEXE" 50302 path="${complete%% *}" 50303 tmp="$complete EOL" 50304 arguments="${tmp#* }" 50305 50306 # Input might be given as Windows format, start by converting to 50307 # unix format. 50308 new_path="$path" 50309 50310 windows_path="$new_path" 50311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50312 unix_path=`$CYGPATH -u "$windows_path"` 50313 new_path="$unix_path" 50314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50316 new_path="$unix_path" 50317 fi 50318 50319 50320 # Now try to locate executable using which 50321 new_path=`$WHICH "$new_path" 2> /dev/null` 50322 50323 if test "x$new_path" = x; then 50324 # Oops. Which didn't find the executable. 50325 # The splitting of arguments from the executable at a space might have been incorrect, 50326 # since paths with space are more likely in Windows. Give it another try with the whole 50327 # argument. 50328 path="$complete" 50329 arguments="EOL" 50330 new_path="$path" 50331 50332 windows_path="$new_path" 50333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50334 unix_path=`$CYGPATH -u "$windows_path"` 50335 new_path="$unix_path" 50336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50337 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50338 new_path="$unix_path" 50339 fi 50340 50341 50342 new_path=`$WHICH "$new_path" 2> /dev/null` 50343 # bat and cmd files are not always considered executable in MSYS causing which 50344 # to not find them 50345 if test "x$new_path" = x \ 50346 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50347 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50348 new_path="$path" 50349 50350 windows_path="$new_path" 50351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50352 unix_path=`$CYGPATH -u "$windows_path"` 50353 new_path="$unix_path" 50354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50356 new_path="$unix_path" 50357 fi 50358 50359 fi 50360 50361 if test "x$new_path" = x; then 50362 # It's still not found. Now this is an unrecoverable error. 50363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50364 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50365 has_space=`$ECHO "$complete" | $GREP " "` 50366 if test "x$has_space" != x; then 50367 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 50368 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 50369 fi 50370 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50371 fi 50372 fi 50373 50374 # Now new_path has a complete unix path to the binary 50375 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 50376 # Keep paths in /bin as-is, but remove trailing .exe if any 50377 new_path="${new_path/%.exe/}" 50378 # Do not save /bin paths to all_fixpath_prefixes! 50379 else 50380 # Not in mixed or Windows style, start by that. 50381 new_path=`cmd //c echo $new_path` 50382 50383 input_path="$new_path" 50384 # Check if we need to convert this using DOS-style short mode. If the path 50385 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50386 # take no chances and rewrite it. 50387 # Note: m4 eats our [], so we need to use [ and ] instead. 50388 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50389 if test "x$has_forbidden_chars" != x; then 50390 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50391 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50392 fi 50393 50394 # Output is in $new_path 50395 50396 windows_path="$new_path" 50397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50398 unix_path=`$CYGPATH -u "$windows_path"` 50399 new_path="$unix_path" 50400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50401 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50402 new_path="$unix_path" 50403 fi 50404 50405 # remove trailing .exe if any 50406 new_path="${new_path/%.exe/}" 50407 50408 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50409 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50410 fi 50411 50412 else 50413 # We're on a unix platform. Hooray! :) 50414 # First separate the path from the arguments. This will split at the first 50415 # space. 50416 complete="$JTREGEXE" 50417 path="${complete%% *}" 50418 tmp="$complete EOL" 50419 arguments="${tmp#* }" 50420 50421 # Cannot rely on the command "which" here since it doesn't always work. 50422 is_absolute_path=`$ECHO "$path" | $GREP ^/` 50423 if test -z "$is_absolute_path"; then 50424 # Path to executable is not absolute. Find it. 50425 IFS_save="$IFS" 50426 IFS=: 50427 for p in $PATH; do 50428 if test -f "$p/$path" && test -x "$p/$path"; then 50429 new_path="$p/$path" 50430 break 50431 fi 50432 done 50433 IFS="$IFS_save" 50434 else 50435 # This is an absolute path, we can use it without further modifications. 50436 new_path="$path" 50437 fi 50438 50439 if test "x$new_path" = x; then 50440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50441 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50442 has_space=`$ECHO "$complete" | $GREP " "` 50443 if test "x$has_space" != x; then 50444 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 50445 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 50446 fi 50447 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50448 fi 50449 fi 50450 50451 # Now join together the path and the arguments once again 50452 if test "x$arguments" != xEOL; then 50453 new_complete="$new_path ${arguments% *}" 50454 else 50455 new_complete="$new_path" 50456 fi 50457 50458 if test "x$complete" != "x$new_complete"; then 50459 JTREGEXE="$new_complete" 50460 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JTREGEXE to \"$new_complete\"" >&5 50461 $as_echo "$as_me: Rewriting JTREGEXE to \"$new_complete\"" >&6;} 50462 fi 50463 fi 50464 50465 50466 # Only process if variable expands to non-empty 50467 50468 if test "x$JT_HOME" != x; then 50469 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50470 50471 # Input might be given as Windows format, start by converting to 50472 # unix format. 50473 path="$JT_HOME" 50474 new_path=`$CYGPATH -u "$path"` 50475 50476 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50477 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50478 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50479 # "foo.exe" is OK but "foo" is an error. 50480 # 50481 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50482 # It is also a way to make sure we got the proper file name for the real test later on. 50483 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50484 if test "x$test_shortpath" = x; then 50485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 50486 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 50487 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 50488 fi 50489 50490 # Call helper function which possibly converts this using DOS-style short mode. 50491 # If so, the updated path is stored in $new_path. 50492 50493 input_path="$new_path" 50494 # Check if we need to convert this using DOS-style short mode. If the path 50495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50496 # take no chances and rewrite it. 50497 # Note: m4 eats our [], so we need to use [ and ] instead. 50498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50499 if test "x$has_forbidden_chars" != x; then 50500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50501 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50502 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50503 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50504 # Going to short mode and back again did indeed matter. Since short mode is 50505 # case insensitive, let's make it lowercase to improve readability. 50506 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50507 # Now convert it back to Unix-style (cygpath) 50508 input_path=`$CYGPATH -u "$shortmode_path"` 50509 new_path="$input_path" 50510 fi 50511 fi 50512 50513 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50514 if test "x$test_cygdrive_prefix" = x; then 50515 # As a simple fix, exclude /usr/bin since it's not a real path. 50516 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50517 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50518 # a path prefixed by /cygdrive for fixpath to work. 50519 new_path="$CYGWIN_ROOT_PATH$input_path" 50520 fi 50521 fi 50522 50523 50524 if test "x$path" != "x$new_path"; then 50525 JT_HOME="$new_path" 50526 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 50527 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 50528 fi 50529 50530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50531 50532 path="$JT_HOME" 50533 has_colon=`$ECHO $path | $GREP ^.:` 50534 new_path="$path" 50535 if test "x$has_colon" = x; then 50536 # Not in mixed or Windows style, start by that. 50537 new_path=`cmd //c echo $path` 50538 fi 50539 50540 50541 input_path="$new_path" 50542 # Check if we need to convert this using DOS-style short mode. If the path 50543 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50544 # take no chances and rewrite it. 50545 # Note: m4 eats our [], so we need to use [ and ] instead. 50546 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50547 if test "x$has_forbidden_chars" != x; then 50548 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50549 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50550 fi 50551 50552 50553 windows_path="$new_path" 50554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50555 unix_path=`$CYGPATH -u "$windows_path"` 50556 new_path="$unix_path" 50557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50559 new_path="$unix_path" 50560 fi 50561 50562 if test "x$path" != "x$new_path"; then 50563 JT_HOME="$new_path" 50564 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 50565 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 50566 fi 50567 50568 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50569 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50570 50571 else 50572 # We're on a unix platform. Hooray! :) 50573 path="$JT_HOME" 50574 has_space=`$ECHO "$path" | $GREP " "` 50575 if test "x$has_space" != x; then 50576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 50577 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 50578 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50579 fi 50580 50581 # Use eval to expand a potential ~ 50582 eval path="$path" 50583 if test ! -f "$path" && test ! -d "$path"; then 50584 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 50585 fi 50586 50587 if test -d "$path"; then 50588 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 50589 else 50590 dir="`$DIRNAME "$path"`" 50591 base="`$BASENAME "$path"`" 50592 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 50593 fi 50594 fi 50595 fi 50596 50597 50598 50599 50600 50601 # Setup Jib dependency tool 50602 50603 50604 # Check whether --with-jib was given. 50605 if test "${with_jib+set}" = set; then : 50606 withval=$with_jib; 50607 fi 50608 50609 50610 if test "x$with_jib" = xno || test "x$with_jib" = x; then 50611 # jib disabled 50612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 50613 $as_echo_n "checking for jib... " >&6; } 50614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50615 $as_echo "no" >&6; } 50616 elif test "x$with_jib" = xyes; then 50617 as_fn_error $? "Must supply a value to --with-jib" "$LINENO" 5 50618 else 50619 JIB_HOME="${with_jib}" 50620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 50621 $as_echo_n "checking for jib... " >&6; } 50622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JIB_HOME}" >&5 50623 $as_echo "${JIB_HOME}" >&6; } 50624 if test ! -d "${JIB_HOME}"; then 50625 as_fn_error $? "--with-jib must be a directory" "$LINENO" 5 50626 fi 50627 JIB_JAR=$(ls ${JIB_HOME}/lib/jib-*.jar) 50628 if test ! -f "${JIB_JAR}"; then 50629 as_fn_error $? "Could not find jib jar file in ${JIB_HOME}" "$LINENO" 5 50630 fi 50631 fi 50632 50633 50634 50635 50636 50637 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 50638 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 50639 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 50640 # commands produced by the link step (currently AIX only) 50641 if test "x$TOOLCHAIN_TYPE" = xxlc; then 50642 COMPILER_TARGET_BITS_FLAG="-q" 50643 COMPILER_COMMAND_FILE_FLAG="-f" 50644 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 50645 else 50646 COMPILER_TARGET_BITS_FLAG="-m" 50647 COMPILER_COMMAND_FILE_FLAG="@" 50648 COMPILER_BINDCMD_FILE_FLAG="" 50649 50650 # The solstudio linker does not support @-files. 50651 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50652 COMPILER_COMMAND_FILE_FLAG= 50653 fi 50654 50655 # Check if @file is supported by gcc 50656 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 50658 $as_echo_n "checking if @file is supported by gcc... " >&6; } 50659 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 50660 $ECHO "" "--version" > command.file 50661 if $CXX @command.file 2>&5 >&5; then 50662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50663 $as_echo "yes" >&6; } 50664 COMPILER_COMMAND_FILE_FLAG="@" 50665 else 50666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50667 $as_echo "no" >&6; } 50668 COMPILER_COMMAND_FILE_FLAG= 50669 fi 50670 $RM command.file 50671 fi 50672 fi 50673 50674 50675 50676 50677 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 50678 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50679 ARFLAGS="-r" 50680 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50681 ARFLAGS="-X64" 50682 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50683 # lib.exe is used as AR to create static libraries. 50684 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 50685 else 50686 ARFLAGS="" 50687 fi 50688 50689 50690 ## Setup strip. 50691 # FIXME: should this really be per platform, or should it be per toolchain type? 50692 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 50693 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 50694 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50695 STRIPFLAGS="-g" 50696 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50697 STRIPFLAGS="-x" 50698 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50699 STRIPFLAGS="-S" 50700 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50701 STRIPFLAGS="-X32_64" 50702 fi 50703 50704 50705 50706 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50707 CC_OUT_OPTION=-Fo 50708 EXE_OUT_OPTION=-out: 50709 LD_OUT_OPTION=-out: 50710 AR_OUT_OPTION=-out: 50711 else 50712 # The option used to specify the target .o,.a or .so file. 50713 # When compiling, how to specify the to be created object file. 50714 CC_OUT_OPTION='-o$(SPACE)' 50715 # When linking, how to specify the to be created executable. 50716 EXE_OUT_OPTION='-o$(SPACE)' 50717 # When linking, how to specify the to be created dynamically linkable library. 50718 LD_OUT_OPTION='-o$(SPACE)' 50719 # When archiving, how to specify the to be create static archive for object files. 50720 AR_OUT_OPTION='rcs$(SPACE)' 50721 fi 50722 50723 50724 50725 50726 50727 # On Windows, we need to set RC flags. 50728 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50729 RC_FLAGS="-nologo -l0x409" 50730 JVM_RCFLAGS="-nologo" 50731 if test "x$DEBUG_LEVEL" = xrelease; then 50732 RC_FLAGS="$RC_FLAGS -DNDEBUG" 50733 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 50734 fi 50735 50736 # The version variables used to create RC_FLAGS may be overridden 50737 # in a custom configure script, or possibly the command line. 50738 # Let those variables be expanded at make time in spec.gmk. 50739 # The \$ are escaped to the shell, and the $(...) variables 50740 # are evaluated by make. 50741 RC_FLAGS="$RC_FLAGS \ 50742 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 50743 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 50744 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 50745 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 50746 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 50747 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_FEATURE)\" \ 50748 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 50749 50750 JVM_RCFLAGS="$JVM_RCFLAGS \ 50751 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 50752 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 50753 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 50754 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 50755 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 50756 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 50757 -D\"HS_FNAME=jvm.dll\" \ 50758 -D\"HS_INTERNAL_NAME=jvm\"" 50759 fi 50760 50761 50762 50763 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50764 # silence copyright notice and other headers. 50765 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 50766 fi 50767 50768 50769 # Now we can test some aspects on the target using configure macros. 50770 50771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 50772 $as_echo_n "checking for ANSI C header files... " >&6; } 50773 if ${ac_cv_header_stdc+:} false; then : 50774 $as_echo_n "(cached) " >&6 50775 else 50776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50777 /* end confdefs.h. */ 50778 #include <stdlib.h> 50779 #include <stdarg.h> 50780 #include <string.h> 50781 #include <float.h> 50782 50783 int 50784 main () 50785 { 50786 50787 ; 50788 return 0; 50789 } 50790 _ACEOF 50791 if ac_fn_cxx_try_compile "$LINENO"; then : 50792 ac_cv_header_stdc=yes 50793 else 50794 ac_cv_header_stdc=no 50795 fi 50796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50797 50798 if test $ac_cv_header_stdc = yes; then 50799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 50800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50801 /* end confdefs.h. */ 50802 #include <string.h> 50803 50804 _ACEOF 50805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50806 $EGREP "memchr" >/dev/null 2>&1; then : 50807 50808 else 50809 ac_cv_header_stdc=no 50810 fi 50811 rm -f conftest* 50812 50813 fi 50814 50815 if test $ac_cv_header_stdc = yes; then 50816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 50817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50818 /* end confdefs.h. */ 50819 #include <stdlib.h> 50820 50821 _ACEOF 50822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50823 $EGREP "free" >/dev/null 2>&1; then : 50824 50825 else 50826 ac_cv_header_stdc=no 50827 fi 50828 rm -f conftest* 50829 50830 fi 50831 50832 if test $ac_cv_header_stdc = yes; then 50833 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 50834 if test "$cross_compiling" = yes; then : 50835 : 50836 else 50837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50838 /* end confdefs.h. */ 50839 #include <ctype.h> 50840 #include <stdlib.h> 50841 #if ((' ' & 0x0FF) == 0x020) 50842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 50843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 50844 #else 50845 # define ISLOWER(c) \ 50846 (('a' <= (c) && (c) <= 'i') \ 50847 || ('j' <= (c) && (c) <= 'r') \ 50848 || ('s' <= (c) && (c) <= 'z')) 50849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 50850 #endif 50851 50852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 50853 int 50854 main () 50855 { 50856 int i; 50857 for (i = 0; i < 256; i++) 50858 if (XOR (islower (i), ISLOWER (i)) 50859 || toupper (i) != TOUPPER (i)) 50860 return 2; 50861 return 0; 50862 } 50863 _ACEOF 50864 if ac_fn_cxx_try_run "$LINENO"; then : 50865 50866 else 50867 ac_cv_header_stdc=no 50868 fi 50869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 50870 conftest.$ac_objext conftest.beam conftest.$ac_ext 50871 fi 50872 50873 fi 50874 fi 50875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 50876 $as_echo "$ac_cv_header_stdc" >&6; } 50877 if test $ac_cv_header_stdc = yes; then 50878 50879 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 50880 50881 fi 50882 50883 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 50884 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 50885 inttypes.h stdint.h unistd.h 50886 do : 50887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 50888 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 50889 " 50890 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 50891 cat >>confdefs.h <<_ACEOF 50892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 50893 _ACEOF 50894 50895 fi 50896 50897 done 50898 50899 50900 50901 ############################################################################### 50902 # 50903 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 50904 # (The JVM can use 32 or 64 bit Java pointers but that decision 50905 # is made at runtime.) 50906 # 50907 50908 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 50909 # Always specify -m flag on Solaris 50910 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 50911 50912 # When we add flags to the "official" CFLAGS etc, we need to 50913 # keep track of these additions in ADDED_CFLAGS etc. These 50914 # will later be checked to make sure only controlled additions 50915 # have been made to CFLAGS etc. 50916 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50917 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50918 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50919 50920 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50921 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50922 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50923 50924 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50925 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50926 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50927 50928 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50929 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50930 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50931 50932 elif test "x$COMPILE_TYPE" = xreduced; then 50933 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 50934 # Specify -m if running reduced on unix platforms 50935 50936 # When we add flags to the "official" CFLAGS etc, we need to 50937 # keep track of these additions in ADDED_CFLAGS etc. These 50938 # will later be checked to make sure only controlled additions 50939 # have been made to CFLAGS etc. 50940 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50941 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50942 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50943 50944 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50945 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50946 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50947 50948 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50949 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50950 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50951 50952 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50953 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50954 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50955 50956 fi 50957 fi 50958 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50959 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50960 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50961 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50962 fi 50963 50964 # Make compilation sanity check 50965 for ac_header in stdio.h 50966 do : 50967 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 50968 if test "x$ac_cv_header_stdio_h" = xyes; then : 50969 cat >>confdefs.h <<_ACEOF 50970 #define HAVE_STDIO_H 1 50971 _ACEOF 50972 50973 else 50974 50975 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 50976 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 50977 if test "x$COMPILE_TYPE" = xreduced; then 50978 50979 # Print a helpful message on how to acquire the necessary build dependency. 50980 # reduced is the help tag: freetype, cups, alsa etc 50981 MISSING_DEPENDENCY=reduced 50982 50983 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50984 cygwin_help $MISSING_DEPENDENCY 50985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50986 msys_help $MISSING_DEPENDENCY 50987 else 50988 PKGHANDLER_COMMAND= 50989 50990 case $PKGHANDLER in 50991 apt-get) 50992 apt_help $MISSING_DEPENDENCY ;; 50993 yum) 50994 yum_help $MISSING_DEPENDENCY ;; 50995 brew) 50996 brew_help $MISSING_DEPENDENCY ;; 50997 port) 50998 port_help $MISSING_DEPENDENCY ;; 50999 pkgutil) 51000 pkgutil_help $MISSING_DEPENDENCY ;; 51001 pkgadd) 51002 pkgadd_help $MISSING_DEPENDENCY ;; 51003 esac 51004 51005 if test "x$PKGHANDLER_COMMAND" != x; then 51006 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51007 fi 51008 fi 51009 51010 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 51011 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 51012 elif test "x$COMPILE_TYPE" = xcross; then 51013 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 51014 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 51015 fi 51016 as_fn_error $? "Cannot continue." "$LINENO" 5 51017 51018 fi 51019 51020 done 51021 51022 51023 # The cast to long int works around a bug in the HP C Compiler 51024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 51025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 51026 # This bug is HP SR number 8606223364. 51027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 51028 $as_echo_n "checking size of int *... " >&6; } 51029 if ${ac_cv_sizeof_int_p+:} false; then : 51030 $as_echo_n "(cached) " >&6 51031 else 51032 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 51033 51034 else 51035 if test "$ac_cv_type_int_p" = yes; then 51036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 51037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 51038 as_fn_error 77 "cannot compute sizeof (int *) 51039 See \`config.log' for more details" "$LINENO" 5; } 51040 else 51041 ac_cv_sizeof_int_p=0 51042 fi 51043 fi 51044 51045 fi 51046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 51047 $as_echo "$ac_cv_sizeof_int_p" >&6; } 51048 51049 51050 51051 cat >>confdefs.h <<_ACEOF 51052 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 51053 _ACEOF 51054 51055 51056 51057 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 51058 if test "x$ac_cv_sizeof_int_p" = x; then 51059 # The test failed, lets stick to the assumed value. 51060 { $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 51061 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 51062 else 51063 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 51064 51065 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 51066 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 51067 # Let's try to implicitely set the compilers target architecture and retry the test 51068 { $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 51069 $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;} 51070 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 51071 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 51072 51073 # When we add flags to the "official" CFLAGS etc, we need to 51074 # keep track of these additions in ADDED_CFLAGS etc. These 51075 # will later be checked to make sure only controlled additions 51076 # have been made to CFLAGS etc. 51077 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51078 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51079 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51080 51081 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 51082 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 51083 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 51084 51085 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 51086 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 51087 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 51088 51089 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 51090 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 51091 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 51092 51093 51094 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 51095 unset ac_cv_sizeof_int_p 51096 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 51097 cat >>confdefs.h <<_ACEOF 51098 #undef SIZEOF_INT_P 51099 _ACEOF 51100 51101 # The cast to long int works around a bug in the HP C Compiler 51102 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 51103 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 51104 # This bug is HP SR number 8606223364. 51105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 51106 $as_echo_n "checking size of int *... " >&6; } 51107 if ${ac_cv_sizeof_int_p+:} false; then : 51108 $as_echo_n "(cached) " >&6 51109 else 51110 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 51111 51112 else 51113 if test "$ac_cv_type_int_p" = yes; then 51114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 51115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 51116 as_fn_error 77 "cannot compute sizeof (int *) 51117 See \`config.log' for more details" "$LINENO" 5; } 51118 else 51119 ac_cv_sizeof_int_p=0 51120 fi 51121 fi 51122 51123 fi 51124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 51125 $as_echo "$ac_cv_sizeof_int_p" >&6; } 51126 51127 51128 51129 cat >>confdefs.h <<_ACEOF 51130 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 51131 _ACEOF 51132 51133 51134 51135 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 51136 51137 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 51138 { $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 51139 $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;} 51140 if test "x$COMPILE_TYPE" = xreduced; then 51141 51142 # Print a helpful message on how to acquire the necessary build dependency. 51143 # reduced is the help tag: freetype, cups, alsa etc 51144 MISSING_DEPENDENCY=reduced 51145 51146 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51147 cygwin_help $MISSING_DEPENDENCY 51148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51149 msys_help $MISSING_DEPENDENCY 51150 else 51151 PKGHANDLER_COMMAND= 51152 51153 case $PKGHANDLER in 51154 apt-get) 51155 apt_help $MISSING_DEPENDENCY ;; 51156 yum) 51157 yum_help $MISSING_DEPENDENCY ;; 51158 brew) 51159 brew_help $MISSING_DEPENDENCY ;; 51160 port) 51161 port_help $MISSING_DEPENDENCY ;; 51162 pkgutil) 51163 pkgutil_help $MISSING_DEPENDENCY ;; 51164 pkgadd) 51165 pkgadd_help $MISSING_DEPENDENCY ;; 51166 esac 51167 51168 if test "x$PKGHANDLER_COMMAND" != x; then 51169 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51170 fi 51171 fi 51172 51173 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 51174 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 51175 elif test "x$COMPILE_TYPE" = xcross; then 51176 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 51177 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 51178 fi 51179 as_fn_error $? "Cannot continue." "$LINENO" 5 51180 fi 51181 fi 51182 fi 51183 51184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 51185 $as_echo_n "checking for target address size... " >&6; } 51186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 51187 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 51188 51189 51190 ############################################################################### 51191 # 51192 # Is the target little of big endian? 51193 # 51194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 51195 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 51196 if ${ac_cv_c_bigendian+:} false; then : 51197 $as_echo_n "(cached) " >&6 51198 else 51199 ac_cv_c_bigendian=unknown 51200 # See if we're dealing with a universal compiler. 51201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51202 /* end confdefs.h. */ 51203 #ifndef __APPLE_CC__ 51204 not a universal capable compiler 51205 #endif 51206 typedef int dummy; 51207 51208 _ACEOF 51209 if ac_fn_cxx_try_compile "$LINENO"; then : 51210 51211 # Check for potential -arch flags. It is not universal unless 51212 # there are at least two -arch flags with different values. 51213 ac_arch= 51214 ac_prev= 51215 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 51216 if test -n "$ac_prev"; then 51217 case $ac_word in 51218 i?86 | x86_64 | ppc | ppc64) 51219 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 51220 ac_arch=$ac_word 51221 else 51222 ac_cv_c_bigendian=universal 51223 break 51224 fi 51225 ;; 51226 esac 51227 ac_prev= 51228 elif test "x$ac_word" = "x-arch"; then 51229 ac_prev=arch 51230 fi 51231 done 51232 fi 51233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51234 if test $ac_cv_c_bigendian = unknown; then 51235 # See if sys/param.h defines the BYTE_ORDER macro. 51236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51237 /* end confdefs.h. */ 51238 #include <sys/types.h> 51239 #include <sys/param.h> 51240 51241 int 51242 main () 51243 { 51244 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 51245 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 51246 && LITTLE_ENDIAN) 51247 bogus endian macros 51248 #endif 51249 51250 ; 51251 return 0; 51252 } 51253 _ACEOF 51254 if ac_fn_cxx_try_compile "$LINENO"; then : 51255 # It does; now see whether it defined to BIG_ENDIAN or not. 51256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51257 /* end confdefs.h. */ 51258 #include <sys/types.h> 51259 #include <sys/param.h> 51260 51261 int 51262 main () 51263 { 51264 #if BYTE_ORDER != BIG_ENDIAN 51265 not big endian 51266 #endif 51267 51268 ; 51269 return 0; 51270 } 51271 _ACEOF 51272 if ac_fn_cxx_try_compile "$LINENO"; then : 51273 ac_cv_c_bigendian=yes 51274 else 51275 ac_cv_c_bigendian=no 51276 fi 51277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51278 fi 51279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51280 fi 51281 if test $ac_cv_c_bigendian = unknown; then 51282 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 51283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51284 /* end confdefs.h. */ 51285 #include <limits.h> 51286 51287 int 51288 main () 51289 { 51290 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 51291 bogus endian macros 51292 #endif 51293 51294 ; 51295 return 0; 51296 } 51297 _ACEOF 51298 if ac_fn_cxx_try_compile "$LINENO"; then : 51299 # It does; now see whether it defined to _BIG_ENDIAN or not. 51300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51301 /* end confdefs.h. */ 51302 #include <limits.h> 51303 51304 int 51305 main () 51306 { 51307 #ifndef _BIG_ENDIAN 51308 not big endian 51309 #endif 51310 51311 ; 51312 return 0; 51313 } 51314 _ACEOF 51315 if ac_fn_cxx_try_compile "$LINENO"; then : 51316 ac_cv_c_bigendian=yes 51317 else 51318 ac_cv_c_bigendian=no 51319 fi 51320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51321 fi 51322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51323 fi 51324 if test $ac_cv_c_bigendian = unknown; then 51325 # Compile a test program. 51326 if test "$cross_compiling" = yes; then : 51327 # Try to guess by grepping values from an object file. 51328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51329 /* end confdefs.h. */ 51330 short int ascii_mm[] = 51331 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 51332 short int ascii_ii[] = 51333 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 51334 int use_ascii (int i) { 51335 return ascii_mm[i] + ascii_ii[i]; 51336 } 51337 short int ebcdic_ii[] = 51338 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 51339 short int ebcdic_mm[] = 51340 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 51341 int use_ebcdic (int i) { 51342 return ebcdic_mm[i] + ebcdic_ii[i]; 51343 } 51344 extern int foo; 51345 51346 int 51347 main () 51348 { 51349 return use_ascii (foo) == use_ebcdic (foo); 51350 ; 51351 return 0; 51352 } 51353 _ACEOF 51354 if ac_fn_cxx_try_compile "$LINENO"; then : 51355 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 51356 ac_cv_c_bigendian=yes 51357 fi 51358 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 51359 if test "$ac_cv_c_bigendian" = unknown; then 51360 ac_cv_c_bigendian=no 51361 else 51362 # finding both strings is unlikely to happen, but who knows? 51363 ac_cv_c_bigendian=unknown 51364 fi 51365 fi 51366 fi 51367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51368 else 51369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51370 /* end confdefs.h. */ 51371 $ac_includes_default 51372 int 51373 main () 51374 { 51375 51376 /* Are we little or big endian? From Harbison&Steele. */ 51377 union 51378 { 51379 long int l; 51380 char c[sizeof (long int)]; 51381 } u; 51382 u.l = 1; 51383 return u.c[sizeof (long int) - 1] == 1; 51384 51385 ; 51386 return 0; 51387 } 51388 _ACEOF 51389 if ac_fn_cxx_try_run "$LINENO"; then : 51390 ac_cv_c_bigendian=no 51391 else 51392 ac_cv_c_bigendian=yes 51393 fi 51394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 51395 conftest.$ac_objext conftest.beam conftest.$ac_ext 51396 fi 51397 51398 fi 51399 fi 51400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 51401 $as_echo "$ac_cv_c_bigendian" >&6; } 51402 case $ac_cv_c_bigendian in #( 51403 yes) 51404 ENDIAN="big";; #( 51405 no) 51406 ENDIAN="little" ;; #( 51407 universal) 51408 ENDIAN="universal_endianness" 51409 ;; #( 51410 *) 51411 ENDIAN="unknown" ;; 51412 esac 51413 51414 51415 if test "x$ENDIAN" = xuniversal_endianness; then 51416 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 51417 fi 51418 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 51419 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 51420 fi 51421 51422 51423 # Configure flags for the tools 51424 51425 ############################################################################### 51426 # 51427 # How to compile shared libraries. 51428 # 51429 51430 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51431 PICFLAG="-fPIC" 51432 C_FLAG_REORDER='' 51433 CXX_FLAG_REORDER='' 51434 51435 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51436 # Linking is different on MacOSX 51437 if test "x$STATIC_BUILD" = xtrue; then 51438 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 51439 else 51440 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 51441 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 51442 fi 51443 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 51444 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51445 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 51446 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 51447 else 51448 # Default works for linux, might work on other platforms as well. 51449 SHARED_LIBRARY_FLAGS='-shared' 51450 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 51451 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 51452 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 51453 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 51454 fi 51455 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51456 C_FLAG_REORDER='' 51457 CXX_FLAG_REORDER='' 51458 51459 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51460 # Linking is different on MacOSX 51461 PICFLAG='' 51462 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 51463 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 51464 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51465 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 51466 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 51467 51468 if test "x$STATIC_BUILD" = xfalse; then 51469 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 51470 fi 51471 else 51472 # Default works for linux, might work on other platforms as well. 51473 PICFLAG='-fPIC' 51474 SHARED_LIBRARY_FLAGS='-shared' 51475 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 51476 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 51477 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 51478 51479 # arm specific settings 51480 if test "x$OPENJDK_TARGET_CPU" = "xarm"; then 51481 # '-Wl,-z,origin' isn't used on arm. 51482 SET_SHARED_LIBRARY_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 51483 else 51484 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 51485 fi 51486 51487 fi 51488 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51489 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 51490 PICFLAG="-xcode=pic32" 51491 else 51492 PICFLAG="-KPIC" 51493 fi 51494 C_FLAG_REORDER='-xF' 51495 CXX_FLAG_REORDER='-xF' 51496 SHARED_LIBRARY_FLAGS="-G" 51497 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 51498 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51499 SET_SHARED_LIBRARY_NAME='-h $1' 51500 SET_SHARED_LIBRARY_MAPFILE='-M$1' 51501 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51502 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 51503 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 51504 # will have to patch this single instruction with a call to some out-of-order code which 51505 # does the load from the TOC. This is of course slow. But in that case we also would have 51506 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 51507 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 51508 # can be patched directly by the linker and does not require a jump to out-of-order code. 51509 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 51510 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 51511 # loads for accessing a global variable). But there are rumors that this may be seen as a 51512 # 'performance feature' because of improved code locality of the symbols used in a 51513 # compilation unit. 51514 PICFLAG="-qpic" 51515 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 51516 C_FLAG_REORDER='' 51517 CXX_FLAG_REORDER='' 51518 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 51519 SET_EXECUTABLE_ORIGIN="" 51520 SET_SHARED_LIBRARY_ORIGIN='' 51521 SET_SHARED_LIBRARY_NAME='' 51522 SET_SHARED_LIBRARY_MAPFILE='' 51523 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51524 PICFLAG="" 51525 C_FLAG_REORDER='' 51526 CXX_FLAG_REORDER='' 51527 SHARED_LIBRARY_FLAGS="-dll" 51528 SET_EXECUTABLE_ORIGIN='' 51529 SET_SHARED_LIBRARY_ORIGIN='' 51530 SET_SHARED_LIBRARY_NAME='' 51531 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 51532 fi 51533 51534 51535 51536 51537 51538 51539 51540 51541 51542 # The (cross) compiler is now configured, we can now test capabilities 51543 # of the target platform. 51544 51545 51546 51547 ############################################################################### 51548 # 51549 # Setup the opt flags for different compilers 51550 # and different operating systems. 51551 # 51552 51553 # FIXME: this was indirectly the old default, but just inherited. 51554 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51555 # C_FLAG_DEPS="-MMD -MF" 51556 # fi 51557 51558 # Generate make dependency files 51559 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51560 C_FLAG_DEPS="-MMD -MF" 51561 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51562 C_FLAG_DEPS="-MMD -MF" 51563 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51564 C_FLAG_DEPS="-xMMD -xMF" 51565 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51566 C_FLAG_DEPS="-qmakedep=gcc -MF" 51567 fi 51568 CXX_FLAG_DEPS="$C_FLAG_DEPS" 51569 51570 51571 51572 # Debug symbols 51573 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51574 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 51575 # reduce from default "-g2" option to save space 51576 CFLAGS_DEBUG_SYMBOLS="-g1" 51577 CXXFLAGS_DEBUG_SYMBOLS="-g1" 51578 else 51579 CFLAGS_DEBUG_SYMBOLS="-g" 51580 CXXFLAGS_DEBUG_SYMBOLS="-g" 51581 fi 51582 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51583 CFLAGS_DEBUG_SYMBOLS="-g" 51584 CXXFLAGS_DEBUG_SYMBOLS="-g" 51585 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51586 CFLAGS_DEBUG_SYMBOLS="-g -xs" 51587 # -g0 enables debug symbols without disabling inlining. 51588 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 51589 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51590 CFLAGS_DEBUG_SYMBOLS="-g" 51591 CXXFLAGS_DEBUG_SYMBOLS="-g" 51592 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51593 CFLAGS_DEBUG_SYMBOLS="-Zi" 51594 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 51595 fi 51596 51597 51598 51599 # Debug symbols for JVM_CFLAGS 51600 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51601 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 51602 if test "x$DEBUG_LEVEL" = xslowdebug; then 51603 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 51604 else 51605 # -g0 does not disable inlining, which -g does. 51606 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 51607 fi 51608 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51609 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 51610 else 51611 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 51612 fi 51613 51614 51615 # bounds, memory and behavior checking options 51616 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51617 case $DEBUG_LEVEL in 51618 release ) 51619 # no adjustment 51620 ;; 51621 fastdebug ) 51622 # no adjustment 51623 ;; 51624 slowdebug ) 51625 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 51626 # get's added conditionally on whether we produce debug symbols or not. 51627 # This is most likely not really correct. 51628 51629 # Add runtime stack smashing and undefined behavior checks. 51630 # Not all versions of gcc support -fstack-protector 51631 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 51632 51633 51634 51635 51636 51637 51638 51639 51640 51641 51642 51643 51644 51645 51646 51647 51648 51649 51650 51651 51652 51653 51654 51655 51656 51657 51658 51659 51660 51661 51662 51663 51664 51665 51666 51667 51668 51669 51670 51671 51672 51673 51674 # Execute function body 51675 51676 51677 51678 51679 51680 51681 51682 51683 51684 51685 51686 51687 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 # Execute function body 51724 51725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51726 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51727 supports=yes 51728 51729 saved_cflags="$CFLAGS" 51730 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 51731 ac_ext=c 51732 ac_cpp='$CPP $CPPFLAGS' 51733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51735 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51736 51737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51738 /* end confdefs.h. */ 51739 int i; 51740 _ACEOF 51741 if ac_fn_c_try_compile "$LINENO"; then : 51742 51743 else 51744 supports=no 51745 fi 51746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51747 ac_ext=cpp 51748 ac_cpp='$CXXCPP $CPPFLAGS' 51749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51752 51753 CFLAGS="$saved_cflags" 51754 51755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51756 $as_echo "$supports" >&6; } 51757 if test "x$supports" = "xyes" ; then 51758 : 51759 C_COMP_SUPPORTS="yes" 51760 else 51761 : 51762 C_COMP_SUPPORTS="no" 51763 fi 51764 51765 51766 51767 51768 51769 51770 51771 51772 51773 51774 51775 51776 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 # Execute function body 51824 51825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51826 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51827 supports=yes 51828 51829 saved_cxxflags="$CXXFLAGS" 51830 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 51831 ac_ext=cpp 51832 ac_cpp='$CXXCPP $CPPFLAGS' 51833 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51834 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51835 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51836 51837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51838 /* end confdefs.h. */ 51839 int i; 51840 _ACEOF 51841 if ac_fn_cxx_try_compile "$LINENO"; then : 51842 51843 else 51844 supports=no 51845 fi 51846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51847 ac_ext=cpp 51848 ac_cpp='$CXXCPP $CPPFLAGS' 51849 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51850 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51851 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51852 51853 CXXFLAGS="$saved_cxxflags" 51854 51855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51856 $as_echo "$supports" >&6; } 51857 if test "x$supports" = "xyes" ; then 51858 : 51859 CXX_COMP_SUPPORTS="yes" 51860 else 51861 : 51862 CXX_COMP_SUPPORTS="no" 51863 fi 51864 51865 51866 51867 51868 51869 51870 51871 51872 51873 51874 51875 51876 51877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51878 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51879 supports=no 51880 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51881 51882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51883 $as_echo "$supports" >&6; } 51884 if test "x$supports" = "xyes" ; then 51885 : 51886 51887 else 51888 : 51889 STACK_PROTECTOR_CFLAG="" 51890 fi 51891 51892 51893 51894 51895 51896 51897 51898 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51899 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51900 if test "x$STACK_PROTECTOR_CFLAG" != x; then 51901 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51902 fi 51903 ;; 51904 esac 51905 fi 51906 51907 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51908 if test "x$DEBUG_LEVEL" != xrelease; then 51909 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51910 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 51911 fi 51912 fi 51913 fi 51914 51915 # Optimization levels 51916 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51917 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 51918 51919 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 51920 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 51921 C_O_FLAG_HIGHEST_JVM="-xO4" 51922 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 51923 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 51924 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 51925 C_O_FLAG_DEBUG="-xregs=no%frameptr" 51926 C_O_FLAG_DEBUG_JVM="" 51927 C_O_FLAG_NONE="-xregs=no%frameptr" 51928 CXX_O_FLAG_HIGHEST_JVM="-xO4" 51929 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 51930 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 51931 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 51932 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 51933 CXX_O_FLAG_DEBUG_JVM="" 51934 CXX_O_FLAG_NONE="-xregs=no%frameptr" 51935 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 51936 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 51937 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 51938 fi 51939 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 51940 C_O_FLAG_HIGHEST_JVM="-xO4" 51941 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 51942 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 51943 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 51944 C_O_FLAG_DEBUG="" 51945 C_O_FLAG_DEBUG_JVM="" 51946 C_O_FLAG_NONE="" 51947 CXX_O_FLAG_HIGHEST_JVM="-xO4" 51948 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 51949 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 51950 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 51951 CXX_O_FLAG_DEBUG="" 51952 CXX_O_FLAG_DEBUG_JVM="" 51953 CXX_O_FLAG_NONE="" 51954 fi 51955 else 51956 # The remaining toolchains share opt flags between CC and CXX; 51957 # setup for C and duplicate afterwards. 51958 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51959 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51960 # On MacOSX we optimize for size, something 51961 # we should do for all platforms? 51962 C_O_FLAG_HIGHEST_JVM="-Os" 51963 C_O_FLAG_HIGHEST="-Os" 51964 C_O_FLAG_HI="-Os" 51965 C_O_FLAG_NORM="-Os" 51966 C_O_FLAG_SIZE="-Os" 51967 else 51968 C_O_FLAG_HIGHEST_JVM="-O3" 51969 C_O_FLAG_HIGHEST="-O3" 51970 C_O_FLAG_HI="-O3" 51971 C_O_FLAG_NORM="-O2" 51972 C_O_FLAG_SIZE="-Os" 51973 fi 51974 C_O_FLAG_DEBUG="-O0" 51975 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51976 C_O_FLAG_DEBUG_JVM="" 51977 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51978 C_O_FLAG_DEBUG_JVM="-O0" 51979 fi 51980 C_O_FLAG_NONE="-O0" 51981 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51982 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51983 # On MacOSX we optimize for size, something 51984 # we should do for all platforms? 51985 C_O_FLAG_HIGHEST_JVM="-Os" 51986 C_O_FLAG_HIGHEST="-Os" 51987 C_O_FLAG_HI="-Os" 51988 C_O_FLAG_NORM="-Os" 51989 C_O_FLAG_SIZE="-Os" 51990 else 51991 C_O_FLAG_HIGHEST_JVM="-O3" 51992 C_O_FLAG_HIGHEST="-O3" 51993 C_O_FLAG_HI="-O3" 51994 C_O_FLAG_NORM="-O2" 51995 C_O_FLAG_SIZE="-Os" 51996 fi 51997 C_O_FLAG_DEBUG="-O0" 51998 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51999 C_O_FLAG_DEBUG_JVM="" 52000 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 52001 C_O_FLAG_DEBUG_JVM="-O0" 52002 fi 52003 C_O_FLAG_NONE="-O0" 52004 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52005 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 52006 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 52007 C_O_FLAG_HI="-O3 -qinline -qinlglue" 52008 C_O_FLAG_NORM="-O2" 52009 C_O_FLAG_DEBUG="-qnoopt" 52010 # FIXME: Value below not verified. 52011 C_O_FLAG_DEBUG_JVM="" 52012 C_O_FLAG_NONE="-qnoopt" 52013 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52014 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 52015 C_O_FLAG_HIGHEST="-O2" 52016 C_O_FLAG_HI="-O1" 52017 C_O_FLAG_NORM="-O1" 52018 C_O_FLAG_DEBUG="-Od" 52019 C_O_FLAG_DEBUG_JVM="" 52020 C_O_FLAG_NONE="-Od" 52021 C_O_FLAG_SIZE="-Os" 52022 fi 52023 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 52024 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 52025 CXX_O_FLAG_HI="$C_O_FLAG_HI" 52026 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 52027 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 52028 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 52029 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 52030 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 52031 fi 52032 52033 # Adjust optimization flags according to debug level. 52034 case $DEBUG_LEVEL in 52035 release ) 52036 # no adjustment 52037 ;; 52038 fastdebug ) 52039 # Not quite so much optimization 52040 C_O_FLAG_HI="$C_O_FLAG_NORM" 52041 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 52042 ;; 52043 slowdebug ) 52044 # Disable optimization 52045 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 52046 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 52047 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 52048 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 52049 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 52050 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 52051 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 52052 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 52053 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 52054 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 52055 ;; 52056 esac 52057 52058 52059 52060 52061 52062 52063 52064 52065 52066 52067 52068 52069 52070 52071 52072 52073 52074 52075 52076 52077 # Check whether --with-abi-profile was given. 52078 if test "${with_abi_profile+set}" = set; then : 52079 withval=$with_abi_profile; 52080 fi 52081 52082 52083 if test "x$with_abi_profile" != x; then 52084 if test "x$OPENJDK_TARGET_CPU" != xarm && \ 52085 test "x$OPENJDK_TARGET_CPU" != xaarch64; then 52086 as_fn_error $? "--with-abi-profile only available on arm/aarch64" "$LINENO" 5 52087 fi 52088 52089 OPENJDK_TARGET_ABI_PROFILE=$with_abi_profile 52090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI profle" >&5 52091 $as_echo_n "checking for ABI profle... " >&6; } 52092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_ABI_PROFILE" >&5 52093 $as_echo "$OPENJDK_TARGET_ABI_PROFILE" >&6; } 52094 52095 if test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-sflt; then 52096 ARM_FLOAT_TYPE=vfp-sflt 52097 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 52098 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-hflt; then 52099 ARM_FLOAT_TYPE=vfp-hflt 52100 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 52101 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-sflt; then 52102 ARM_FLOAT_TYPE=sflt 52103 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 52104 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv5-vfp-sflt; then 52105 ARM_FLOAT_TYPE=vfp-sflt 52106 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 52107 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv6-vfp-hflt; then 52108 ARM_FLOAT_TYPE=vfp-hflt 52109 ARM_ARCH_TYPE_FLAGS='-march=armv6 -marm' 52110 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm64; then 52111 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 52112 ARM_FLOAT_TYPE= 52113 ARM_ARCH_TYPE_FLAGS= 52114 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xaarch64; then 52115 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 52116 ARM_FLOAT_TYPE= 52117 ARM_ARCH_TYPE_FLAGS= 52118 else 52119 as_fn_error $? "Invalid ABI profile: \"$OPENJDK_TARGET_ABI_PROFILE\"" "$LINENO" 5 52120 fi 52121 52122 if test "x$ARM_FLOAT_TYPE" = xvfp-sflt; then 52123 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt' 52124 elif test "x$ARM_FLOAT_TYPE" = xvfp-hflt; then 52125 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=hard -mfpu=vfp -DFLOAT_ARCH=-vfp-hflt' 52126 elif test "x$ARM_FLOAT_TYPE" = xsflt; then 52127 ARM_FLOAT_TYPE_FLAGS='-msoft-float -mfpu=vfp' 52128 fi 52129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ARM_FLOAT_TYPE floating point flags" >&5 52130 $as_echo_n "checking for $ARM_FLOAT_TYPE floating point flags... " >&6; } 52131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_FLOAT_TYPE_FLAGS" >&5 52132 $as_echo "$ARM_FLOAT_TYPE_FLAGS" >&6; } 52133 52134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arch type flags" >&5 52135 $as_echo_n "checking for arch type flags... " >&6; } 52136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_ARCH_TYPE_FLAGS" >&5 52137 $as_echo "$ARM_ARCH_TYPE_FLAGS" >&6; } 52138 52139 # Now set JDK_ARCH_ABI_PROP_NAME. This is equivalent to the last part of the 52140 # autoconf target triplet. 52141 JDK_ARCH_ABI_PROP_NAME=`$ECHO $OPENJDK_TARGET_AUTOCONF_NAME | $SED -e 's/.*-\([^-]*\)$/\1/'` 52142 # Sanity check that it is a known ABI. 52143 if test "x$JDK_ARCH_ABI_PROP_NAME" != xgnu && \ 52144 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabi && \ 52145 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabihf; then 52146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&5 52147 $as_echo "$as_me: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&2;} 52148 fi 52149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI property name" >&5 52150 $as_echo_n "checking for ABI property name... " >&6; } 52151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_ARCH_ABI_PROP_NAME" >&5 52152 $as_echo "$JDK_ARCH_ABI_PROP_NAME" >&6; } 52153 52154 52155 # Pass these on to the open part of configure as if they were set using 52156 # --with-extra-c[xx]flags. 52157 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52158 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52159 # Get rid of annoying "note: the mangling of 'va_list' has changed in GCC 4.4" 52160 # FIXME: This should not really be set using extra_cflags. 52161 if test "x$OPENJDK_TARGET_CPU" = xarm; then 52162 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-psabi" 52163 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -Wno-psabi" 52164 fi 52165 # Also add JDK_ARCH_ABI_PROP_NAME define, but only to CFLAGS. 52166 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'" 52167 # And pass the architecture flags to the linker as well 52168 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52169 fi 52170 52171 # When building with an abi profile, the name of that profile is appended on the 52172 # bundle platform, which is used in bundle names. 52173 if test "x$OPENJDK_TARGET_ABI_PROFILE" != x; then 52174 OPENJDK_TARGET_BUNDLE_PLATFORM="$OPENJDK_TARGET_OS_BUNDLE-$OPENJDK_TARGET_ABI_PROFILE" 52175 fi 52176 52177 52178 # Optional POSIX functionality needed by the JVM 52179 # 52180 # Check if clock_gettime is available and in which library. This indicates 52181 # availability of CLOCK_MONOTONIC for hotspot. But we don't need to link, so 52182 # don't let it update LIBS. 52183 save_LIBS="$LIBS" 52184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 52185 $as_echo_n "checking for library containing clock_gettime... " >&6; } 52186 if ${ac_cv_search_clock_gettime+:} false; then : 52187 $as_echo_n "(cached) " >&6 52188 else 52189 ac_func_search_save_LIBS=$LIBS 52190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52191 /* end confdefs.h. */ 52192 52193 /* Override any GCC internal prototype to avoid an error. 52194 Use char because int might match the return type of a GCC 52195 builtin and then its argument prototype would still apply. */ 52196 #ifdef __cplusplus 52197 extern "C" 52198 #endif 52199 char clock_gettime (); 52200 int 52201 main () 52202 { 52203 return clock_gettime (); 52204 ; 52205 return 0; 52206 } 52207 _ACEOF 52208 for ac_lib in '' rt; do 52209 if test -z "$ac_lib"; then 52210 ac_res="none required" 52211 else 52212 ac_res=-l$ac_lib 52213 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 52214 fi 52215 if ac_fn_cxx_try_link "$LINENO"; then : 52216 ac_cv_search_clock_gettime=$ac_res 52217 fi 52218 rm -f core conftest.err conftest.$ac_objext \ 52219 conftest$ac_exeext 52220 if ${ac_cv_search_clock_gettime+:} false; then : 52221 break 52222 fi 52223 done 52224 if ${ac_cv_search_clock_gettime+:} false; then : 52225 52226 else 52227 ac_cv_search_clock_gettime=no 52228 fi 52229 rm conftest.$ac_ext 52230 LIBS=$ac_func_search_save_LIBS 52231 fi 52232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 52233 $as_echo "$ac_cv_search_clock_gettime" >&6; } 52234 ac_res=$ac_cv_search_clock_gettime 52235 if test "$ac_res" != no; then : 52236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 52237 HAS_CLOCK_GETTIME=true 52238 fi 52239 52240 if test "x$LIBS" = "x-lrt "; then 52241 CLOCK_GETTIME_IN_LIBRT=true 52242 fi 52243 LIBS="$save_LIBS" 52244 52245 52246 # Special extras... 52247 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52248 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 52249 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52250 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52251 fi 52252 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52253 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52254 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52255 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52256 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52257 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52258 CXXSTD_CXXFLAG="-std=gnu++98" 52259 52260 52261 52262 52263 52264 52265 52266 52267 52268 52269 52270 52271 52272 52273 52274 52275 52276 52277 52278 52279 52280 52281 52282 52283 52284 52285 52286 52287 52288 52289 52290 52291 52292 52293 52294 52295 52296 52297 52298 52299 52300 52301 # Execute function body 52302 52303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 52304 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 52305 supports=yes 52306 52307 saved_cxxflags="$CXXFLAGS" 52308 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 52309 ac_ext=cpp 52310 ac_cpp='$CXXCPP $CPPFLAGS' 52311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52314 52315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52316 /* end confdefs.h. */ 52317 int i; 52318 _ACEOF 52319 if ac_fn_cxx_try_compile "$LINENO"; then : 52320 52321 else 52322 supports=no 52323 fi 52324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52325 ac_ext=cpp 52326 ac_cpp='$CXXCPP $CPPFLAGS' 52327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52330 52331 CXXFLAGS="$saved_cxxflags" 52332 52333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52334 $as_echo "$supports" >&6; } 52335 if test "x$supports" = "xyes" ; then 52336 : 52337 52338 else 52339 : 52340 CXXSTD_CXXFLAG="" 52341 fi 52342 52343 52344 52345 52346 52347 52348 52349 52350 52351 52352 52353 52354 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 52355 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 52356 52357 fi 52358 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52359 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 52360 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 52361 fi 52362 52363 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 52364 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 52365 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 52366 52367 ############################################################################### 52368 # 52369 # Now setup the CFLAGS and LDFLAGS for the JDK build. 52370 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 52371 # 52372 52373 # Setup compiler/platform specific flags into 52374 # CFLAGS_JDK - C Compiler flags 52375 # CXXFLAGS_JDK - C++ Compiler flags 52376 # COMMON_CCXXFLAGS_JDK - common to C and C++ 52377 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52378 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 52379 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 52380 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 52381 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52382 # Force compatibility with i586 on 32 bit intel platforms. 52383 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 52384 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 52385 fi 52386 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52387 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52388 case $OPENJDK_TARGET_CPU_ARCH in 52389 arm ) 52390 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52391 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52392 COMMON_CCXXFLAGS_JDK="${COMMON_CCXXFLAGS_JDK} -fsigned-char" 52393 ;; 52394 ppc ) 52395 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52396 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52397 ;; 52398 s390 ) 52399 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 52400 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52401 ;; 52402 * ) 52403 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52404 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52405 ;; 52406 esac 52407 52408 52409 52410 52411 52412 52413 52414 52415 52416 52417 52418 52419 52420 52421 52422 52423 52424 52425 52426 52427 52428 52429 52430 52431 52432 52433 52434 52435 52436 52437 52438 52439 52440 52441 52442 52443 52444 52445 52446 52447 52448 52449 52450 52451 52452 52453 52454 52455 52456 52457 52458 52459 52460 52461 # Execute function body 52462 52463 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52464 REFERENCE_VERSION=6 52465 52466 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52467 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52468 fi 52469 52470 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52471 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 52472 fi 52473 52474 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52475 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52476 52477 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52478 : 52479 52480 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 52481 # runs afoul of the more aggressive versions of these optimisations. 52482 # Notably, value range propagation now assumes that the this pointer of C++ 52483 # member functions is non-null. 52484 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 52485 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 52486 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 52487 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 52488 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52489 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52490 52491 else 52492 : 52493 52494 fi 52495 52496 52497 52498 52499 52500 52501 52502 52503 52504 52505 52506 52507 52508 52509 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52510 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 52511 52512 # Restrict the debug information created by Clang to avoid 52513 # too big object files and speed the build up a little bit 52514 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 52515 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 52516 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52517 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52518 # Force compatibility with i586 on 32 bit intel platforms. 52519 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 52520 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 52521 fi 52522 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 52523 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52524 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52525 case $OPENJDK_TARGET_CPU_ARCH in 52526 ppc ) 52527 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52528 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52529 ;; 52530 * ) 52531 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52532 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52533 ;; 52534 esac 52535 fi 52536 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52537 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 52538 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 52539 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 52540 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 52541 fi 52542 52543 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 52544 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 52545 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52546 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 52547 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52548 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52549 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52550 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 52551 -MD -Zc:wchar_t- -W3 -wd4800 \ 52552 -DWIN32_LEAN_AND_MEAN \ 52553 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 52554 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 52555 -DWIN32 -DIAL" 52556 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52557 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 52558 else 52559 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 52560 fi 52561 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 52562 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 52563 # studio. 52564 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 52565 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 52566 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 52567 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 52568 fi 52569 fi 52570 52571 ############################################################################### 52572 52573 # Adjust flags according to debug level. 52574 case $DEBUG_LEVEL in 52575 fastdebug | slowdebug ) 52576 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 52577 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 52578 ;; 52579 release ) 52580 ;; 52581 * ) 52582 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52583 ;; 52584 esac 52585 52586 # Set some common defines. These works for all compilers, but assume 52587 # -D is universally accepted. 52588 52589 # Setup endianness 52590 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 52591 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 52592 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 52593 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 52594 # Note: -Dmacro is the same as #define macro 1 52595 # -Dmacro= is the same as #define macro 52596 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52597 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 52598 else 52599 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 52600 fi 52601 else 52602 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 52603 # are defined in the system? 52604 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52605 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 52606 else 52607 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 52608 fi 52609 fi 52610 52611 # Always enable optional macros for VM. 52612 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_FORMAT_MACROS" 52613 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_LIMIT_MACROS" 52614 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 52615 52616 # Setup target OS define. Use OS target name but in upper case. 52617 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 52618 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 52619 52620 # Setup target CPU 52621 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52622 $OPENJDK_TARGET_ADD_LP64 \ 52623 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 52624 52625 # Setup debug/release defines 52626 if test "x$DEBUG_LEVEL" = xrelease; then 52627 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 52628 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52629 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 52630 fi 52631 else 52632 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 52633 fi 52634 52635 # Optional POSIX functionality needed by the VM 52636 52637 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 52638 JVM_CFLAGS="$JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 52639 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 52640 JVM_CFLAGS="$JVM_CFLAGS -DNEEDS_LIBRT" 52641 fi 52642 fi 52643 52644 52645 # Set some additional per-OS defines. 52646 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52647 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 52648 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 52649 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 52650 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 52651 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 52652 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 52653 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 52654 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52655 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 52656 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 52657 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 52658 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 52659 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 52660 -fno-omit-frame-pointer" 52661 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52662 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 52663 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 52664 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 52665 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 52666 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52667 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52668 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52669 if test "x$DEBUG_LEVEL" = xslowdebug; then 52670 JVM_CFLAGS="$JVM_CFLAGS -qpic=large" 52671 fi 52672 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 52673 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 52674 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 52675 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 52676 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 52677 fi 52678 52679 # Set some additional per-CPU defines. 52680 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 52681 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 52682 elif test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xsolaris-sparcv9; then 52683 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 52684 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 52685 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52686 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52687 # fixes `relocation truncated to fit' error for gcc 4.1. 52688 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 52689 # Use ppc64 instructions, but schedule for power5 52690 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 52691 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52692 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 52693 fi 52694 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 52695 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52696 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52697 # Little endian machine uses ELFv2 ABI. 52698 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 52699 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 52700 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 52701 fi 52702 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 52703 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52704 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 52705 fi 52706 fi 52707 52708 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 52709 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 52710 fi 52711 52712 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 52713 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 52714 # Solaris does not have _LP64=1 in the old build. 52715 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 52716 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 52717 fi 52718 fi 52719 52720 # Set JVM_CFLAGS warning handling 52721 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52722 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 52723 -Wunused-value -Woverloaded-virtual" 52724 52725 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52726 52727 52728 52729 52730 52731 52732 52733 52734 52735 52736 52737 52738 52739 52740 52741 52742 52743 52744 52745 52746 52747 52748 52749 52750 52751 52752 52753 52754 52755 52756 52757 52758 52759 52760 52761 52762 52763 52764 52765 52766 52767 52768 52769 52770 52771 52772 52773 52774 52775 52776 52777 52778 52779 52780 # Execute function body 52781 52782 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52783 REFERENCE_VERSION=4.8 52784 52785 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52786 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52787 fi 52788 52789 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52790 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 52791 fi 52792 52793 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52794 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52795 52796 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52797 : 52798 52799 # These flags either do not work or give spurious warnings prior to gcc 4.8. 52800 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 52801 52802 52803 else 52804 : 52805 52806 fi 52807 52808 52809 52810 52811 52812 52813 52814 52815 52816 52817 52818 52819 52820 52821 fi 52822 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 52823 # Non-zero builds have stricter warnings 52824 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 52825 else 52826 if test "x$TOOLCHAIN_TYPE" = xclang; then 52827 # Some versions of llvm do not like -Wundef 52828 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 52829 fi 52830 fi 52831 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52832 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 52833 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 52834 fi 52835 52836 # Additional macosx handling 52837 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52838 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 52839 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 52840 # JDK can be built and makes the linked binaries compatible even if built on 52841 # a newer version of the OS. 52842 MACOSX_VERSION_MIN=10.7.0 52843 52844 52845 # Setting --with-macosx-version-max=<version> makes it an error to build or 52846 # link to macosx APIs that are newer than the given OS version. The expected 52847 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 52848 52849 # Check whether --with-macosx-version-max was given. 52850 if test "${with_macosx_version_max+set}" = set; then : 52851 withval=$with_macosx_version_max; 52852 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 52853 MACOSX_VERSION_MAX=$with_macosx_version_max 52854 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 52855 MACOSX_VERSION_MAX=$with_macosx_version_max 52856 elif test "x$with_macosx_version_max" = "xno"; then 52857 # Use build system default 52858 MACOSX_VERSION_MAX= 52859 else 52860 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 52861 fi 52862 52863 else 52864 MACOSX_VERSION_MAX= 52865 52866 fi 52867 52868 52869 52870 # Let the flags variables get resolved in make for easier override on make 52871 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 52872 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52873 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52874 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52875 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52876 JVM_CFLAGS="$JVM_CFLAGS \ 52877 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52878 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52879 52880 if test -n "$MACOSX_VERSION_MAX"; then 52881 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52882 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52883 JVM_CFLAGS="$JVM_CFLAGS \ 52884 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52885 fi 52886 fi 52887 52888 # Setup some hard coded includes 52889 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52890 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 52891 -I${TOPDIR}/src/java.base/share/native/include \ 52892 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 52893 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 52894 -I${TOPDIR}/src/java.base/share/native/libjava \ 52895 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava \ 52896 -I${TOPDIR}/src/hotspot/share/include \ 52897 -I${TOPDIR}/src/hotspot/os/${HOTSPOT_TARGET_OS_TYPE}/include" 52898 52899 # The shared libraries are compiled using the picflag. 52900 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 52901 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 52902 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 52903 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 52904 52905 # Executable flags 52906 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 52907 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 52908 52909 52910 52911 52912 52913 52914 # Setup LDFLAGS et al. 52915 # 52916 52917 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52918 LDFLAGS_MICROSOFT="-nologo -opt:ref" 52919 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 52920 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 52921 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 52922 LDFLAGS_SAFESH="-safeseh" 52923 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 52924 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 52925 # NOTE: Old build added -machine. Probably not needed. 52926 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 52927 else 52928 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 52929 fi 52930 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52931 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 52932 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52933 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 52934 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52935 fi 52936 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52937 # If this is a --hash-style=gnu system, use --hash-style=both, why? 52938 # We have previously set HAS_GNU_HASH if this is the case 52939 if test -n "$HAS_GNU_HASH"; then 52940 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 52941 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 52942 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 52943 fi 52944 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52945 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52946 fi 52947 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52948 # And since we now know that the linker is gnu, then add -z defs, to forbid 52949 # undefined symbols in object files. 52950 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 52951 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 52952 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 52953 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 52954 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 52955 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52956 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 52957 fi 52958 case $DEBUG_LEVEL in 52959 release ) 52960 # tell linker to optimize libraries. 52961 # Should this be supplied to the OSS linker as well? 52962 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 52963 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 52964 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 52965 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52966 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52967 fi 52968 ;; 52969 slowdebug ) 52970 # Hotspot always let the linker optimize 52971 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52972 if test "x$HAS_LINKER_NOW" = "xtrue"; then 52973 # do relocations at load 52974 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 52975 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 52976 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 52977 fi 52978 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52979 # mark relocations read only 52980 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52981 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52982 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52983 fi 52984 ;; 52985 fastdebug ) 52986 # Hotspot always let the linker optimize 52987 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52988 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52989 # mark relocations read only 52990 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52991 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52992 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52993 fi 52994 ;; 52995 * ) 52996 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52997 ;; 52998 esac 52999 fi 53000 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53001 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 53002 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 53003 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 53004 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 53005 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 53006 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 53007 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 53008 fi 53009 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53010 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K -bdatapsize:64K -bstackpsize:64K" 53011 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 53012 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 53013 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 53014 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 53015 # so for slowdebug we build with '-qpic=large -bbigtoc'. 53016 if test "x$DEBUG_LEVEL" = xslowdebug; then 53017 JVM_LDFLAGS="$JVM_LDFLAGS -bbigtoc" 53018 fi 53019 fi 53020 53021 # Customize LDFLAGS for executables 53022 53023 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 53024 53025 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53026 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 53027 LDFLAGS_STACK_SIZE=1048576 53028 else 53029 LDFLAGS_STACK_SIZE=327680 53030 fi 53031 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 53032 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 53033 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 53034 fi 53035 53036 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 53037 53038 # Customize LDFLAGS for libs 53039 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 53040 53041 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 53042 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 53043 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53044 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53045 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 53046 JDKLIB_LIBS="" 53047 else 53048 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53049 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 53050 53051 if test "xTARGET" = "xTARGET"; then 53052 # On some platforms (mac) the linker warns about non existing -L dirs. 53053 # For any of the variants server, client or minimal, the dir matches the 53054 # variant name. The "main" variant should be used for linking. For the 53055 # rest, the dir is just server. 53056 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 53057 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 53058 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53059 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 53060 else 53061 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53062 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53063 fi 53064 elif test "xTARGET" = "xBUILD"; then 53065 # When building a buildjdk, it's always only the server variant 53066 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53067 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53068 fi 53069 53070 JDKLIB_LIBS="-ljava -ljvm" 53071 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53072 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 53073 fi 53074 53075 fi 53076 53077 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 53078 53079 # Set JVM_LIBS (per os) 53080 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53081 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 53082 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 53083 # FIXME: This hard-coded path is not really proper. 53084 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 53085 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 53086 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 53087 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 53088 fi 53089 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 53090 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 53091 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 53092 JVM_LIBS="$JVM_LIBS -lm" 53093 elif test "x$OPENJDK_TARGET_OS" = xaix; then 53094 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 53095 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 53096 JVM_LIBS="$JVM_LIBS -lm" 53097 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 53098 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 53099 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 53100 wsock32.lib winmm.lib version.lib psapi.lib" 53101 fi 53102 53103 # Set JVM_ASFLAGS 53104 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53105 if test "x$OPENJDK_TARGET_CPU" = xx86; then 53106 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 53107 fi 53108 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 53109 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 53110 fi 53111 53112 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 53113 53114 53115 53116 53117 53118 53119 53120 53121 53122 53123 53124 53125 53126 53127 53128 53129 # Special extras... 53130 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53131 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 53132 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 53133 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 53134 fi 53135 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 53136 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 53137 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53138 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 53139 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 53140 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 53141 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 53142 53143 53144 53145 53146 53147 53148 53149 53150 53151 53152 53153 53154 53155 53156 53157 53158 53159 53160 53161 53162 53163 53164 53165 53166 53167 53168 53169 53170 53171 53172 53173 53174 53175 53176 53177 53178 53179 53180 53181 53182 53183 53184 # Execute function body 53185 53186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 53187 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 53188 supports=yes 53189 53190 saved_cxxflags="$CXXFLAGS" 53191 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 53192 ac_ext=cpp 53193 ac_cpp='$CXXCPP $CPPFLAGS' 53194 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53195 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53196 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53197 53198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53199 /* end confdefs.h. */ 53200 int i; 53201 _ACEOF 53202 if ac_fn_cxx_try_compile "$LINENO"; then : 53203 53204 else 53205 supports=no 53206 fi 53207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53208 ac_ext=cpp 53209 ac_cpp='$CXXCPP $CPPFLAGS' 53210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53213 53214 CXXFLAGS="$saved_cxxflags" 53215 53216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53217 $as_echo "$supports" >&6; } 53218 if test "x$supports" = "xyes" ; then 53219 : 53220 53221 else 53222 : 53223 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 53224 fi 53225 53226 53227 53228 53229 53230 53231 53232 53233 53234 53235 53236 53237 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 53238 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 53239 53240 fi 53241 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 53242 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 53243 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 53244 fi 53245 53246 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 53247 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 53248 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 53249 53250 ############################################################################### 53251 # 53252 # Now setup the CFLAGS and LDFLAGS for the JDK build. 53253 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 53254 # 53255 53256 # Setup compiler/platform specific flags into 53257 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 53258 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 53259 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 53260 if test "x$TOOLCHAIN_TYPE" = xgcc; then 53261 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 53262 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 53263 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 53264 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53265 # Force compatibility with i586 on 32 bit intel platforms. 53266 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 53267 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 53268 fi 53269 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 53270 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 53271 case $OPENJDK_BUILD_CPU_ARCH in 53272 arm ) 53273 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53274 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53275 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="${OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK} -fsigned-char" 53276 ;; 53277 ppc ) 53278 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53279 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53280 ;; 53281 s390 ) 53282 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 53283 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53284 ;; 53285 * ) 53286 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 53287 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53288 ;; 53289 esac 53290 53291 53292 53293 53294 53295 53296 53297 53298 53299 53300 53301 53302 53303 53304 53305 53306 53307 53308 53309 53310 53311 53312 53313 53314 53315 53316 53317 53318 53319 53320 53321 53322 53323 53324 53325 53326 53327 53328 53329 53330 53331 53332 53333 53334 53335 53336 53337 53338 53339 53340 53341 53342 53343 53344 # Execute function body 53345 53346 # Need to assign to a variable since m4 is blocked from modifying parts in []. 53347 REFERENCE_VERSION=6 53348 53349 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 53350 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 53351 fi 53352 53353 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 53354 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 53355 fi 53356 53357 # Version comparison method inspired by http://stackoverflow.com/a/24067243 53358 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 53359 53360 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 53361 : 53362 53363 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 53364 # runs afoul of the more aggressive versions of these optimisations. 53365 # Notably, value range propagation now assumes that the this pointer of C++ 53366 # member functions is non-null. 53367 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 53368 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 53369 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 53370 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 53371 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 53372 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 53373 53374 else 53375 : 53376 53377 fi 53378 53379 53380 53381 53382 53383 53384 53385 53386 53387 53388 53389 53390 53391 53392 elif test "x$TOOLCHAIN_TYPE" = xclang; then 53393 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 53394 53395 # Restrict the debug information created by Clang to avoid 53396 # too big object files and speed the build up a little bit 53397 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 53398 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 53399 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53400 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53401 # Force compatibility with i586 on 32 bit intel platforms. 53402 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 53403 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 53404 fi 53405 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 53406 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 53407 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 53408 case $OPENJDK_BUILD_CPU_ARCH in 53409 ppc ) 53410 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53411 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53412 ;; 53413 * ) 53414 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 53415 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53416 ;; 53417 esac 53418 fi 53419 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53420 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 53421 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 53422 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 53423 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 53424 fi 53425 53426 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 53427 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 53428 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53429 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 53430 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 53431 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 53432 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53433 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53434 -MD -Zc:wchar_t- -W3 -wd4800 \ 53435 -DWIN32_LEAN_AND_MEAN \ 53436 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 53437 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 53438 -DWIN32 -DIAL" 53439 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 53440 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 53441 else 53442 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 53443 fi 53444 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 53445 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 53446 # studio. 53447 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 53448 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 53449 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 53450 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 53451 fi 53452 fi 53453 53454 ############################################################################### 53455 53456 # Adjust flags according to debug level. 53457 case $DEBUG_LEVEL in 53458 fastdebug | slowdebug ) 53459 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 53460 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 53461 ;; 53462 release ) 53463 ;; 53464 * ) 53465 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 53466 ;; 53467 esac 53468 53469 # Set some common defines. These works for all compilers, but assume 53470 # -D is universally accepted. 53471 53472 # Setup endianness 53473 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 53474 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 53475 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 53476 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 53477 # Note: -Dmacro is the same as #define macro 1 53478 # -Dmacro= is the same as #define macro 53479 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53480 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 53481 else 53482 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 53483 fi 53484 else 53485 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 53486 # are defined in the system? 53487 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53488 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 53489 else 53490 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 53491 fi 53492 fi 53493 53494 # Always enable optional macros for VM. 53495 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_FORMAT_MACROS" 53496 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_LIMIT_MACROS" 53497 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 53498 53499 # Setup target OS define. Use OS target name but in upper case. 53500 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 53501 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 53502 53503 # Setup target CPU 53504 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53505 $OPENJDK_BUILD_ADD_LP64 \ 53506 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 53507 53508 # Setup debug/release defines 53509 if test "x$DEBUG_LEVEL" = xrelease; then 53510 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 53511 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53512 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 53513 fi 53514 else 53515 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 53516 fi 53517 53518 # Optional POSIX functionality needed by the VM 53519 53520 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 53521 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 53522 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 53523 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DNEEDS_LIBRT" 53524 fi 53525 fi 53526 53527 53528 # Set some additional per-OS defines. 53529 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53530 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 53531 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 53532 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 53533 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 53534 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 53535 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 53536 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 53537 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53538 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 53539 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 53540 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 53541 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 53542 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 53543 -fno-omit-frame-pointer" 53544 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53545 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 53546 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 53547 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 53548 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 53549 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 53550 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 53551 # so for slowdebug we build with '-qpic=large -bbigtoc'. 53552 if test "x$DEBUG_LEVEL" = xslowdebug; then 53553 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qpic=large" 53554 fi 53555 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 53556 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 53557 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 53558 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 53559 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 53560 fi 53561 53562 # Set some additional per-CPU defines. 53563 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 53564 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 53565 elif test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xsolaris-sparcv9; then 53566 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 53567 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 53568 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53569 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 53570 # fixes `relocation truncated to fit' error for gcc 4.1. 53571 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 53572 # Use ppc64 instructions, but schedule for power5 53573 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 53574 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53575 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 53576 fi 53577 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 53578 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53579 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 53580 # Little endian machine uses ELFv2 ABI. 53581 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 53582 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 53583 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 53584 fi 53585 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 53586 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53587 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 53588 fi 53589 fi 53590 53591 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 53592 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 53593 fi 53594 53595 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 53596 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 53597 # Solaris does not have _LP64=1 in the old build. 53598 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 53599 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 53600 fi 53601 fi 53602 53603 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 53604 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53605 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 53606 -Wunused-value -Woverloaded-virtual" 53607 53608 if test "x$TOOLCHAIN_TYPE" = xgcc; then 53609 53610 53611 53612 53613 53614 53615 53616 53617 53618 53619 53620 53621 53622 53623 53624 53625 53626 53627 53628 53629 53630 53631 53632 53633 53634 53635 53636 53637 53638 53639 53640 53641 53642 53643 53644 53645 53646 53647 53648 53649 53650 53651 53652 53653 53654 53655 53656 53657 53658 53659 53660 53661 53662 53663 # Execute function body 53664 53665 # Need to assign to a variable since m4 is blocked from modifying parts in []. 53666 REFERENCE_VERSION=4.8 53667 53668 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 53669 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 53670 fi 53671 53672 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 53673 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 53674 fi 53675 53676 # Version comparison method inspired by http://stackoverflow.com/a/24067243 53677 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 53678 53679 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 53680 : 53681 53682 # These flags either do not work or give spurious warnings prior to gcc 4.8. 53683 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 53684 53685 53686 else 53687 : 53688 53689 fi 53690 53691 53692 53693 53694 53695 53696 53697 53698 53699 53700 53701 53702 53703 53704 fi 53705 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 53706 # Non-zero builds have stricter warnings 53707 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 53708 else 53709 if test "x$TOOLCHAIN_TYPE" = xclang; then 53710 # Some versions of llvm do not like -Wundef 53711 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 53712 fi 53713 fi 53714 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53715 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 53716 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 53717 fi 53718 53719 # Additional macosx handling 53720 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53721 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 53722 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 53723 # JDK can be built and makes the linked binaries compatible even if built on 53724 # a newer version of the OS. 53725 MACOSX_VERSION_MIN=10.7.0 53726 53727 53728 # Setting --with-macosx-version-max=<version> makes it an error to build or 53729 # link to macosx APIs that are newer than the given OS version. The expected 53730 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 53731 53732 # Check whether --with-macosx-version-max was given. 53733 if test "${with_macosx_version_max+set}" = set; then : 53734 withval=$with_macosx_version_max; 53735 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 53736 MACOSX_VERSION_MAX=$with_macosx_version_max 53737 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 53738 MACOSX_VERSION_MAX=$with_macosx_version_max 53739 elif test "x$with_macosx_version_max" = "xno"; then 53740 # Use build system default 53741 MACOSX_VERSION_MAX= 53742 else 53743 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 53744 fi 53745 53746 else 53747 MACOSX_VERSION_MAX= 53748 53749 fi 53750 53751 53752 53753 # Let the flags variables get resolved in make for easier override on make 53754 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 53755 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53756 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 53757 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53758 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53759 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 53760 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 53761 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53762 53763 if test -n "$MACOSX_VERSION_MAX"; then 53764 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53765 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 53766 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 53767 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 53768 fi 53769 fi 53770 53771 # Setup some hard coded includes 53772 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53773 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 53774 -I${TOPDIR}/src/java.base/share/native/include \ 53775 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 53776 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 53777 -I${TOPDIR}/src/java.base/share/native/libjava \ 53778 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava \ 53779 -I${TOPDIR}/src/hotspot/share/include \ 53780 -I${TOPDIR}/src/hotspot/os/${HOTSPOT_BUILD_OS_TYPE}/include" 53781 53782 # The shared libraries are compiled using the picflag. 53783 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53784 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 53785 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53786 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 53787 53788 # Executable flags 53789 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 53790 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 53791 53792 53793 53794 53795 53796 53797 # Setup LDFLAGS et al. 53798 # 53799 53800 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53801 LDFLAGS_MICROSOFT="-nologo -opt:ref" 53802 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 53803 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 53804 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 53805 LDFLAGS_SAFESH="-safeseh" 53806 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 53807 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 53808 # NOTE: Old build added -machine. Probably not needed. 53809 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 53810 else 53811 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 53812 fi 53813 elif test "x$TOOLCHAIN_TYPE" = xclang; then 53814 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 53815 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53816 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 53817 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 53818 fi 53819 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 53820 # If this is a --hash-style=gnu system, use --hash-style=both, why? 53821 # We have previously set HAS_GNU_HASH if this is the case 53822 if test -n "$HAS_GNU_HASH"; then 53823 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 53824 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 53825 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 53826 fi 53827 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53828 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 53829 fi 53830 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53831 # And since we now know that the linker is gnu, then add -z defs, to forbid 53832 # undefined symbols in object files. 53833 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 53834 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 53835 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 53836 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 53837 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 53838 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53839 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 53840 fi 53841 case $DEBUG_LEVEL in 53842 release ) 53843 # tell linker to optimize libraries. 53844 # Should this be supplied to the OSS linker as well? 53845 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 53846 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 53847 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 53848 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53849 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53850 fi 53851 ;; 53852 slowdebug ) 53853 # Hotspot always let the linker optimize 53854 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 53855 if test "x$HAS_LINKER_NOW" = "xtrue"; then 53856 # do relocations at load 53857 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 53858 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 53859 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 53860 fi 53861 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53862 # mark relocations read only 53863 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 53864 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 53865 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53866 fi 53867 ;; 53868 fastdebug ) 53869 # Hotspot always let the linker optimize 53870 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 53871 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53872 # mark relocations read only 53873 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 53874 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 53875 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53876 fi 53877 ;; 53878 * ) 53879 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 53880 ;; 53881 esac 53882 fi 53883 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53884 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 53885 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 53886 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 53887 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 53888 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 53889 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 53890 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 53891 fi 53892 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53893 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K -bdatapsize:64K -bstackpsize:64K" 53894 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 53895 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 53896 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 53897 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 53898 # so for slowdebug we build with '-qpic=large -bbigtoc'. 53899 if test "x$DEBUG_LEVEL" = xslowdebug; then 53900 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -bbigtoc" 53901 fi 53902 fi 53903 53904 # Customize LDFLAGS for executables 53905 53906 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 53907 53908 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53909 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 53910 LDFLAGS_STACK_SIZE=1048576 53911 else 53912 LDFLAGS_STACK_SIZE=327680 53913 fi 53914 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 53915 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 53916 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 53917 fi 53918 53919 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53920 53921 # Customize LDFLAGS for libs 53922 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 53923 53924 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 53925 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 53926 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53927 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53928 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 53929 OPENJDK_BUILD_JDKLIB_LIBS="" 53930 else 53931 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53932 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 53933 53934 if test "xBUILD" = "xTARGET"; then 53935 # On some platforms (mac) the linker warns about non existing -L dirs. 53936 # For any of the variants server, client or minimal, the dir matches the 53937 # variant name. The "main" variant should be used for linking. For the 53938 # rest, the dir is just server. 53939 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 53940 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 53941 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53942 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 53943 else 53944 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53945 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53946 fi 53947 elif test "xBUILD" = "xBUILD"; then 53948 # When building a buildjdk, it's always only the server variant 53949 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53950 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53951 fi 53952 53953 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 53954 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53955 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 53956 fi 53957 53958 fi 53959 53960 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 53961 53962 # Set OPENJDK_BUILD_JVM_LIBS (per os) 53963 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53964 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 53965 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 53966 # FIXME: This hard-coded path is not really proper. 53967 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 53968 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 53969 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 53970 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 53971 fi 53972 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 53973 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 53974 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53975 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 53976 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53977 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 53978 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 53979 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 53980 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 53981 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 53982 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 53983 wsock32.lib winmm.lib version.lib psapi.lib" 53984 fi 53985 53986 # Set OPENJDK_BUILD_JVM_ASFLAGS 53987 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53988 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53989 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 53990 fi 53991 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53992 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 53993 fi 53994 53995 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53996 53997 53998 53999 54000 54001 54002 54003 54004 54005 54006 54007 54008 54009 54010 54011 54012 # Tests are only ever compiled for TARGET 54013 # Flags for compiling test libraries 54014 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 54015 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 54016 54017 # Flags for compiling test executables 54018 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 54019 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 54020 54021 54022 54023 54024 54025 54026 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 54027 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 54028 54029 54030 54031 54032 54033 54034 # Check that the compiler supports -mX (or -qX on AIX) flags 54035 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 54036 54037 54038 54039 54040 54041 54042 54043 54044 54045 54046 54047 54048 54049 54050 54051 54052 54053 54054 54055 54056 54057 54058 54059 54060 54061 54062 54063 54064 54065 54066 54067 54068 54069 54070 54071 54072 54073 54074 54075 54076 54077 54078 54079 54080 54081 54082 54083 # Execute function body 54084 54085 54086 54087 54088 54089 54090 54091 54092 54093 54094 54095 54096 54097 54098 54099 54100 54101 54102 54103 54104 54105 54106 54107 54108 54109 54110 54111 54112 54113 54114 54115 54116 54117 54118 54119 54120 54121 54122 54123 54124 54125 54126 54127 54128 54129 54130 54131 54132 # Execute function body 54133 54134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54135 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54136 supports=yes 54137 54138 saved_cflags="$CFLAGS" 54139 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 54140 ac_ext=c 54141 ac_cpp='$CPP $CPPFLAGS' 54142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54144 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54145 54146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54147 /* end confdefs.h. */ 54148 int i; 54149 _ACEOF 54150 if ac_fn_c_try_compile "$LINENO"; then : 54151 54152 else 54153 supports=no 54154 fi 54155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54156 ac_ext=cpp 54157 ac_cpp='$CXXCPP $CPPFLAGS' 54158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54161 54162 CFLAGS="$saved_cflags" 54163 54164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54165 $as_echo "$supports" >&6; } 54166 if test "x$supports" = "xyes" ; then 54167 : 54168 C_COMP_SUPPORTS="yes" 54169 else 54170 : 54171 C_COMP_SUPPORTS="no" 54172 fi 54173 54174 54175 54176 54177 54178 54179 54180 54181 54182 54183 54184 54185 54186 54187 54188 54189 54190 54191 54192 54193 54194 54195 54196 54197 54198 54199 54200 54201 54202 54203 54204 54205 54206 54207 54208 54209 54210 54211 54212 54213 54214 54215 54216 54217 54218 54219 54220 54221 54222 54223 54224 54225 54226 54227 54228 54229 54230 54231 54232 # Execute function body 54233 54234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54235 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54236 supports=yes 54237 54238 saved_cxxflags="$CXXFLAGS" 54239 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 54240 ac_ext=cpp 54241 ac_cpp='$CXXCPP $CPPFLAGS' 54242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54245 54246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54247 /* end confdefs.h. */ 54248 int i; 54249 _ACEOF 54250 if ac_fn_cxx_try_compile "$LINENO"; then : 54251 54252 else 54253 supports=no 54254 fi 54255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54256 ac_ext=cpp 54257 ac_cpp='$CXXCPP $CPPFLAGS' 54258 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54259 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54260 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54261 54262 CXXFLAGS="$saved_cxxflags" 54263 54264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54265 $as_echo "$supports" >&6; } 54266 if test "x$supports" = "xyes" ; then 54267 : 54268 CXX_COMP_SUPPORTS="yes" 54269 else 54270 : 54271 CXX_COMP_SUPPORTS="no" 54272 fi 54273 54274 54275 54276 54277 54278 54279 54280 54281 54282 54283 54284 54285 54286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54287 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54288 supports=no 54289 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54290 54291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54292 $as_echo "$supports" >&6; } 54293 if test "x$supports" = "xyes" ; then 54294 : 54295 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 54296 else 54297 : 54298 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 54299 fi 54300 54301 54302 54303 54304 54305 54306 54307 54308 # Check whether --enable-warnings-as-errors was given. 54309 if test "${enable_warnings_as_errors+set}" = set; then : 54310 enableval=$enable_warnings_as_errors; 54311 fi 54312 54313 54314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 54315 $as_echo_n "checking if native warnings are errors... " >&6; } 54316 if test "x$enable_warnings_as_errors" = "xyes"; then 54317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 54318 $as_echo "yes (explicitly set)" >&6; } 54319 WARNINGS_AS_ERRORS=true 54320 elif test "x$enable_warnings_as_errors" = "xno"; then 54321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54322 $as_echo "no" >&6; } 54323 WARNINGS_AS_ERRORS=false 54324 elif test "x$enable_warnings_as_errors" = "x"; then 54325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 54326 $as_echo "yes (default)" >&6; } 54327 WARNINGS_AS_ERRORS=true 54328 else 54329 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 54330 fi 54331 54332 54333 54334 case "${TOOLCHAIN_TYPE}" in 54335 microsoft) 54336 DISABLE_WARNING_PREFIX="-wd" 54337 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 54338 ;; 54339 solstudio) 54340 DISABLE_WARNING_PREFIX="-erroff=" 54341 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 54342 ;; 54343 gcc) 54344 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 54345 54346 54347 54348 54349 54350 54351 54352 54353 54354 54355 54356 54357 54358 54359 54360 54361 54362 54363 54364 54365 54366 54367 54368 54369 54370 54371 54372 54373 54374 54375 54376 54377 54378 54379 54380 54381 54382 54383 54384 54385 54386 54387 54388 54389 54390 54391 54392 # Execute function body 54393 54394 54395 54396 54397 54398 54399 54400 54401 54402 54403 54404 54405 54406 54407 54408 54409 54410 54411 54412 54413 54414 54415 54416 54417 54418 54419 54420 54421 54422 54423 54424 54425 54426 54427 54428 54429 54430 54431 54432 54433 54434 54435 54436 54437 54438 54439 54440 54441 # Execute function body 54442 54443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54444 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54445 supports=yes 54446 54447 saved_cflags="$CFLAGS" 54448 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 54449 ac_ext=c 54450 ac_cpp='$CPP $CPPFLAGS' 54451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54453 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54454 54455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54456 /* end confdefs.h. */ 54457 int i; 54458 _ACEOF 54459 if ac_fn_c_try_compile "$LINENO"; then : 54460 54461 else 54462 supports=no 54463 fi 54464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54465 ac_ext=cpp 54466 ac_cpp='$CXXCPP $CPPFLAGS' 54467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54470 54471 CFLAGS="$saved_cflags" 54472 54473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54474 $as_echo "$supports" >&6; } 54475 if test "x$supports" = "xyes" ; then 54476 : 54477 C_COMP_SUPPORTS="yes" 54478 else 54479 : 54480 C_COMP_SUPPORTS="no" 54481 fi 54482 54483 54484 54485 54486 54487 54488 54489 54490 54491 54492 54493 54494 54495 54496 54497 54498 54499 54500 54501 54502 54503 54504 54505 54506 54507 54508 54509 54510 54511 54512 54513 54514 54515 54516 54517 54518 54519 54520 54521 54522 54523 54524 54525 54526 54527 54528 54529 54530 54531 54532 54533 54534 54535 54536 54537 54538 54539 54540 54541 # Execute function body 54542 54543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54544 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54545 supports=yes 54546 54547 saved_cxxflags="$CXXFLAGS" 54548 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 54549 ac_ext=cpp 54550 ac_cpp='$CXXCPP $CPPFLAGS' 54551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54554 54555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54556 /* end confdefs.h. */ 54557 int i; 54558 _ACEOF 54559 if ac_fn_cxx_try_compile "$LINENO"; then : 54560 54561 else 54562 supports=no 54563 fi 54564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54565 ac_ext=cpp 54566 ac_cpp='$CXXCPP $CPPFLAGS' 54567 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54568 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54569 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54570 54571 CXXFLAGS="$saved_cxxflags" 54572 54573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54574 $as_echo "$supports" >&6; } 54575 if test "x$supports" = "xyes" ; then 54576 : 54577 CXX_COMP_SUPPORTS="yes" 54578 else 54579 : 54580 CXX_COMP_SUPPORTS="no" 54581 fi 54582 54583 54584 54585 54586 54587 54588 54589 54590 54591 54592 54593 54594 54595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54596 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54597 supports=no 54598 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54599 54600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54601 $as_echo "$supports" >&6; } 54602 if test "x$supports" = "xyes" ; then 54603 : 54604 GCC_CAN_DISABLE_WARNINGS=true 54605 else 54606 : 54607 GCC_CAN_DISABLE_WARNINGS=false 54608 54609 fi 54610 54611 54612 54613 54614 54615 54616 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 54617 DISABLE_WARNING_PREFIX="-Wno-" 54618 else 54619 DISABLE_WARNING_PREFIX= 54620 fi 54621 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 54622 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 54623 # CFLAGS since any target specific flags will likely not work with the 54624 # build compiler 54625 CC_OLD="$CC" 54626 CXX_OLD="$CXX" 54627 CC="$BUILD_CC" 54628 CXX="$BUILD_CXX" 54629 CFLAGS_OLD="$CFLAGS" 54630 CFLAGS="" 54631 54632 54633 54634 54635 54636 54637 54638 54639 54640 54641 54642 54643 54644 54645 54646 54647 54648 54649 54650 54651 54652 54653 54654 54655 54656 54657 54658 54659 54660 54661 54662 54663 54664 54665 54666 54667 54668 54669 54670 54671 54672 54673 54674 54675 54676 54677 54678 # Execute function body 54679 54680 54681 54682 54683 54684 54685 54686 54687 54688 54689 54690 54691 54692 54693 54694 54695 54696 54697 54698 54699 54700 54701 54702 54703 54704 54705 54706 54707 54708 54709 54710 54711 54712 54713 54714 54715 54716 54717 54718 54719 54720 54721 54722 54723 54724 54725 54726 54727 # Execute function body 54728 54729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54730 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54731 supports=yes 54732 54733 saved_cflags="$CFLAGS" 54734 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 54735 ac_ext=c 54736 ac_cpp='$CPP $CPPFLAGS' 54737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54739 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54740 54741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54742 /* end confdefs.h. */ 54743 int i; 54744 _ACEOF 54745 if ac_fn_c_try_compile "$LINENO"; then : 54746 54747 else 54748 supports=no 54749 fi 54750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54751 ac_ext=cpp 54752 ac_cpp='$CXXCPP $CPPFLAGS' 54753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54756 54757 CFLAGS="$saved_cflags" 54758 54759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54760 $as_echo "$supports" >&6; } 54761 if test "x$supports" = "xyes" ; then 54762 : 54763 C_COMP_SUPPORTS="yes" 54764 else 54765 : 54766 C_COMP_SUPPORTS="no" 54767 fi 54768 54769 54770 54771 54772 54773 54774 54775 54776 54777 54778 54779 54780 54781 54782 54783 54784 54785 54786 54787 54788 54789 54790 54791 54792 54793 54794 54795 54796 54797 54798 54799 54800 54801 54802 54803 54804 54805 54806 54807 54808 54809 54810 54811 54812 54813 54814 54815 54816 54817 54818 54819 54820 54821 54822 54823 54824 54825 54826 54827 # Execute function body 54828 54829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54830 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54831 supports=yes 54832 54833 saved_cxxflags="$CXXFLAGS" 54834 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 54835 ac_ext=cpp 54836 ac_cpp='$CXXCPP $CPPFLAGS' 54837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54840 54841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54842 /* end confdefs.h. */ 54843 int i; 54844 _ACEOF 54845 if ac_fn_cxx_try_compile "$LINENO"; then : 54846 54847 else 54848 supports=no 54849 fi 54850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54851 ac_ext=cpp 54852 ac_cpp='$CXXCPP $CPPFLAGS' 54853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54856 54857 CXXFLAGS="$saved_cxxflags" 54858 54859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54860 $as_echo "$supports" >&6; } 54861 if test "x$supports" = "xyes" ; then 54862 : 54863 CXX_COMP_SUPPORTS="yes" 54864 else 54865 : 54866 CXX_COMP_SUPPORTS="no" 54867 fi 54868 54869 54870 54871 54872 54873 54874 54875 54876 54877 54878 54879 54880 54881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54882 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54883 supports=no 54884 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54885 54886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54887 $as_echo "$supports" >&6; } 54888 if test "x$supports" = "xyes" ; then 54889 : 54890 BUILD_CC_CAN_DISABLE_WARNINGS=true 54891 else 54892 : 54893 BUILD_CC_CAN_DISABLE_WARNINGS=false 54894 54895 fi 54896 54897 54898 54899 54900 54901 54902 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 54903 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 54904 else 54905 BUILD_CC_DISABLE_WARNING_PREFIX= 54906 fi 54907 CC="$CC_OLD" 54908 CXX="$CXX_OLD" 54909 CFLAGS="$CFLAGS_OLD" 54910 ;; 54911 clang) 54912 DISABLE_WARNING_PREFIX="-Wno-" 54913 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 54914 ;; 54915 xlc) 54916 DISABLE_WARNING_PREFIX="-qsuppress=" 54917 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 54918 ;; 54919 esac 54920 54921 54922 54923 54924 54925 # Setup debug symbols (need objcopy from the toolchain for that) 54926 54927 # 54928 # NATIVE_DEBUG_SYMBOLS 54929 # This must be done after the toolchain is setup, since we're looking at objcopy. 54930 # 54931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 54932 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 54933 54934 # Check whether --with-native-debug-symbols was given. 54935 if test "${with_native_debug_symbols+set}" = set; then : 54936 withval=$with_native_debug_symbols; 54937 if test "x$OPENJDK_TARGET_OS" = xaix; then 54938 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 54939 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 54940 fi 54941 fi 54942 54943 else 54944 54945 if test "x$OPENJDK_TARGET_OS" = xaix; then 54946 # AIX doesn't support 'external' so use 'internal' as default 54947 with_native_debug_symbols="internal" 54948 else 54949 if test "x$STATIC_BUILD" = xtrue; then 54950 with_native_debug_symbols="none" 54951 else 54952 with_native_debug_symbols="external" 54953 fi 54954 fi 54955 54956 fi 54957 54958 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 54959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 54960 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 54961 54962 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 54963 54964 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 54965 if test "x$OBJCOPY" = x; then 54966 # enabling of enable-debug-symbols and can't find objcopy 54967 # this is an error 54968 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54969 fi 54970 fi 54971 54972 COMPILE_WITH_DEBUG_SYMBOLS=true 54973 COPY_DEBUG_SYMBOLS=true 54974 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 54975 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 54976 COMPILE_WITH_DEBUG_SYMBOLS=false 54977 COPY_DEBUG_SYMBOLS=false 54978 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54979 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 54980 COMPILE_WITH_DEBUG_SYMBOLS=true 54981 COPY_DEBUG_SYMBOLS=false 54982 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54983 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 54984 54985 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 54986 if test "x$OBJCOPY" = x; then 54987 # enabling of enable-debug-symbols and can't find objcopy 54988 # this is an error 54989 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54990 fi 54991 fi 54992 54993 COMPILE_WITH_DEBUG_SYMBOLS=true 54994 COPY_DEBUG_SYMBOLS=true 54995 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54996 else 54997 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 54998 fi 54999 55000 # --enable-debug-symbols is deprecated. 55001 # Please use --with-native-debug-symbols=[internal,external,zipped] . 55002 55003 # Check whether --enable-debug-symbols was given. 55004 if test "${enable_debug_symbols+set}" = set; then : 55005 enableval=$enable_debug_symbols; 55006 fi 55007 55008 if test "x$enable_debug_symbols" != x; then 55009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 55010 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 55011 55012 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 55013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 55014 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 55015 fi 55016 55017 fi 55018 55019 55020 # --enable-zip-debug-info is deprecated. 55021 # Please use --with-native-debug-symbols=zipped . 55022 55023 # Check whether --enable-zip-debug-info was given. 55024 if test "${enable_zip_debug_info+set}" = set; then : 55025 enableval=$enable_zip_debug_info; 55026 fi 55027 55028 if test "x$enable_zip_debug_info" != x; then 55029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 55030 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 55031 55032 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 55033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 55034 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 55035 fi 55036 55037 fi 55038 55039 55040 55041 55042 55043 55044 55045 # Check whether --enable-native-coverage was given. 55046 if test "${enable_native_coverage+set}" = set; then : 55047 enableval=$enable_native_coverage; 55048 fi 55049 55050 GCOV_ENABLED="false" 55051 if test "x$enable_native_coverage" = "xyes"; then 55052 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 55053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 55054 $as_echo_n "checking if native coverage is enabled... " >&6; } 55055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55056 $as_echo "yes" >&6; } 55057 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 55058 GCOV_LDFLAGS="-fprofile-arcs" 55059 JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" 55060 JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" 55061 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 55062 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 55063 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 55064 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 55065 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 55066 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 55067 GCOV_ENABLED="true" 55068 else 55069 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 55070 fi 55071 elif test "x$enable_native_coverage" = "xno"; then 55072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 55073 $as_echo_n "checking if native coverage is enabled... " >&6; } 55074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55075 $as_echo "no" >&6; } 55076 elif test "x$enable_native_coverage" != "x"; then 55077 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 55078 fi 55079 55080 55081 55082 55083 # AddressSanitizer 55084 55085 # Check whether --enable-asan was given. 55086 if test "${enable_asan+set}" = set; then : 55087 enableval=$enable_asan; 55088 fi 55089 55090 ASAN_ENABLED="no" 55091 if test "x$enable_asan" = "xyes"; then 55092 case $TOOLCHAIN_TYPE in 55093 gcc | clang) 55094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asan is enabled" >&5 55095 $as_echo_n "checking if asan is enabled... " >&6; } 55096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55097 $as_echo "yes" >&6; } 55098 ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" 55099 ASAN_LDFLAGS="-fsanitize=address" 55100 JVM_CFLAGS="$JVM_CFLAGS $ASAN_CFLAGS" 55101 JVM_LDFLAGS="$JVM_LDFLAGS $ASAN_LDFLAGS" 55102 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $ASAN_CFLAGS" 55103 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $ASAN_CFLAGS" 55104 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $ASAN_CFLAGS" 55105 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $ASAN_CFLAGS" 55106 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $ASAN_LDFLAGS" 55107 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $ASAN_LDFLAGS" 55108 ASAN_ENABLED="yes" 55109 ;; 55110 *) 55111 as_fn_error $? "--enable-asan only works with toolchain type gcc or clang" "$LINENO" 5 55112 ;; 55113 esac 55114 elif test "x$enable_asan" = "xno"; then 55115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asan is enabled" >&5 55116 $as_echo_n "checking if asan is enabled... " >&6; } 55117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55118 $as_echo "no" >&6; } 55119 elif test "x$enable_asan" != "x"; then 55120 as_fn_error $? "--enable-asan can only be assigned \"yes\" or \"no\"" "$LINENO" 5 55121 fi 55122 55123 55124 55125 55126 # Need toolchain to setup dtrace 55127 55128 # Test for dtrace dependencies 55129 # Check whether --enable-dtrace was given. 55130 if test "${enable_dtrace+set}" = set; then : 55131 enableval=$enable_dtrace; 55132 fi 55133 55134 55135 DTRACE_DEP_MISSING=false 55136 55137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 55138 $as_echo_n "checking for dtrace tool... " >&6; } 55139 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 55140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 55141 $as_echo "$DTRACE" >&6; } 55142 else 55143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 55144 $as_echo "not found, cannot build dtrace" >&6; } 55145 DTRACE_DEP_MISSING=true 55146 fi 55147 55148 for ac_header in sys/sdt.h 55149 do : 55150 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 55151 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 55152 cat >>confdefs.h <<_ACEOF 55153 #define HAVE_SYS_SDT_H 1 55154 _ACEOF 55155 DTRACE_HEADERS_OK=yes 55156 else 55157 DTRACE_HEADERS_OK=no 55158 fi 55159 55160 done 55161 55162 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 55163 DTRACE_DEP_MISSING=true 55164 fi 55165 55166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 55167 $as_echo_n "checking if dtrace should be built... " >&6; } 55168 if test "x$enable_dtrace" = "xyes"; then 55169 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 55170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 55171 $as_echo "no, missing dependencies" >&6; } 55172 55173 # Print a helpful message on how to acquire the necessary build dependency. 55174 # dtrace is the help tag: freetype, cups, alsa etc 55175 MISSING_DEPENDENCY=dtrace 55176 55177 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55178 cygwin_help $MISSING_DEPENDENCY 55179 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55180 msys_help $MISSING_DEPENDENCY 55181 else 55182 PKGHANDLER_COMMAND= 55183 55184 case $PKGHANDLER in 55185 apt-get) 55186 apt_help $MISSING_DEPENDENCY ;; 55187 yum) 55188 yum_help $MISSING_DEPENDENCY ;; 55189 brew) 55190 brew_help $MISSING_DEPENDENCY ;; 55191 port) 55192 port_help $MISSING_DEPENDENCY ;; 55193 pkgutil) 55194 pkgutil_help $MISSING_DEPENDENCY ;; 55195 pkgadd) 55196 pkgadd_help $MISSING_DEPENDENCY ;; 55197 esac 55198 55199 if test "x$PKGHANDLER_COMMAND" != x; then 55200 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 55201 fi 55202 fi 55203 55204 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 55205 else 55206 INCLUDE_DTRACE=true 55207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 55208 $as_echo "yes, forced" >&6; } 55209 fi 55210 elif test "x$enable_dtrace" = "xno"; then 55211 INCLUDE_DTRACE=false 55212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55213 $as_echo "no, forced" >&6; } 55214 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 55215 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 55216 INCLUDE_DTRACE=false 55217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 55218 $as_echo "no, missing dependencies" >&6; } 55219 else 55220 INCLUDE_DTRACE=true 55221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 55222 $as_echo "yes, dependencies present" >&6; } 55223 fi 55224 else 55225 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 55226 fi 55227 55228 55229 # Check whether --enable-aot was given. 55230 if test "${enable_aot+set}" = set; then : 55231 enableval=$enable_aot; 55232 fi 55233 55234 55235 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then 55236 ENABLE_AOT="true" 55237 elif test "x$enable_aot" = "xyes"; then 55238 ENABLE_AOT="true" 55239 elif test "x$enable_aot" = "xno"; then 55240 ENABLE_AOT="false" 55241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 55242 $as_echo_n "checking if aot should be enabled... " >&6; } 55243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55244 $as_echo "no, forced" >&6; } 55245 else 55246 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5 55247 fi 55248 55249 if test "x$ENABLE_AOT" = "xtrue"; then 55250 # Only enable AOT on X64 platforms. 55251 if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 55252 if test -e "${TOPDIR}/src/jdk.aot"; then 55253 if test -e "${TOPDIR}/src/jdk.internal.vm.compiler"; then 55254 ENABLE_AOT="true" 55255 else 55256 ENABLE_AOT="false" 55257 if test "x$enable_aot" = "xyes"; then 55258 as_fn_error $? "Cannot build AOT without src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5 55259 fi 55260 fi 55261 else 55262 ENABLE_AOT="false" 55263 if test "x$enable_aot" = "xyes"; then 55264 as_fn_error $? "Cannot build AOT without src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5 55265 fi 55266 fi 55267 else 55268 ENABLE_AOT="false" 55269 if test "x$enable_aot" = "xyes"; then 55270 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5 55271 fi 55272 fi 55273 fi 55274 55275 55276 55277 55278 # Check whether --enable-cds was given. 55279 if test "${enable_cds+set}" = set; then : 55280 enableval=$enable_cds; 55281 fi 55282 55283 55284 if test "x$enable_cds" = "x" || test "x$enable_cds" = "xyes"; then 55285 ENABLE_CDS="true" 55286 elif test "x$enable_cds" = "xno"; then 55287 ENABLE_CDS="false" 55288 else 55289 as_fn_error $? "Invalid value for --enable-cds: $enable_cds" "$LINENO" 5 55290 fi 55291 55292 55293 55294 55295 # Check whether --enable-hotspot-gtest was given. 55296 if test "${enable_hotspot_gtest+set}" = set; then : 55297 enableval=$enable_hotspot_gtest; 55298 fi 55299 55300 55301 if test -e "${TOPDIR}/test/hotspot/gtest"; then 55302 GTEST_DIR_EXISTS="true" 55303 else 55304 GTEST_DIR_EXISTS="false" 55305 fi 55306 55307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 55308 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 55309 if test "x$enable_hotspot_gtest" = "xyes"; then 55310 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 55311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 55312 $as_echo "yes, forced" >&6; } 55313 BUILD_GTEST="true" 55314 else 55315 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 55316 fi 55317 elif test "x$enable_hotspot_gtest" = "xno"; then 55318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55319 $as_echo "no, forced" >&6; } 55320 BUILD_GTEST="false" 55321 elif test "x$enable_hotspot_gtest" = "x"; then 55322 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 55323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55324 $as_echo "yes" >&6; } 55325 BUILD_GTEST="true" 55326 else 55327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55328 $as_echo "no" >&6; } 55329 BUILD_GTEST="false" 55330 fi 55331 else 55332 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 55333 fi 55334 55335 55336 55337 55338 ############################################################################### 55339 # 55340 # Check dependencies for external and internal libraries. 55341 # 55342 ############################################################################### 55343 55344 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 55345 55346 # When using cygwin or msys, we need a wrapper binary that renames 55347 # /cygdrive/c/ arguments into c:/ arguments and peeks into 55348 # @files and rewrites these too! This wrapper binary is 55349 # called fixpath. 55350 FIXPATH= 55351 if test "x$OPENJDK_BUILD_OS" = xwindows; then 55352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 55353 $as_echo_n "checking if fixpath can be created... " >&6; } 55354 FIXPATH_SRC="$TOPDIR/make/src/native/fixpath.c" 55355 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 55356 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 55357 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 55358 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 55359 FIXPATH="$FIXPATH_BIN -c" 55360 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 55361 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 55362 # @ was chosen as separator to minimize risk of other tools messing around with it 55363 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 55364 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 55365 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 55366 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 55367 fi 55368 FIXPATH_SRC_W="$FIXPATH_SRC" 55369 FIXPATH_BIN_W="$FIXPATH_BIN" 55370 55371 unix_path="$FIXPATH_SRC_W" 55372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55373 windows_path=`$CYGPATH -m "$unix_path"` 55374 FIXPATH_SRC_W="$windows_path" 55375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55376 windows_path=`cmd //c echo $unix_path` 55377 FIXPATH_SRC_W="$windows_path" 55378 fi 55379 55380 55381 unix_path="$FIXPATH_BIN_W" 55382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55383 windows_path=`$CYGPATH -m "$unix_path"` 55384 FIXPATH_BIN_W="$windows_path" 55385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55386 windows_path=`cmd //c echo $unix_path` 55387 FIXPATH_BIN_W="$windows_path" 55388 fi 55389 55390 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 55391 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 55392 cd $FIXPATH_DIR 55393 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 55394 cd $CURDIR 55395 55396 if test ! -x $FIXPATH_BIN; then 55397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55398 $as_echo "no" >&6; } 55399 cat $FIXPATH_DIR/fixpath1.log 55400 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 55401 fi 55402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55403 $as_echo "yes" >&6; } 55404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 55405 $as_echo_n "checking if fixpath.exe works... " >&6; } 55406 cd $FIXPATH_DIR 55407 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 55408 > $FIXPATH_DIR/fixpath2.log 2>&1 55409 cd $CURDIR 55410 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 55411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55412 $as_echo "no" >&6; } 55413 cat $FIXPATH_DIR/fixpath2.log 55414 as_fn_error $? "fixpath did not work!" "$LINENO" 5 55415 fi 55416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55417 $as_echo "yes" >&6; } 55418 55419 FIXPATH_DETACH_FLAG="--detach" 55420 fi 55421 55422 55423 55424 55425 55426 55427 # Check if X11 is needed 55428 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 55429 # No X11 support on windows or macosx 55430 NEEDS_LIB_X11=false 55431 else 55432 # All other instances need X11, even if building headless only, libawt still 55433 # needs X11 headers. 55434 NEEDS_LIB_X11=true 55435 fi 55436 55437 # Check if fontconfig is needed 55438 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 55439 # No fontconfig support on windows or macosx 55440 NEEDS_LIB_FONTCONFIG=false 55441 else 55442 # All other instances need fontconfig, even if building headless only, 55443 # libawt still needs fontconfig headers. 55444 NEEDS_LIB_FONTCONFIG=true 55445 fi 55446 55447 # Check if cups is needed 55448 if test "x$OPENJDK_TARGET_OS" = xwindows; then 55449 # Windows have a separate print system 55450 NEEDS_LIB_CUPS=false 55451 else 55452 NEEDS_LIB_CUPS=true 55453 fi 55454 55455 # A custom hook may have set this already 55456 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 55457 NEEDS_LIB_FREETYPE=true 55458 fi 55459 55460 # Check if alsa is needed 55461 if test "x$OPENJDK_TARGET_OS" = xlinux; then 55462 NEEDS_LIB_ALSA=true 55463 else 55464 NEEDS_LIB_ALSA=false 55465 fi 55466 55467 # Check if ffi is needed 55468 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 55469 NEEDS_LIB_FFI=true 55470 else 55471 NEEDS_LIB_FFI=false 55472 fi 55473 55474 55475 # statically link libstdc++ before C++ ABI is stablized on Linux unless 55476 # dynamic build is configured on command line. 55477 55478 # Check whether --with-stdc++lib was given. 55479 if test "${with_stdc__lib+set}" = set; then : 55480 withval=$with_stdc__lib; 55481 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 55482 && test "x$with_stdc__lib" != xdefault; then 55483 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 55484 fi 55485 55486 else 55487 with_stdc__lib=default 55488 55489 fi 55490 55491 55492 if test "x$OPENJDK_TARGET_OS" = xlinux; then 55493 # Test if stdc++ can be linked statically. 55494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 55495 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 55496 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 55497 ac_ext=cpp 55498 ac_cpp='$CXXCPP $CPPFLAGS' 55499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 55500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 55501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 55502 55503 OLD_LIBS="$LIBS" 55504 LIBS="$STATIC_STDCXX_FLAGS" 55505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55506 /* end confdefs.h. */ 55507 55508 int 55509 main () 55510 { 55511 return 0; 55512 ; 55513 return 0; 55514 } 55515 _ACEOF 55516 if ac_fn_cxx_try_link "$LINENO"; then : 55517 has_static_libstdcxx=yes 55518 else 55519 has_static_libstdcxx=no 55520 fi 55521 rm -f core conftest.err conftest.$ac_objext \ 55522 conftest$ac_exeext conftest.$ac_ext 55523 LIBS="$OLD_LIBS" 55524 ac_ext=cpp 55525 ac_cpp='$CXXCPP $CPPFLAGS' 55526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 55527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 55528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 55529 55530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 55531 $as_echo "$has_static_libstdcxx" >&6; } 55532 55533 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 55534 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 55535 fi 55536 55537 # If dynamic was requested, it's available since it would fail above otherwise. 55538 # If dynamic wasn't requested, go with static unless it isn't available. 55539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 55540 $as_echo_n "checking how to link with libstdc++... " >&6; } 55541 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno ; then 55542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 55543 $as_echo "dynamic" >&6; } 55544 else 55545 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 55546 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 55547 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 55548 # just use the same setting as for the TARGET toolchain. 55549 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 55550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 55551 $as_echo "static" >&6; } 55552 fi 55553 fi 55554 55555 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 55556 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 55557 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 55558 fi 55559 55560 55561 55562 # Setup Windows runtime dlls 55563 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 55564 55565 55566 # Check whether --with-msvcr-dll was given. 55567 if test "${with_msvcr_dll+set}" = set; then : 55568 withval=$with_msvcr_dll; 55569 fi 55570 55571 55572 if test "x$with_msvcr_dll" != x; then 55573 # If given explicitly by user, do not probe. If not present, fail directly. 55574 55575 DLL_NAME="$MSVCR_NAME" 55576 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 55577 METHOD="--with-msvcr-dll" 55578 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55579 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55580 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55581 55582 # Need to check if the found msvcr is correct architecture 55583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55584 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55585 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55586 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55587 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55588 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55589 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55590 CORRECT_MSVCR_ARCH="PE32 executable" 55591 else 55592 CORRECT_MSVCR_ARCH="PE32+ executable" 55593 fi 55594 else 55595 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55596 CORRECT_MSVCR_ARCH=386 55597 else 55598 CORRECT_MSVCR_ARCH=x86-64 55599 fi 55600 fi 55601 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55603 $as_echo "ok" >&6; } 55604 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55605 55606 # Only process if variable expands to non-empty 55607 55608 if test "x$MSVC_DLL" != x; then 55609 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55610 55611 # Input might be given as Windows format, start by converting to 55612 # unix format. 55613 path="$MSVC_DLL" 55614 new_path=`$CYGPATH -u "$path"` 55615 55616 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55617 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55618 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55619 # "foo.exe" is OK but "foo" is an error. 55620 # 55621 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55622 # It is also a way to make sure we got the proper file name for the real test later on. 55623 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55624 if test "x$test_shortpath" = x; then 55625 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55626 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55627 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55628 fi 55629 55630 # Call helper function which possibly converts this using DOS-style short mode. 55631 # If so, the updated path is stored in $new_path. 55632 55633 input_path="$new_path" 55634 # Check if we need to convert this using DOS-style short mode. If the path 55635 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55636 # take no chances and rewrite it. 55637 # Note: m4 eats our [], so we need to use [ and ] instead. 55638 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55639 if test "x$has_forbidden_chars" != x; then 55640 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55641 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55642 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55643 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55644 # Going to short mode and back again did indeed matter. Since short mode is 55645 # case insensitive, let's make it lowercase to improve readability. 55646 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55647 # Now convert it back to Unix-style (cygpath) 55648 input_path=`$CYGPATH -u "$shortmode_path"` 55649 new_path="$input_path" 55650 fi 55651 fi 55652 55653 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55654 if test "x$test_cygdrive_prefix" = x; then 55655 # As a simple fix, exclude /usr/bin since it's not a real path. 55656 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55657 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55658 # a path prefixed by /cygdrive for fixpath to work. 55659 new_path="$CYGWIN_ROOT_PATH$input_path" 55660 fi 55661 fi 55662 55663 55664 if test "x$path" != "x$new_path"; then 55665 MSVC_DLL="$new_path" 55666 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55667 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55668 fi 55669 55670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55671 55672 path="$MSVC_DLL" 55673 has_colon=`$ECHO $path | $GREP ^.:` 55674 new_path="$path" 55675 if test "x$has_colon" = x; then 55676 # Not in mixed or Windows style, start by that. 55677 new_path=`cmd //c echo $path` 55678 fi 55679 55680 55681 input_path="$new_path" 55682 # Check if we need to convert this using DOS-style short mode. If the path 55683 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55684 # take no chances and rewrite it. 55685 # Note: m4 eats our [], so we need to use [ and ] instead. 55686 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55687 if test "x$has_forbidden_chars" != x; then 55688 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55689 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55690 fi 55691 55692 55693 windows_path="$new_path" 55694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55695 unix_path=`$CYGPATH -u "$windows_path"` 55696 new_path="$unix_path" 55697 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55698 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55699 new_path="$unix_path" 55700 fi 55701 55702 if test "x$path" != "x$new_path"; then 55703 MSVC_DLL="$new_path" 55704 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55705 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55706 fi 55707 55708 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55709 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55710 55711 else 55712 # We're on a unix platform. Hooray! :) 55713 path="$MSVC_DLL" 55714 has_space=`$ECHO "$path" | $GREP " "` 55715 if test "x$has_space" != x; then 55716 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55717 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55718 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55719 fi 55720 55721 # Use eval to expand a potential ~ 55722 eval path="$path" 55723 if test ! -f "$path" && test ! -d "$path"; then 55724 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55725 fi 55726 55727 if test -d "$path"; then 55728 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55729 else 55730 dir="`$DIRNAME "$path"`" 55731 base="`$BASENAME "$path"`" 55732 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55733 fi 55734 fi 55735 fi 55736 55737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55738 $as_echo_n "checking for $DLL_NAME... " >&6; } 55739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55740 $as_echo "$MSVC_DLL" >&6; } 55741 else 55742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55743 $as_echo "incorrect, ignoring" >&6; } 55744 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55745 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55746 fi 55747 fi 55748 55749 if test "x$MSVC_DLL" = x; then 55750 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 55751 fi 55752 MSVCR_DLL="$MSVC_DLL" 55753 elif test "x$DEVKIT_MSVCR_DLL" != x; then 55754 55755 DLL_NAME="$MSVCR_NAME" 55756 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 55757 METHOD="devkit" 55758 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55759 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55760 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55761 55762 # Need to check if the found msvcr is correct architecture 55763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55764 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55765 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55767 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55768 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55769 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55770 CORRECT_MSVCR_ARCH="PE32 executable" 55771 else 55772 CORRECT_MSVCR_ARCH="PE32+ executable" 55773 fi 55774 else 55775 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55776 CORRECT_MSVCR_ARCH=386 55777 else 55778 CORRECT_MSVCR_ARCH=x86-64 55779 fi 55780 fi 55781 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55783 $as_echo "ok" >&6; } 55784 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55785 55786 # Only process if variable expands to non-empty 55787 55788 if test "x$MSVC_DLL" != x; then 55789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55790 55791 # Input might be given as Windows format, start by converting to 55792 # unix format. 55793 path="$MSVC_DLL" 55794 new_path=`$CYGPATH -u "$path"` 55795 55796 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55797 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55798 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55799 # "foo.exe" is OK but "foo" is an error. 55800 # 55801 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55802 # It is also a way to make sure we got the proper file name for the real test later on. 55803 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55804 if test "x$test_shortpath" = x; then 55805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55806 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55807 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55808 fi 55809 55810 # Call helper function which possibly converts this using DOS-style short mode. 55811 # If so, the updated path is stored in $new_path. 55812 55813 input_path="$new_path" 55814 # Check if we need to convert this using DOS-style short mode. If the path 55815 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55816 # take no chances and rewrite it. 55817 # Note: m4 eats our [], so we need to use [ and ] instead. 55818 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55819 if test "x$has_forbidden_chars" != x; then 55820 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55821 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55822 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55823 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55824 # Going to short mode and back again did indeed matter. Since short mode is 55825 # case insensitive, let's make it lowercase to improve readability. 55826 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55827 # Now convert it back to Unix-style (cygpath) 55828 input_path=`$CYGPATH -u "$shortmode_path"` 55829 new_path="$input_path" 55830 fi 55831 fi 55832 55833 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55834 if test "x$test_cygdrive_prefix" = x; then 55835 # As a simple fix, exclude /usr/bin since it's not a real path. 55836 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55837 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55838 # a path prefixed by /cygdrive for fixpath to work. 55839 new_path="$CYGWIN_ROOT_PATH$input_path" 55840 fi 55841 fi 55842 55843 55844 if test "x$path" != "x$new_path"; then 55845 MSVC_DLL="$new_path" 55846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55847 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55848 fi 55849 55850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55851 55852 path="$MSVC_DLL" 55853 has_colon=`$ECHO $path | $GREP ^.:` 55854 new_path="$path" 55855 if test "x$has_colon" = x; then 55856 # Not in mixed or Windows style, start by that. 55857 new_path=`cmd //c echo $path` 55858 fi 55859 55860 55861 input_path="$new_path" 55862 # Check if we need to convert this using DOS-style short mode. If the path 55863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55864 # take no chances and rewrite it. 55865 # Note: m4 eats our [], so we need to use [ and ] instead. 55866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55867 if test "x$has_forbidden_chars" != x; then 55868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55869 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55870 fi 55871 55872 55873 windows_path="$new_path" 55874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55875 unix_path=`$CYGPATH -u "$windows_path"` 55876 new_path="$unix_path" 55877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55879 new_path="$unix_path" 55880 fi 55881 55882 if test "x$path" != "x$new_path"; then 55883 MSVC_DLL="$new_path" 55884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55885 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55886 fi 55887 55888 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55889 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55890 55891 else 55892 # We're on a unix platform. Hooray! :) 55893 path="$MSVC_DLL" 55894 has_space=`$ECHO "$path" | $GREP " "` 55895 if test "x$has_space" != x; then 55896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55897 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55898 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55899 fi 55900 55901 # Use eval to expand a potential ~ 55902 eval path="$path" 55903 if test ! -f "$path" && test ! -d "$path"; then 55904 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55905 fi 55906 55907 if test -d "$path"; then 55908 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55909 else 55910 dir="`$DIRNAME "$path"`" 55911 base="`$BASENAME "$path"`" 55912 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55913 fi 55914 fi 55915 fi 55916 55917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55918 $as_echo_n "checking for $DLL_NAME... " >&6; } 55919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55920 $as_echo "$MSVC_DLL" >&6; } 55921 else 55922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55923 $as_echo "incorrect, ignoring" >&6; } 55924 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55925 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55926 fi 55927 fi 55928 55929 if test "x$MSVC_DLL" = x; then 55930 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 55931 fi 55932 MSVCR_DLL="$MSVC_DLL" 55933 else 55934 55935 DLL_NAME="${MSVCR_NAME}" 55936 MSVC_DLL= 55937 55938 if test "x$MSVC_DLL" = x; then 55939 # Probe: Using well-known location from Visual Studio 10.0 55940 if test "x$VCINSTALLDIR" != x; then 55941 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 55942 55943 windows_path="$CYGWIN_VC_INSTALL_DIR" 55944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55945 unix_path=`$CYGPATH -u "$windows_path"` 55946 CYGWIN_VC_INSTALL_DIR="$unix_path" 55947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55948 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55949 CYGWIN_VC_INSTALL_DIR="$unix_path" 55950 fi 55951 55952 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55953 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55954 else 55955 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55956 fi 55957 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 55958 55959 DLL_NAME="$DLL_NAME" 55960 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55961 METHOD="well-known location in VCINSTALLDIR" 55962 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55963 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55964 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55965 55966 # Need to check if the found msvcr is correct architecture 55967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55968 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55969 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55971 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55972 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55973 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55974 CORRECT_MSVCR_ARCH="PE32 executable" 55975 else 55976 CORRECT_MSVCR_ARCH="PE32+ executable" 55977 fi 55978 else 55979 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55980 CORRECT_MSVCR_ARCH=386 55981 else 55982 CORRECT_MSVCR_ARCH=x86-64 55983 fi 55984 fi 55985 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55987 $as_echo "ok" >&6; } 55988 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55989 55990 # Only process if variable expands to non-empty 55991 55992 if test "x$MSVC_DLL" != x; then 55993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55994 55995 # Input might be given as Windows format, start by converting to 55996 # unix format. 55997 path="$MSVC_DLL" 55998 new_path=`$CYGPATH -u "$path"` 55999 56000 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56001 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56002 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56003 # "foo.exe" is OK but "foo" is an error. 56004 # 56005 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56006 # It is also a way to make sure we got the proper file name for the real test later on. 56007 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56008 if test "x$test_shortpath" = x; then 56009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56010 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56011 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56012 fi 56013 56014 # Call helper function which possibly converts this using DOS-style short mode. 56015 # If so, the updated path is stored in $new_path. 56016 56017 input_path="$new_path" 56018 # Check if we need to convert this using DOS-style short mode. If the path 56019 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56020 # take no chances and rewrite it. 56021 # Note: m4 eats our [], so we need to use [ and ] instead. 56022 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56023 if test "x$has_forbidden_chars" != x; then 56024 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56025 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56026 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56027 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56028 # Going to short mode and back again did indeed matter. Since short mode is 56029 # case insensitive, let's make it lowercase to improve readability. 56030 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56031 # Now convert it back to Unix-style (cygpath) 56032 input_path=`$CYGPATH -u "$shortmode_path"` 56033 new_path="$input_path" 56034 fi 56035 fi 56036 56037 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56038 if test "x$test_cygdrive_prefix" = x; then 56039 # As a simple fix, exclude /usr/bin since it's not a real path. 56040 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56041 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56042 # a path prefixed by /cygdrive for fixpath to work. 56043 new_path="$CYGWIN_ROOT_PATH$input_path" 56044 fi 56045 fi 56046 56047 56048 if test "x$path" != "x$new_path"; then 56049 MSVC_DLL="$new_path" 56050 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56051 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56052 fi 56053 56054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56055 56056 path="$MSVC_DLL" 56057 has_colon=`$ECHO $path | $GREP ^.:` 56058 new_path="$path" 56059 if test "x$has_colon" = x; then 56060 # Not in mixed or Windows style, start by that. 56061 new_path=`cmd //c echo $path` 56062 fi 56063 56064 56065 input_path="$new_path" 56066 # Check if we need to convert this using DOS-style short mode. If the path 56067 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56068 # take no chances and rewrite it. 56069 # Note: m4 eats our [], so we need to use [ and ] instead. 56070 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56071 if test "x$has_forbidden_chars" != x; then 56072 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56073 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56074 fi 56075 56076 56077 windows_path="$new_path" 56078 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56079 unix_path=`$CYGPATH -u "$windows_path"` 56080 new_path="$unix_path" 56081 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56082 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56083 new_path="$unix_path" 56084 fi 56085 56086 if test "x$path" != "x$new_path"; then 56087 MSVC_DLL="$new_path" 56088 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56089 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56090 fi 56091 56092 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56093 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56094 56095 else 56096 # We're on a unix platform. Hooray! :) 56097 path="$MSVC_DLL" 56098 has_space=`$ECHO "$path" | $GREP " "` 56099 if test "x$has_space" != x; then 56100 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56101 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56102 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56103 fi 56104 56105 # Use eval to expand a potential ~ 56106 eval path="$path" 56107 if test ! -f "$path" && test ! -d "$path"; then 56108 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56109 fi 56110 56111 if test -d "$path"; then 56112 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56113 else 56114 dir="`$DIRNAME "$path"`" 56115 base="`$BASENAME "$path"`" 56116 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56117 fi 56118 fi 56119 fi 56120 56121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56122 $as_echo_n "checking for $DLL_NAME... " >&6; } 56123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56124 $as_echo "$MSVC_DLL" >&6; } 56125 else 56126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56127 $as_echo "incorrect, ignoring" >&6; } 56128 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56129 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56130 fi 56131 fi 56132 56133 fi 56134 fi 56135 56136 if test "x$MSVC_DLL" = x; then 56137 # Probe: Check in the Boot JDK directory. 56138 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 56139 56140 DLL_NAME="$DLL_NAME" 56141 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56142 METHOD="well-known location in Boot JDK" 56143 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56144 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56145 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56146 56147 # Need to check if the found msvcr is correct architecture 56148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56149 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56150 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56152 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56153 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56154 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56155 CORRECT_MSVCR_ARCH="PE32 executable" 56156 else 56157 CORRECT_MSVCR_ARCH="PE32+ executable" 56158 fi 56159 else 56160 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56161 CORRECT_MSVCR_ARCH=386 56162 else 56163 CORRECT_MSVCR_ARCH=x86-64 56164 fi 56165 fi 56166 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56168 $as_echo "ok" >&6; } 56169 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56170 56171 # Only process if variable expands to non-empty 56172 56173 if test "x$MSVC_DLL" != x; then 56174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56175 56176 # Input might be given as Windows format, start by converting to 56177 # unix format. 56178 path="$MSVC_DLL" 56179 new_path=`$CYGPATH -u "$path"` 56180 56181 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56182 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56183 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56184 # "foo.exe" is OK but "foo" is an error. 56185 # 56186 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56187 # It is also a way to make sure we got the proper file name for the real test later on. 56188 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56189 if test "x$test_shortpath" = x; then 56190 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56191 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56192 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56193 fi 56194 56195 # Call helper function which possibly converts this using DOS-style short mode. 56196 # If so, the updated path is stored in $new_path. 56197 56198 input_path="$new_path" 56199 # Check if we need to convert this using DOS-style short mode. If the path 56200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56201 # take no chances and rewrite it. 56202 # Note: m4 eats our [], so we need to use [ and ] instead. 56203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56204 if test "x$has_forbidden_chars" != x; then 56205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56206 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56207 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56208 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56209 # Going to short mode and back again did indeed matter. Since short mode is 56210 # case insensitive, let's make it lowercase to improve readability. 56211 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56212 # Now convert it back to Unix-style (cygpath) 56213 input_path=`$CYGPATH -u "$shortmode_path"` 56214 new_path="$input_path" 56215 fi 56216 fi 56217 56218 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56219 if test "x$test_cygdrive_prefix" = x; then 56220 # As a simple fix, exclude /usr/bin since it's not a real path. 56221 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56222 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56223 # a path prefixed by /cygdrive for fixpath to work. 56224 new_path="$CYGWIN_ROOT_PATH$input_path" 56225 fi 56226 fi 56227 56228 56229 if test "x$path" != "x$new_path"; then 56230 MSVC_DLL="$new_path" 56231 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56232 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56233 fi 56234 56235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56236 56237 path="$MSVC_DLL" 56238 has_colon=`$ECHO $path | $GREP ^.:` 56239 new_path="$path" 56240 if test "x$has_colon" = x; then 56241 # Not in mixed or Windows style, start by that. 56242 new_path=`cmd //c echo $path` 56243 fi 56244 56245 56246 input_path="$new_path" 56247 # Check if we need to convert this using DOS-style short mode. If the path 56248 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56249 # take no chances and rewrite it. 56250 # Note: m4 eats our [], so we need to use [ and ] instead. 56251 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56252 if test "x$has_forbidden_chars" != x; then 56253 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56254 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56255 fi 56256 56257 56258 windows_path="$new_path" 56259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56260 unix_path=`$CYGPATH -u "$windows_path"` 56261 new_path="$unix_path" 56262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56264 new_path="$unix_path" 56265 fi 56266 56267 if test "x$path" != "x$new_path"; then 56268 MSVC_DLL="$new_path" 56269 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56270 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56271 fi 56272 56273 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56274 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56275 56276 else 56277 # We're on a unix platform. Hooray! :) 56278 path="$MSVC_DLL" 56279 has_space=`$ECHO "$path" | $GREP " "` 56280 if test "x$has_space" != x; then 56281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56282 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56283 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56284 fi 56285 56286 # Use eval to expand a potential ~ 56287 eval path="$path" 56288 if test ! -f "$path" && test ! -d "$path"; then 56289 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56290 fi 56291 56292 if test -d "$path"; then 56293 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56294 else 56295 dir="`$DIRNAME "$path"`" 56296 base="`$BASENAME "$path"`" 56297 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56298 fi 56299 fi 56300 fi 56301 56302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56303 $as_echo_n "checking for $DLL_NAME... " >&6; } 56304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56305 $as_echo "$MSVC_DLL" >&6; } 56306 else 56307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56308 $as_echo "incorrect, ignoring" >&6; } 56309 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56310 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56311 fi 56312 fi 56313 56314 fi 56315 56316 if test "x$MSVC_DLL" = x; then 56317 # Probe: Look in the Windows system32 directory 56318 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 56319 56320 windows_path="$CYGWIN_SYSTEMROOT" 56321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56322 unix_path=`$CYGPATH -u "$windows_path"` 56323 CYGWIN_SYSTEMROOT="$unix_path" 56324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56325 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56326 CYGWIN_SYSTEMROOT="$unix_path" 56327 fi 56328 56329 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 56330 56331 DLL_NAME="$DLL_NAME" 56332 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56333 METHOD="well-known location in SYSTEMROOT" 56334 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56335 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56336 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56337 56338 # Need to check if the found msvcr is correct architecture 56339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56340 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56341 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56343 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56344 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56345 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56346 CORRECT_MSVCR_ARCH="PE32 executable" 56347 else 56348 CORRECT_MSVCR_ARCH="PE32+ executable" 56349 fi 56350 else 56351 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56352 CORRECT_MSVCR_ARCH=386 56353 else 56354 CORRECT_MSVCR_ARCH=x86-64 56355 fi 56356 fi 56357 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56359 $as_echo "ok" >&6; } 56360 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56361 56362 # Only process if variable expands to non-empty 56363 56364 if test "x$MSVC_DLL" != x; then 56365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56366 56367 # Input might be given as Windows format, start by converting to 56368 # unix format. 56369 path="$MSVC_DLL" 56370 new_path=`$CYGPATH -u "$path"` 56371 56372 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56373 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56374 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56375 # "foo.exe" is OK but "foo" is an error. 56376 # 56377 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56378 # It is also a way to make sure we got the proper file name for the real test later on. 56379 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56380 if test "x$test_shortpath" = x; then 56381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56382 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56383 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56384 fi 56385 56386 # Call helper function which possibly converts this using DOS-style short mode. 56387 # If so, the updated path is stored in $new_path. 56388 56389 input_path="$new_path" 56390 # Check if we need to convert this using DOS-style short mode. If the path 56391 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56392 # take no chances and rewrite it. 56393 # Note: m4 eats our [], so we need to use [ and ] instead. 56394 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56395 if test "x$has_forbidden_chars" != x; then 56396 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56397 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56398 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56399 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56400 # Going to short mode and back again did indeed matter. Since short mode is 56401 # case insensitive, let's make it lowercase to improve readability. 56402 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56403 # Now convert it back to Unix-style (cygpath) 56404 input_path=`$CYGPATH -u "$shortmode_path"` 56405 new_path="$input_path" 56406 fi 56407 fi 56408 56409 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56410 if test "x$test_cygdrive_prefix" = x; then 56411 # As a simple fix, exclude /usr/bin since it's not a real path. 56412 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56413 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56414 # a path prefixed by /cygdrive for fixpath to work. 56415 new_path="$CYGWIN_ROOT_PATH$input_path" 56416 fi 56417 fi 56418 56419 56420 if test "x$path" != "x$new_path"; then 56421 MSVC_DLL="$new_path" 56422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56423 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56424 fi 56425 56426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56427 56428 path="$MSVC_DLL" 56429 has_colon=`$ECHO $path | $GREP ^.:` 56430 new_path="$path" 56431 if test "x$has_colon" = x; then 56432 # Not in mixed or Windows style, start by that. 56433 new_path=`cmd //c echo $path` 56434 fi 56435 56436 56437 input_path="$new_path" 56438 # Check if we need to convert this using DOS-style short mode. If the path 56439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56440 # take no chances and rewrite it. 56441 # Note: m4 eats our [], so we need to use [ and ] instead. 56442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56443 if test "x$has_forbidden_chars" != x; then 56444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56445 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56446 fi 56447 56448 56449 windows_path="$new_path" 56450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56451 unix_path=`$CYGPATH -u "$windows_path"` 56452 new_path="$unix_path" 56453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56455 new_path="$unix_path" 56456 fi 56457 56458 if test "x$path" != "x$new_path"; then 56459 MSVC_DLL="$new_path" 56460 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56461 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56462 fi 56463 56464 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56465 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56466 56467 else 56468 # We're on a unix platform. Hooray! :) 56469 path="$MSVC_DLL" 56470 has_space=`$ECHO "$path" | $GREP " "` 56471 if test "x$has_space" != x; then 56472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56473 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56474 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56475 fi 56476 56477 # Use eval to expand a potential ~ 56478 eval path="$path" 56479 if test ! -f "$path" && test ! -d "$path"; then 56480 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56481 fi 56482 56483 if test -d "$path"; then 56484 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56485 else 56486 dir="`$DIRNAME "$path"`" 56487 base="`$BASENAME "$path"`" 56488 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56489 fi 56490 fi 56491 fi 56492 56493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56494 $as_echo_n "checking for $DLL_NAME... " >&6; } 56495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56496 $as_echo "$MSVC_DLL" >&6; } 56497 else 56498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56499 $as_echo "incorrect, ignoring" >&6; } 56500 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56501 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56502 fi 56503 fi 56504 56505 fi 56506 56507 if test "x$MSVC_DLL" = x; then 56508 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 56509 if test "x$VS100COMNTOOLS" != x; then 56510 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 56511 56512 windows_path="$CYGWIN_VS_TOOLS_DIR" 56513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56514 unix_path=`$CYGPATH -u "$windows_path"` 56515 CYGWIN_VS_TOOLS_DIR="$unix_path" 56516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56517 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56518 CYGWIN_VS_TOOLS_DIR="$unix_path" 56519 fi 56520 56521 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56522 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56523 | $GREP -i /x64/ | $HEAD --lines 1` 56524 else 56525 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56526 | $GREP -i /x86/ | $HEAD --lines 1` 56527 fi 56528 56529 DLL_NAME="$DLL_NAME" 56530 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56531 METHOD="search of VS100COMNTOOLS" 56532 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56533 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56534 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56535 56536 # Need to check if the found msvcr is correct architecture 56537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56538 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56539 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56541 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56542 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56543 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56544 CORRECT_MSVCR_ARCH="PE32 executable" 56545 else 56546 CORRECT_MSVCR_ARCH="PE32+ executable" 56547 fi 56548 else 56549 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56550 CORRECT_MSVCR_ARCH=386 56551 else 56552 CORRECT_MSVCR_ARCH=x86-64 56553 fi 56554 fi 56555 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56557 $as_echo "ok" >&6; } 56558 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56559 56560 # Only process if variable expands to non-empty 56561 56562 if test "x$MSVC_DLL" != x; then 56563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56564 56565 # Input might be given as Windows format, start by converting to 56566 # unix format. 56567 path="$MSVC_DLL" 56568 new_path=`$CYGPATH -u "$path"` 56569 56570 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56571 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56572 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56573 # "foo.exe" is OK but "foo" is an error. 56574 # 56575 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56576 # It is also a way to make sure we got the proper file name for the real test later on. 56577 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56578 if test "x$test_shortpath" = x; then 56579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56580 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56581 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56582 fi 56583 56584 # Call helper function which possibly converts this using DOS-style short mode. 56585 # If so, the updated path is stored in $new_path. 56586 56587 input_path="$new_path" 56588 # Check if we need to convert this using DOS-style short mode. If the path 56589 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56590 # take no chances and rewrite it. 56591 # Note: m4 eats our [], so we need to use [ and ] instead. 56592 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56593 if test "x$has_forbidden_chars" != x; then 56594 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56595 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56596 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56597 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56598 # Going to short mode and back again did indeed matter. Since short mode is 56599 # case insensitive, let's make it lowercase to improve readability. 56600 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56601 # Now convert it back to Unix-style (cygpath) 56602 input_path=`$CYGPATH -u "$shortmode_path"` 56603 new_path="$input_path" 56604 fi 56605 fi 56606 56607 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56608 if test "x$test_cygdrive_prefix" = x; then 56609 # As a simple fix, exclude /usr/bin since it's not a real path. 56610 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56611 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56612 # a path prefixed by /cygdrive for fixpath to work. 56613 new_path="$CYGWIN_ROOT_PATH$input_path" 56614 fi 56615 fi 56616 56617 56618 if test "x$path" != "x$new_path"; then 56619 MSVC_DLL="$new_path" 56620 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56621 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56622 fi 56623 56624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56625 56626 path="$MSVC_DLL" 56627 has_colon=`$ECHO $path | $GREP ^.:` 56628 new_path="$path" 56629 if test "x$has_colon" = x; then 56630 # Not in mixed or Windows style, start by that. 56631 new_path=`cmd //c echo $path` 56632 fi 56633 56634 56635 input_path="$new_path" 56636 # Check if we need to convert this using DOS-style short mode. If the path 56637 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56638 # take no chances and rewrite it. 56639 # Note: m4 eats our [], so we need to use [ and ] instead. 56640 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56641 if test "x$has_forbidden_chars" != x; then 56642 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56643 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56644 fi 56645 56646 56647 windows_path="$new_path" 56648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56649 unix_path=`$CYGPATH -u "$windows_path"` 56650 new_path="$unix_path" 56651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56652 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56653 new_path="$unix_path" 56654 fi 56655 56656 if test "x$path" != "x$new_path"; then 56657 MSVC_DLL="$new_path" 56658 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56659 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56660 fi 56661 56662 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56663 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56664 56665 else 56666 # We're on a unix platform. Hooray! :) 56667 path="$MSVC_DLL" 56668 has_space=`$ECHO "$path" | $GREP " "` 56669 if test "x$has_space" != x; then 56670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56671 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56672 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56673 fi 56674 56675 # Use eval to expand a potential ~ 56676 eval path="$path" 56677 if test ! -f "$path" && test ! -d "$path"; then 56678 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56679 fi 56680 56681 if test -d "$path"; then 56682 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56683 else 56684 dir="`$DIRNAME "$path"`" 56685 base="`$BASENAME "$path"`" 56686 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56687 fi 56688 fi 56689 fi 56690 56691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56692 $as_echo_n "checking for $DLL_NAME... " >&6; } 56693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56694 $as_echo "$MSVC_DLL" >&6; } 56695 else 56696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56697 $as_echo "incorrect, ignoring" >&6; } 56698 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56699 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56700 fi 56701 fi 56702 56703 fi 56704 fi 56705 56706 if test "x$MSVC_DLL" = x; then 56707 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 56708 # (This was the original behaviour; kept since it might turn something up) 56709 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 56710 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56711 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56712 | $GREP x64 | $HEAD --lines 1` 56713 else 56714 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56715 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 56716 if test "x$POSSIBLE_MSVC_DLL" = x; then 56717 # We're grasping at straws now... 56718 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56719 | $HEAD --lines 1` 56720 fi 56721 fi 56722 56723 56724 DLL_NAME="$DLL_NAME" 56725 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56726 METHOD="search of VCINSTALLDIR" 56727 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56728 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56729 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56730 56731 # Need to check if the found msvcr is correct architecture 56732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56733 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56734 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56736 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56737 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56738 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56739 CORRECT_MSVCR_ARCH="PE32 executable" 56740 else 56741 CORRECT_MSVCR_ARCH="PE32+ executable" 56742 fi 56743 else 56744 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56745 CORRECT_MSVCR_ARCH=386 56746 else 56747 CORRECT_MSVCR_ARCH=x86-64 56748 fi 56749 fi 56750 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56752 $as_echo "ok" >&6; } 56753 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56754 56755 # Only process if variable expands to non-empty 56756 56757 if test "x$MSVC_DLL" != x; then 56758 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56759 56760 # Input might be given as Windows format, start by converting to 56761 # unix format. 56762 path="$MSVC_DLL" 56763 new_path=`$CYGPATH -u "$path"` 56764 56765 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56766 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56767 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56768 # "foo.exe" is OK but "foo" is an error. 56769 # 56770 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56771 # It is also a way to make sure we got the proper file name for the real test later on. 56772 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56773 if test "x$test_shortpath" = x; then 56774 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56775 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56776 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56777 fi 56778 56779 # Call helper function which possibly converts this using DOS-style short mode. 56780 # If so, the updated path is stored in $new_path. 56781 56782 input_path="$new_path" 56783 # Check if we need to convert this using DOS-style short mode. If the path 56784 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56785 # take no chances and rewrite it. 56786 # Note: m4 eats our [], so we need to use [ and ] instead. 56787 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56788 if test "x$has_forbidden_chars" != x; then 56789 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56790 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56791 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56792 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56793 # Going to short mode and back again did indeed matter. Since short mode is 56794 # case insensitive, let's make it lowercase to improve readability. 56795 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56796 # Now convert it back to Unix-style (cygpath) 56797 input_path=`$CYGPATH -u "$shortmode_path"` 56798 new_path="$input_path" 56799 fi 56800 fi 56801 56802 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56803 if test "x$test_cygdrive_prefix" = x; then 56804 # As a simple fix, exclude /usr/bin since it's not a real path. 56805 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56806 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56807 # a path prefixed by /cygdrive for fixpath to work. 56808 new_path="$CYGWIN_ROOT_PATH$input_path" 56809 fi 56810 fi 56811 56812 56813 if test "x$path" != "x$new_path"; then 56814 MSVC_DLL="$new_path" 56815 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56816 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56817 fi 56818 56819 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56820 56821 path="$MSVC_DLL" 56822 has_colon=`$ECHO $path | $GREP ^.:` 56823 new_path="$path" 56824 if test "x$has_colon" = x; then 56825 # Not in mixed or Windows style, start by that. 56826 new_path=`cmd //c echo $path` 56827 fi 56828 56829 56830 input_path="$new_path" 56831 # Check if we need to convert this using DOS-style short mode. If the path 56832 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56833 # take no chances and rewrite it. 56834 # Note: m4 eats our [], so we need to use [ and ] instead. 56835 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56836 if test "x$has_forbidden_chars" != x; then 56837 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56838 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56839 fi 56840 56841 56842 windows_path="$new_path" 56843 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56844 unix_path=`$CYGPATH -u "$windows_path"` 56845 new_path="$unix_path" 56846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56847 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56848 new_path="$unix_path" 56849 fi 56850 56851 if test "x$path" != "x$new_path"; then 56852 MSVC_DLL="$new_path" 56853 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56854 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56855 fi 56856 56857 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56858 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56859 56860 else 56861 # We're on a unix platform. Hooray! :) 56862 path="$MSVC_DLL" 56863 has_space=`$ECHO "$path" | $GREP " "` 56864 if test "x$has_space" != x; then 56865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56866 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56867 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56868 fi 56869 56870 # Use eval to expand a potential ~ 56871 eval path="$path" 56872 if test ! -f "$path" && test ! -d "$path"; then 56873 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56874 fi 56875 56876 if test -d "$path"; then 56877 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56878 else 56879 dir="`$DIRNAME "$path"`" 56880 base="`$BASENAME "$path"`" 56881 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56882 fi 56883 fi 56884 fi 56885 56886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56887 $as_echo_n "checking for $DLL_NAME... " >&6; } 56888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56889 $as_echo "$MSVC_DLL" >&6; } 56890 else 56891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56892 $as_echo "incorrect, ignoring" >&6; } 56893 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56894 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56895 fi 56896 fi 56897 56898 fi 56899 fi 56900 56901 if test "x$MSVC_DLL" = x; then 56902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56903 $as_echo_n "checking for $DLL_NAME... " >&6; } 56904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56905 $as_echo "no" >&6; } 56906 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 56907 fi 56908 56909 MSVCR_DLL="$MSVC_DLL" 56910 fi 56911 56912 56913 56914 # Check whether --with-msvcp-dll was given. 56915 if test "${with_msvcp_dll+set}" = set; then : 56916 withval=$with_msvcp_dll; 56917 fi 56918 56919 56920 if test "x$MSVCP_NAME" != "x"; then 56921 if test "x$with_msvcp_dll" != x; then 56922 # If given explicitly by user, do not probe. If not present, fail directly. 56923 56924 DLL_NAME="$MSVCP_NAME" 56925 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 56926 METHOD="--with-msvcp-dll" 56927 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56928 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56929 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56930 56931 # Need to check if the found msvcr is correct architecture 56932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56933 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56934 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56935 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56936 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56937 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56938 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56939 CORRECT_MSVCR_ARCH="PE32 executable" 56940 else 56941 CORRECT_MSVCR_ARCH="PE32+ executable" 56942 fi 56943 else 56944 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56945 CORRECT_MSVCR_ARCH=386 56946 else 56947 CORRECT_MSVCR_ARCH=x86-64 56948 fi 56949 fi 56950 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56952 $as_echo "ok" >&6; } 56953 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56954 56955 # Only process if variable expands to non-empty 56956 56957 if test "x$MSVC_DLL" != x; then 56958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56959 56960 # Input might be given as Windows format, start by converting to 56961 # unix format. 56962 path="$MSVC_DLL" 56963 new_path=`$CYGPATH -u "$path"` 56964 56965 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56966 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56967 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56968 # "foo.exe" is OK but "foo" is an error. 56969 # 56970 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56971 # It is also a way to make sure we got the proper file name for the real test later on. 56972 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56973 if test "x$test_shortpath" = x; then 56974 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56975 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56976 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56977 fi 56978 56979 # Call helper function which possibly converts this using DOS-style short mode. 56980 # If so, the updated path is stored in $new_path. 56981 56982 input_path="$new_path" 56983 # Check if we need to convert this using DOS-style short mode. If the path 56984 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56985 # take no chances and rewrite it. 56986 # Note: m4 eats our [], so we need to use [ and ] instead. 56987 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56988 if test "x$has_forbidden_chars" != x; then 56989 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56990 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56991 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56992 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56993 # Going to short mode and back again did indeed matter. Since short mode is 56994 # case insensitive, let's make it lowercase to improve readability. 56995 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56996 # Now convert it back to Unix-style (cygpath) 56997 input_path=`$CYGPATH -u "$shortmode_path"` 56998 new_path="$input_path" 56999 fi 57000 fi 57001 57002 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57003 if test "x$test_cygdrive_prefix" = x; then 57004 # As a simple fix, exclude /usr/bin since it's not a real path. 57005 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57006 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57007 # a path prefixed by /cygdrive for fixpath to work. 57008 new_path="$CYGWIN_ROOT_PATH$input_path" 57009 fi 57010 fi 57011 57012 57013 if test "x$path" != "x$new_path"; then 57014 MSVC_DLL="$new_path" 57015 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57016 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57017 fi 57018 57019 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57020 57021 path="$MSVC_DLL" 57022 has_colon=`$ECHO $path | $GREP ^.:` 57023 new_path="$path" 57024 if test "x$has_colon" = x; then 57025 # Not in mixed or Windows style, start by that. 57026 new_path=`cmd //c echo $path` 57027 fi 57028 57029 57030 input_path="$new_path" 57031 # Check if we need to convert this using DOS-style short mode. If the path 57032 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57033 # take no chances and rewrite it. 57034 # Note: m4 eats our [], so we need to use [ and ] instead. 57035 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57036 if test "x$has_forbidden_chars" != x; then 57037 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57038 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57039 fi 57040 57041 57042 windows_path="$new_path" 57043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57044 unix_path=`$CYGPATH -u "$windows_path"` 57045 new_path="$unix_path" 57046 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57047 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57048 new_path="$unix_path" 57049 fi 57050 57051 if test "x$path" != "x$new_path"; then 57052 MSVC_DLL="$new_path" 57053 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57054 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57055 fi 57056 57057 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57058 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57059 57060 else 57061 # We're on a unix platform. Hooray! :) 57062 path="$MSVC_DLL" 57063 has_space=`$ECHO "$path" | $GREP " "` 57064 if test "x$has_space" != x; then 57065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57066 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57067 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57068 fi 57069 57070 # Use eval to expand a potential ~ 57071 eval path="$path" 57072 if test ! -f "$path" && test ! -d "$path"; then 57073 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57074 fi 57075 57076 if test -d "$path"; then 57077 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57078 else 57079 dir="`$DIRNAME "$path"`" 57080 base="`$BASENAME "$path"`" 57081 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57082 fi 57083 fi 57084 fi 57085 57086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57087 $as_echo_n "checking for $DLL_NAME... " >&6; } 57088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57089 $as_echo "$MSVC_DLL" >&6; } 57090 else 57091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57092 $as_echo "incorrect, ignoring" >&6; } 57093 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57094 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57095 fi 57096 fi 57097 57098 if test "x$MSVC_DLL" = x; then 57099 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 57100 fi 57101 MSVCP_DLL="$MSVC_DLL" 57102 elif test "x$DEVKIT_MSVCP_DLL" != x; then 57103 57104 DLL_NAME="$MSVCP_NAME" 57105 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 57106 METHOD="devkit" 57107 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57108 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57109 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57110 57111 # Need to check if the found msvcr is correct architecture 57112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57113 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57114 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57116 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57117 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57118 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57119 CORRECT_MSVCR_ARCH="PE32 executable" 57120 else 57121 CORRECT_MSVCR_ARCH="PE32+ executable" 57122 fi 57123 else 57124 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57125 CORRECT_MSVCR_ARCH=386 57126 else 57127 CORRECT_MSVCR_ARCH=x86-64 57128 fi 57129 fi 57130 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57132 $as_echo "ok" >&6; } 57133 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57134 57135 # Only process if variable expands to non-empty 57136 57137 if test "x$MSVC_DLL" != x; then 57138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57139 57140 # Input might be given as Windows format, start by converting to 57141 # unix format. 57142 path="$MSVC_DLL" 57143 new_path=`$CYGPATH -u "$path"` 57144 57145 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57146 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57147 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57148 # "foo.exe" is OK but "foo" is an error. 57149 # 57150 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57151 # It is also a way to make sure we got the proper file name for the real test later on. 57152 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57153 if test "x$test_shortpath" = x; then 57154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57155 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57156 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57157 fi 57158 57159 # Call helper function which possibly converts this using DOS-style short mode. 57160 # If so, the updated path is stored in $new_path. 57161 57162 input_path="$new_path" 57163 # Check if we need to convert this using DOS-style short mode. If the path 57164 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57165 # take no chances and rewrite it. 57166 # Note: m4 eats our [], so we need to use [ and ] instead. 57167 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57168 if test "x$has_forbidden_chars" != x; then 57169 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57170 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57171 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57172 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57173 # Going to short mode and back again did indeed matter. Since short mode is 57174 # case insensitive, let's make it lowercase to improve readability. 57175 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57176 # Now convert it back to Unix-style (cygpath) 57177 input_path=`$CYGPATH -u "$shortmode_path"` 57178 new_path="$input_path" 57179 fi 57180 fi 57181 57182 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57183 if test "x$test_cygdrive_prefix" = x; then 57184 # As a simple fix, exclude /usr/bin since it's not a real path. 57185 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57186 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57187 # a path prefixed by /cygdrive for fixpath to work. 57188 new_path="$CYGWIN_ROOT_PATH$input_path" 57189 fi 57190 fi 57191 57192 57193 if test "x$path" != "x$new_path"; then 57194 MSVC_DLL="$new_path" 57195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57196 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57197 fi 57198 57199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57200 57201 path="$MSVC_DLL" 57202 has_colon=`$ECHO $path | $GREP ^.:` 57203 new_path="$path" 57204 if test "x$has_colon" = x; then 57205 # Not in mixed or Windows style, start by that. 57206 new_path=`cmd //c echo $path` 57207 fi 57208 57209 57210 input_path="$new_path" 57211 # Check if we need to convert this using DOS-style short mode. If the path 57212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57213 # take no chances and rewrite it. 57214 # Note: m4 eats our [], so we need to use [ and ] instead. 57215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57216 if test "x$has_forbidden_chars" != x; then 57217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57218 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57219 fi 57220 57221 57222 windows_path="$new_path" 57223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57224 unix_path=`$CYGPATH -u "$windows_path"` 57225 new_path="$unix_path" 57226 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57227 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57228 new_path="$unix_path" 57229 fi 57230 57231 if test "x$path" != "x$new_path"; then 57232 MSVC_DLL="$new_path" 57233 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57234 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57235 fi 57236 57237 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57238 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57239 57240 else 57241 # We're on a unix platform. Hooray! :) 57242 path="$MSVC_DLL" 57243 has_space=`$ECHO "$path" | $GREP " "` 57244 if test "x$has_space" != x; then 57245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57246 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57247 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57248 fi 57249 57250 # Use eval to expand a potential ~ 57251 eval path="$path" 57252 if test ! -f "$path" && test ! -d "$path"; then 57253 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57254 fi 57255 57256 if test -d "$path"; then 57257 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57258 else 57259 dir="`$DIRNAME "$path"`" 57260 base="`$BASENAME "$path"`" 57261 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57262 fi 57263 fi 57264 fi 57265 57266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57267 $as_echo_n "checking for $DLL_NAME... " >&6; } 57268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57269 $as_echo "$MSVC_DLL" >&6; } 57270 else 57271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57272 $as_echo "incorrect, ignoring" >&6; } 57273 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57274 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57275 fi 57276 fi 57277 57278 if test "x$MSVC_DLL" = x; then 57279 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 57280 fi 57281 MSVCP_DLL="$MSVC_DLL" 57282 else 57283 57284 DLL_NAME="${MSVCP_NAME}" 57285 MSVC_DLL= 57286 57287 if test "x$MSVC_DLL" = x; then 57288 # Probe: Using well-known location from Visual Studio 10.0 57289 if test "x$VCINSTALLDIR" != x; then 57290 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 57291 57292 windows_path="$CYGWIN_VC_INSTALL_DIR" 57293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57294 unix_path=`$CYGPATH -u "$windows_path"` 57295 CYGWIN_VC_INSTALL_DIR="$unix_path" 57296 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57297 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57298 CYGWIN_VC_INSTALL_DIR="$unix_path" 57299 fi 57300 57301 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57302 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 57303 else 57304 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 57305 fi 57306 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 57307 57308 DLL_NAME="$DLL_NAME" 57309 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57310 METHOD="well-known location in VCINSTALLDIR" 57311 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57312 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57313 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57314 57315 # Need to check if the found msvcr is correct architecture 57316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57317 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57318 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57320 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57321 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57322 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57323 CORRECT_MSVCR_ARCH="PE32 executable" 57324 else 57325 CORRECT_MSVCR_ARCH="PE32+ executable" 57326 fi 57327 else 57328 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57329 CORRECT_MSVCR_ARCH=386 57330 else 57331 CORRECT_MSVCR_ARCH=x86-64 57332 fi 57333 fi 57334 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57336 $as_echo "ok" >&6; } 57337 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57338 57339 # Only process if variable expands to non-empty 57340 57341 if test "x$MSVC_DLL" != x; then 57342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57343 57344 # Input might be given as Windows format, start by converting to 57345 # unix format. 57346 path="$MSVC_DLL" 57347 new_path=`$CYGPATH -u "$path"` 57348 57349 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57350 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57351 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57352 # "foo.exe" is OK but "foo" is an error. 57353 # 57354 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57355 # It is also a way to make sure we got the proper file name for the real test later on. 57356 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57357 if test "x$test_shortpath" = x; then 57358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57359 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57360 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57361 fi 57362 57363 # Call helper function which possibly converts this using DOS-style short mode. 57364 # If so, the updated path is stored in $new_path. 57365 57366 input_path="$new_path" 57367 # Check if we need to convert this using DOS-style short mode. If the path 57368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57369 # take no chances and rewrite it. 57370 # Note: m4 eats our [], so we need to use [ and ] instead. 57371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57372 if test "x$has_forbidden_chars" != x; then 57373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57374 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57375 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57376 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57377 # Going to short mode and back again did indeed matter. Since short mode is 57378 # case insensitive, let's make it lowercase to improve readability. 57379 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57380 # Now convert it back to Unix-style (cygpath) 57381 input_path=`$CYGPATH -u "$shortmode_path"` 57382 new_path="$input_path" 57383 fi 57384 fi 57385 57386 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57387 if test "x$test_cygdrive_prefix" = x; then 57388 # As a simple fix, exclude /usr/bin since it's not a real path. 57389 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57390 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57391 # a path prefixed by /cygdrive for fixpath to work. 57392 new_path="$CYGWIN_ROOT_PATH$input_path" 57393 fi 57394 fi 57395 57396 57397 if test "x$path" != "x$new_path"; then 57398 MSVC_DLL="$new_path" 57399 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57400 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57401 fi 57402 57403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57404 57405 path="$MSVC_DLL" 57406 has_colon=`$ECHO $path | $GREP ^.:` 57407 new_path="$path" 57408 if test "x$has_colon" = x; then 57409 # Not in mixed or Windows style, start by that. 57410 new_path=`cmd //c echo $path` 57411 fi 57412 57413 57414 input_path="$new_path" 57415 # Check if we need to convert this using DOS-style short mode. If the path 57416 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57417 # take no chances and rewrite it. 57418 # Note: m4 eats our [], so we need to use [ and ] instead. 57419 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57420 if test "x$has_forbidden_chars" != x; then 57421 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57422 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57423 fi 57424 57425 57426 windows_path="$new_path" 57427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57428 unix_path=`$CYGPATH -u "$windows_path"` 57429 new_path="$unix_path" 57430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57431 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57432 new_path="$unix_path" 57433 fi 57434 57435 if test "x$path" != "x$new_path"; then 57436 MSVC_DLL="$new_path" 57437 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57438 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57439 fi 57440 57441 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57442 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57443 57444 else 57445 # We're on a unix platform. Hooray! :) 57446 path="$MSVC_DLL" 57447 has_space=`$ECHO "$path" | $GREP " "` 57448 if test "x$has_space" != x; then 57449 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57450 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57451 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57452 fi 57453 57454 # Use eval to expand a potential ~ 57455 eval path="$path" 57456 if test ! -f "$path" && test ! -d "$path"; then 57457 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57458 fi 57459 57460 if test -d "$path"; then 57461 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57462 else 57463 dir="`$DIRNAME "$path"`" 57464 base="`$BASENAME "$path"`" 57465 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57466 fi 57467 fi 57468 fi 57469 57470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57471 $as_echo_n "checking for $DLL_NAME... " >&6; } 57472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57473 $as_echo "$MSVC_DLL" >&6; } 57474 else 57475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57476 $as_echo "incorrect, ignoring" >&6; } 57477 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57478 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57479 fi 57480 fi 57481 57482 fi 57483 fi 57484 57485 if test "x$MSVC_DLL" = x; then 57486 # Probe: Check in the Boot JDK directory. 57487 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 57488 57489 DLL_NAME="$DLL_NAME" 57490 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57491 METHOD="well-known location in Boot JDK" 57492 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57493 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57494 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57495 57496 # Need to check if the found msvcr is correct architecture 57497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57498 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57499 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57501 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57502 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57503 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57504 CORRECT_MSVCR_ARCH="PE32 executable" 57505 else 57506 CORRECT_MSVCR_ARCH="PE32+ executable" 57507 fi 57508 else 57509 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57510 CORRECT_MSVCR_ARCH=386 57511 else 57512 CORRECT_MSVCR_ARCH=x86-64 57513 fi 57514 fi 57515 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57517 $as_echo "ok" >&6; } 57518 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57519 57520 # Only process if variable expands to non-empty 57521 57522 if test "x$MSVC_DLL" != x; then 57523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57524 57525 # Input might be given as Windows format, start by converting to 57526 # unix format. 57527 path="$MSVC_DLL" 57528 new_path=`$CYGPATH -u "$path"` 57529 57530 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57531 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57532 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57533 # "foo.exe" is OK but "foo" is an error. 57534 # 57535 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57536 # It is also a way to make sure we got the proper file name for the real test later on. 57537 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57538 if test "x$test_shortpath" = x; then 57539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57540 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57541 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57542 fi 57543 57544 # Call helper function which possibly converts this using DOS-style short mode. 57545 # If so, the updated path is stored in $new_path. 57546 57547 input_path="$new_path" 57548 # Check if we need to convert this using DOS-style short mode. If the path 57549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57550 # take no chances and rewrite it. 57551 # Note: m4 eats our [], so we need to use [ and ] instead. 57552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57553 if test "x$has_forbidden_chars" != x; then 57554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57555 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57556 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57557 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57558 # Going to short mode and back again did indeed matter. Since short mode is 57559 # case insensitive, let's make it lowercase to improve readability. 57560 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57561 # Now convert it back to Unix-style (cygpath) 57562 input_path=`$CYGPATH -u "$shortmode_path"` 57563 new_path="$input_path" 57564 fi 57565 fi 57566 57567 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57568 if test "x$test_cygdrive_prefix" = x; then 57569 # As a simple fix, exclude /usr/bin since it's not a real path. 57570 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57571 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57572 # a path prefixed by /cygdrive for fixpath to work. 57573 new_path="$CYGWIN_ROOT_PATH$input_path" 57574 fi 57575 fi 57576 57577 57578 if test "x$path" != "x$new_path"; then 57579 MSVC_DLL="$new_path" 57580 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57581 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57582 fi 57583 57584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57585 57586 path="$MSVC_DLL" 57587 has_colon=`$ECHO $path | $GREP ^.:` 57588 new_path="$path" 57589 if test "x$has_colon" = x; then 57590 # Not in mixed or Windows style, start by that. 57591 new_path=`cmd //c echo $path` 57592 fi 57593 57594 57595 input_path="$new_path" 57596 # Check if we need to convert this using DOS-style short mode. If the path 57597 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57598 # take no chances and rewrite it. 57599 # Note: m4 eats our [], so we need to use [ and ] instead. 57600 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57601 if test "x$has_forbidden_chars" != x; then 57602 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57603 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57604 fi 57605 57606 57607 windows_path="$new_path" 57608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57609 unix_path=`$CYGPATH -u "$windows_path"` 57610 new_path="$unix_path" 57611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57613 new_path="$unix_path" 57614 fi 57615 57616 if test "x$path" != "x$new_path"; then 57617 MSVC_DLL="$new_path" 57618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57619 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57620 fi 57621 57622 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57623 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57624 57625 else 57626 # We're on a unix platform. Hooray! :) 57627 path="$MSVC_DLL" 57628 has_space=`$ECHO "$path" | $GREP " "` 57629 if test "x$has_space" != x; then 57630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57631 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57632 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57633 fi 57634 57635 # Use eval to expand a potential ~ 57636 eval path="$path" 57637 if test ! -f "$path" && test ! -d "$path"; then 57638 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57639 fi 57640 57641 if test -d "$path"; then 57642 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57643 else 57644 dir="`$DIRNAME "$path"`" 57645 base="`$BASENAME "$path"`" 57646 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57647 fi 57648 fi 57649 fi 57650 57651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57652 $as_echo_n "checking for $DLL_NAME... " >&6; } 57653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57654 $as_echo "$MSVC_DLL" >&6; } 57655 else 57656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57657 $as_echo "incorrect, ignoring" >&6; } 57658 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57659 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57660 fi 57661 fi 57662 57663 fi 57664 57665 if test "x$MSVC_DLL" = x; then 57666 # Probe: Look in the Windows system32 directory 57667 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 57668 57669 windows_path="$CYGWIN_SYSTEMROOT" 57670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57671 unix_path=`$CYGPATH -u "$windows_path"` 57672 CYGWIN_SYSTEMROOT="$unix_path" 57673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57674 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57675 CYGWIN_SYSTEMROOT="$unix_path" 57676 fi 57677 57678 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 57679 57680 DLL_NAME="$DLL_NAME" 57681 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57682 METHOD="well-known location in SYSTEMROOT" 57683 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57684 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57685 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57686 57687 # Need to check if the found msvcr is correct architecture 57688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57689 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57690 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57692 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57693 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57694 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57695 CORRECT_MSVCR_ARCH="PE32 executable" 57696 else 57697 CORRECT_MSVCR_ARCH="PE32+ executable" 57698 fi 57699 else 57700 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57701 CORRECT_MSVCR_ARCH=386 57702 else 57703 CORRECT_MSVCR_ARCH=x86-64 57704 fi 57705 fi 57706 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57708 $as_echo "ok" >&6; } 57709 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57710 57711 # Only process if variable expands to non-empty 57712 57713 if test "x$MSVC_DLL" != x; then 57714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57715 57716 # Input might be given as Windows format, start by converting to 57717 # unix format. 57718 path="$MSVC_DLL" 57719 new_path=`$CYGPATH -u "$path"` 57720 57721 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57722 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57723 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57724 # "foo.exe" is OK but "foo" is an error. 57725 # 57726 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57727 # It is also a way to make sure we got the proper file name for the real test later on. 57728 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57729 if test "x$test_shortpath" = x; then 57730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57731 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57732 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57733 fi 57734 57735 # Call helper function which possibly converts this using DOS-style short mode. 57736 # If so, the updated path is stored in $new_path. 57737 57738 input_path="$new_path" 57739 # Check if we need to convert this using DOS-style short mode. If the path 57740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57741 # take no chances and rewrite it. 57742 # Note: m4 eats our [], so we need to use [ and ] instead. 57743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57744 if test "x$has_forbidden_chars" != x; then 57745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57746 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57747 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57748 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57749 # Going to short mode and back again did indeed matter. Since short mode is 57750 # case insensitive, let's make it lowercase to improve readability. 57751 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57752 # Now convert it back to Unix-style (cygpath) 57753 input_path=`$CYGPATH -u "$shortmode_path"` 57754 new_path="$input_path" 57755 fi 57756 fi 57757 57758 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57759 if test "x$test_cygdrive_prefix" = x; then 57760 # As a simple fix, exclude /usr/bin since it's not a real path. 57761 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57762 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57763 # a path prefixed by /cygdrive for fixpath to work. 57764 new_path="$CYGWIN_ROOT_PATH$input_path" 57765 fi 57766 fi 57767 57768 57769 if test "x$path" != "x$new_path"; then 57770 MSVC_DLL="$new_path" 57771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57772 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57773 fi 57774 57775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57776 57777 path="$MSVC_DLL" 57778 has_colon=`$ECHO $path | $GREP ^.:` 57779 new_path="$path" 57780 if test "x$has_colon" = x; then 57781 # Not in mixed or Windows style, start by that. 57782 new_path=`cmd //c echo $path` 57783 fi 57784 57785 57786 input_path="$new_path" 57787 # Check if we need to convert this using DOS-style short mode. If the path 57788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57789 # take no chances and rewrite it. 57790 # Note: m4 eats our [], so we need to use [ and ] instead. 57791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57792 if test "x$has_forbidden_chars" != x; then 57793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57794 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57795 fi 57796 57797 57798 windows_path="$new_path" 57799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57800 unix_path=`$CYGPATH -u "$windows_path"` 57801 new_path="$unix_path" 57802 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57803 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57804 new_path="$unix_path" 57805 fi 57806 57807 if test "x$path" != "x$new_path"; then 57808 MSVC_DLL="$new_path" 57809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57810 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57811 fi 57812 57813 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57814 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57815 57816 else 57817 # We're on a unix platform. Hooray! :) 57818 path="$MSVC_DLL" 57819 has_space=`$ECHO "$path" | $GREP " "` 57820 if test "x$has_space" != x; then 57821 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57822 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57823 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57824 fi 57825 57826 # Use eval to expand a potential ~ 57827 eval path="$path" 57828 if test ! -f "$path" && test ! -d "$path"; then 57829 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57830 fi 57831 57832 if test -d "$path"; then 57833 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57834 else 57835 dir="`$DIRNAME "$path"`" 57836 base="`$BASENAME "$path"`" 57837 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57838 fi 57839 fi 57840 fi 57841 57842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57843 $as_echo_n "checking for $DLL_NAME... " >&6; } 57844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57845 $as_echo "$MSVC_DLL" >&6; } 57846 else 57847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57848 $as_echo "incorrect, ignoring" >&6; } 57849 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57850 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57851 fi 57852 fi 57853 57854 fi 57855 57856 if test "x$MSVC_DLL" = x; then 57857 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 57858 if test "x$VS100COMNTOOLS" != x; then 57859 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 57860 57861 windows_path="$CYGWIN_VS_TOOLS_DIR" 57862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57863 unix_path=`$CYGPATH -u "$windows_path"` 57864 CYGWIN_VS_TOOLS_DIR="$unix_path" 57865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57867 CYGWIN_VS_TOOLS_DIR="$unix_path" 57868 fi 57869 57870 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57871 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 57872 | $GREP -i /x64/ | $HEAD --lines 1` 57873 else 57874 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 57875 | $GREP -i /x86/ | $HEAD --lines 1` 57876 fi 57877 57878 DLL_NAME="$DLL_NAME" 57879 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57880 METHOD="search of VS100COMNTOOLS" 57881 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57882 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57883 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57884 57885 # Need to check if the found msvcr is correct architecture 57886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57887 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57888 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57890 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57891 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57892 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57893 CORRECT_MSVCR_ARCH="PE32 executable" 57894 else 57895 CORRECT_MSVCR_ARCH="PE32+ executable" 57896 fi 57897 else 57898 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57899 CORRECT_MSVCR_ARCH=386 57900 else 57901 CORRECT_MSVCR_ARCH=x86-64 57902 fi 57903 fi 57904 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57906 $as_echo "ok" >&6; } 57907 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57908 57909 # Only process if variable expands to non-empty 57910 57911 if test "x$MSVC_DLL" != x; then 57912 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57913 57914 # Input might be given as Windows format, start by converting to 57915 # unix format. 57916 path="$MSVC_DLL" 57917 new_path=`$CYGPATH -u "$path"` 57918 57919 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57920 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57921 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57922 # "foo.exe" is OK but "foo" is an error. 57923 # 57924 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57925 # It is also a way to make sure we got the proper file name for the real test later on. 57926 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57927 if test "x$test_shortpath" = x; then 57928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57929 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57930 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57931 fi 57932 57933 # Call helper function which possibly converts this using DOS-style short mode. 57934 # If so, the updated path is stored in $new_path. 57935 57936 input_path="$new_path" 57937 # Check if we need to convert this using DOS-style short mode. If the path 57938 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57939 # take no chances and rewrite it. 57940 # Note: m4 eats our [], so we need to use [ and ] instead. 57941 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57942 if test "x$has_forbidden_chars" != x; then 57943 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57944 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57945 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57946 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57947 # Going to short mode and back again did indeed matter. Since short mode is 57948 # case insensitive, let's make it lowercase to improve readability. 57949 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57950 # Now convert it back to Unix-style (cygpath) 57951 input_path=`$CYGPATH -u "$shortmode_path"` 57952 new_path="$input_path" 57953 fi 57954 fi 57955 57956 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57957 if test "x$test_cygdrive_prefix" = x; then 57958 # As a simple fix, exclude /usr/bin since it's not a real path. 57959 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57960 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57961 # a path prefixed by /cygdrive for fixpath to work. 57962 new_path="$CYGWIN_ROOT_PATH$input_path" 57963 fi 57964 fi 57965 57966 57967 if test "x$path" != "x$new_path"; then 57968 MSVC_DLL="$new_path" 57969 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57970 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57971 fi 57972 57973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57974 57975 path="$MSVC_DLL" 57976 has_colon=`$ECHO $path | $GREP ^.:` 57977 new_path="$path" 57978 if test "x$has_colon" = x; then 57979 # Not in mixed or Windows style, start by that. 57980 new_path=`cmd //c echo $path` 57981 fi 57982 57983 57984 input_path="$new_path" 57985 # Check if we need to convert this using DOS-style short mode. If the path 57986 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57987 # take no chances and rewrite it. 57988 # Note: m4 eats our [], so we need to use [ and ] instead. 57989 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57990 if test "x$has_forbidden_chars" != x; then 57991 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57992 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57993 fi 57994 57995 57996 windows_path="$new_path" 57997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57998 unix_path=`$CYGPATH -u "$windows_path"` 57999 new_path="$unix_path" 58000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58002 new_path="$unix_path" 58003 fi 58004 58005 if test "x$path" != "x$new_path"; then 58006 MSVC_DLL="$new_path" 58007 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 58008 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 58009 fi 58010 58011 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58012 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58013 58014 else 58015 # We're on a unix platform. Hooray! :) 58016 path="$MSVC_DLL" 58017 has_space=`$ECHO "$path" | $GREP " "` 58018 if test "x$has_space" != x; then 58019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 58020 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 58021 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58022 fi 58023 58024 # Use eval to expand a potential ~ 58025 eval path="$path" 58026 if test ! -f "$path" && test ! -d "$path"; then 58027 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 58028 fi 58029 58030 if test -d "$path"; then 58031 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 58032 else 58033 dir="`$DIRNAME "$path"`" 58034 base="`$BASENAME "$path"`" 58035 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 58036 fi 58037 fi 58038 fi 58039 58040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 58041 $as_echo_n "checking for $DLL_NAME... " >&6; } 58042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 58043 $as_echo "$MSVC_DLL" >&6; } 58044 else 58045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 58046 $as_echo "incorrect, ignoring" >&6; } 58047 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 58048 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 58049 fi 58050 fi 58051 58052 fi 58053 fi 58054 58055 if test "x$MSVC_DLL" = x; then 58056 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 58057 # (This was the original behaviour; kept since it might turn something up) 58058 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 58059 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58060 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 58061 | $GREP x64 | $HEAD --lines 1` 58062 else 58063 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 58064 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 58065 if test "x$POSSIBLE_MSVC_DLL" = x; then 58066 # We're grasping at straws now... 58067 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 58068 | $HEAD --lines 1` 58069 fi 58070 fi 58071 58072 58073 DLL_NAME="$DLL_NAME" 58074 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 58075 METHOD="search of VCINSTALLDIR" 58076 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 58077 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 58078 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 58079 58080 # Need to check if the found msvcr is correct architecture 58081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 58082 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 58083 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 58084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58085 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 58086 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 58087 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 58088 CORRECT_MSVCR_ARCH="PE32 executable" 58089 else 58090 CORRECT_MSVCR_ARCH="PE32+ executable" 58091 fi 58092 else 58093 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 58094 CORRECT_MSVCR_ARCH=386 58095 else 58096 CORRECT_MSVCR_ARCH=x86-64 58097 fi 58098 fi 58099 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 58100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 58101 $as_echo "ok" >&6; } 58102 MSVC_DLL="$POSSIBLE_MSVC_DLL" 58103 58104 # Only process if variable expands to non-empty 58105 58106 if test "x$MSVC_DLL" != x; then 58107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58108 58109 # Input might be given as Windows format, start by converting to 58110 # unix format. 58111 path="$MSVC_DLL" 58112 new_path=`$CYGPATH -u "$path"` 58113 58114 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58115 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58116 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58117 # "foo.exe" is OK but "foo" is an error. 58118 # 58119 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58120 # It is also a way to make sure we got the proper file name for the real test later on. 58121 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58122 if test "x$test_shortpath" = x; then 58123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 58124 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 58125 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 58126 fi 58127 58128 # Call helper function which possibly converts this using DOS-style short mode. 58129 # If so, the updated path is stored in $new_path. 58130 58131 input_path="$new_path" 58132 # Check if we need to convert this using DOS-style short mode. If the path 58133 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58134 # take no chances and rewrite it. 58135 # Note: m4 eats our [], so we need to use [ and ] instead. 58136 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58137 if test "x$has_forbidden_chars" != x; then 58138 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58139 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58140 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58141 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58142 # Going to short mode and back again did indeed matter. Since short mode is 58143 # case insensitive, let's make it lowercase to improve readability. 58144 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58145 # Now convert it back to Unix-style (cygpath) 58146 input_path=`$CYGPATH -u "$shortmode_path"` 58147 new_path="$input_path" 58148 fi 58149 fi 58150 58151 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58152 if test "x$test_cygdrive_prefix" = x; then 58153 # As a simple fix, exclude /usr/bin since it's not a real path. 58154 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58155 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58156 # a path prefixed by /cygdrive for fixpath to work. 58157 new_path="$CYGWIN_ROOT_PATH$input_path" 58158 fi 58159 fi 58160 58161 58162 if test "x$path" != "x$new_path"; then 58163 MSVC_DLL="$new_path" 58164 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 58165 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 58166 fi 58167 58168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58169 58170 path="$MSVC_DLL" 58171 has_colon=`$ECHO $path | $GREP ^.:` 58172 new_path="$path" 58173 if test "x$has_colon" = x; then 58174 # Not in mixed or Windows style, start by that. 58175 new_path=`cmd //c echo $path` 58176 fi 58177 58178 58179 input_path="$new_path" 58180 # Check if we need to convert this using DOS-style short mode. If the path 58181 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58182 # take no chances and rewrite it. 58183 # Note: m4 eats our [], so we need to use [ and ] instead. 58184 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58185 if test "x$has_forbidden_chars" != x; then 58186 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58187 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58188 fi 58189 58190 58191 windows_path="$new_path" 58192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58193 unix_path=`$CYGPATH -u "$windows_path"` 58194 new_path="$unix_path" 58195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58197 new_path="$unix_path" 58198 fi 58199 58200 if test "x$path" != "x$new_path"; then 58201 MSVC_DLL="$new_path" 58202 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 58203 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 58204 fi 58205 58206 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58207 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58208 58209 else 58210 # We're on a unix platform. Hooray! :) 58211 path="$MSVC_DLL" 58212 has_space=`$ECHO "$path" | $GREP " "` 58213 if test "x$has_space" != x; then 58214 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 58215 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 58216 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58217 fi 58218 58219 # Use eval to expand a potential ~ 58220 eval path="$path" 58221 if test ! -f "$path" && test ! -d "$path"; then 58222 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 58223 fi 58224 58225 if test -d "$path"; then 58226 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 58227 else 58228 dir="`$DIRNAME "$path"`" 58229 base="`$BASENAME "$path"`" 58230 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 58231 fi 58232 fi 58233 fi 58234 58235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 58236 $as_echo_n "checking for $DLL_NAME... " >&6; } 58237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 58238 $as_echo "$MSVC_DLL" >&6; } 58239 else 58240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 58241 $as_echo "incorrect, ignoring" >&6; } 58242 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 58243 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 58244 fi 58245 fi 58246 58247 fi 58248 fi 58249 58250 if test "x$MSVC_DLL" = x; then 58251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 58252 $as_echo_n "checking for $DLL_NAME... " >&6; } 58253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58254 $as_echo "no" >&6; } 58255 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 58256 fi 58257 58258 MSVCP_DLL="$MSVC_DLL" 58259 fi 58260 58261 fi 58262 58263 fi 58264 58265 58266 if test "x$NEEDS_LIB_X11" = xfalse; then 58267 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 58268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 58269 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 58270 fi 58271 X_CFLAGS= 58272 X_LIBS= 58273 else 58274 58275 if test "x${with_x}" = xno; then 58276 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 58277 fi 58278 58279 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 58280 # The user has specified a X11 base directory. Use it for includes and 58281 # libraries, unless explicitly overridden. 58282 if test "x$x_includes" = xNONE; then 58283 x_includes="${with_x}/include" 58284 fi 58285 if test "x$x_libraries" = xNONE; then 58286 x_libraries="${with_x}/lib" 58287 fi 58288 else 58289 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 58290 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 58291 # --x-libraries for the sysroot, if that seems to be correct. 58292 if test "x$SYSROOT" != "x"; then 58293 if test "x$x_includes" = xNONE; then 58294 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 58295 x_includes="$SYSROOT/usr/X11R6/include" 58296 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 58297 x_includes="$SYSROOT/usr/include" 58298 fi 58299 fi 58300 if test "x$x_libraries" = xNONE; then 58301 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 58302 x_libraries="$SYSROOT/usr/X11R6/lib" 58303 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58304 x_libraries="$SYSROOT/usr/lib64" 58305 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 58306 x_libraries="$SYSROOT/usr/lib" 58307 fi 58308 fi 58309 fi 58310 fi 58311 58312 # Now let autoconf do it's magic 58313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 58314 $as_echo_n "checking for X... " >&6; } 58315 58316 58317 # Check whether --with-x was given. 58318 if test "${with_x+set}" = set; then : 58319 withval=$with_x; 58320 fi 58321 58322 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 58323 if test "x$with_x" = xno; then 58324 # The user explicitly disabled X. 58325 have_x=disabled 58326 else 58327 case $x_includes,$x_libraries in #( 58328 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 58329 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 58330 $as_echo_n "(cached) " >&6 58331 else 58332 # One or both of the vars are not set, and there is no cached value. 58333 ac_x_includes=no ac_x_libraries=no 58334 rm -f -r conftest.dir 58335 if mkdir conftest.dir; then 58336 cd conftest.dir 58337 cat >Imakefile <<'_ACEOF' 58338 incroot: 58339 @echo incroot='${INCROOT}' 58340 usrlibdir: 58341 @echo usrlibdir='${USRLIBDIR}' 58342 libdir: 58343 @echo libdir='${LIBDIR}' 58344 _ACEOF 58345 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 58346 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 58347 for ac_var in incroot usrlibdir libdir; do 58348 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 58349 done 58350 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 58351 for ac_extension in a so sl dylib la dll; do 58352 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 58353 test -f "$ac_im_libdir/libX11.$ac_extension"; then 58354 ac_im_usrlibdir=$ac_im_libdir; break 58355 fi 58356 done 58357 # Screen out bogus values from the imake configuration. They are 58358 # bogus both because they are the default anyway, and because 58359 # using them would break gcc on systems where it needs fixed includes. 58360 case $ac_im_incroot in 58361 /usr/include) ac_x_includes= ;; 58362 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 58363 esac 58364 case $ac_im_usrlibdir in 58365 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 58366 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 58367 esac 58368 fi 58369 cd .. 58370 rm -f -r conftest.dir 58371 fi 58372 58373 # Standard set of common directories for X headers. 58374 # Check X11 before X11Rn because it is often a symlink to the current release. 58375 ac_x_header_dirs=' 58376 /usr/X11/include 58377 /usr/X11R7/include 58378 /usr/X11R6/include 58379 /usr/X11R5/include 58380 /usr/X11R4/include 58381 58382 /usr/include/X11 58383 /usr/include/X11R7 58384 /usr/include/X11R6 58385 /usr/include/X11R5 58386 /usr/include/X11R4 58387 58388 /usr/local/X11/include 58389 /usr/local/X11R7/include 58390 /usr/local/X11R6/include 58391 /usr/local/X11R5/include 58392 /usr/local/X11R4/include 58393 58394 /usr/local/include/X11 58395 /usr/local/include/X11R7 58396 /usr/local/include/X11R6 58397 /usr/local/include/X11R5 58398 /usr/local/include/X11R4 58399 58400 /usr/X386/include 58401 /usr/x386/include 58402 /usr/XFree86/include/X11 58403 58404 /usr/include 58405 /usr/local/include 58406 /usr/unsupported/include 58407 /usr/athena/include 58408 /usr/local/x11r5/include 58409 /usr/lpp/Xamples/include 58410 58411 /usr/openwin/include 58412 /usr/openwin/share/include' 58413 58414 if test "$ac_x_includes" = no; then 58415 # Guess where to find include files, by looking for Xlib.h. 58416 # First, try using that file with no special directory specified. 58417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58418 /* end confdefs.h. */ 58419 #include <X11/Xlib.h> 58420 _ACEOF 58421 if ac_fn_cxx_try_cpp "$LINENO"; then : 58422 # We can compile using X headers with no special include directory. 58423 ac_x_includes= 58424 else 58425 for ac_dir in $ac_x_header_dirs; do 58426 if test -r "$ac_dir/X11/Xlib.h"; then 58427 ac_x_includes=$ac_dir 58428 break 58429 fi 58430 done 58431 fi 58432 rm -f conftest.err conftest.i conftest.$ac_ext 58433 fi # $ac_x_includes = no 58434 58435 if test "$ac_x_libraries" = no; then 58436 # Check for the libraries. 58437 # See if we find them without any special options. 58438 # Don't add to $LIBS permanently. 58439 ac_save_LIBS=$LIBS 58440 LIBS="-lX11 $LIBS" 58441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58442 /* end confdefs.h. */ 58443 #include <X11/Xlib.h> 58444 int 58445 main () 58446 { 58447 XrmInitialize () 58448 ; 58449 return 0; 58450 } 58451 _ACEOF 58452 if ac_fn_cxx_try_link "$LINENO"; then : 58453 LIBS=$ac_save_LIBS 58454 # We can link X programs with no special library path. 58455 ac_x_libraries= 58456 else 58457 LIBS=$ac_save_LIBS 58458 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 58459 do 58460 # Don't even attempt the hair of trying to link an X program! 58461 for ac_extension in a so sl dylib la dll; do 58462 if test -r "$ac_dir/libX11.$ac_extension"; then 58463 ac_x_libraries=$ac_dir 58464 break 2 58465 fi 58466 done 58467 done 58468 fi 58469 rm -f core conftest.err conftest.$ac_objext \ 58470 conftest$ac_exeext conftest.$ac_ext 58471 fi # $ac_x_libraries = no 58472 58473 case $ac_x_includes,$ac_x_libraries in #( 58474 no,* | *,no | *\'*) 58475 # Didn't find X, or a directory has "'" in its name. 58476 ac_cv_have_x="have_x=no";; #( 58477 *) 58478 # Record where we found X for the cache. 58479 ac_cv_have_x="have_x=yes\ 58480 ac_x_includes='$ac_x_includes'\ 58481 ac_x_libraries='$ac_x_libraries'" 58482 esac 58483 fi 58484 ;; #( 58485 *) have_x=yes;; 58486 esac 58487 eval "$ac_cv_have_x" 58488 fi # $with_x != no 58489 58490 if test "$have_x" != yes; then 58491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 58492 $as_echo "$have_x" >&6; } 58493 no_x=yes 58494 else 58495 # If each of the values was on the command line, it overrides each guess. 58496 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 58497 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 58498 # Update the cache value to reflect the command line values. 58499 ac_cv_have_x="have_x=yes\ 58500 ac_x_includes='$x_includes'\ 58501 ac_x_libraries='$x_libraries'" 58502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 58503 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 58504 fi 58505 58506 if test "$no_x" = yes; then 58507 # Not all programs may use this symbol, but it does not hurt to define it. 58508 58509 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 58510 58511 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 58512 else 58513 if test -n "$x_includes"; then 58514 X_CFLAGS="$X_CFLAGS -I$x_includes" 58515 fi 58516 58517 # It would also be nice to do this for all -L options, not just this one. 58518 if test -n "$x_libraries"; then 58519 X_LIBS="$X_LIBS -L$x_libraries" 58520 # For Solaris; some versions of Sun CC require a space after -R and 58521 # others require no space. Words are not sufficient . . . . 58522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 58523 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 58524 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 58525 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 58526 ac_cxx_werror_flag=yes 58527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58528 /* end confdefs.h. */ 58529 58530 int 58531 main () 58532 { 58533 58534 ; 58535 return 0; 58536 } 58537 _ACEOF 58538 if ac_fn_cxx_try_link "$LINENO"; then : 58539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58540 $as_echo "no" >&6; } 58541 X_LIBS="$X_LIBS -R$x_libraries" 58542 else 58543 LIBS="$ac_xsave_LIBS -R $x_libraries" 58544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58545 /* end confdefs.h. */ 58546 58547 int 58548 main () 58549 { 58550 58551 ; 58552 return 0; 58553 } 58554 _ACEOF 58555 if ac_fn_cxx_try_link "$LINENO"; then : 58556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58557 $as_echo "yes" >&6; } 58558 X_LIBS="$X_LIBS -R $x_libraries" 58559 else 58560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 58561 $as_echo "neither works" >&6; } 58562 fi 58563 rm -f core conftest.err conftest.$ac_objext \ 58564 conftest$ac_exeext conftest.$ac_ext 58565 fi 58566 rm -f core conftest.err conftest.$ac_objext \ 58567 conftest$ac_exeext conftest.$ac_ext 58568 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 58569 LIBS=$ac_xsave_LIBS 58570 fi 58571 58572 # Check for system-dependent libraries X programs must link with. 58573 # Do this before checking for the system-independent R6 libraries 58574 # (-lICE), since we may need -lsocket or whatever for X linking. 58575 58576 if test "$ISC" = yes; then 58577 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 58578 else 58579 # Martyn Johnson says this is needed for Ultrix, if the X 58580 # libraries were built with DECnet support. And Karl Berry says 58581 # the Alpha needs dnet_stub (dnet does not exist). 58582 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 58583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58584 /* end confdefs.h. */ 58585 58586 /* Override any GCC internal prototype to avoid an error. 58587 Use char because int might match the return type of a GCC 58588 builtin and then its argument prototype would still apply. */ 58589 #ifdef __cplusplus 58590 extern "C" 58591 #endif 58592 char XOpenDisplay (); 58593 int 58594 main () 58595 { 58596 return XOpenDisplay (); 58597 ; 58598 return 0; 58599 } 58600 _ACEOF 58601 if ac_fn_cxx_try_link "$LINENO"; then : 58602 58603 else 58604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 58605 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 58606 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 58607 $as_echo_n "(cached) " >&6 58608 else 58609 ac_check_lib_save_LIBS=$LIBS 58610 LIBS="-ldnet $LIBS" 58611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58612 /* end confdefs.h. */ 58613 58614 /* Override any GCC internal prototype to avoid an error. 58615 Use char because int might match the return type of a GCC 58616 builtin and then its argument prototype would still apply. */ 58617 #ifdef __cplusplus 58618 extern "C" 58619 #endif 58620 char dnet_ntoa (); 58621 int 58622 main () 58623 { 58624 return dnet_ntoa (); 58625 ; 58626 return 0; 58627 } 58628 _ACEOF 58629 if ac_fn_cxx_try_link "$LINENO"; then : 58630 ac_cv_lib_dnet_dnet_ntoa=yes 58631 else 58632 ac_cv_lib_dnet_dnet_ntoa=no 58633 fi 58634 rm -f core conftest.err conftest.$ac_objext \ 58635 conftest$ac_exeext conftest.$ac_ext 58636 LIBS=$ac_check_lib_save_LIBS 58637 fi 58638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 58639 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 58640 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 58641 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 58642 fi 58643 58644 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 58645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 58646 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 58647 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 58648 $as_echo_n "(cached) " >&6 58649 else 58650 ac_check_lib_save_LIBS=$LIBS 58651 LIBS="-ldnet_stub $LIBS" 58652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58653 /* end confdefs.h. */ 58654 58655 /* Override any GCC internal prototype to avoid an error. 58656 Use char because int might match the return type of a GCC 58657 builtin and then its argument prototype would still apply. */ 58658 #ifdef __cplusplus 58659 extern "C" 58660 #endif 58661 char dnet_ntoa (); 58662 int 58663 main () 58664 { 58665 return dnet_ntoa (); 58666 ; 58667 return 0; 58668 } 58669 _ACEOF 58670 if ac_fn_cxx_try_link "$LINENO"; then : 58671 ac_cv_lib_dnet_stub_dnet_ntoa=yes 58672 else 58673 ac_cv_lib_dnet_stub_dnet_ntoa=no 58674 fi 58675 rm -f core conftest.err conftest.$ac_objext \ 58676 conftest$ac_exeext conftest.$ac_ext 58677 LIBS=$ac_check_lib_save_LIBS 58678 fi 58679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 58680 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 58681 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 58682 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 58683 fi 58684 58685 fi 58686 fi 58687 rm -f core conftest.err conftest.$ac_objext \ 58688 conftest$ac_exeext conftest.$ac_ext 58689 LIBS="$ac_xsave_LIBS" 58690 58691 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 58692 # to get the SysV transport functions. 58693 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 58694 # needs -lnsl. 58695 # The nsl library prevents programs from opening the X display 58696 # on Irix 5.2, according to T.E. Dickey. 58697 # The functions gethostbyname, getservbyname, and inet_addr are 58698 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 58699 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 58700 if test "x$ac_cv_func_gethostbyname" = xyes; then : 58701 58702 fi 58703 58704 if test $ac_cv_func_gethostbyname = no; then 58705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 58706 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 58707 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 58708 $as_echo_n "(cached) " >&6 58709 else 58710 ac_check_lib_save_LIBS=$LIBS 58711 LIBS="-lnsl $LIBS" 58712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58713 /* end confdefs.h. */ 58714 58715 /* Override any GCC internal prototype to avoid an error. 58716 Use char because int might match the return type of a GCC 58717 builtin and then its argument prototype would still apply. */ 58718 #ifdef __cplusplus 58719 extern "C" 58720 #endif 58721 char gethostbyname (); 58722 int 58723 main () 58724 { 58725 return gethostbyname (); 58726 ; 58727 return 0; 58728 } 58729 _ACEOF 58730 if ac_fn_cxx_try_link "$LINENO"; then : 58731 ac_cv_lib_nsl_gethostbyname=yes 58732 else 58733 ac_cv_lib_nsl_gethostbyname=no 58734 fi 58735 rm -f core conftest.err conftest.$ac_objext \ 58736 conftest$ac_exeext conftest.$ac_ext 58737 LIBS=$ac_check_lib_save_LIBS 58738 fi 58739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 58740 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 58741 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 58742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 58743 fi 58744 58745 if test $ac_cv_lib_nsl_gethostbyname = no; then 58746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 58747 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 58748 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 58749 $as_echo_n "(cached) " >&6 58750 else 58751 ac_check_lib_save_LIBS=$LIBS 58752 LIBS="-lbsd $LIBS" 58753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58754 /* end confdefs.h. */ 58755 58756 /* Override any GCC internal prototype to avoid an error. 58757 Use char because int might match the return type of a GCC 58758 builtin and then its argument prototype would still apply. */ 58759 #ifdef __cplusplus 58760 extern "C" 58761 #endif 58762 char gethostbyname (); 58763 int 58764 main () 58765 { 58766 return gethostbyname (); 58767 ; 58768 return 0; 58769 } 58770 _ACEOF 58771 if ac_fn_cxx_try_link "$LINENO"; then : 58772 ac_cv_lib_bsd_gethostbyname=yes 58773 else 58774 ac_cv_lib_bsd_gethostbyname=no 58775 fi 58776 rm -f core conftest.err conftest.$ac_objext \ 58777 conftest$ac_exeext conftest.$ac_ext 58778 LIBS=$ac_check_lib_save_LIBS 58779 fi 58780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 58781 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 58782 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 58783 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 58784 fi 58785 58786 fi 58787 fi 58788 58789 # lieder@skyler.mavd.honeywell.com says without -lsocket, 58790 # socket/setsockopt and other routines are undefined under SCO ODT 58791 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 58792 # on later versions), says Simon Leinen: it contains gethostby* 58793 # variants that don't use the name server (or something). -lsocket 58794 # must be given before -lnsl if both are needed. We assume that 58795 # if connect needs -lnsl, so does gethostbyname. 58796 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 58797 if test "x$ac_cv_func_connect" = xyes; then : 58798 58799 fi 58800 58801 if test $ac_cv_func_connect = no; then 58802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 58803 $as_echo_n "checking for connect in -lsocket... " >&6; } 58804 if ${ac_cv_lib_socket_connect+:} false; then : 58805 $as_echo_n "(cached) " >&6 58806 else 58807 ac_check_lib_save_LIBS=$LIBS 58808 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 58809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58810 /* end confdefs.h. */ 58811 58812 /* Override any GCC internal prototype to avoid an error. 58813 Use char because int might match the return type of a GCC 58814 builtin and then its argument prototype would still apply. */ 58815 #ifdef __cplusplus 58816 extern "C" 58817 #endif 58818 char connect (); 58819 int 58820 main () 58821 { 58822 return connect (); 58823 ; 58824 return 0; 58825 } 58826 _ACEOF 58827 if ac_fn_cxx_try_link "$LINENO"; then : 58828 ac_cv_lib_socket_connect=yes 58829 else 58830 ac_cv_lib_socket_connect=no 58831 fi 58832 rm -f core conftest.err conftest.$ac_objext \ 58833 conftest$ac_exeext conftest.$ac_ext 58834 LIBS=$ac_check_lib_save_LIBS 58835 fi 58836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 58837 $as_echo "$ac_cv_lib_socket_connect" >&6; } 58838 if test "x$ac_cv_lib_socket_connect" = xyes; then : 58839 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 58840 fi 58841 58842 fi 58843 58844 # Guillermo Gomez says -lposix is necessary on A/UX. 58845 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 58846 if test "x$ac_cv_func_remove" = xyes; then : 58847 58848 fi 58849 58850 if test $ac_cv_func_remove = no; then 58851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 58852 $as_echo_n "checking for remove in -lposix... " >&6; } 58853 if ${ac_cv_lib_posix_remove+:} false; then : 58854 $as_echo_n "(cached) " >&6 58855 else 58856 ac_check_lib_save_LIBS=$LIBS 58857 LIBS="-lposix $LIBS" 58858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58859 /* end confdefs.h. */ 58860 58861 /* Override any GCC internal prototype to avoid an error. 58862 Use char because int might match the return type of a GCC 58863 builtin and then its argument prototype would still apply. */ 58864 #ifdef __cplusplus 58865 extern "C" 58866 #endif 58867 char remove (); 58868 int 58869 main () 58870 { 58871 return remove (); 58872 ; 58873 return 0; 58874 } 58875 _ACEOF 58876 if ac_fn_cxx_try_link "$LINENO"; then : 58877 ac_cv_lib_posix_remove=yes 58878 else 58879 ac_cv_lib_posix_remove=no 58880 fi 58881 rm -f core conftest.err conftest.$ac_objext \ 58882 conftest$ac_exeext conftest.$ac_ext 58883 LIBS=$ac_check_lib_save_LIBS 58884 fi 58885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 58886 $as_echo "$ac_cv_lib_posix_remove" >&6; } 58887 if test "x$ac_cv_lib_posix_remove" = xyes; then : 58888 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 58889 fi 58890 58891 fi 58892 58893 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 58894 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 58895 if test "x$ac_cv_func_shmat" = xyes; then : 58896 58897 fi 58898 58899 if test $ac_cv_func_shmat = no; then 58900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 58901 $as_echo_n "checking for shmat in -lipc... " >&6; } 58902 if ${ac_cv_lib_ipc_shmat+:} false; then : 58903 $as_echo_n "(cached) " >&6 58904 else 58905 ac_check_lib_save_LIBS=$LIBS 58906 LIBS="-lipc $LIBS" 58907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58908 /* end confdefs.h. */ 58909 58910 /* Override any GCC internal prototype to avoid an error. 58911 Use char because int might match the return type of a GCC 58912 builtin and then its argument prototype would still apply. */ 58913 #ifdef __cplusplus 58914 extern "C" 58915 #endif 58916 char shmat (); 58917 int 58918 main () 58919 { 58920 return shmat (); 58921 ; 58922 return 0; 58923 } 58924 _ACEOF 58925 if ac_fn_cxx_try_link "$LINENO"; then : 58926 ac_cv_lib_ipc_shmat=yes 58927 else 58928 ac_cv_lib_ipc_shmat=no 58929 fi 58930 rm -f core conftest.err conftest.$ac_objext \ 58931 conftest$ac_exeext conftest.$ac_ext 58932 LIBS=$ac_check_lib_save_LIBS 58933 fi 58934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 58935 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 58936 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 58937 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 58938 fi 58939 58940 fi 58941 fi 58942 58943 # Check for libraries that X11R6 Xt/Xaw programs need. 58944 ac_save_LDFLAGS=$LDFLAGS 58945 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 58946 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 58947 # check for ICE first), but we must link in the order -lSM -lICE or 58948 # we get undefined symbols. So assume we have SM if we have ICE. 58949 # These have to be linked with before -lX11, unlike the other 58950 # libraries we check for below, so use a different variable. 58951 # John Interrante, Karl Berry 58952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 58953 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 58954 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 58955 $as_echo_n "(cached) " >&6 58956 else 58957 ac_check_lib_save_LIBS=$LIBS 58958 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 58959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58960 /* end confdefs.h. */ 58961 58962 /* Override any GCC internal prototype to avoid an error. 58963 Use char because int might match the return type of a GCC 58964 builtin and then its argument prototype would still apply. */ 58965 #ifdef __cplusplus 58966 extern "C" 58967 #endif 58968 char IceConnectionNumber (); 58969 int 58970 main () 58971 { 58972 return IceConnectionNumber (); 58973 ; 58974 return 0; 58975 } 58976 _ACEOF 58977 if ac_fn_cxx_try_link "$LINENO"; then : 58978 ac_cv_lib_ICE_IceConnectionNumber=yes 58979 else 58980 ac_cv_lib_ICE_IceConnectionNumber=no 58981 fi 58982 rm -f core conftest.err conftest.$ac_objext \ 58983 conftest$ac_exeext conftest.$ac_ext 58984 LIBS=$ac_check_lib_save_LIBS 58985 fi 58986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 58987 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 58988 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 58989 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 58990 fi 58991 58992 LDFLAGS=$ac_save_LDFLAGS 58993 58994 fi 58995 58996 58997 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 58998 # this doesn't make sense so we remove it. 58999 if test "x$COMPILE_TYPE" = xcross; then 59000 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 59001 fi 59002 59003 if test "x$no_x" = xyes; then 59004 59005 # Print a helpful message on how to acquire the necessary build dependency. 59006 # x11 is the help tag: freetype, cups, alsa etc 59007 MISSING_DEPENDENCY=x11 59008 59009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59010 cygwin_help $MISSING_DEPENDENCY 59011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59012 msys_help $MISSING_DEPENDENCY 59013 else 59014 PKGHANDLER_COMMAND= 59015 59016 case $PKGHANDLER in 59017 apt-get) 59018 apt_help $MISSING_DEPENDENCY ;; 59019 yum) 59020 yum_help $MISSING_DEPENDENCY ;; 59021 brew) 59022 brew_help $MISSING_DEPENDENCY ;; 59023 port) 59024 port_help $MISSING_DEPENDENCY ;; 59025 pkgutil) 59026 pkgutil_help $MISSING_DEPENDENCY ;; 59027 pkgadd) 59028 pkgadd_help $MISSING_DEPENDENCY ;; 59029 esac 59030 59031 if test "x$PKGHANDLER_COMMAND" != x; then 59032 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59033 fi 59034 fi 59035 59036 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 59037 fi 59038 59039 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 59040 OPENWIN_HOME="/usr/openwin" 59041 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 59042 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 59043 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 59044 fi 59045 59046 ac_ext=c 59047 ac_cpp='$CPP $CPPFLAGS' 59048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 59049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 59050 ac_compiler_gnu=$ac_cv_c_compiler_gnu 59051 59052 OLD_CFLAGS="$CFLAGS" 59053 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 59054 59055 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 59056 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 59057 do : 59058 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 59059 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 59060 # include <X11/Xlib.h> 59061 # include <X11/Xutil.h> 59062 59063 59064 " 59065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 59066 cat >>confdefs.h <<_ACEOF 59067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 59068 _ACEOF 59069 X11_HEADERS_OK=yes 59070 else 59071 X11_HEADERS_OK=no; break 59072 fi 59073 59074 done 59075 59076 59077 if test "x$X11_HEADERS_OK" = xno; then 59078 59079 # Print a helpful message on how to acquire the necessary build dependency. 59080 # x11 is the help tag: freetype, cups, alsa etc 59081 MISSING_DEPENDENCY=x11 59082 59083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59084 cygwin_help $MISSING_DEPENDENCY 59085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59086 msys_help $MISSING_DEPENDENCY 59087 else 59088 PKGHANDLER_COMMAND= 59089 59090 case $PKGHANDLER in 59091 apt-get) 59092 apt_help $MISSING_DEPENDENCY ;; 59093 yum) 59094 yum_help $MISSING_DEPENDENCY ;; 59095 brew) 59096 brew_help $MISSING_DEPENDENCY ;; 59097 port) 59098 port_help $MISSING_DEPENDENCY ;; 59099 pkgutil) 59100 pkgutil_help $MISSING_DEPENDENCY ;; 59101 pkgadd) 59102 pkgadd_help $MISSING_DEPENDENCY ;; 59103 esac 59104 59105 if test "x$PKGHANDLER_COMMAND" != x; then 59106 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59107 fi 59108 fi 59109 59110 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 59111 fi 59112 59113 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 59114 # defined in libawt_xawt. 59115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 59116 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 59117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59118 /* end confdefs.h. */ 59119 #include <X11/extensions/Xrender.h> 59120 int 59121 main () 59122 { 59123 XLinearGradient x; 59124 ; 59125 return 0; 59126 } 59127 _ACEOF 59128 if ac_fn_c_try_compile "$LINENO"; then : 59129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 59130 $as_echo "yes" >&6; } 59131 else 59132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59133 $as_echo "no" >&6; } 59134 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 59135 fi 59136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59137 59138 CFLAGS="$OLD_CFLAGS" 59139 ac_ext=cpp 59140 ac_cpp='$CXXCPP $CPPFLAGS' 59141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 59142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 59143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 59144 59145 fi # NEEDS_LIB_X11 59146 59147 59148 59149 59150 59151 59152 # Check whether --with-cups was given. 59153 if test "${with_cups+set}" = set; then : 59154 withval=$with_cups; 59155 fi 59156 59157 59158 # Check whether --with-cups-include was given. 59159 if test "${with_cups_include+set}" = set; then : 59160 withval=$with_cups_include; 59161 fi 59162 59163 59164 if test "x$NEEDS_LIB_CUPS" = xfalse; then 59165 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 59166 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 59167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 59168 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 59169 fi 59170 CUPS_CFLAGS= 59171 else 59172 CUPS_FOUND=no 59173 59174 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 59175 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 59176 fi 59177 59178 if test "x${with_cups}" != x; then 59179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 59180 $as_echo_n "checking for cups headers... " >&6; } 59181 if test -s "${with_cups}/include/cups/cups.h"; then 59182 CUPS_CFLAGS="-I${with_cups}/include" 59183 CUPS_FOUND=yes 59184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 59185 $as_echo "$CUPS_FOUND" >&6; } 59186 else 59187 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 59188 fi 59189 fi 59190 if test "x${with_cups_include}" != x; then 59191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 59192 $as_echo_n "checking for cups headers... " >&6; } 59193 if test -s "${with_cups_include}/cups/cups.h"; then 59194 CUPS_CFLAGS="-I${with_cups_include}" 59195 CUPS_FOUND=yes 59196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 59197 $as_echo "$CUPS_FOUND" >&6; } 59198 else 59199 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 59200 fi 59201 fi 59202 if test "x$CUPS_FOUND" = xno; then 59203 # Are the cups headers installed in the default /usr/include location? 59204 for ac_header in cups/cups.h cups/ppd.h 59205 do : 59206 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 59207 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 59208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 59209 cat >>confdefs.h <<_ACEOF 59210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 59211 _ACEOF 59212 59213 CUPS_FOUND=yes 59214 CUPS_CFLAGS= 59215 DEFAULT_CUPS=yes 59216 59217 fi 59218 59219 done 59220 59221 fi 59222 if test "x$CUPS_FOUND" = xno; then 59223 59224 # Print a helpful message on how to acquire the necessary build dependency. 59225 # cups is the help tag: freetype, cups, alsa etc 59226 MISSING_DEPENDENCY=cups 59227 59228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59229 cygwin_help $MISSING_DEPENDENCY 59230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59231 msys_help $MISSING_DEPENDENCY 59232 else 59233 PKGHANDLER_COMMAND= 59234 59235 case $PKGHANDLER in 59236 apt-get) 59237 apt_help $MISSING_DEPENDENCY ;; 59238 yum) 59239 yum_help $MISSING_DEPENDENCY ;; 59240 brew) 59241 brew_help $MISSING_DEPENDENCY ;; 59242 port) 59243 port_help $MISSING_DEPENDENCY ;; 59244 pkgutil) 59245 pkgutil_help $MISSING_DEPENDENCY ;; 59246 pkgadd) 59247 pkgadd_help $MISSING_DEPENDENCY ;; 59248 esac 59249 59250 if test "x$PKGHANDLER_COMMAND" != x; then 59251 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59252 fi 59253 fi 59254 59255 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 59256 fi 59257 fi 59258 59259 59260 59261 59262 59263 # Check whether --with-fontconfig was given. 59264 if test "${with_fontconfig+set}" = set; then : 59265 withval=$with_fontconfig; 59266 fi 59267 59268 59269 # Check whether --with-fontconfig-include was given. 59270 if test "${with_fontconfig_include+set}" = set; then : 59271 withval=$with_fontconfig_include; 59272 fi 59273 59274 59275 if test "x$NEEDS_LIB_FONTCONFIG" = xfalse; then 59276 if (test "x${with_fontconfig}" != x && test "x${with_fontconfig}" != xno) || \ 59277 (test "x${with_fontconfig_include}" != x && test "x${with_fontconfig_include}" != xno); then 59278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&5 59279 $as_echo "$as_me: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&2;} 59280 fi 59281 FONTCONFIG_CFLAGS= 59282 else 59283 FONTCONFIG_FOUND=no 59284 59285 if test "x${with_fontconfig}" = xno || test "x${with_fontconfig_include}" = xno; then 59286 as_fn_error $? "It is not possible to disable the use of fontconfig. Remove the --without-fontconfig option." "$LINENO" 5 59287 fi 59288 59289 if test "x${with_fontconfig}" != x; then 59290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 59291 $as_echo_n "checking for fontconfig headers... " >&6; } 59292 if test -s "${with_fontconfig}/include/fontconfig/fontconfig.h"; then 59293 FONTCONFIG_CFLAGS="-I${with_fontconfig}/include" 59294 FONTCONFIG_FOUND=yes 59295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 59296 $as_echo "$FONTCONFIG_FOUND" >&6; } 59297 else 59298 as_fn_error $? "Can't find 'include/fontconfig/fontconfig.h' under ${with_fontconfig} given with the --with-fontconfig option." "$LINENO" 5 59299 fi 59300 fi 59301 if test "x${with_fontconfig_include}" != x; then 59302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 59303 $as_echo_n "checking for fontconfig headers... " >&6; } 59304 if test -s "${with_fontconfig_include}/fontconfig/fontconfig.h"; then 59305 FONTCONFIG_CFLAGS="-I${with_fontconfig_include}" 59306 FONTCONFIG_FOUND=yes 59307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 59308 $as_echo "$FONTCONFIG_FOUND" >&6; } 59309 else 59310 as_fn_error $? "Can't find 'fontconfig/fontconfig.h' under ${with_fontconfig_include} given with the --with-fontconfig-include option." "$LINENO" 5 59311 fi 59312 fi 59313 if test "x$FONTCONFIG_FOUND" = xno; then 59314 # Are the fontconfig headers installed in the default /usr/include location? 59315 for ac_header in fontconfig/fontconfig.h 59316 do : 59317 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" 59318 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : 59319 cat >>confdefs.h <<_ACEOF 59320 #define HAVE_FONTCONFIG_FONTCONFIG_H 1 59321 _ACEOF 59322 59323 FONTCONFIG_FOUND=yes 59324 FONTCONFIG_CFLAGS= 59325 DEFAULT_FONTCONFIG=yes 59326 59327 fi 59328 59329 done 59330 59331 fi 59332 if test "x$FONTCONFIG_FOUND" = xno; then 59333 59334 # Print a helpful message on how to acquire the necessary build dependency. 59335 # fontconfig is the help tag: freetype, cups, alsa etc 59336 MISSING_DEPENDENCY=fontconfig 59337 59338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59339 cygwin_help $MISSING_DEPENDENCY 59340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59341 msys_help $MISSING_DEPENDENCY 59342 else 59343 PKGHANDLER_COMMAND= 59344 59345 case $PKGHANDLER in 59346 apt-get) 59347 apt_help $MISSING_DEPENDENCY ;; 59348 yum) 59349 yum_help $MISSING_DEPENDENCY ;; 59350 brew) 59351 brew_help $MISSING_DEPENDENCY ;; 59352 port) 59353 port_help $MISSING_DEPENDENCY ;; 59354 pkgutil) 59355 pkgutil_help $MISSING_DEPENDENCY ;; 59356 pkgadd) 59357 pkgadd_help $MISSING_DEPENDENCY ;; 59358 esac 59359 59360 if test "x$PKGHANDLER_COMMAND" != x; then 59361 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59362 fi 59363 fi 59364 59365 as_fn_error $? "Could not find fontconfig! $HELP_MSG " "$LINENO" 5 59366 fi 59367 fi 59368 59369 59370 59371 59372 59373 # Check whether --with-freetype was given. 59374 if test "${with_freetype+set}" = set; then : 59375 withval=$with_freetype; 59376 fi 59377 59378 59379 # Check whether --with-freetype-include was given. 59380 if test "${with_freetype_include+set}" = set; then : 59381 withval=$with_freetype_include; 59382 fi 59383 59384 59385 # Check whether --with-freetype-lib was given. 59386 if test "${with_freetype_lib+set}" = set; then : 59387 withval=$with_freetype_lib; 59388 fi 59389 59390 59391 # Check whether --with-freetype-src was given. 59392 if test "${with_freetype_src+set}" = set; then : 59393 withval=$with_freetype_src; 59394 fi 59395 59396 # Check whether --enable-freetype-bundling was given. 59397 if test "${enable_freetype_bundling+set}" = set; then : 59398 enableval=$enable_freetype_bundling; 59399 fi 59400 59401 59402 # Check whether --with-freetype-license was given. 59403 if test "${with_freetype_license+set}" = set; then : 59404 withval=$with_freetype_license; 59405 fi 59406 59407 59408 # Need to specify explicitly since it needs to be overridden on some versions of macosx 59409 FREETYPE_BASE_NAME=freetype 59410 FREETYPE_CFLAGS= 59411 FREETYPE_LIBS= 59412 FREETYPE_BUNDLE_LIB_PATH= 59413 59414 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 59415 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 59416 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 59417 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 59418 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 59419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 59420 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 59421 fi 59422 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 59423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 59424 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 59425 fi 59426 else 59427 # freetype is needed to build; go get it! 59428 59429 BUNDLE_FREETYPE="$enable_freetype_bundling" 59430 59431 if test "x$with_freetype_src" != x; then 59432 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59433 # Try to build freetype if --with-freetype-src was given on Windows 59434 59435 FREETYPE_SRC_PATH="$with_freetype_src" 59436 BUILD_FREETYPE=yes 59437 59438 # Check if the freetype sources are acessible.. 59439 if ! test -d $FREETYPE_SRC_PATH; then 59440 { $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 59441 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59442 BUILD_FREETYPE=no 59443 fi 59444 # ..and contain a vc2010 project file 59445 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59446 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59447 { $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 59448 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59449 BUILD_FREETYPE=no 59450 fi 59451 # Now check if configure found a version of 'msbuild.exe' 59452 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59453 { $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 59454 $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;} 59455 BUILD_FREETYPE=no 59456 fi 59457 59458 # Ready to go.. 59459 if test "x$BUILD_FREETYPE" = xyes; then 59460 # msbuild requires trailing slashes for output directories 59461 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59462 freetype_lib_path_unix="$freetype_lib_path" 59463 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59464 59465 unix_path="$vcxproj_path" 59466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59467 windows_path=`$CYGPATH -m "$unix_path"` 59468 vcxproj_path="$windows_path" 59469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59470 windows_path=`cmd //c echo $unix_path` 59471 vcxproj_path="$windows_path" 59472 fi 59473 59474 59475 unix_path="$freetype_lib_path" 59476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59477 windows_path=`$CYGPATH -m "$unix_path"` 59478 freetype_lib_path="$windows_path" 59479 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59480 windows_path=`cmd //c echo $unix_path` 59481 freetype_lib_path="$windows_path" 59482 fi 59483 59484 59485 unix_path="$freetype_obj_path" 59486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59487 windows_path=`$CYGPATH -m "$unix_path"` 59488 freetype_obj_path="$windows_path" 59489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59490 windows_path=`cmd //c echo $unix_path` 59491 freetype_obj_path="$windows_path" 59492 fi 59493 59494 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59495 freetype_platform=x64 59496 else 59497 freetype_platform=win32 59498 fi 59499 59500 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59501 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59502 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59503 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59504 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59505 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59506 59507 # First we try to build the freetype.dll 59508 $ECHO -e "@echo off\n"\ 59509 "$MSBUILD $vcxproj_path "\ 59510 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59511 "/p:Configuration=\"Release Multithreaded\" "\ 59512 "/p:Platform=$freetype_platform "\ 59513 "/p:ConfigurationType=DynamicLibrary "\ 59514 "/p:TargetName=freetype "\ 59515 "/p:OutDir=\"$freetype_lib_path\" "\ 59516 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59517 cmd /c freetype.bat 59518 59519 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59520 # If that succeeds we also build freetype.lib 59521 $ECHO -e "@echo off\n"\ 59522 "$MSBUILD $vcxproj_path "\ 59523 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59524 "/p:Configuration=\"Release Multithreaded\" "\ 59525 "/p:Platform=$freetype_platform "\ 59526 "/p:ConfigurationType=StaticLibrary "\ 59527 "/p:TargetName=freetype "\ 59528 "/p:OutDir=\"$freetype_lib_path\" "\ 59529 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59530 cmd /c freetype.bat 59531 59532 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59533 # Once we build both, lib and dll, set freetype lib and include path appropriately 59534 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59535 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59536 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59537 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59538 else 59539 BUILD_FREETYPE=no 59540 fi 59541 else 59542 BUILD_FREETYPE=no 59543 fi 59544 fi 59545 59546 if test "x$BUILD_FREETYPE" = xyes; then 59547 # Okay, we built it. Check that it works. 59548 59549 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59550 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59551 METHOD="--with-freetype-src" 59552 59553 # Let's start with an optimistic view of the world :-) 59554 FOUND_FREETYPE=yes 59555 59556 # First look for the canonical freetype main include file ft2build.h. 59557 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59558 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59559 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59560 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59561 # Fail. 59562 FOUND_FREETYPE=no 59563 fi 59564 fi 59565 59566 if test "x$FOUND_FREETYPE" = xyes; then 59567 # Include file found, let's continue the sanity check. 59568 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59569 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59570 59571 # Reset to default value 59572 FREETYPE_BASE_NAME=freetype 59573 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59574 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59575 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59576 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59577 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59578 # for the .6 version explicitly. 59579 FREETYPE_BASE_NAME=freetype.6 59580 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59581 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59582 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59583 else 59584 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59585 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59586 FOUND_FREETYPE=no 59587 fi 59588 else 59589 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59590 # On Windows, we will need both .lib and .dll file. 59591 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59592 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59593 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59594 FOUND_FREETYPE=no 59595 fi 59596 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59597 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59598 # Found lib in isa dir, use that instead. 59599 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59600 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59601 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59602 fi 59603 fi 59604 fi 59605 59606 if test "x$FOUND_FREETYPE" = xyes; then 59607 59608 # Only process if variable expands to non-empty 59609 59610 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59612 59613 # Input might be given as Windows format, start by converting to 59614 # unix format. 59615 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59616 new_path=`$CYGPATH -u "$path"` 59617 59618 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59619 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59620 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59621 # "foo.exe" is OK but "foo" is an error. 59622 # 59623 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59624 # It is also a way to make sure we got the proper file name for the real test later on. 59625 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59626 if test "x$test_shortpath" = x; then 59627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59628 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59629 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59630 fi 59631 59632 # Call helper function which possibly converts this using DOS-style short mode. 59633 # If so, the updated path is stored in $new_path. 59634 59635 input_path="$new_path" 59636 # Check if we need to convert this using DOS-style short mode. If the path 59637 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59638 # take no chances and rewrite it. 59639 # Note: m4 eats our [], so we need to use [ and ] instead. 59640 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59641 if test "x$has_forbidden_chars" != x; then 59642 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59643 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59644 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59645 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59646 # Going to short mode and back again did indeed matter. Since short mode is 59647 # case insensitive, let's make it lowercase to improve readability. 59648 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59649 # Now convert it back to Unix-style (cygpath) 59650 input_path=`$CYGPATH -u "$shortmode_path"` 59651 new_path="$input_path" 59652 fi 59653 fi 59654 59655 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59656 if test "x$test_cygdrive_prefix" = x; then 59657 # As a simple fix, exclude /usr/bin since it's not a real path. 59658 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59659 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59660 # a path prefixed by /cygdrive for fixpath to work. 59661 new_path="$CYGWIN_ROOT_PATH$input_path" 59662 fi 59663 fi 59664 59665 59666 if test "x$path" != "x$new_path"; then 59667 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59668 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59669 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59670 fi 59671 59672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59673 59674 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59675 has_colon=`$ECHO $path | $GREP ^.:` 59676 new_path="$path" 59677 if test "x$has_colon" = x; then 59678 # Not in mixed or Windows style, start by that. 59679 new_path=`cmd //c echo $path` 59680 fi 59681 59682 59683 input_path="$new_path" 59684 # Check if we need to convert this using DOS-style short mode. If the path 59685 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59686 # take no chances and rewrite it. 59687 # Note: m4 eats our [], so we need to use [ and ] instead. 59688 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59689 if test "x$has_forbidden_chars" != x; then 59690 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59691 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59692 fi 59693 59694 59695 windows_path="$new_path" 59696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59697 unix_path=`$CYGPATH -u "$windows_path"` 59698 new_path="$unix_path" 59699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59700 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59701 new_path="$unix_path" 59702 fi 59703 59704 if test "x$path" != "x$new_path"; then 59705 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59706 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59707 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59708 fi 59709 59710 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59711 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59712 59713 else 59714 # We're on a unix platform. Hooray! :) 59715 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59716 has_space=`$ECHO "$path" | $GREP " "` 59717 if test "x$has_space" != x; then 59718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59719 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59720 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59721 fi 59722 59723 # Use eval to expand a potential ~ 59724 eval path="$path" 59725 if test ! -f "$path" && test ! -d "$path"; then 59726 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59727 fi 59728 59729 if test -d "$path"; then 59730 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59731 else 59732 dir="`$DIRNAME "$path"`" 59733 base="`$BASENAME "$path"`" 59734 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59735 fi 59736 fi 59737 fi 59738 59739 59740 # Only process if variable expands to non-empty 59741 59742 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59743 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59744 59745 # Input might be given as Windows format, start by converting to 59746 # unix format. 59747 path="$POTENTIAL_FREETYPE_LIB_PATH" 59748 new_path=`$CYGPATH -u "$path"` 59749 59750 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59751 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59752 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59753 # "foo.exe" is OK but "foo" is an error. 59754 # 59755 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59756 # It is also a way to make sure we got the proper file name for the real test later on. 59757 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59758 if test "x$test_shortpath" = x; then 59759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59760 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59761 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59762 fi 59763 59764 # Call helper function which possibly converts this using DOS-style short mode. 59765 # If so, the updated path is stored in $new_path. 59766 59767 input_path="$new_path" 59768 # Check if we need to convert this using DOS-style short mode. If the path 59769 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59770 # take no chances and rewrite it. 59771 # Note: m4 eats our [], so we need to use [ and ] instead. 59772 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59773 if test "x$has_forbidden_chars" != x; then 59774 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59775 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59776 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59777 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59778 # Going to short mode and back again did indeed matter. Since short mode is 59779 # case insensitive, let's make it lowercase to improve readability. 59780 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59781 # Now convert it back to Unix-style (cygpath) 59782 input_path=`$CYGPATH -u "$shortmode_path"` 59783 new_path="$input_path" 59784 fi 59785 fi 59786 59787 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59788 if test "x$test_cygdrive_prefix" = x; then 59789 # As a simple fix, exclude /usr/bin since it's not a real path. 59790 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59791 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59792 # a path prefixed by /cygdrive for fixpath to work. 59793 new_path="$CYGWIN_ROOT_PATH$input_path" 59794 fi 59795 fi 59796 59797 59798 if test "x$path" != "x$new_path"; then 59799 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59800 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59801 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59802 fi 59803 59804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59805 59806 path="$POTENTIAL_FREETYPE_LIB_PATH" 59807 has_colon=`$ECHO $path | $GREP ^.:` 59808 new_path="$path" 59809 if test "x$has_colon" = x; then 59810 # Not in mixed or Windows style, start by that. 59811 new_path=`cmd //c echo $path` 59812 fi 59813 59814 59815 input_path="$new_path" 59816 # Check if we need to convert this using DOS-style short mode. If the path 59817 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59818 # take no chances and rewrite it. 59819 # Note: m4 eats our [], so we need to use [ and ] instead. 59820 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59821 if test "x$has_forbidden_chars" != x; then 59822 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59823 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59824 fi 59825 59826 59827 windows_path="$new_path" 59828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59829 unix_path=`$CYGPATH -u "$windows_path"` 59830 new_path="$unix_path" 59831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59832 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59833 new_path="$unix_path" 59834 fi 59835 59836 if test "x$path" != "x$new_path"; then 59837 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59838 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59839 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59840 fi 59841 59842 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59843 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59844 59845 else 59846 # We're on a unix platform. Hooray! :) 59847 path="$POTENTIAL_FREETYPE_LIB_PATH" 59848 has_space=`$ECHO "$path" | $GREP " "` 59849 if test "x$has_space" != x; then 59850 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59851 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59852 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59853 fi 59854 59855 # Use eval to expand a potential ~ 59856 eval path="$path" 59857 if test ! -f "$path" && test ! -d "$path"; then 59858 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59859 fi 59860 59861 if test -d "$path"; then 59862 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59863 else 59864 dir="`$DIRNAME "$path"`" 59865 base="`$BASENAME "$path"`" 59866 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59867 fi 59868 fi 59869 fi 59870 59871 59872 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59874 $as_echo_n "checking for freetype includes... " >&6; } 59875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59876 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59877 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59879 $as_echo_n "checking for freetype libraries... " >&6; } 59880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59881 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59882 fi 59883 59884 if test "x$FOUND_FREETYPE" != xyes; then 59885 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 59886 fi 59887 else 59888 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 59889 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 59890 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 59891 fi 59892 else 59893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 59894 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 59895 fi 59896 fi 59897 59898 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 59899 # User has specified settings 59900 59901 if test "x$BUNDLE_FREETYPE" = x; then 59902 # If not specified, default is to bundle freetype 59903 BUNDLE_FREETYPE=yes 59904 fi 59905 59906 if test "x$with_freetype" != x; then 59907 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 59908 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 59909 fi 59910 59911 # Allow --with-freetype-lib and --with-freetype-include to override 59912 if test "x$with_freetype_include" != x; then 59913 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 59914 fi 59915 if test "x$with_freetype_lib" != x; then 59916 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 59917 fi 59918 59919 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59920 # Okay, we got it. Check that it works. 59921 59922 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59923 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59924 METHOD="--with-freetype" 59925 59926 # Let's start with an optimistic view of the world :-) 59927 FOUND_FREETYPE=yes 59928 59929 # First look for the canonical freetype main include file ft2build.h. 59930 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59931 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59932 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59933 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59934 # Fail. 59935 FOUND_FREETYPE=no 59936 fi 59937 fi 59938 59939 if test "x$FOUND_FREETYPE" = xyes; then 59940 # Include file found, let's continue the sanity check. 59941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59942 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59943 59944 # Reset to default value 59945 FREETYPE_BASE_NAME=freetype 59946 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59947 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59948 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59949 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59950 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59951 # for the .6 version explicitly. 59952 FREETYPE_BASE_NAME=freetype.6 59953 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59954 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59955 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59956 else 59957 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59958 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59959 FOUND_FREETYPE=no 59960 fi 59961 else 59962 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59963 # On Windows, we will need both .lib and .dll file. 59964 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59965 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59966 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59967 FOUND_FREETYPE=no 59968 fi 59969 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59970 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59971 # Found lib in isa dir, use that instead. 59972 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59973 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59974 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59975 fi 59976 fi 59977 fi 59978 59979 if test "x$FOUND_FREETYPE" = xyes; then 59980 59981 # Only process if variable expands to non-empty 59982 59983 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59985 59986 # Input might be given as Windows format, start by converting to 59987 # unix format. 59988 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59989 new_path=`$CYGPATH -u "$path"` 59990 59991 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59992 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59993 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59994 # "foo.exe" is OK but "foo" is an error. 59995 # 59996 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59997 # It is also a way to make sure we got the proper file name for the real test later on. 59998 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59999 if test "x$test_shortpath" = x; then 60000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60001 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60002 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60003 fi 60004 60005 # Call helper function which possibly converts this using DOS-style short mode. 60006 # If so, the updated path is stored in $new_path. 60007 60008 input_path="$new_path" 60009 # Check if we need to convert this using DOS-style short mode. If the path 60010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60011 # take no chances and rewrite it. 60012 # Note: m4 eats our [], so we need to use [ and ] instead. 60013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60014 if test "x$has_forbidden_chars" != x; then 60015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60016 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60017 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60018 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60019 # Going to short mode and back again did indeed matter. Since short mode is 60020 # case insensitive, let's make it lowercase to improve readability. 60021 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60022 # Now convert it back to Unix-style (cygpath) 60023 input_path=`$CYGPATH -u "$shortmode_path"` 60024 new_path="$input_path" 60025 fi 60026 fi 60027 60028 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60029 if test "x$test_cygdrive_prefix" = x; then 60030 # As a simple fix, exclude /usr/bin since it's not a real path. 60031 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60032 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60033 # a path prefixed by /cygdrive for fixpath to work. 60034 new_path="$CYGWIN_ROOT_PATH$input_path" 60035 fi 60036 fi 60037 60038 60039 if test "x$path" != "x$new_path"; then 60040 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60042 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60043 fi 60044 60045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60046 60047 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60048 has_colon=`$ECHO $path | $GREP ^.:` 60049 new_path="$path" 60050 if test "x$has_colon" = x; then 60051 # Not in mixed or Windows style, start by that. 60052 new_path=`cmd //c echo $path` 60053 fi 60054 60055 60056 input_path="$new_path" 60057 # Check if we need to convert this using DOS-style short mode. If the path 60058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60059 # take no chances and rewrite it. 60060 # Note: m4 eats our [], so we need to use [ and ] instead. 60061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60062 if test "x$has_forbidden_chars" != x; then 60063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60064 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60065 fi 60066 60067 60068 windows_path="$new_path" 60069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60070 unix_path=`$CYGPATH -u "$windows_path"` 60071 new_path="$unix_path" 60072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60073 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60074 new_path="$unix_path" 60075 fi 60076 60077 if test "x$path" != "x$new_path"; then 60078 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60080 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60081 fi 60082 60083 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60084 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60085 60086 else 60087 # We're on a unix platform. Hooray! :) 60088 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60089 has_space=`$ECHO "$path" | $GREP " "` 60090 if test "x$has_space" != x; then 60091 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60092 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60093 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60094 fi 60095 60096 # Use eval to expand a potential ~ 60097 eval path="$path" 60098 if test ! -f "$path" && test ! -d "$path"; then 60099 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60100 fi 60101 60102 if test -d "$path"; then 60103 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60104 else 60105 dir="`$DIRNAME "$path"`" 60106 base="`$BASENAME "$path"`" 60107 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60108 fi 60109 fi 60110 fi 60111 60112 60113 # Only process if variable expands to non-empty 60114 60115 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60117 60118 # Input might be given as Windows format, start by converting to 60119 # unix format. 60120 path="$POTENTIAL_FREETYPE_LIB_PATH" 60121 new_path=`$CYGPATH -u "$path"` 60122 60123 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60124 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60125 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60126 # "foo.exe" is OK but "foo" is an error. 60127 # 60128 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60129 # It is also a way to make sure we got the proper file name for the real test later on. 60130 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60131 if test "x$test_shortpath" = x; then 60132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60133 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60134 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60135 fi 60136 60137 # Call helper function which possibly converts this using DOS-style short mode. 60138 # If so, the updated path is stored in $new_path. 60139 60140 input_path="$new_path" 60141 # Check if we need to convert this using DOS-style short mode. If the path 60142 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60143 # take no chances and rewrite it. 60144 # Note: m4 eats our [], so we need to use [ and ] instead. 60145 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60146 if test "x$has_forbidden_chars" != x; then 60147 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60148 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60149 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60150 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60151 # Going to short mode and back again did indeed matter. Since short mode is 60152 # case insensitive, let's make it lowercase to improve readability. 60153 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60154 # Now convert it back to Unix-style (cygpath) 60155 input_path=`$CYGPATH -u "$shortmode_path"` 60156 new_path="$input_path" 60157 fi 60158 fi 60159 60160 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60161 if test "x$test_cygdrive_prefix" = x; then 60162 # As a simple fix, exclude /usr/bin since it's not a real path. 60163 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60164 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60165 # a path prefixed by /cygdrive for fixpath to work. 60166 new_path="$CYGWIN_ROOT_PATH$input_path" 60167 fi 60168 fi 60169 60170 60171 if test "x$path" != "x$new_path"; then 60172 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60173 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60174 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60175 fi 60176 60177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60178 60179 path="$POTENTIAL_FREETYPE_LIB_PATH" 60180 has_colon=`$ECHO $path | $GREP ^.:` 60181 new_path="$path" 60182 if test "x$has_colon" = x; then 60183 # Not in mixed or Windows style, start by that. 60184 new_path=`cmd //c echo $path` 60185 fi 60186 60187 60188 input_path="$new_path" 60189 # Check if we need to convert this using DOS-style short mode. If the path 60190 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60191 # take no chances and rewrite it. 60192 # Note: m4 eats our [], so we need to use [ and ] instead. 60193 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60194 if test "x$has_forbidden_chars" != x; then 60195 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60196 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60197 fi 60198 60199 60200 windows_path="$new_path" 60201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60202 unix_path=`$CYGPATH -u "$windows_path"` 60203 new_path="$unix_path" 60204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60205 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60206 new_path="$unix_path" 60207 fi 60208 60209 if test "x$path" != "x$new_path"; then 60210 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60212 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60213 fi 60214 60215 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60216 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60217 60218 else 60219 # We're on a unix platform. Hooray! :) 60220 path="$POTENTIAL_FREETYPE_LIB_PATH" 60221 has_space=`$ECHO "$path" | $GREP " "` 60222 if test "x$has_space" != x; then 60223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60224 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60225 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60226 fi 60227 60228 # Use eval to expand a potential ~ 60229 eval path="$path" 60230 if test ! -f "$path" && test ! -d "$path"; then 60231 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60232 fi 60233 60234 if test -d "$path"; then 60235 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60236 else 60237 dir="`$DIRNAME "$path"`" 60238 base="`$BASENAME "$path"`" 60239 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60240 fi 60241 fi 60242 fi 60243 60244 60245 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60247 $as_echo_n "checking for freetype includes... " >&6; } 60248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60249 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60250 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60252 $as_echo_n "checking for freetype libraries... " >&6; } 60253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60254 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60255 fi 60256 60257 if test "x$FOUND_FREETYPE" != xyes; then 60258 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 60259 fi 60260 else 60261 # User specified only one of lib or include. This is an error. 60262 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 60263 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 60264 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 60265 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 60266 else 60267 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 60268 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 60269 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 60270 fi 60271 fi 60272 else 60273 # User did not specify settings, but we need freetype. Try to locate it. 60274 60275 if test "x$BUNDLE_FREETYPE" = x; then 60276 # If not specified, default is to bundle freetype only on windows 60277 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60278 BUNDLE_FREETYPE=yes 60279 else 60280 BUNDLE_FREETYPE=no 60281 fi 60282 fi 60283 60284 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 60285 if test "x$SYSROOT" = x; then 60286 if test "x$FOUND_FREETYPE" != xyes; then 60287 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 60288 if test "x$PKG_CONFIG" != x; then 60289 60290 pkg_failed=no 60291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 60292 $as_echo_n "checking for FREETYPE... " >&6; } 60293 60294 if test -n "$FREETYPE_CFLAGS"; then 60295 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 60296 elif test -n "$PKG_CONFIG"; then 60297 if test -n "$PKG_CONFIG" && \ 60298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 60299 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 60300 ac_status=$? 60301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 60302 test $ac_status = 0; }; then 60303 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 60304 else 60305 pkg_failed=yes 60306 fi 60307 else 60308 pkg_failed=untried 60309 fi 60310 if test -n "$FREETYPE_LIBS"; then 60311 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 60312 elif test -n "$PKG_CONFIG"; then 60313 if test -n "$PKG_CONFIG" && \ 60314 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 60315 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 60316 ac_status=$? 60317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 60318 test $ac_status = 0; }; then 60319 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 60320 else 60321 pkg_failed=yes 60322 fi 60323 else 60324 pkg_failed=untried 60325 fi 60326 60327 60328 60329 if test $pkg_failed = yes; then 60330 60331 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 60332 _pkg_short_errors_supported=yes 60333 else 60334 _pkg_short_errors_supported=no 60335 fi 60336 if test $_pkg_short_errors_supported = yes; then 60337 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 60338 else 60339 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 60340 fi 60341 # Put the nasty error message in config.log where it belongs 60342 echo "$FREETYPE_PKG_ERRORS" >&5 60343 60344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60345 $as_echo "no" >&6; } 60346 FOUND_FREETYPE=no 60347 elif test $pkg_failed = untried; then 60348 FOUND_FREETYPE=no 60349 else 60350 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 60351 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 60352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 60353 $as_echo "yes" >&6; } 60354 FOUND_FREETYPE=yes 60355 fi 60356 if test "x$FOUND_FREETYPE" = xyes; then 60357 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 60358 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 60359 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 60360 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 60361 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 60362 fi 60363 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 60364 if test "x$BUNDLE_FREETYPE" = xyes; then 60365 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 60366 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 60367 FOUND_FREETYPE=no 60368 else 60369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 60370 $as_echo_n "checking for freetype... " >&6; } 60371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 60372 $as_echo "yes (using pkg-config)" >&6; } 60373 fi 60374 fi 60375 fi 60376 fi 60377 fi 60378 60379 if test "x$FOUND_FREETYPE" != xyes; then 60380 # Check in well-known locations 60381 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60382 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 60383 60384 windows_path="$FREETYPE_BASE_DIR" 60385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60386 unix_path=`$CYGPATH -u "$windows_path"` 60387 FREETYPE_BASE_DIR="$unix_path" 60388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60390 FREETYPE_BASE_DIR="$unix_path" 60391 fi 60392 60393 60394 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60395 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60396 METHOD="well-known location" 60397 60398 # Let's start with an optimistic view of the world :-) 60399 FOUND_FREETYPE=yes 60400 60401 # First look for the canonical freetype main include file ft2build.h. 60402 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60403 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60404 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60405 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60406 # Fail. 60407 FOUND_FREETYPE=no 60408 fi 60409 fi 60410 60411 if test "x$FOUND_FREETYPE" = xyes; then 60412 # Include file found, let's continue the sanity check. 60413 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60414 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60415 60416 # Reset to default value 60417 FREETYPE_BASE_NAME=freetype 60418 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60419 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60420 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60421 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60422 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60423 # for the .6 version explicitly. 60424 FREETYPE_BASE_NAME=freetype.6 60425 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60426 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60427 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60428 else 60429 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60430 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60431 FOUND_FREETYPE=no 60432 fi 60433 else 60434 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60435 # On Windows, we will need both .lib and .dll file. 60436 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60437 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60438 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60439 FOUND_FREETYPE=no 60440 fi 60441 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60442 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60443 # Found lib in isa dir, use that instead. 60444 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60445 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60446 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60447 fi 60448 fi 60449 fi 60450 60451 if test "x$FOUND_FREETYPE" = xyes; then 60452 60453 # Only process if variable expands to non-empty 60454 60455 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60456 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60457 60458 # Input might be given as Windows format, start by converting to 60459 # unix format. 60460 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60461 new_path=`$CYGPATH -u "$path"` 60462 60463 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60464 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60465 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60466 # "foo.exe" is OK but "foo" is an error. 60467 # 60468 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60469 # It is also a way to make sure we got the proper file name for the real test later on. 60470 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60471 if test "x$test_shortpath" = x; then 60472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60473 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60474 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60475 fi 60476 60477 # Call helper function which possibly converts this using DOS-style short mode. 60478 # If so, the updated path is stored in $new_path. 60479 60480 input_path="$new_path" 60481 # Check if we need to convert this using DOS-style short mode. If the path 60482 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60483 # take no chances and rewrite it. 60484 # Note: m4 eats our [], so we need to use [ and ] instead. 60485 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60486 if test "x$has_forbidden_chars" != x; then 60487 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60488 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60489 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60490 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60491 # Going to short mode and back again did indeed matter. Since short mode is 60492 # case insensitive, let's make it lowercase to improve readability. 60493 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60494 # Now convert it back to Unix-style (cygpath) 60495 input_path=`$CYGPATH -u "$shortmode_path"` 60496 new_path="$input_path" 60497 fi 60498 fi 60499 60500 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60501 if test "x$test_cygdrive_prefix" = x; then 60502 # As a simple fix, exclude /usr/bin since it's not a real path. 60503 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60504 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60505 # a path prefixed by /cygdrive for fixpath to work. 60506 new_path="$CYGWIN_ROOT_PATH$input_path" 60507 fi 60508 fi 60509 60510 60511 if test "x$path" != "x$new_path"; then 60512 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60513 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60514 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60515 fi 60516 60517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60518 60519 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60520 has_colon=`$ECHO $path | $GREP ^.:` 60521 new_path="$path" 60522 if test "x$has_colon" = x; then 60523 # Not in mixed or Windows style, start by that. 60524 new_path=`cmd //c echo $path` 60525 fi 60526 60527 60528 input_path="$new_path" 60529 # Check if we need to convert this using DOS-style short mode. If the path 60530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60531 # take no chances and rewrite it. 60532 # Note: m4 eats our [], so we need to use [ and ] instead. 60533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60534 if test "x$has_forbidden_chars" != x; then 60535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60536 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60537 fi 60538 60539 60540 windows_path="$new_path" 60541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60542 unix_path=`$CYGPATH -u "$windows_path"` 60543 new_path="$unix_path" 60544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60545 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60546 new_path="$unix_path" 60547 fi 60548 60549 if test "x$path" != "x$new_path"; then 60550 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60551 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60552 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60553 fi 60554 60555 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60556 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60557 60558 else 60559 # We're on a unix platform. Hooray! :) 60560 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60561 has_space=`$ECHO "$path" | $GREP " "` 60562 if test "x$has_space" != x; then 60563 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60564 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60565 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60566 fi 60567 60568 # Use eval to expand a potential ~ 60569 eval path="$path" 60570 if test ! -f "$path" && test ! -d "$path"; then 60571 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60572 fi 60573 60574 if test -d "$path"; then 60575 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60576 else 60577 dir="`$DIRNAME "$path"`" 60578 base="`$BASENAME "$path"`" 60579 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60580 fi 60581 fi 60582 fi 60583 60584 60585 # Only process if variable expands to non-empty 60586 60587 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60589 60590 # Input might be given as Windows format, start by converting to 60591 # unix format. 60592 path="$POTENTIAL_FREETYPE_LIB_PATH" 60593 new_path=`$CYGPATH -u "$path"` 60594 60595 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60596 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60597 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60598 # "foo.exe" is OK but "foo" is an error. 60599 # 60600 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60601 # It is also a way to make sure we got the proper file name for the real test later on. 60602 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60603 if test "x$test_shortpath" = x; then 60604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60605 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60606 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60607 fi 60608 60609 # Call helper function which possibly converts this using DOS-style short mode. 60610 # If so, the updated path is stored in $new_path. 60611 60612 input_path="$new_path" 60613 # Check if we need to convert this using DOS-style short mode. If the path 60614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60615 # take no chances and rewrite it. 60616 # Note: m4 eats our [], so we need to use [ and ] instead. 60617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60618 if test "x$has_forbidden_chars" != x; then 60619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60620 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60621 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60622 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60623 # Going to short mode and back again did indeed matter. Since short mode is 60624 # case insensitive, let's make it lowercase to improve readability. 60625 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60626 # Now convert it back to Unix-style (cygpath) 60627 input_path=`$CYGPATH -u "$shortmode_path"` 60628 new_path="$input_path" 60629 fi 60630 fi 60631 60632 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60633 if test "x$test_cygdrive_prefix" = x; then 60634 # As a simple fix, exclude /usr/bin since it's not a real path. 60635 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60636 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60637 # a path prefixed by /cygdrive for fixpath to work. 60638 new_path="$CYGWIN_ROOT_PATH$input_path" 60639 fi 60640 fi 60641 60642 60643 if test "x$path" != "x$new_path"; then 60644 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60645 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60646 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60647 fi 60648 60649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60650 60651 path="$POTENTIAL_FREETYPE_LIB_PATH" 60652 has_colon=`$ECHO $path | $GREP ^.:` 60653 new_path="$path" 60654 if test "x$has_colon" = x; then 60655 # Not in mixed or Windows style, start by that. 60656 new_path=`cmd //c echo $path` 60657 fi 60658 60659 60660 input_path="$new_path" 60661 # Check if we need to convert this using DOS-style short mode. If the path 60662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60663 # take no chances and rewrite it. 60664 # Note: m4 eats our [], so we need to use [ and ] instead. 60665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60666 if test "x$has_forbidden_chars" != x; then 60667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60668 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60669 fi 60670 60671 60672 windows_path="$new_path" 60673 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60674 unix_path=`$CYGPATH -u "$windows_path"` 60675 new_path="$unix_path" 60676 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60677 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60678 new_path="$unix_path" 60679 fi 60680 60681 if test "x$path" != "x$new_path"; then 60682 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60684 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60685 fi 60686 60687 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60688 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60689 60690 else 60691 # We're on a unix platform. Hooray! :) 60692 path="$POTENTIAL_FREETYPE_LIB_PATH" 60693 has_space=`$ECHO "$path" | $GREP " "` 60694 if test "x$has_space" != x; then 60695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60696 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60697 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60698 fi 60699 60700 # Use eval to expand a potential ~ 60701 eval path="$path" 60702 if test ! -f "$path" && test ! -d "$path"; then 60703 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60704 fi 60705 60706 if test -d "$path"; then 60707 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60708 else 60709 dir="`$DIRNAME "$path"`" 60710 base="`$BASENAME "$path"`" 60711 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60712 fi 60713 fi 60714 fi 60715 60716 60717 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60719 $as_echo_n "checking for freetype includes... " >&6; } 60720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60721 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60722 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60724 $as_echo_n "checking for freetype libraries... " >&6; } 60725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60726 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60727 fi 60728 60729 if test "x$FOUND_FREETYPE" != xyes; then 60730 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 60731 60732 windows_path="$FREETYPE_BASE_DIR" 60733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60734 unix_path=`$CYGPATH -u "$windows_path"` 60735 FREETYPE_BASE_DIR="$unix_path" 60736 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60737 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60738 FREETYPE_BASE_DIR="$unix_path" 60739 fi 60740 60741 60742 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60743 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60744 METHOD="well-known location" 60745 60746 # Let's start with an optimistic view of the world :-) 60747 FOUND_FREETYPE=yes 60748 60749 # First look for the canonical freetype main include file ft2build.h. 60750 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60751 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60752 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60753 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60754 # Fail. 60755 FOUND_FREETYPE=no 60756 fi 60757 fi 60758 60759 if test "x$FOUND_FREETYPE" = xyes; then 60760 # Include file found, let's continue the sanity check. 60761 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60762 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60763 60764 # Reset to default value 60765 FREETYPE_BASE_NAME=freetype 60766 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60767 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60768 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60769 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60770 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60771 # for the .6 version explicitly. 60772 FREETYPE_BASE_NAME=freetype.6 60773 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60774 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60775 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60776 else 60777 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60778 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60779 FOUND_FREETYPE=no 60780 fi 60781 else 60782 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60783 # On Windows, we will need both .lib and .dll file. 60784 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60785 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60786 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60787 FOUND_FREETYPE=no 60788 fi 60789 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60790 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60791 # Found lib in isa dir, use that instead. 60792 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60793 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60794 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60795 fi 60796 fi 60797 fi 60798 60799 if test "x$FOUND_FREETYPE" = xyes; then 60800 60801 # Only process if variable expands to non-empty 60802 60803 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60805 60806 # Input might be given as Windows format, start by converting to 60807 # unix format. 60808 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60809 new_path=`$CYGPATH -u "$path"` 60810 60811 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60812 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60813 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60814 # "foo.exe" is OK but "foo" is an error. 60815 # 60816 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60817 # It is also a way to make sure we got the proper file name for the real test later on. 60818 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60819 if test "x$test_shortpath" = x; then 60820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60821 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60822 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60823 fi 60824 60825 # Call helper function which possibly converts this using DOS-style short mode. 60826 # If so, the updated path is stored in $new_path. 60827 60828 input_path="$new_path" 60829 # Check if we need to convert this using DOS-style short mode. If the path 60830 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60831 # take no chances and rewrite it. 60832 # Note: m4 eats our [], so we need to use [ and ] instead. 60833 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60834 if test "x$has_forbidden_chars" != x; then 60835 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60836 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60837 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60838 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60839 # Going to short mode and back again did indeed matter. Since short mode is 60840 # case insensitive, let's make it lowercase to improve readability. 60841 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60842 # Now convert it back to Unix-style (cygpath) 60843 input_path=`$CYGPATH -u "$shortmode_path"` 60844 new_path="$input_path" 60845 fi 60846 fi 60847 60848 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60849 if test "x$test_cygdrive_prefix" = x; then 60850 # As a simple fix, exclude /usr/bin since it's not a real path. 60851 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60852 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60853 # a path prefixed by /cygdrive for fixpath to work. 60854 new_path="$CYGWIN_ROOT_PATH$input_path" 60855 fi 60856 fi 60857 60858 60859 if test "x$path" != "x$new_path"; then 60860 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60861 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60862 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60863 fi 60864 60865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60866 60867 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60868 has_colon=`$ECHO $path | $GREP ^.:` 60869 new_path="$path" 60870 if test "x$has_colon" = x; then 60871 # Not in mixed or Windows style, start by that. 60872 new_path=`cmd //c echo $path` 60873 fi 60874 60875 60876 input_path="$new_path" 60877 # Check if we need to convert this using DOS-style short mode. If the path 60878 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60879 # take no chances and rewrite it. 60880 # Note: m4 eats our [], so we need to use [ and ] instead. 60881 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60882 if test "x$has_forbidden_chars" != x; then 60883 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60884 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60885 fi 60886 60887 60888 windows_path="$new_path" 60889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60890 unix_path=`$CYGPATH -u "$windows_path"` 60891 new_path="$unix_path" 60892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60893 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60894 new_path="$unix_path" 60895 fi 60896 60897 if test "x$path" != "x$new_path"; then 60898 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60899 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60900 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60901 fi 60902 60903 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60904 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60905 60906 else 60907 # We're on a unix platform. Hooray! :) 60908 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60909 has_space=`$ECHO "$path" | $GREP " "` 60910 if test "x$has_space" != x; then 60911 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60912 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60913 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60914 fi 60915 60916 # Use eval to expand a potential ~ 60917 eval path="$path" 60918 if test ! -f "$path" && test ! -d "$path"; then 60919 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60920 fi 60921 60922 if test -d "$path"; then 60923 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60924 else 60925 dir="`$DIRNAME "$path"`" 60926 base="`$BASENAME "$path"`" 60927 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60928 fi 60929 fi 60930 fi 60931 60932 60933 # Only process if variable expands to non-empty 60934 60935 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60937 60938 # Input might be given as Windows format, start by converting to 60939 # unix format. 60940 path="$POTENTIAL_FREETYPE_LIB_PATH" 60941 new_path=`$CYGPATH -u "$path"` 60942 60943 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60944 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60945 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60946 # "foo.exe" is OK but "foo" is an error. 60947 # 60948 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60949 # It is also a way to make sure we got the proper file name for the real test later on. 60950 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60951 if test "x$test_shortpath" = x; then 60952 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60953 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60954 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60955 fi 60956 60957 # Call helper function which possibly converts this using DOS-style short mode. 60958 # If so, the updated path is stored in $new_path. 60959 60960 input_path="$new_path" 60961 # Check if we need to convert this using DOS-style short mode. If the path 60962 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60963 # take no chances and rewrite it. 60964 # Note: m4 eats our [], so we need to use [ and ] instead. 60965 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60966 if test "x$has_forbidden_chars" != x; then 60967 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60968 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60969 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60970 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60971 # Going to short mode and back again did indeed matter. Since short mode is 60972 # case insensitive, let's make it lowercase to improve readability. 60973 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60974 # Now convert it back to Unix-style (cygpath) 60975 input_path=`$CYGPATH -u "$shortmode_path"` 60976 new_path="$input_path" 60977 fi 60978 fi 60979 60980 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60981 if test "x$test_cygdrive_prefix" = x; then 60982 # As a simple fix, exclude /usr/bin since it's not a real path. 60983 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60984 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60985 # a path prefixed by /cygdrive for fixpath to work. 60986 new_path="$CYGWIN_ROOT_PATH$input_path" 60987 fi 60988 fi 60989 60990 60991 if test "x$path" != "x$new_path"; then 60992 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60993 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60994 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60995 fi 60996 60997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60998 60999 path="$POTENTIAL_FREETYPE_LIB_PATH" 61000 has_colon=`$ECHO $path | $GREP ^.:` 61001 new_path="$path" 61002 if test "x$has_colon" = x; then 61003 # Not in mixed or Windows style, start by that. 61004 new_path=`cmd //c echo $path` 61005 fi 61006 61007 61008 input_path="$new_path" 61009 # Check if we need to convert this using DOS-style short mode. If the path 61010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61011 # take no chances and rewrite it. 61012 # Note: m4 eats our [], so we need to use [ and ] instead. 61013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61014 if test "x$has_forbidden_chars" != x; then 61015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61016 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61017 fi 61018 61019 61020 windows_path="$new_path" 61021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61022 unix_path=`$CYGPATH -u "$windows_path"` 61023 new_path="$unix_path" 61024 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61025 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61026 new_path="$unix_path" 61027 fi 61028 61029 if test "x$path" != "x$new_path"; then 61030 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61031 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61032 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61033 fi 61034 61035 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61036 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61037 61038 else 61039 # We're on a unix platform. Hooray! :) 61040 path="$POTENTIAL_FREETYPE_LIB_PATH" 61041 has_space=`$ECHO "$path" | $GREP " "` 61042 if test "x$has_space" != x; then 61043 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61044 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61045 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61046 fi 61047 61048 # Use eval to expand a potential ~ 61049 eval path="$path" 61050 if test ! -f "$path" && test ! -d "$path"; then 61051 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61052 fi 61053 61054 if test -d "$path"; then 61055 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61056 else 61057 dir="`$DIRNAME "$path"`" 61058 base="`$BASENAME "$path"`" 61059 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61060 fi 61061 fi 61062 fi 61063 61064 61065 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61067 $as_echo_n "checking for freetype includes... " >&6; } 61068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61069 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61070 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61072 $as_echo_n "checking for freetype libraries... " >&6; } 61073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61074 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61075 fi 61076 61077 fi 61078 if test "x$FOUND_FREETYPE" != xyes; then 61079 FREETYPE_BASE_DIR="$HOME/freetype" 61080 61081 windows_path="$FREETYPE_BASE_DIR" 61082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61083 unix_path=`$CYGPATH -u "$windows_path"` 61084 FREETYPE_BASE_DIR="$unix_path" 61085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61087 FREETYPE_BASE_DIR="$unix_path" 61088 fi 61089 61090 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61091 61092 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61093 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 61094 METHOD="well-known location" 61095 61096 # Let's start with an optimistic view of the world :-) 61097 FOUND_FREETYPE=yes 61098 61099 # First look for the canonical freetype main include file ft2build.h. 61100 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61101 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61102 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61103 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61104 # Fail. 61105 FOUND_FREETYPE=no 61106 fi 61107 fi 61108 61109 if test "x$FOUND_FREETYPE" = xyes; then 61110 # Include file found, let's continue the sanity check. 61111 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61112 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61113 61114 # Reset to default value 61115 FREETYPE_BASE_NAME=freetype 61116 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61117 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61118 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61119 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61120 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61121 # for the .6 version explicitly. 61122 FREETYPE_BASE_NAME=freetype.6 61123 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61124 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61125 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61126 else 61127 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61128 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61129 FOUND_FREETYPE=no 61130 fi 61131 else 61132 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61133 # On Windows, we will need both .lib and .dll file. 61134 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61135 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61136 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61137 FOUND_FREETYPE=no 61138 fi 61139 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61140 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61141 # Found lib in isa dir, use that instead. 61142 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61143 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61144 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61145 fi 61146 fi 61147 fi 61148 61149 if test "x$FOUND_FREETYPE" = xyes; then 61150 61151 # Only process if variable expands to non-empty 61152 61153 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61155 61156 # Input might be given as Windows format, start by converting to 61157 # unix format. 61158 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61159 new_path=`$CYGPATH -u "$path"` 61160 61161 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61162 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61163 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61164 # "foo.exe" is OK but "foo" is an error. 61165 # 61166 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61167 # It is also a way to make sure we got the proper file name for the real test later on. 61168 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61169 if test "x$test_shortpath" = x; then 61170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61171 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61172 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61173 fi 61174 61175 # Call helper function which possibly converts this using DOS-style short mode. 61176 # If so, the updated path is stored in $new_path. 61177 61178 input_path="$new_path" 61179 # Check if we need to convert this using DOS-style short mode. If the path 61180 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61181 # take no chances and rewrite it. 61182 # Note: m4 eats our [], so we need to use [ and ] instead. 61183 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61184 if test "x$has_forbidden_chars" != x; then 61185 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61186 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61187 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61188 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61189 # Going to short mode and back again did indeed matter. Since short mode is 61190 # case insensitive, let's make it lowercase to improve readability. 61191 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61192 # Now convert it back to Unix-style (cygpath) 61193 input_path=`$CYGPATH -u "$shortmode_path"` 61194 new_path="$input_path" 61195 fi 61196 fi 61197 61198 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61199 if test "x$test_cygdrive_prefix" = x; then 61200 # As a simple fix, exclude /usr/bin since it's not a real path. 61201 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61202 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61203 # a path prefixed by /cygdrive for fixpath to work. 61204 new_path="$CYGWIN_ROOT_PATH$input_path" 61205 fi 61206 fi 61207 61208 61209 if test "x$path" != "x$new_path"; then 61210 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61212 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61213 fi 61214 61215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61216 61217 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61218 has_colon=`$ECHO $path | $GREP ^.:` 61219 new_path="$path" 61220 if test "x$has_colon" = x; then 61221 # Not in mixed or Windows style, start by that. 61222 new_path=`cmd //c echo $path` 61223 fi 61224 61225 61226 input_path="$new_path" 61227 # Check if we need to convert this using DOS-style short mode. If the path 61228 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61229 # take no chances and rewrite it. 61230 # Note: m4 eats our [], so we need to use [ and ] instead. 61231 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61232 if test "x$has_forbidden_chars" != x; then 61233 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61234 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61235 fi 61236 61237 61238 windows_path="$new_path" 61239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61240 unix_path=`$CYGPATH -u "$windows_path"` 61241 new_path="$unix_path" 61242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61244 new_path="$unix_path" 61245 fi 61246 61247 if test "x$path" != "x$new_path"; then 61248 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61249 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61250 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61251 fi 61252 61253 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61254 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61255 61256 else 61257 # We're on a unix platform. Hooray! :) 61258 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61259 has_space=`$ECHO "$path" | $GREP " "` 61260 if test "x$has_space" != x; then 61261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61262 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61263 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61264 fi 61265 61266 # Use eval to expand a potential ~ 61267 eval path="$path" 61268 if test ! -f "$path" && test ! -d "$path"; then 61269 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61270 fi 61271 61272 if test -d "$path"; then 61273 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61274 else 61275 dir="`$DIRNAME "$path"`" 61276 base="`$BASENAME "$path"`" 61277 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61278 fi 61279 fi 61280 fi 61281 61282 61283 # Only process if variable expands to non-empty 61284 61285 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61287 61288 # Input might be given as Windows format, start by converting to 61289 # unix format. 61290 path="$POTENTIAL_FREETYPE_LIB_PATH" 61291 new_path=`$CYGPATH -u "$path"` 61292 61293 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61294 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61295 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61296 # "foo.exe" is OK but "foo" is an error. 61297 # 61298 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61299 # It is also a way to make sure we got the proper file name for the real test later on. 61300 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61301 if test "x$test_shortpath" = x; then 61302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61303 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61304 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61305 fi 61306 61307 # Call helper function which possibly converts this using DOS-style short mode. 61308 # If so, the updated path is stored in $new_path. 61309 61310 input_path="$new_path" 61311 # Check if we need to convert this using DOS-style short mode. If the path 61312 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61313 # take no chances and rewrite it. 61314 # Note: m4 eats our [], so we need to use [ and ] instead. 61315 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61316 if test "x$has_forbidden_chars" != x; then 61317 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61318 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61319 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61320 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61321 # Going to short mode and back again did indeed matter. Since short mode is 61322 # case insensitive, let's make it lowercase to improve readability. 61323 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61324 # Now convert it back to Unix-style (cygpath) 61325 input_path=`$CYGPATH -u "$shortmode_path"` 61326 new_path="$input_path" 61327 fi 61328 fi 61329 61330 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61331 if test "x$test_cygdrive_prefix" = x; then 61332 # As a simple fix, exclude /usr/bin since it's not a real path. 61333 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61334 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61335 # a path prefixed by /cygdrive for fixpath to work. 61336 new_path="$CYGWIN_ROOT_PATH$input_path" 61337 fi 61338 fi 61339 61340 61341 if test "x$path" != "x$new_path"; then 61342 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61343 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61344 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61345 fi 61346 61347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61348 61349 path="$POTENTIAL_FREETYPE_LIB_PATH" 61350 has_colon=`$ECHO $path | $GREP ^.:` 61351 new_path="$path" 61352 if test "x$has_colon" = x; then 61353 # Not in mixed or Windows style, start by that. 61354 new_path=`cmd //c echo $path` 61355 fi 61356 61357 61358 input_path="$new_path" 61359 # Check if we need to convert this using DOS-style short mode. If the path 61360 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61361 # take no chances and rewrite it. 61362 # Note: m4 eats our [], so we need to use [ and ] instead. 61363 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61364 if test "x$has_forbidden_chars" != x; then 61365 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61366 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61367 fi 61368 61369 61370 windows_path="$new_path" 61371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61372 unix_path=`$CYGPATH -u "$windows_path"` 61373 new_path="$unix_path" 61374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61375 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61376 new_path="$unix_path" 61377 fi 61378 61379 if test "x$path" != "x$new_path"; then 61380 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61381 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61382 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61383 fi 61384 61385 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61386 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61387 61388 else 61389 # We're on a unix platform. Hooray! :) 61390 path="$POTENTIAL_FREETYPE_LIB_PATH" 61391 has_space=`$ECHO "$path" | $GREP " "` 61392 if test "x$has_space" != x; then 61393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61394 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61395 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61396 fi 61397 61398 # Use eval to expand a potential ~ 61399 eval path="$path" 61400 if test ! -f "$path" && test ! -d "$path"; then 61401 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61402 fi 61403 61404 if test -d "$path"; then 61405 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61406 else 61407 dir="`$DIRNAME "$path"`" 61408 base="`$BASENAME "$path"`" 61409 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61410 fi 61411 fi 61412 fi 61413 61414 61415 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61417 $as_echo_n "checking for freetype includes... " >&6; } 61418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61419 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61420 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61422 $as_echo_n "checking for freetype libraries... " >&6; } 61423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61424 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61425 fi 61426 61427 else 61428 61429 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61430 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61431 METHOD="well-known location" 61432 61433 # Let's start with an optimistic view of the world :-) 61434 FOUND_FREETYPE=yes 61435 61436 # First look for the canonical freetype main include file ft2build.h. 61437 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61438 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61439 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61440 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61441 # Fail. 61442 FOUND_FREETYPE=no 61443 fi 61444 fi 61445 61446 if test "x$FOUND_FREETYPE" = xyes; then 61447 # Include file found, let's continue the sanity check. 61448 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61449 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61450 61451 # Reset to default value 61452 FREETYPE_BASE_NAME=freetype 61453 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61454 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61455 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61456 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61457 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61458 # for the .6 version explicitly. 61459 FREETYPE_BASE_NAME=freetype.6 61460 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61461 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61462 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61463 else 61464 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61465 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61466 FOUND_FREETYPE=no 61467 fi 61468 else 61469 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61470 # On Windows, we will need both .lib and .dll file. 61471 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61472 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61473 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61474 FOUND_FREETYPE=no 61475 fi 61476 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61477 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61478 # Found lib in isa dir, use that instead. 61479 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61480 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61481 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61482 fi 61483 fi 61484 fi 61485 61486 if test "x$FOUND_FREETYPE" = xyes; then 61487 61488 # Only process if variable expands to non-empty 61489 61490 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61492 61493 # Input might be given as Windows format, start by converting to 61494 # unix format. 61495 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61496 new_path=`$CYGPATH -u "$path"` 61497 61498 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61499 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61500 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61501 # "foo.exe" is OK but "foo" is an error. 61502 # 61503 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61504 # It is also a way to make sure we got the proper file name for the real test later on. 61505 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61506 if test "x$test_shortpath" = x; then 61507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61508 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61509 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61510 fi 61511 61512 # Call helper function which possibly converts this using DOS-style short mode. 61513 # If so, the updated path is stored in $new_path. 61514 61515 input_path="$new_path" 61516 # Check if we need to convert this using DOS-style short mode. If the path 61517 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61518 # take no chances and rewrite it. 61519 # Note: m4 eats our [], so we need to use [ and ] instead. 61520 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61521 if test "x$has_forbidden_chars" != x; then 61522 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61523 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61524 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61525 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61526 # Going to short mode and back again did indeed matter. Since short mode is 61527 # case insensitive, let's make it lowercase to improve readability. 61528 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61529 # Now convert it back to Unix-style (cygpath) 61530 input_path=`$CYGPATH -u "$shortmode_path"` 61531 new_path="$input_path" 61532 fi 61533 fi 61534 61535 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61536 if test "x$test_cygdrive_prefix" = x; then 61537 # As a simple fix, exclude /usr/bin since it's not a real path. 61538 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61539 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61540 # a path prefixed by /cygdrive for fixpath to work. 61541 new_path="$CYGWIN_ROOT_PATH$input_path" 61542 fi 61543 fi 61544 61545 61546 if test "x$path" != "x$new_path"; then 61547 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61549 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61550 fi 61551 61552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61553 61554 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61555 has_colon=`$ECHO $path | $GREP ^.:` 61556 new_path="$path" 61557 if test "x$has_colon" = x; then 61558 # Not in mixed or Windows style, start by that. 61559 new_path=`cmd //c echo $path` 61560 fi 61561 61562 61563 input_path="$new_path" 61564 # Check if we need to convert this using DOS-style short mode. If the path 61565 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61566 # take no chances and rewrite it. 61567 # Note: m4 eats our [], so we need to use [ and ] instead. 61568 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61569 if test "x$has_forbidden_chars" != x; then 61570 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61571 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61572 fi 61573 61574 61575 windows_path="$new_path" 61576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61577 unix_path=`$CYGPATH -u "$windows_path"` 61578 new_path="$unix_path" 61579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61580 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61581 new_path="$unix_path" 61582 fi 61583 61584 if test "x$path" != "x$new_path"; then 61585 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61586 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61587 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61588 fi 61589 61590 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61591 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61592 61593 else 61594 # We're on a unix platform. Hooray! :) 61595 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61596 has_space=`$ECHO "$path" | $GREP " "` 61597 if test "x$has_space" != x; then 61598 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61599 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61600 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61601 fi 61602 61603 # Use eval to expand a potential ~ 61604 eval path="$path" 61605 if test ! -f "$path" && test ! -d "$path"; then 61606 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61607 fi 61608 61609 if test -d "$path"; then 61610 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61611 else 61612 dir="`$DIRNAME "$path"`" 61613 base="`$BASENAME "$path"`" 61614 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61615 fi 61616 fi 61617 fi 61618 61619 61620 # Only process if variable expands to non-empty 61621 61622 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61624 61625 # Input might be given as Windows format, start by converting to 61626 # unix format. 61627 path="$POTENTIAL_FREETYPE_LIB_PATH" 61628 new_path=`$CYGPATH -u "$path"` 61629 61630 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61631 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61632 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61633 # "foo.exe" is OK but "foo" is an error. 61634 # 61635 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61636 # It is also a way to make sure we got the proper file name for the real test later on. 61637 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61638 if test "x$test_shortpath" = x; then 61639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61640 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61641 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61642 fi 61643 61644 # Call helper function which possibly converts this using DOS-style short mode. 61645 # If so, the updated path is stored in $new_path. 61646 61647 input_path="$new_path" 61648 # Check if we need to convert this using DOS-style short mode. If the path 61649 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61650 # take no chances and rewrite it. 61651 # Note: m4 eats our [], so we need to use [ and ] instead. 61652 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61653 if test "x$has_forbidden_chars" != x; then 61654 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61655 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61656 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61657 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61658 # Going to short mode and back again did indeed matter. Since short mode is 61659 # case insensitive, let's make it lowercase to improve readability. 61660 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61661 # Now convert it back to Unix-style (cygpath) 61662 input_path=`$CYGPATH -u "$shortmode_path"` 61663 new_path="$input_path" 61664 fi 61665 fi 61666 61667 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61668 if test "x$test_cygdrive_prefix" = x; then 61669 # As a simple fix, exclude /usr/bin since it's not a real path. 61670 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61671 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61672 # a path prefixed by /cygdrive for fixpath to work. 61673 new_path="$CYGWIN_ROOT_PATH$input_path" 61674 fi 61675 fi 61676 61677 61678 if test "x$path" != "x$new_path"; then 61679 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61680 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61681 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61682 fi 61683 61684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61685 61686 path="$POTENTIAL_FREETYPE_LIB_PATH" 61687 has_colon=`$ECHO $path | $GREP ^.:` 61688 new_path="$path" 61689 if test "x$has_colon" = x; then 61690 # Not in mixed or Windows style, start by that. 61691 new_path=`cmd //c echo $path` 61692 fi 61693 61694 61695 input_path="$new_path" 61696 # Check if we need to convert this using DOS-style short mode. If the path 61697 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61698 # take no chances and rewrite it. 61699 # Note: m4 eats our [], so we need to use [ and ] instead. 61700 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61701 if test "x$has_forbidden_chars" != x; then 61702 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61703 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61704 fi 61705 61706 61707 windows_path="$new_path" 61708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61709 unix_path=`$CYGPATH -u "$windows_path"` 61710 new_path="$unix_path" 61711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61712 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61713 new_path="$unix_path" 61714 fi 61715 61716 if test "x$path" != "x$new_path"; then 61717 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61718 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61719 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61720 fi 61721 61722 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61723 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61724 61725 else 61726 # We're on a unix platform. Hooray! :) 61727 path="$POTENTIAL_FREETYPE_LIB_PATH" 61728 has_space=`$ECHO "$path" | $GREP " "` 61729 if test "x$has_space" != x; then 61730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61731 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61732 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61733 fi 61734 61735 # Use eval to expand a potential ~ 61736 eval path="$path" 61737 if test ! -f "$path" && test ! -d "$path"; then 61738 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61739 fi 61740 61741 if test -d "$path"; then 61742 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61743 else 61744 dir="`$DIRNAME "$path"`" 61745 base="`$BASENAME "$path"`" 61746 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61747 fi 61748 fi 61749 fi 61750 61751 61752 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61754 $as_echo_n "checking for freetype includes... " >&6; } 61755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61756 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61757 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61759 $as_echo_n "checking for freetype libraries... " >&6; } 61760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61761 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61762 fi 61763 61764 fi 61765 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 61766 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 61767 # Source is available, as a last resort try to build freetype in default location 61768 61769 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 61770 BUILD_FREETYPE=yes 61771 61772 # Check if the freetype sources are acessible.. 61773 if ! test -d $FREETYPE_SRC_PATH; then 61774 { $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 61775 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 61776 BUILD_FREETYPE=no 61777 fi 61778 # ..and contain a vc2010 project file 61779 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 61780 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 61781 { $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 61782 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 61783 BUILD_FREETYPE=no 61784 fi 61785 # Now check if configure found a version of 'msbuild.exe' 61786 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 61787 { $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 61788 $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;} 61789 BUILD_FREETYPE=no 61790 fi 61791 61792 # Ready to go.. 61793 if test "x$BUILD_FREETYPE" = xyes; then 61794 # msbuild requires trailing slashes for output directories 61795 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 61796 freetype_lib_path_unix="$freetype_lib_path" 61797 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 61798 61799 unix_path="$vcxproj_path" 61800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61801 windows_path=`$CYGPATH -m "$unix_path"` 61802 vcxproj_path="$windows_path" 61803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61804 windows_path=`cmd //c echo $unix_path` 61805 vcxproj_path="$windows_path" 61806 fi 61807 61808 61809 unix_path="$freetype_lib_path" 61810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61811 windows_path=`$CYGPATH -m "$unix_path"` 61812 freetype_lib_path="$windows_path" 61813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61814 windows_path=`cmd //c echo $unix_path` 61815 freetype_lib_path="$windows_path" 61816 fi 61817 61818 61819 unix_path="$freetype_obj_path" 61820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61821 windows_path=`$CYGPATH -m "$unix_path"` 61822 freetype_obj_path="$windows_path" 61823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61824 windows_path=`cmd //c echo $unix_path` 61825 freetype_obj_path="$windows_path" 61826 fi 61827 61828 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61829 freetype_platform=x64 61830 else 61831 freetype_platform=win32 61832 fi 61833 61834 # The original freetype project file is for VS 2010 (i.e. 'v100'), 61835 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 61836 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 61837 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 61838 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 61839 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 61840 61841 # First we try to build the freetype.dll 61842 $ECHO -e "@echo off\n"\ 61843 "$MSBUILD $vcxproj_path "\ 61844 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 61845 "/p:Configuration=\"Release Multithreaded\" "\ 61846 "/p:Platform=$freetype_platform "\ 61847 "/p:ConfigurationType=DynamicLibrary "\ 61848 "/p:TargetName=freetype "\ 61849 "/p:OutDir=\"$freetype_lib_path\" "\ 61850 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 61851 cmd /c freetype.bat 61852 61853 if test -s "$freetype_lib_path_unix/freetype.dll"; then 61854 # If that succeeds we also build freetype.lib 61855 $ECHO -e "@echo off\n"\ 61856 "$MSBUILD $vcxproj_path "\ 61857 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 61858 "/p:Configuration=\"Release Multithreaded\" "\ 61859 "/p:Platform=$freetype_platform "\ 61860 "/p:ConfigurationType=StaticLibrary "\ 61861 "/p:TargetName=freetype "\ 61862 "/p:OutDir=\"$freetype_lib_path\" "\ 61863 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 61864 cmd /c freetype.bat 61865 61866 if test -s "$freetype_lib_path_unix/freetype.lib"; then 61867 # Once we build both, lib and dll, set freetype lib and include path appropriately 61868 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 61869 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 61870 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 61871 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 61872 else 61873 BUILD_FREETYPE=no 61874 fi 61875 else 61876 BUILD_FREETYPE=no 61877 fi 61878 fi 61879 61880 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61881 61882 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61883 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 61884 METHOD="well-known location" 61885 61886 # Let's start with an optimistic view of the world :-) 61887 FOUND_FREETYPE=yes 61888 61889 # First look for the canonical freetype main include file ft2build.h. 61890 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61891 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61892 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61893 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61894 # Fail. 61895 FOUND_FREETYPE=no 61896 fi 61897 fi 61898 61899 if test "x$FOUND_FREETYPE" = xyes; then 61900 # Include file found, let's continue the sanity check. 61901 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61902 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61903 61904 # Reset to default value 61905 FREETYPE_BASE_NAME=freetype 61906 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61907 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61908 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61909 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61910 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61911 # for the .6 version explicitly. 61912 FREETYPE_BASE_NAME=freetype.6 61913 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61914 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61915 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61916 else 61917 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61918 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61919 FOUND_FREETYPE=no 61920 fi 61921 else 61922 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61923 # On Windows, we will need both .lib and .dll file. 61924 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61925 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61926 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61927 FOUND_FREETYPE=no 61928 fi 61929 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61930 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61931 # Found lib in isa dir, use that instead. 61932 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61934 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61935 fi 61936 fi 61937 fi 61938 61939 if test "x$FOUND_FREETYPE" = xyes; then 61940 61941 # Only process if variable expands to non-empty 61942 61943 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61944 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61945 61946 # Input might be given as Windows format, start by converting to 61947 # unix format. 61948 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61949 new_path=`$CYGPATH -u "$path"` 61950 61951 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61952 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61953 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61954 # "foo.exe" is OK but "foo" is an error. 61955 # 61956 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61957 # It is also a way to make sure we got the proper file name for the real test later on. 61958 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61959 if test "x$test_shortpath" = x; then 61960 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61961 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61962 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61963 fi 61964 61965 # Call helper function which possibly converts this using DOS-style short mode. 61966 # If so, the updated path is stored in $new_path. 61967 61968 input_path="$new_path" 61969 # Check if we need to convert this using DOS-style short mode. If the path 61970 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61971 # take no chances and rewrite it. 61972 # Note: m4 eats our [], so we need to use [ and ] instead. 61973 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61974 if test "x$has_forbidden_chars" != x; then 61975 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61976 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61977 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61978 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61979 # Going to short mode and back again did indeed matter. Since short mode is 61980 # case insensitive, let's make it lowercase to improve readability. 61981 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61982 # Now convert it back to Unix-style (cygpath) 61983 input_path=`$CYGPATH -u "$shortmode_path"` 61984 new_path="$input_path" 61985 fi 61986 fi 61987 61988 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61989 if test "x$test_cygdrive_prefix" = x; then 61990 # As a simple fix, exclude /usr/bin since it's not a real path. 61991 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61992 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61993 # a path prefixed by /cygdrive for fixpath to work. 61994 new_path="$CYGWIN_ROOT_PATH$input_path" 61995 fi 61996 fi 61997 61998 61999 if test "x$path" != "x$new_path"; then 62000 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62001 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62002 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62003 fi 62004 62005 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62006 62007 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62008 has_colon=`$ECHO $path | $GREP ^.:` 62009 new_path="$path" 62010 if test "x$has_colon" = x; then 62011 # Not in mixed or Windows style, start by that. 62012 new_path=`cmd //c echo $path` 62013 fi 62014 62015 62016 input_path="$new_path" 62017 # Check if we need to convert this using DOS-style short mode. If the path 62018 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62019 # take no chances and rewrite it. 62020 # Note: m4 eats our [], so we need to use [ and ] instead. 62021 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62022 if test "x$has_forbidden_chars" != x; then 62023 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62024 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62025 fi 62026 62027 62028 windows_path="$new_path" 62029 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62030 unix_path=`$CYGPATH -u "$windows_path"` 62031 new_path="$unix_path" 62032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62033 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62034 new_path="$unix_path" 62035 fi 62036 62037 if test "x$path" != "x$new_path"; then 62038 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62039 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62040 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62041 fi 62042 62043 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62044 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62045 62046 else 62047 # We're on a unix platform. Hooray! :) 62048 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62049 has_space=`$ECHO "$path" | $GREP " "` 62050 if test "x$has_space" != x; then 62051 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62052 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62053 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62054 fi 62055 62056 # Use eval to expand a potential ~ 62057 eval path="$path" 62058 if test ! -f "$path" && test ! -d "$path"; then 62059 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62060 fi 62061 62062 if test -d "$path"; then 62063 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62064 else 62065 dir="`$DIRNAME "$path"`" 62066 base="`$BASENAME "$path"`" 62067 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62068 fi 62069 fi 62070 fi 62071 62072 62073 # Only process if variable expands to non-empty 62074 62075 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62077 62078 # Input might be given as Windows format, start by converting to 62079 # unix format. 62080 path="$POTENTIAL_FREETYPE_LIB_PATH" 62081 new_path=`$CYGPATH -u "$path"` 62082 62083 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62084 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62085 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62086 # "foo.exe" is OK but "foo" is an error. 62087 # 62088 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62089 # It is also a way to make sure we got the proper file name for the real test later on. 62090 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62091 if test "x$test_shortpath" = x; then 62092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62093 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62094 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62095 fi 62096 62097 # Call helper function which possibly converts this using DOS-style short mode. 62098 # If so, the updated path is stored in $new_path. 62099 62100 input_path="$new_path" 62101 # Check if we need to convert this using DOS-style short mode. If the path 62102 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62103 # take no chances and rewrite it. 62104 # Note: m4 eats our [], so we need to use [ and ] instead. 62105 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62106 if test "x$has_forbidden_chars" != x; then 62107 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62108 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62109 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62110 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62111 # Going to short mode and back again did indeed matter. Since short mode is 62112 # case insensitive, let's make it lowercase to improve readability. 62113 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62114 # Now convert it back to Unix-style (cygpath) 62115 input_path=`$CYGPATH -u "$shortmode_path"` 62116 new_path="$input_path" 62117 fi 62118 fi 62119 62120 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62121 if test "x$test_cygdrive_prefix" = x; then 62122 # As a simple fix, exclude /usr/bin since it's not a real path. 62123 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62124 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62125 # a path prefixed by /cygdrive for fixpath to work. 62126 new_path="$CYGWIN_ROOT_PATH$input_path" 62127 fi 62128 fi 62129 62130 62131 if test "x$path" != "x$new_path"; then 62132 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62133 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62134 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62135 fi 62136 62137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62138 62139 path="$POTENTIAL_FREETYPE_LIB_PATH" 62140 has_colon=`$ECHO $path | $GREP ^.:` 62141 new_path="$path" 62142 if test "x$has_colon" = x; then 62143 # Not in mixed or Windows style, start by that. 62144 new_path=`cmd //c echo $path` 62145 fi 62146 62147 62148 input_path="$new_path" 62149 # Check if we need to convert this using DOS-style short mode. If the path 62150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62151 # take no chances and rewrite it. 62152 # Note: m4 eats our [], so we need to use [ and ] instead. 62153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62154 if test "x$has_forbidden_chars" != x; then 62155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62156 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62157 fi 62158 62159 62160 windows_path="$new_path" 62161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62162 unix_path=`$CYGPATH -u "$windows_path"` 62163 new_path="$unix_path" 62164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62166 new_path="$unix_path" 62167 fi 62168 62169 if test "x$path" != "x$new_path"; then 62170 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62171 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62172 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62173 fi 62174 62175 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62176 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62177 62178 else 62179 # We're on a unix platform. Hooray! :) 62180 path="$POTENTIAL_FREETYPE_LIB_PATH" 62181 has_space=`$ECHO "$path" | $GREP " "` 62182 if test "x$has_space" != x; then 62183 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62184 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62185 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62186 fi 62187 62188 # Use eval to expand a potential ~ 62189 eval path="$path" 62190 if test ! -f "$path" && test ! -d "$path"; then 62191 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62192 fi 62193 62194 if test -d "$path"; then 62195 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62196 else 62197 dir="`$DIRNAME "$path"`" 62198 base="`$BASENAME "$path"`" 62199 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62200 fi 62201 fi 62202 fi 62203 62204 62205 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62207 $as_echo_n "checking for freetype includes... " >&6; } 62208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62209 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62210 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62212 $as_echo_n "checking for freetype libraries... " >&6; } 62213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62214 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62215 fi 62216 62217 else 62218 62219 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62220 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 62221 METHOD="well-known location" 62222 62223 # Let's start with an optimistic view of the world :-) 62224 FOUND_FREETYPE=yes 62225 62226 # First look for the canonical freetype main include file ft2build.h. 62227 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62228 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62229 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62230 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62231 # Fail. 62232 FOUND_FREETYPE=no 62233 fi 62234 fi 62235 62236 if test "x$FOUND_FREETYPE" = xyes; then 62237 # Include file found, let's continue the sanity check. 62238 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62239 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62240 62241 # Reset to default value 62242 FREETYPE_BASE_NAME=freetype 62243 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62244 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62245 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62246 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62247 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62248 # for the .6 version explicitly. 62249 FREETYPE_BASE_NAME=freetype.6 62250 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62251 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62252 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62253 else 62254 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62255 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62256 FOUND_FREETYPE=no 62257 fi 62258 else 62259 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62260 # On Windows, we will need both .lib and .dll file. 62261 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62262 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62263 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62264 FOUND_FREETYPE=no 62265 fi 62266 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62267 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62268 # Found lib in isa dir, use that instead. 62269 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62270 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62271 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62272 fi 62273 fi 62274 fi 62275 62276 if test "x$FOUND_FREETYPE" = xyes; then 62277 62278 # Only process if variable expands to non-empty 62279 62280 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62282 62283 # Input might be given as Windows format, start by converting to 62284 # unix format. 62285 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62286 new_path=`$CYGPATH -u "$path"` 62287 62288 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62289 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62290 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62291 # "foo.exe" is OK but "foo" is an error. 62292 # 62293 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62294 # It is also a way to make sure we got the proper file name for the real test later on. 62295 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62296 if test "x$test_shortpath" = x; then 62297 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62298 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62299 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62300 fi 62301 62302 # Call helper function which possibly converts this using DOS-style short mode. 62303 # If so, the updated path is stored in $new_path. 62304 62305 input_path="$new_path" 62306 # Check if we need to convert this using DOS-style short mode. If the path 62307 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62308 # take no chances and rewrite it. 62309 # Note: m4 eats our [], so we need to use [ and ] instead. 62310 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62311 if test "x$has_forbidden_chars" != x; then 62312 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62313 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62314 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62315 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62316 # Going to short mode and back again did indeed matter. Since short mode is 62317 # case insensitive, let's make it lowercase to improve readability. 62318 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62319 # Now convert it back to Unix-style (cygpath) 62320 input_path=`$CYGPATH -u "$shortmode_path"` 62321 new_path="$input_path" 62322 fi 62323 fi 62324 62325 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62326 if test "x$test_cygdrive_prefix" = x; then 62327 # As a simple fix, exclude /usr/bin since it's not a real path. 62328 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62329 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62330 # a path prefixed by /cygdrive for fixpath to work. 62331 new_path="$CYGWIN_ROOT_PATH$input_path" 62332 fi 62333 fi 62334 62335 62336 if test "x$path" != "x$new_path"; then 62337 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62338 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62339 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62340 fi 62341 62342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62343 62344 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62345 has_colon=`$ECHO $path | $GREP ^.:` 62346 new_path="$path" 62347 if test "x$has_colon" = x; then 62348 # Not in mixed or Windows style, start by that. 62349 new_path=`cmd //c echo $path` 62350 fi 62351 62352 62353 input_path="$new_path" 62354 # Check if we need to convert this using DOS-style short mode. If the path 62355 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62356 # take no chances and rewrite it. 62357 # Note: m4 eats our [], so we need to use [ and ] instead. 62358 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62359 if test "x$has_forbidden_chars" != x; then 62360 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62361 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62362 fi 62363 62364 62365 windows_path="$new_path" 62366 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62367 unix_path=`$CYGPATH -u "$windows_path"` 62368 new_path="$unix_path" 62369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62370 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62371 new_path="$unix_path" 62372 fi 62373 62374 if test "x$path" != "x$new_path"; then 62375 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62376 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62377 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62378 fi 62379 62380 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62381 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62382 62383 else 62384 # We're on a unix platform. Hooray! :) 62385 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62386 has_space=`$ECHO "$path" | $GREP " "` 62387 if test "x$has_space" != x; then 62388 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62389 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62390 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62391 fi 62392 62393 # Use eval to expand a potential ~ 62394 eval path="$path" 62395 if test ! -f "$path" && test ! -d "$path"; then 62396 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62397 fi 62398 62399 if test -d "$path"; then 62400 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62401 else 62402 dir="`$DIRNAME "$path"`" 62403 base="`$BASENAME "$path"`" 62404 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62405 fi 62406 fi 62407 fi 62408 62409 62410 # Only process if variable expands to non-empty 62411 62412 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62413 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62414 62415 # Input might be given as Windows format, start by converting to 62416 # unix format. 62417 path="$POTENTIAL_FREETYPE_LIB_PATH" 62418 new_path=`$CYGPATH -u "$path"` 62419 62420 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62421 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62422 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62423 # "foo.exe" is OK but "foo" is an error. 62424 # 62425 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62426 # It is also a way to make sure we got the proper file name for the real test later on. 62427 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62428 if test "x$test_shortpath" = x; then 62429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62430 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62431 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62432 fi 62433 62434 # Call helper function which possibly converts this using DOS-style short mode. 62435 # If so, the updated path is stored in $new_path. 62436 62437 input_path="$new_path" 62438 # Check if we need to convert this using DOS-style short mode. If the path 62439 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62440 # take no chances and rewrite it. 62441 # Note: m4 eats our [], so we need to use [ and ] instead. 62442 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62443 if test "x$has_forbidden_chars" != x; then 62444 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62445 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62446 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62447 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62448 # Going to short mode and back again did indeed matter. Since short mode is 62449 # case insensitive, let's make it lowercase to improve readability. 62450 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62451 # Now convert it back to Unix-style (cygpath) 62452 input_path=`$CYGPATH -u "$shortmode_path"` 62453 new_path="$input_path" 62454 fi 62455 fi 62456 62457 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62458 if test "x$test_cygdrive_prefix" = x; then 62459 # As a simple fix, exclude /usr/bin since it's not a real path. 62460 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62461 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62462 # a path prefixed by /cygdrive for fixpath to work. 62463 new_path="$CYGWIN_ROOT_PATH$input_path" 62464 fi 62465 fi 62466 62467 62468 if test "x$path" != "x$new_path"; then 62469 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62470 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62471 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62472 fi 62473 62474 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62475 62476 path="$POTENTIAL_FREETYPE_LIB_PATH" 62477 has_colon=`$ECHO $path | $GREP ^.:` 62478 new_path="$path" 62479 if test "x$has_colon" = x; then 62480 # Not in mixed or Windows style, start by that. 62481 new_path=`cmd //c echo $path` 62482 fi 62483 62484 62485 input_path="$new_path" 62486 # Check if we need to convert this using DOS-style short mode. If the path 62487 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62488 # take no chances and rewrite it. 62489 # Note: m4 eats our [], so we need to use [ and ] instead. 62490 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62491 if test "x$has_forbidden_chars" != x; then 62492 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62493 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62494 fi 62495 62496 62497 windows_path="$new_path" 62498 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62499 unix_path=`$CYGPATH -u "$windows_path"` 62500 new_path="$unix_path" 62501 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62502 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62503 new_path="$unix_path" 62504 fi 62505 62506 if test "x$path" != "x$new_path"; then 62507 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62508 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62509 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62510 fi 62511 62512 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62513 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62514 62515 else 62516 # We're on a unix platform. Hooray! :) 62517 path="$POTENTIAL_FREETYPE_LIB_PATH" 62518 has_space=`$ECHO "$path" | $GREP " "` 62519 if test "x$has_space" != x; then 62520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62521 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62522 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62523 fi 62524 62525 # Use eval to expand a potential ~ 62526 eval path="$path" 62527 if test ! -f "$path" && test ! -d "$path"; then 62528 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62529 fi 62530 62531 if test -d "$path"; then 62532 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62533 else 62534 dir="`$DIRNAME "$path"`" 62535 base="`$BASENAME "$path"`" 62536 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62537 fi 62538 fi 62539 fi 62540 62541 62542 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62544 $as_echo_n "checking for freetype includes... " >&6; } 62545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62546 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62547 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62549 $as_echo_n "checking for freetype libraries... " >&6; } 62550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62551 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62552 fi 62553 62554 fi 62555 fi 62556 fi 62557 else 62558 FREETYPE_BASE_DIR="$SYSROOT/usr" 62559 62560 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62561 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62562 METHOD="well-known location" 62563 62564 # Let's start with an optimistic view of the world :-) 62565 FOUND_FREETYPE=yes 62566 62567 # First look for the canonical freetype main include file ft2build.h. 62568 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62569 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62570 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62571 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62572 # Fail. 62573 FOUND_FREETYPE=no 62574 fi 62575 fi 62576 62577 if test "x$FOUND_FREETYPE" = xyes; then 62578 # Include file found, let's continue the sanity check. 62579 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62580 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62581 62582 # Reset to default value 62583 FREETYPE_BASE_NAME=freetype 62584 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62585 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62586 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62587 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62588 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62589 # for the .6 version explicitly. 62590 FREETYPE_BASE_NAME=freetype.6 62591 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62592 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62593 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62594 else 62595 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62596 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62597 FOUND_FREETYPE=no 62598 fi 62599 else 62600 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62601 # On Windows, we will need both .lib and .dll file. 62602 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62603 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62604 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62605 FOUND_FREETYPE=no 62606 fi 62607 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62608 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62609 # Found lib in isa dir, use that instead. 62610 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62611 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62612 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62613 fi 62614 fi 62615 fi 62616 62617 if test "x$FOUND_FREETYPE" = xyes; then 62618 62619 # Only process if variable expands to non-empty 62620 62621 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62623 62624 # Input might be given as Windows format, start by converting to 62625 # unix format. 62626 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62627 new_path=`$CYGPATH -u "$path"` 62628 62629 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62630 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62631 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62632 # "foo.exe" is OK but "foo" is an error. 62633 # 62634 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62635 # It is also a way to make sure we got the proper file name for the real test later on. 62636 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62637 if test "x$test_shortpath" = x; then 62638 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62639 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62640 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62641 fi 62642 62643 # Call helper function which possibly converts this using DOS-style short mode. 62644 # If so, the updated path is stored in $new_path. 62645 62646 input_path="$new_path" 62647 # Check if we need to convert this using DOS-style short mode. If the path 62648 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62649 # take no chances and rewrite it. 62650 # Note: m4 eats our [], so we need to use [ and ] instead. 62651 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62652 if test "x$has_forbidden_chars" != x; then 62653 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62654 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62655 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62656 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62657 # Going to short mode and back again did indeed matter. Since short mode is 62658 # case insensitive, let's make it lowercase to improve readability. 62659 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62660 # Now convert it back to Unix-style (cygpath) 62661 input_path=`$CYGPATH -u "$shortmode_path"` 62662 new_path="$input_path" 62663 fi 62664 fi 62665 62666 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62667 if test "x$test_cygdrive_prefix" = x; then 62668 # As a simple fix, exclude /usr/bin since it's not a real path. 62669 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62670 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62671 # a path prefixed by /cygdrive for fixpath to work. 62672 new_path="$CYGWIN_ROOT_PATH$input_path" 62673 fi 62674 fi 62675 62676 62677 if test "x$path" != "x$new_path"; then 62678 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62679 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62680 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62681 fi 62682 62683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62684 62685 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62686 has_colon=`$ECHO $path | $GREP ^.:` 62687 new_path="$path" 62688 if test "x$has_colon" = x; then 62689 # Not in mixed or Windows style, start by that. 62690 new_path=`cmd //c echo $path` 62691 fi 62692 62693 62694 input_path="$new_path" 62695 # Check if we need to convert this using DOS-style short mode. If the path 62696 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62697 # take no chances and rewrite it. 62698 # Note: m4 eats our [], so we need to use [ and ] instead. 62699 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62700 if test "x$has_forbidden_chars" != x; then 62701 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62702 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62703 fi 62704 62705 62706 windows_path="$new_path" 62707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62708 unix_path=`$CYGPATH -u "$windows_path"` 62709 new_path="$unix_path" 62710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62712 new_path="$unix_path" 62713 fi 62714 62715 if test "x$path" != "x$new_path"; then 62716 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62717 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62718 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62719 fi 62720 62721 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62722 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62723 62724 else 62725 # We're on a unix platform. Hooray! :) 62726 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62727 has_space=`$ECHO "$path" | $GREP " "` 62728 if test "x$has_space" != x; then 62729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62730 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62731 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62732 fi 62733 62734 # Use eval to expand a potential ~ 62735 eval path="$path" 62736 if test ! -f "$path" && test ! -d "$path"; then 62737 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62738 fi 62739 62740 if test -d "$path"; then 62741 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62742 else 62743 dir="`$DIRNAME "$path"`" 62744 base="`$BASENAME "$path"`" 62745 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62746 fi 62747 fi 62748 fi 62749 62750 62751 # Only process if variable expands to non-empty 62752 62753 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62755 62756 # Input might be given as Windows format, start by converting to 62757 # unix format. 62758 path="$POTENTIAL_FREETYPE_LIB_PATH" 62759 new_path=`$CYGPATH -u "$path"` 62760 62761 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62762 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62763 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62764 # "foo.exe" is OK but "foo" is an error. 62765 # 62766 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62767 # It is also a way to make sure we got the proper file name for the real test later on. 62768 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62769 if test "x$test_shortpath" = x; then 62770 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62771 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62772 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62773 fi 62774 62775 # Call helper function which possibly converts this using DOS-style short mode. 62776 # If so, the updated path is stored in $new_path. 62777 62778 input_path="$new_path" 62779 # Check if we need to convert this using DOS-style short mode. If the path 62780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62781 # take no chances and rewrite it. 62782 # Note: m4 eats our [], so we need to use [ and ] instead. 62783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62784 if test "x$has_forbidden_chars" != x; then 62785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62786 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62787 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62788 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62789 # Going to short mode and back again did indeed matter. Since short mode is 62790 # case insensitive, let's make it lowercase to improve readability. 62791 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62792 # Now convert it back to Unix-style (cygpath) 62793 input_path=`$CYGPATH -u "$shortmode_path"` 62794 new_path="$input_path" 62795 fi 62796 fi 62797 62798 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62799 if test "x$test_cygdrive_prefix" = x; then 62800 # As a simple fix, exclude /usr/bin since it's not a real path. 62801 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62802 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62803 # a path prefixed by /cygdrive for fixpath to work. 62804 new_path="$CYGWIN_ROOT_PATH$input_path" 62805 fi 62806 fi 62807 62808 62809 if test "x$path" != "x$new_path"; then 62810 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62812 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62813 fi 62814 62815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62816 62817 path="$POTENTIAL_FREETYPE_LIB_PATH" 62818 has_colon=`$ECHO $path | $GREP ^.:` 62819 new_path="$path" 62820 if test "x$has_colon" = x; then 62821 # Not in mixed or Windows style, start by that. 62822 new_path=`cmd //c echo $path` 62823 fi 62824 62825 62826 input_path="$new_path" 62827 # Check if we need to convert this using DOS-style short mode. If the path 62828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62829 # take no chances and rewrite it. 62830 # Note: m4 eats our [], so we need to use [ and ] instead. 62831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62832 if test "x$has_forbidden_chars" != x; then 62833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62834 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62835 fi 62836 62837 62838 windows_path="$new_path" 62839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62840 unix_path=`$CYGPATH -u "$windows_path"` 62841 new_path="$unix_path" 62842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62844 new_path="$unix_path" 62845 fi 62846 62847 if test "x$path" != "x$new_path"; then 62848 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62850 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62851 fi 62852 62853 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62854 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62855 62856 else 62857 # We're on a unix platform. Hooray! :) 62858 path="$POTENTIAL_FREETYPE_LIB_PATH" 62859 has_space=`$ECHO "$path" | $GREP " "` 62860 if test "x$has_space" != x; then 62861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62862 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62863 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62864 fi 62865 62866 # Use eval to expand a potential ~ 62867 eval path="$path" 62868 if test ! -f "$path" && test ! -d "$path"; then 62869 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62870 fi 62871 62872 if test -d "$path"; then 62873 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62874 else 62875 dir="`$DIRNAME "$path"`" 62876 base="`$BASENAME "$path"`" 62877 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62878 fi 62879 fi 62880 fi 62881 62882 62883 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62885 $as_echo_n "checking for freetype includes... " >&6; } 62886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62887 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62888 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62890 $as_echo_n "checking for freetype libraries... " >&6; } 62891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62892 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62893 fi 62894 62895 62896 if test "x$FOUND_FREETYPE" != xyes; then 62897 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 62898 62899 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62900 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62901 METHOD="well-known location" 62902 62903 # Let's start with an optimistic view of the world :-) 62904 FOUND_FREETYPE=yes 62905 62906 # First look for the canonical freetype main include file ft2build.h. 62907 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62908 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62909 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62910 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62911 # Fail. 62912 FOUND_FREETYPE=no 62913 fi 62914 fi 62915 62916 if test "x$FOUND_FREETYPE" = xyes; then 62917 # Include file found, let's continue the sanity check. 62918 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62919 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62920 62921 # Reset to default value 62922 FREETYPE_BASE_NAME=freetype 62923 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62924 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62925 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62926 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62927 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62928 # for the .6 version explicitly. 62929 FREETYPE_BASE_NAME=freetype.6 62930 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62931 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62932 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62933 else 62934 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62935 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62936 FOUND_FREETYPE=no 62937 fi 62938 else 62939 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62940 # On Windows, we will need both .lib and .dll file. 62941 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62942 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62943 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62944 FOUND_FREETYPE=no 62945 fi 62946 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62947 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62948 # Found lib in isa dir, use that instead. 62949 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62950 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62951 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62952 fi 62953 fi 62954 fi 62955 62956 if test "x$FOUND_FREETYPE" = xyes; then 62957 62958 # Only process if variable expands to non-empty 62959 62960 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62962 62963 # Input might be given as Windows format, start by converting to 62964 # unix format. 62965 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62966 new_path=`$CYGPATH -u "$path"` 62967 62968 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62969 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62970 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62971 # "foo.exe" is OK but "foo" is an error. 62972 # 62973 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62974 # It is also a way to make sure we got the proper file name for the real test later on. 62975 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62976 if test "x$test_shortpath" = x; then 62977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62978 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62979 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62980 fi 62981 62982 # Call helper function which possibly converts this using DOS-style short mode. 62983 # If so, the updated path is stored in $new_path. 62984 62985 input_path="$new_path" 62986 # Check if we need to convert this using DOS-style short mode. If the path 62987 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62988 # take no chances and rewrite it. 62989 # Note: m4 eats our [], so we need to use [ and ] instead. 62990 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62991 if test "x$has_forbidden_chars" != x; then 62992 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62993 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62994 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62995 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62996 # Going to short mode and back again did indeed matter. Since short mode is 62997 # case insensitive, let's make it lowercase to improve readability. 62998 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62999 # Now convert it back to Unix-style (cygpath) 63000 input_path=`$CYGPATH -u "$shortmode_path"` 63001 new_path="$input_path" 63002 fi 63003 fi 63004 63005 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63006 if test "x$test_cygdrive_prefix" = x; then 63007 # As a simple fix, exclude /usr/bin since it's not a real path. 63008 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63009 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63010 # a path prefixed by /cygdrive for fixpath to work. 63011 new_path="$CYGWIN_ROOT_PATH$input_path" 63012 fi 63013 fi 63014 63015 63016 if test "x$path" != "x$new_path"; then 63017 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63018 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63019 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63020 fi 63021 63022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63023 63024 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63025 has_colon=`$ECHO $path | $GREP ^.:` 63026 new_path="$path" 63027 if test "x$has_colon" = x; then 63028 # Not in mixed or Windows style, start by that. 63029 new_path=`cmd //c echo $path` 63030 fi 63031 63032 63033 input_path="$new_path" 63034 # Check if we need to convert this using DOS-style short mode. If the path 63035 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63036 # take no chances and rewrite it. 63037 # Note: m4 eats our [], so we need to use [ and ] instead. 63038 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63039 if test "x$has_forbidden_chars" != x; then 63040 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63041 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63042 fi 63043 63044 63045 windows_path="$new_path" 63046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63047 unix_path=`$CYGPATH -u "$windows_path"` 63048 new_path="$unix_path" 63049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63051 new_path="$unix_path" 63052 fi 63053 63054 if test "x$path" != "x$new_path"; then 63055 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63056 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63057 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63058 fi 63059 63060 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63061 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63062 63063 else 63064 # We're on a unix platform. Hooray! :) 63065 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63066 has_space=`$ECHO "$path" | $GREP " "` 63067 if test "x$has_space" != x; then 63068 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63069 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63070 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63071 fi 63072 63073 # Use eval to expand a potential ~ 63074 eval path="$path" 63075 if test ! -f "$path" && test ! -d "$path"; then 63076 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63077 fi 63078 63079 if test -d "$path"; then 63080 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63081 else 63082 dir="`$DIRNAME "$path"`" 63083 base="`$BASENAME "$path"`" 63084 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63085 fi 63086 fi 63087 fi 63088 63089 63090 # Only process if variable expands to non-empty 63091 63092 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63094 63095 # Input might be given as Windows format, start by converting to 63096 # unix format. 63097 path="$POTENTIAL_FREETYPE_LIB_PATH" 63098 new_path=`$CYGPATH -u "$path"` 63099 63100 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63101 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63102 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63103 # "foo.exe" is OK but "foo" is an error. 63104 # 63105 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63106 # It is also a way to make sure we got the proper file name for the real test later on. 63107 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63108 if test "x$test_shortpath" = x; then 63109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63110 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63111 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63112 fi 63113 63114 # Call helper function which possibly converts this using DOS-style short mode. 63115 # If so, the updated path is stored in $new_path. 63116 63117 input_path="$new_path" 63118 # Check if we need to convert this using DOS-style short mode. If the path 63119 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63120 # take no chances and rewrite it. 63121 # Note: m4 eats our [], so we need to use [ and ] instead. 63122 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63123 if test "x$has_forbidden_chars" != x; then 63124 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63125 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63126 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63127 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63128 # Going to short mode and back again did indeed matter. Since short mode is 63129 # case insensitive, let's make it lowercase to improve readability. 63130 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63131 # Now convert it back to Unix-style (cygpath) 63132 input_path=`$CYGPATH -u "$shortmode_path"` 63133 new_path="$input_path" 63134 fi 63135 fi 63136 63137 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63138 if test "x$test_cygdrive_prefix" = x; then 63139 # As a simple fix, exclude /usr/bin since it's not a real path. 63140 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63141 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63142 # a path prefixed by /cygdrive for fixpath to work. 63143 new_path="$CYGWIN_ROOT_PATH$input_path" 63144 fi 63145 fi 63146 63147 63148 if test "x$path" != "x$new_path"; then 63149 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63150 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63151 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63152 fi 63153 63154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63155 63156 path="$POTENTIAL_FREETYPE_LIB_PATH" 63157 has_colon=`$ECHO $path | $GREP ^.:` 63158 new_path="$path" 63159 if test "x$has_colon" = x; then 63160 # Not in mixed or Windows style, start by that. 63161 new_path=`cmd //c echo $path` 63162 fi 63163 63164 63165 input_path="$new_path" 63166 # Check if we need to convert this using DOS-style short mode. If the path 63167 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63168 # take no chances and rewrite it. 63169 # Note: m4 eats our [], so we need to use [ and ] instead. 63170 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63171 if test "x$has_forbidden_chars" != x; then 63172 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63173 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63174 fi 63175 63176 63177 windows_path="$new_path" 63178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63179 unix_path=`$CYGPATH -u "$windows_path"` 63180 new_path="$unix_path" 63181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63182 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63183 new_path="$unix_path" 63184 fi 63185 63186 if test "x$path" != "x$new_path"; then 63187 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63188 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63189 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63190 fi 63191 63192 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63193 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63194 63195 else 63196 # We're on a unix platform. Hooray! :) 63197 path="$POTENTIAL_FREETYPE_LIB_PATH" 63198 has_space=`$ECHO "$path" | $GREP " "` 63199 if test "x$has_space" != x; then 63200 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63201 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63202 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63203 fi 63204 63205 # Use eval to expand a potential ~ 63206 eval path="$path" 63207 if test ! -f "$path" && test ! -d "$path"; then 63208 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63209 fi 63210 63211 if test -d "$path"; then 63212 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63213 else 63214 dir="`$DIRNAME "$path"`" 63215 base="`$BASENAME "$path"`" 63216 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63217 fi 63218 fi 63219 fi 63220 63221 63222 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63224 $as_echo_n "checking for freetype includes... " >&6; } 63225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63226 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63227 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63229 $as_echo_n "checking for freetype libraries... " >&6; } 63230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63231 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63232 fi 63233 63234 fi 63235 if test "x$FOUND_FREETYPE" != xyes; then 63236 FREETYPE_BASE_DIR="$SYSROOT/usr/local" 63237 63238 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63239 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 63240 METHOD="well-known location" 63241 63242 # Let's start with an optimistic view of the world :-) 63243 FOUND_FREETYPE=yes 63244 63245 # First look for the canonical freetype main include file ft2build.h. 63246 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63247 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63248 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63249 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63250 # Fail. 63251 FOUND_FREETYPE=no 63252 fi 63253 fi 63254 63255 if test "x$FOUND_FREETYPE" = xyes; then 63256 # Include file found, let's continue the sanity check. 63257 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63258 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63259 63260 # Reset to default value 63261 FREETYPE_BASE_NAME=freetype 63262 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63263 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63264 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63265 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63266 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63267 # for the .6 version explicitly. 63268 FREETYPE_BASE_NAME=freetype.6 63269 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63270 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63271 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63272 else 63273 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63274 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63275 FOUND_FREETYPE=no 63276 fi 63277 else 63278 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63279 # On Windows, we will need both .lib and .dll file. 63280 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63281 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63282 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63283 FOUND_FREETYPE=no 63284 fi 63285 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63286 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63287 # Found lib in isa dir, use that instead. 63288 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63289 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63290 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63291 fi 63292 fi 63293 fi 63294 63295 if test "x$FOUND_FREETYPE" = xyes; then 63296 63297 # Only process if variable expands to non-empty 63298 63299 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63301 63302 # Input might be given as Windows format, start by converting to 63303 # unix format. 63304 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63305 new_path=`$CYGPATH -u "$path"` 63306 63307 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63308 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63309 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63310 # "foo.exe" is OK but "foo" is an error. 63311 # 63312 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63313 # It is also a way to make sure we got the proper file name for the real test later on. 63314 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63315 if test "x$test_shortpath" = x; then 63316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63317 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63318 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63319 fi 63320 63321 # Call helper function which possibly converts this using DOS-style short mode. 63322 # If so, the updated path is stored in $new_path. 63323 63324 input_path="$new_path" 63325 # Check if we need to convert this using DOS-style short mode. If the path 63326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63327 # take no chances and rewrite it. 63328 # Note: m4 eats our [], so we need to use [ and ] instead. 63329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63330 if test "x$has_forbidden_chars" != x; then 63331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63332 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63333 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63334 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63335 # Going to short mode and back again did indeed matter. Since short mode is 63336 # case insensitive, let's make it lowercase to improve readability. 63337 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63338 # Now convert it back to Unix-style (cygpath) 63339 input_path=`$CYGPATH -u "$shortmode_path"` 63340 new_path="$input_path" 63341 fi 63342 fi 63343 63344 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63345 if test "x$test_cygdrive_prefix" = x; then 63346 # As a simple fix, exclude /usr/bin since it's not a real path. 63347 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63348 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63349 # a path prefixed by /cygdrive for fixpath to work. 63350 new_path="$CYGWIN_ROOT_PATH$input_path" 63351 fi 63352 fi 63353 63354 63355 if test "x$path" != "x$new_path"; then 63356 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63358 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63359 fi 63360 63361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63362 63363 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63364 has_colon=`$ECHO $path | $GREP ^.:` 63365 new_path="$path" 63366 if test "x$has_colon" = x; then 63367 # Not in mixed or Windows style, start by that. 63368 new_path=`cmd //c echo $path` 63369 fi 63370 63371 63372 input_path="$new_path" 63373 # Check if we need to convert this using DOS-style short mode. If the path 63374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63375 # take no chances and rewrite it. 63376 # Note: m4 eats our [], so we need to use [ and ] instead. 63377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63378 if test "x$has_forbidden_chars" != x; then 63379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63380 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63381 fi 63382 63383 63384 windows_path="$new_path" 63385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63386 unix_path=`$CYGPATH -u "$windows_path"` 63387 new_path="$unix_path" 63388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63390 new_path="$unix_path" 63391 fi 63392 63393 if test "x$path" != "x$new_path"; then 63394 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63396 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63397 fi 63398 63399 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63400 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63401 63402 else 63403 # We're on a unix platform. Hooray! :) 63404 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63405 has_space=`$ECHO "$path" | $GREP " "` 63406 if test "x$has_space" != x; then 63407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63408 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63409 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63410 fi 63411 63412 # Use eval to expand a potential ~ 63413 eval path="$path" 63414 if test ! -f "$path" && test ! -d "$path"; then 63415 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63416 fi 63417 63418 if test -d "$path"; then 63419 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63420 else 63421 dir="`$DIRNAME "$path"`" 63422 base="`$BASENAME "$path"`" 63423 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63424 fi 63425 fi 63426 fi 63427 63428 63429 # Only process if variable expands to non-empty 63430 63431 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63433 63434 # Input might be given as Windows format, start by converting to 63435 # unix format. 63436 path="$POTENTIAL_FREETYPE_LIB_PATH" 63437 new_path=`$CYGPATH -u "$path"` 63438 63439 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63440 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63441 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63442 # "foo.exe" is OK but "foo" is an error. 63443 # 63444 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63445 # It is also a way to make sure we got the proper file name for the real test later on. 63446 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63447 if test "x$test_shortpath" = x; then 63448 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63449 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63450 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63451 fi 63452 63453 # Call helper function which possibly converts this using DOS-style short mode. 63454 # If so, the updated path is stored in $new_path. 63455 63456 input_path="$new_path" 63457 # Check if we need to convert this using DOS-style short mode. If the path 63458 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63459 # take no chances and rewrite it. 63460 # Note: m4 eats our [], so we need to use [ and ] instead. 63461 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63462 if test "x$has_forbidden_chars" != x; then 63463 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63464 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63465 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63466 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63467 # Going to short mode and back again did indeed matter. Since short mode is 63468 # case insensitive, let's make it lowercase to improve readability. 63469 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63470 # Now convert it back to Unix-style (cygpath) 63471 input_path=`$CYGPATH -u "$shortmode_path"` 63472 new_path="$input_path" 63473 fi 63474 fi 63475 63476 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63477 if test "x$test_cygdrive_prefix" = x; then 63478 # As a simple fix, exclude /usr/bin since it's not a real path. 63479 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63480 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63481 # a path prefixed by /cygdrive for fixpath to work. 63482 new_path="$CYGWIN_ROOT_PATH$input_path" 63483 fi 63484 fi 63485 63486 63487 if test "x$path" != "x$new_path"; then 63488 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63489 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63490 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63491 fi 63492 63493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63494 63495 path="$POTENTIAL_FREETYPE_LIB_PATH" 63496 has_colon=`$ECHO $path | $GREP ^.:` 63497 new_path="$path" 63498 if test "x$has_colon" = x; then 63499 # Not in mixed or Windows style, start by that. 63500 new_path=`cmd //c echo $path` 63501 fi 63502 63503 63504 input_path="$new_path" 63505 # Check if we need to convert this using DOS-style short mode. If the path 63506 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63507 # take no chances and rewrite it. 63508 # Note: m4 eats our [], so we need to use [ and ] instead. 63509 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63510 if test "x$has_forbidden_chars" != x; then 63511 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63512 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63513 fi 63514 63515 63516 windows_path="$new_path" 63517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63518 unix_path=`$CYGPATH -u "$windows_path"` 63519 new_path="$unix_path" 63520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63521 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63522 new_path="$unix_path" 63523 fi 63524 63525 if test "x$path" != "x$new_path"; then 63526 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63527 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63528 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63529 fi 63530 63531 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63532 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63533 63534 else 63535 # We're on a unix platform. Hooray! :) 63536 path="$POTENTIAL_FREETYPE_LIB_PATH" 63537 has_space=`$ECHO "$path" | $GREP " "` 63538 if test "x$has_space" != x; then 63539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63540 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63541 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63542 fi 63543 63544 # Use eval to expand a potential ~ 63545 eval path="$path" 63546 if test ! -f "$path" && test ! -d "$path"; then 63547 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63548 fi 63549 63550 if test -d "$path"; then 63551 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63552 else 63553 dir="`$DIRNAME "$path"`" 63554 base="`$BASENAME "$path"`" 63555 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63556 fi 63557 fi 63558 fi 63559 63560 63561 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63563 $as_echo_n "checking for freetype includes... " >&6; } 63564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63565 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63566 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63568 $as_echo_n "checking for freetype libraries... " >&6; } 63569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63570 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63571 fi 63572 63573 fi 63574 63575 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 63576 if test "x$FOUND_FREETYPE" != xyes; then 63577 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 63578 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 63579 63580 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63581 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 63582 METHOD="well-known location" 63583 63584 # Let's start with an optimistic view of the world :-) 63585 FOUND_FREETYPE=yes 63586 63587 # First look for the canonical freetype main include file ft2build.h. 63588 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63589 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63590 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63591 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63592 # Fail. 63593 FOUND_FREETYPE=no 63594 fi 63595 fi 63596 63597 if test "x$FOUND_FREETYPE" = xyes; then 63598 # Include file found, let's continue the sanity check. 63599 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63600 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63601 63602 # Reset to default value 63603 FREETYPE_BASE_NAME=freetype 63604 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63605 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63606 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63607 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63608 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63609 # for the .6 version explicitly. 63610 FREETYPE_BASE_NAME=freetype.6 63611 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63612 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63613 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63614 else 63615 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63616 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63617 FOUND_FREETYPE=no 63618 fi 63619 else 63620 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63621 # On Windows, we will need both .lib and .dll file. 63622 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63623 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63624 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63625 FOUND_FREETYPE=no 63626 fi 63627 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63628 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63629 # Found lib in isa dir, use that instead. 63630 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63631 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63632 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63633 fi 63634 fi 63635 fi 63636 63637 if test "x$FOUND_FREETYPE" = xyes; then 63638 63639 # Only process if variable expands to non-empty 63640 63641 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63643 63644 # Input might be given as Windows format, start by converting to 63645 # unix format. 63646 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63647 new_path=`$CYGPATH -u "$path"` 63648 63649 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63650 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63651 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63652 # "foo.exe" is OK but "foo" is an error. 63653 # 63654 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63655 # It is also a way to make sure we got the proper file name for the real test later on. 63656 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63657 if test "x$test_shortpath" = x; then 63658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63659 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63660 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63661 fi 63662 63663 # Call helper function which possibly converts this using DOS-style short mode. 63664 # If so, the updated path is stored in $new_path. 63665 63666 input_path="$new_path" 63667 # Check if we need to convert this using DOS-style short mode. If the path 63668 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63669 # take no chances and rewrite it. 63670 # Note: m4 eats our [], so we need to use [ and ] instead. 63671 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63672 if test "x$has_forbidden_chars" != x; then 63673 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63674 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63675 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63676 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63677 # Going to short mode and back again did indeed matter. Since short mode is 63678 # case insensitive, let's make it lowercase to improve readability. 63679 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63680 # Now convert it back to Unix-style (cygpath) 63681 input_path=`$CYGPATH -u "$shortmode_path"` 63682 new_path="$input_path" 63683 fi 63684 fi 63685 63686 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63687 if test "x$test_cygdrive_prefix" = x; then 63688 # As a simple fix, exclude /usr/bin since it's not a real path. 63689 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63690 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63691 # a path prefixed by /cygdrive for fixpath to work. 63692 new_path="$CYGWIN_ROOT_PATH$input_path" 63693 fi 63694 fi 63695 63696 63697 if test "x$path" != "x$new_path"; then 63698 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63699 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63700 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63701 fi 63702 63703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63704 63705 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63706 has_colon=`$ECHO $path | $GREP ^.:` 63707 new_path="$path" 63708 if test "x$has_colon" = x; then 63709 # Not in mixed or Windows style, start by that. 63710 new_path=`cmd //c echo $path` 63711 fi 63712 63713 63714 input_path="$new_path" 63715 # Check if we need to convert this using DOS-style short mode. If the path 63716 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63717 # take no chances and rewrite it. 63718 # Note: m4 eats our [], so we need to use [ and ] instead. 63719 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63720 if test "x$has_forbidden_chars" != x; then 63721 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63722 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63723 fi 63724 63725 63726 windows_path="$new_path" 63727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63728 unix_path=`$CYGPATH -u "$windows_path"` 63729 new_path="$unix_path" 63730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63732 new_path="$unix_path" 63733 fi 63734 63735 if test "x$path" != "x$new_path"; then 63736 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63737 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63738 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63739 fi 63740 63741 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63742 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63743 63744 else 63745 # We're on a unix platform. Hooray! :) 63746 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63747 has_space=`$ECHO "$path" | $GREP " "` 63748 if test "x$has_space" != x; then 63749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63750 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63751 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63752 fi 63753 63754 # Use eval to expand a potential ~ 63755 eval path="$path" 63756 if test ! -f "$path" && test ! -d "$path"; then 63757 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63758 fi 63759 63760 if test -d "$path"; then 63761 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63762 else 63763 dir="`$DIRNAME "$path"`" 63764 base="`$BASENAME "$path"`" 63765 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63766 fi 63767 fi 63768 fi 63769 63770 63771 # Only process if variable expands to non-empty 63772 63773 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63774 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63775 63776 # Input might be given as Windows format, start by converting to 63777 # unix format. 63778 path="$POTENTIAL_FREETYPE_LIB_PATH" 63779 new_path=`$CYGPATH -u "$path"` 63780 63781 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63782 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63783 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63784 # "foo.exe" is OK but "foo" is an error. 63785 # 63786 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63787 # It is also a way to make sure we got the proper file name for the real test later on. 63788 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63789 if test "x$test_shortpath" = x; then 63790 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63791 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63792 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63793 fi 63794 63795 # Call helper function which possibly converts this using DOS-style short mode. 63796 # If so, the updated path is stored in $new_path. 63797 63798 input_path="$new_path" 63799 # Check if we need to convert this using DOS-style short mode. If the path 63800 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63801 # take no chances and rewrite it. 63802 # Note: m4 eats our [], so we need to use [ and ] instead. 63803 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63804 if test "x$has_forbidden_chars" != x; then 63805 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63806 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63807 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63808 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63809 # Going to short mode and back again did indeed matter. Since short mode is 63810 # case insensitive, let's make it lowercase to improve readability. 63811 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63812 # Now convert it back to Unix-style (cygpath) 63813 input_path=`$CYGPATH -u "$shortmode_path"` 63814 new_path="$input_path" 63815 fi 63816 fi 63817 63818 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63819 if test "x$test_cygdrive_prefix" = x; then 63820 # As a simple fix, exclude /usr/bin since it's not a real path. 63821 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63822 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63823 # a path prefixed by /cygdrive for fixpath to work. 63824 new_path="$CYGWIN_ROOT_PATH$input_path" 63825 fi 63826 fi 63827 63828 63829 if test "x$path" != "x$new_path"; then 63830 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63831 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63832 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63833 fi 63834 63835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63836 63837 path="$POTENTIAL_FREETYPE_LIB_PATH" 63838 has_colon=`$ECHO $path | $GREP ^.:` 63839 new_path="$path" 63840 if test "x$has_colon" = x; then 63841 # Not in mixed or Windows style, start by that. 63842 new_path=`cmd //c echo $path` 63843 fi 63844 63845 63846 input_path="$new_path" 63847 # Check if we need to convert this using DOS-style short mode. If the path 63848 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63849 # take no chances and rewrite it. 63850 # Note: m4 eats our [], so we need to use [ and ] instead. 63851 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63852 if test "x$has_forbidden_chars" != x; then 63853 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63854 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63855 fi 63856 63857 63858 windows_path="$new_path" 63859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63860 unix_path=`$CYGPATH -u "$windows_path"` 63861 new_path="$unix_path" 63862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63863 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63864 new_path="$unix_path" 63865 fi 63866 63867 if test "x$path" != "x$new_path"; then 63868 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63869 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63870 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63871 fi 63872 63873 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63874 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63875 63876 else 63877 # We're on a unix platform. Hooray! :) 63878 path="$POTENTIAL_FREETYPE_LIB_PATH" 63879 has_space=`$ECHO "$path" | $GREP " "` 63880 if test "x$has_space" != x; then 63881 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63882 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63883 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63884 fi 63885 63886 # Use eval to expand a potential ~ 63887 eval path="$path" 63888 if test ! -f "$path" && test ! -d "$path"; then 63889 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63890 fi 63891 63892 if test -d "$path"; then 63893 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63894 else 63895 dir="`$DIRNAME "$path"`" 63896 base="`$BASENAME "$path"`" 63897 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63898 fi 63899 fi 63900 fi 63901 63902 63903 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63905 $as_echo_n "checking for freetype includes... " >&6; } 63906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63907 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63908 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63910 $as_echo_n "checking for freetype libraries... " >&6; } 63911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63912 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63913 fi 63914 63915 fi 63916 fi 63917 63918 if test "x$FOUND_FREETYPE" != xyes; then 63919 FREETYPE_BASE_DIR="$SYSROOT/usr" 63920 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 63921 63922 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63923 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/$OPENJDK_TARGET_CPU-linux-gnu" 63924 METHOD="well-known location" 63925 63926 # Let's start with an optimistic view of the world :-) 63927 FOUND_FREETYPE=yes 63928 63929 # First look for the canonical freetype main include file ft2build.h. 63930 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63931 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63932 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63933 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63934 # Fail. 63935 FOUND_FREETYPE=no 63936 fi 63937 fi 63938 63939 if test "x$FOUND_FREETYPE" = xyes; then 63940 # Include file found, let's continue the sanity check. 63941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63942 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63943 63944 # Reset to default value 63945 FREETYPE_BASE_NAME=freetype 63946 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63947 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63948 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63949 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63950 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63951 # for the .6 version explicitly. 63952 FREETYPE_BASE_NAME=freetype.6 63953 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63954 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63955 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63956 else 63957 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63958 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63959 FOUND_FREETYPE=no 63960 fi 63961 else 63962 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63963 # On Windows, we will need both .lib and .dll file. 63964 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63965 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63966 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63967 FOUND_FREETYPE=no 63968 fi 63969 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63970 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63971 # Found lib in isa dir, use that instead. 63972 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63973 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63974 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63975 fi 63976 fi 63977 fi 63978 63979 if test "x$FOUND_FREETYPE" = xyes; then 63980 63981 # Only process if variable expands to non-empty 63982 63983 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63985 63986 # Input might be given as Windows format, start by converting to 63987 # unix format. 63988 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63989 new_path=`$CYGPATH -u "$path"` 63990 63991 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63992 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63993 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63994 # "foo.exe" is OK but "foo" is an error. 63995 # 63996 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63997 # It is also a way to make sure we got the proper file name for the real test later on. 63998 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63999 if test "x$test_shortpath" = x; then 64000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64001 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64002 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 64003 fi 64004 64005 # Call helper function which possibly converts this using DOS-style short mode. 64006 # If so, the updated path is stored in $new_path. 64007 64008 input_path="$new_path" 64009 # Check if we need to convert this using DOS-style short mode. If the path 64010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64011 # take no chances and rewrite it. 64012 # Note: m4 eats our [], so we need to use [ and ] instead. 64013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64014 if test "x$has_forbidden_chars" != x; then 64015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64016 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64017 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64018 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64019 # Going to short mode and back again did indeed matter. Since short mode is 64020 # case insensitive, let's make it lowercase to improve readability. 64021 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64022 # Now convert it back to Unix-style (cygpath) 64023 input_path=`$CYGPATH -u "$shortmode_path"` 64024 new_path="$input_path" 64025 fi 64026 fi 64027 64028 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64029 if test "x$test_cygdrive_prefix" = x; then 64030 # As a simple fix, exclude /usr/bin since it's not a real path. 64031 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64032 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64033 # a path prefixed by /cygdrive for fixpath to work. 64034 new_path="$CYGWIN_ROOT_PATH$input_path" 64035 fi 64036 fi 64037 64038 64039 if test "x$path" != "x$new_path"; then 64040 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64042 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64043 fi 64044 64045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64046 64047 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64048 has_colon=`$ECHO $path | $GREP ^.:` 64049 new_path="$path" 64050 if test "x$has_colon" = x; then 64051 # Not in mixed or Windows style, start by that. 64052 new_path=`cmd //c echo $path` 64053 fi 64054 64055 64056 input_path="$new_path" 64057 # Check if we need to convert this using DOS-style short mode. If the path 64058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64059 # take no chances and rewrite it. 64060 # Note: m4 eats our [], so we need to use [ and ] instead. 64061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64062 if test "x$has_forbidden_chars" != x; then 64063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64064 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64065 fi 64066 64067 64068 windows_path="$new_path" 64069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64070 unix_path=`$CYGPATH -u "$windows_path"` 64071 new_path="$unix_path" 64072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64073 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64074 new_path="$unix_path" 64075 fi 64076 64077 if test "x$path" != "x$new_path"; then 64078 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64080 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64081 fi 64082 64083 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64084 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64085 64086 else 64087 # We're on a unix platform. Hooray! :) 64088 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64089 has_space=`$ECHO "$path" | $GREP " "` 64090 if test "x$has_space" != x; then 64091 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64092 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64093 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64094 fi 64095 64096 # Use eval to expand a potential ~ 64097 eval path="$path" 64098 if test ! -f "$path" && test ! -d "$path"; then 64099 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64100 fi 64101 64102 if test -d "$path"; then 64103 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64104 else 64105 dir="`$DIRNAME "$path"`" 64106 base="`$BASENAME "$path"`" 64107 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64108 fi 64109 fi 64110 fi 64111 64112 64113 # Only process if variable expands to non-empty 64114 64115 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64117 64118 # Input might be given as Windows format, start by converting to 64119 # unix format. 64120 path="$POTENTIAL_FREETYPE_LIB_PATH" 64121 new_path=`$CYGPATH -u "$path"` 64122 64123 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64124 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64125 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64126 # "foo.exe" is OK but "foo" is an error. 64127 # 64128 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64129 # It is also a way to make sure we got the proper file name for the real test later on. 64130 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64131 if test "x$test_shortpath" = x; then 64132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64133 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64134 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64135 fi 64136 64137 # Call helper function which possibly converts this using DOS-style short mode. 64138 # If so, the updated path is stored in $new_path. 64139 64140 input_path="$new_path" 64141 # Check if we need to convert this using DOS-style short mode. If the path 64142 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64143 # take no chances and rewrite it. 64144 # Note: m4 eats our [], so we need to use [ and ] instead. 64145 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64146 if test "x$has_forbidden_chars" != x; then 64147 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64148 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64149 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64150 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64151 # Going to short mode and back again did indeed matter. Since short mode is 64152 # case insensitive, let's make it lowercase to improve readability. 64153 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64154 # Now convert it back to Unix-style (cygpath) 64155 input_path=`$CYGPATH -u "$shortmode_path"` 64156 new_path="$input_path" 64157 fi 64158 fi 64159 64160 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64161 if test "x$test_cygdrive_prefix" = x; then 64162 # As a simple fix, exclude /usr/bin since it's not a real path. 64163 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64164 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64165 # a path prefixed by /cygdrive for fixpath to work. 64166 new_path="$CYGWIN_ROOT_PATH$input_path" 64167 fi 64168 fi 64169 64170 64171 if test "x$path" != "x$new_path"; then 64172 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64173 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64174 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64175 fi 64176 64177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64178 64179 path="$POTENTIAL_FREETYPE_LIB_PATH" 64180 has_colon=`$ECHO $path | $GREP ^.:` 64181 new_path="$path" 64182 if test "x$has_colon" = x; then 64183 # Not in mixed or Windows style, start by that. 64184 new_path=`cmd //c echo $path` 64185 fi 64186 64187 64188 input_path="$new_path" 64189 # Check if we need to convert this using DOS-style short mode. If the path 64190 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64191 # take no chances and rewrite it. 64192 # Note: m4 eats our [], so we need to use [ and ] instead. 64193 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64194 if test "x$has_forbidden_chars" != x; then 64195 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64196 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64197 fi 64198 64199 64200 windows_path="$new_path" 64201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64202 unix_path=`$CYGPATH -u "$windows_path"` 64203 new_path="$unix_path" 64204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64205 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64206 new_path="$unix_path" 64207 fi 64208 64209 if test "x$path" != "x$new_path"; then 64210 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64211 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64212 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64213 fi 64214 64215 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64216 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64217 64218 else 64219 # We're on a unix platform. Hooray! :) 64220 path="$POTENTIAL_FREETYPE_LIB_PATH" 64221 has_space=`$ECHO "$path" | $GREP " "` 64222 if test "x$has_space" != x; then 64223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64224 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64225 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64226 fi 64227 64228 # Use eval to expand a potential ~ 64229 eval path="$path" 64230 if test ! -f "$path" && test ! -d "$path"; then 64231 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64232 fi 64233 64234 if test -d "$path"; then 64235 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64236 else 64237 dir="`$DIRNAME "$path"`" 64238 base="`$BASENAME "$path"`" 64239 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64240 fi 64241 fi 64242 fi 64243 64244 64245 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64247 $as_echo_n "checking for freetype includes... " >&6; } 64248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64249 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64250 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64252 $as_echo_n "checking for freetype libraries... " >&6; } 64253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64254 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64255 fi 64256 64257 else 64258 64259 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 64260 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 64261 METHOD="well-known location" 64262 64263 # Let's start with an optimistic view of the world :-) 64264 FOUND_FREETYPE=yes 64265 64266 # First look for the canonical freetype main include file ft2build.h. 64267 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64268 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 64269 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 64270 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64271 # Fail. 64272 FOUND_FREETYPE=no 64273 fi 64274 fi 64275 64276 if test "x$FOUND_FREETYPE" = xyes; then 64277 # Include file found, let's continue the sanity check. 64278 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 64279 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 64280 64281 # Reset to default value 64282 FREETYPE_BASE_NAME=freetype 64283 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64284 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 64285 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 64286 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 64287 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 64288 # for the .6 version explicitly. 64289 FREETYPE_BASE_NAME=freetype.6 64290 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64291 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 64292 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 64293 else 64294 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 64295 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 64296 FOUND_FREETYPE=no 64297 fi 64298 else 64299 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64300 # On Windows, we will need both .lib and .dll file. 64301 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 64302 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 64303 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 64304 FOUND_FREETYPE=no 64305 fi 64306 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 64307 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 64308 # Found lib in isa dir, use that instead. 64309 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 64310 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 64311 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 64312 fi 64313 fi 64314 fi 64315 64316 if test "x$FOUND_FREETYPE" = xyes; then 64317 64318 # Only process if variable expands to non-empty 64319 64320 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 64321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64322 64323 # Input might be given as Windows format, start by converting to 64324 # unix format. 64325 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64326 new_path=`$CYGPATH -u "$path"` 64327 64328 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64329 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64330 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64331 # "foo.exe" is OK but "foo" is an error. 64332 # 64333 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64334 # It is also a way to make sure we got the proper file name for the real test later on. 64335 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64336 if test "x$test_shortpath" = x; then 64337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64338 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64339 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 64340 fi 64341 64342 # Call helper function which possibly converts this using DOS-style short mode. 64343 # If so, the updated path is stored in $new_path. 64344 64345 input_path="$new_path" 64346 # Check if we need to convert this using DOS-style short mode. If the path 64347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64348 # take no chances and rewrite it. 64349 # Note: m4 eats our [], so we need to use [ and ] instead. 64350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64351 if test "x$has_forbidden_chars" != x; then 64352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64353 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64354 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64355 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64356 # Going to short mode and back again did indeed matter. Since short mode is 64357 # case insensitive, let's make it lowercase to improve readability. 64358 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64359 # Now convert it back to Unix-style (cygpath) 64360 input_path=`$CYGPATH -u "$shortmode_path"` 64361 new_path="$input_path" 64362 fi 64363 fi 64364 64365 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64366 if test "x$test_cygdrive_prefix" = x; then 64367 # As a simple fix, exclude /usr/bin since it's not a real path. 64368 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64369 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64370 # a path prefixed by /cygdrive for fixpath to work. 64371 new_path="$CYGWIN_ROOT_PATH$input_path" 64372 fi 64373 fi 64374 64375 64376 if test "x$path" != "x$new_path"; then 64377 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64378 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64379 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64380 fi 64381 64382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64383 64384 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64385 has_colon=`$ECHO $path | $GREP ^.:` 64386 new_path="$path" 64387 if test "x$has_colon" = x; then 64388 # Not in mixed or Windows style, start by that. 64389 new_path=`cmd //c echo $path` 64390 fi 64391 64392 64393 input_path="$new_path" 64394 # Check if we need to convert this using DOS-style short mode. If the path 64395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64396 # take no chances and rewrite it. 64397 # Note: m4 eats our [], so we need to use [ and ] instead. 64398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64399 if test "x$has_forbidden_chars" != x; then 64400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64401 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64402 fi 64403 64404 64405 windows_path="$new_path" 64406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64407 unix_path=`$CYGPATH -u "$windows_path"` 64408 new_path="$unix_path" 64409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64411 new_path="$unix_path" 64412 fi 64413 64414 if test "x$path" != "x$new_path"; then 64415 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64417 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64418 fi 64419 64420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64422 64423 else 64424 # We're on a unix platform. Hooray! :) 64425 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64426 has_space=`$ECHO "$path" | $GREP " "` 64427 if test "x$has_space" != x; then 64428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64429 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64430 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64431 fi 64432 64433 # Use eval to expand a potential ~ 64434 eval path="$path" 64435 if test ! -f "$path" && test ! -d "$path"; then 64436 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64437 fi 64438 64439 if test -d "$path"; then 64440 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64441 else 64442 dir="`$DIRNAME "$path"`" 64443 base="`$BASENAME "$path"`" 64444 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64445 fi 64446 fi 64447 fi 64448 64449 64450 # Only process if variable expands to non-empty 64451 64452 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64454 64455 # Input might be given as Windows format, start by converting to 64456 # unix format. 64457 path="$POTENTIAL_FREETYPE_LIB_PATH" 64458 new_path=`$CYGPATH -u "$path"` 64459 64460 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64461 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64462 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64463 # "foo.exe" is OK but "foo" is an error. 64464 # 64465 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64466 # It is also a way to make sure we got the proper file name for the real test later on. 64467 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64468 if test "x$test_shortpath" = x; then 64469 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64470 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64471 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64472 fi 64473 64474 # Call helper function which possibly converts this using DOS-style short mode. 64475 # If so, the updated path is stored in $new_path. 64476 64477 input_path="$new_path" 64478 # Check if we need to convert this using DOS-style short mode. If the path 64479 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64480 # take no chances and rewrite it. 64481 # Note: m4 eats our [], so we need to use [ and ] instead. 64482 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64483 if test "x$has_forbidden_chars" != x; then 64484 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64485 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64486 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64487 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64488 # Going to short mode and back again did indeed matter. Since short mode is 64489 # case insensitive, let's make it lowercase to improve readability. 64490 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64491 # Now convert it back to Unix-style (cygpath) 64492 input_path=`$CYGPATH -u "$shortmode_path"` 64493 new_path="$input_path" 64494 fi 64495 fi 64496 64497 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64498 if test "x$test_cygdrive_prefix" = x; then 64499 # As a simple fix, exclude /usr/bin since it's not a real path. 64500 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64501 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64502 # a path prefixed by /cygdrive for fixpath to work. 64503 new_path="$CYGWIN_ROOT_PATH$input_path" 64504 fi 64505 fi 64506 64507 64508 if test "x$path" != "x$new_path"; then 64509 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64510 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64511 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64512 fi 64513 64514 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64515 64516 path="$POTENTIAL_FREETYPE_LIB_PATH" 64517 has_colon=`$ECHO $path | $GREP ^.:` 64518 new_path="$path" 64519 if test "x$has_colon" = x; then 64520 # Not in mixed or Windows style, start by that. 64521 new_path=`cmd //c echo $path` 64522 fi 64523 64524 64525 input_path="$new_path" 64526 # Check if we need to convert this using DOS-style short mode. If the path 64527 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64528 # take no chances and rewrite it. 64529 # Note: m4 eats our [], so we need to use [ and ] instead. 64530 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64531 if test "x$has_forbidden_chars" != x; then 64532 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64533 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64534 fi 64535 64536 64537 windows_path="$new_path" 64538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64539 unix_path=`$CYGPATH -u "$windows_path"` 64540 new_path="$unix_path" 64541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64543 new_path="$unix_path" 64544 fi 64545 64546 if test "x$path" != "x$new_path"; then 64547 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64549 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64550 fi 64551 64552 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64553 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64554 64555 else 64556 # We're on a unix platform. Hooray! :) 64557 path="$POTENTIAL_FREETYPE_LIB_PATH" 64558 has_space=`$ECHO "$path" | $GREP " "` 64559 if test "x$has_space" != x; then 64560 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64561 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64562 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64563 fi 64564 64565 # Use eval to expand a potential ~ 64566 eval path="$path" 64567 if test ! -f "$path" && test ! -d "$path"; then 64568 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64569 fi 64570 64571 if test -d "$path"; then 64572 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64573 else 64574 dir="`$DIRNAME "$path"`" 64575 base="`$BASENAME "$path"`" 64576 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64577 fi 64578 fi 64579 fi 64580 64581 64582 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64584 $as_echo_n "checking for freetype includes... " >&6; } 64585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64586 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64587 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64589 $as_echo_n "checking for freetype libraries... " >&6; } 64590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64591 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64592 fi 64593 64594 if test "x$FOUND_FREETYPE" != xyes; then 64595 64596 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 64597 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 64598 METHOD="well-known location" 64599 64600 # Let's start with an optimistic view of the world :-) 64601 FOUND_FREETYPE=yes 64602 64603 # First look for the canonical freetype main include file ft2build.h. 64604 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64605 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 64606 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 64607 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64608 # Fail. 64609 FOUND_FREETYPE=no 64610 fi 64611 fi 64612 64613 if test "x$FOUND_FREETYPE" = xyes; then 64614 # Include file found, let's continue the sanity check. 64615 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 64616 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 64617 64618 # Reset to default value 64619 FREETYPE_BASE_NAME=freetype 64620 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64621 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 64622 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 64623 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 64624 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 64625 # for the .6 version explicitly. 64626 FREETYPE_BASE_NAME=freetype.6 64627 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64628 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 64629 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 64630 else 64631 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 64632 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 64633 FOUND_FREETYPE=no 64634 fi 64635 else 64636 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64637 # On Windows, we will need both .lib and .dll file. 64638 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 64639 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 64640 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 64641 FOUND_FREETYPE=no 64642 fi 64643 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 64644 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 64645 # Found lib in isa dir, use that instead. 64646 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 64647 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 64648 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 64649 fi 64650 fi 64651 fi 64652 64653 if test "x$FOUND_FREETYPE" = xyes; then 64654 64655 # Only process if variable expands to non-empty 64656 64657 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 64658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64659 64660 # Input might be given as Windows format, start by converting to 64661 # unix format. 64662 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64663 new_path=`$CYGPATH -u "$path"` 64664 64665 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64666 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64667 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64668 # "foo.exe" is OK but "foo" is an error. 64669 # 64670 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64671 # It is also a way to make sure we got the proper file name for the real test later on. 64672 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64673 if test "x$test_shortpath" = x; then 64674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64675 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64676 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 64677 fi 64678 64679 # Call helper function which possibly converts this using DOS-style short mode. 64680 # If so, the updated path is stored in $new_path. 64681 64682 input_path="$new_path" 64683 # Check if we need to convert this using DOS-style short mode. If the path 64684 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64685 # take no chances and rewrite it. 64686 # Note: m4 eats our [], so we need to use [ and ] instead. 64687 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64688 if test "x$has_forbidden_chars" != x; then 64689 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64690 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64691 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64692 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64693 # Going to short mode and back again did indeed matter. Since short mode is 64694 # case insensitive, let's make it lowercase to improve readability. 64695 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64696 # Now convert it back to Unix-style (cygpath) 64697 input_path=`$CYGPATH -u "$shortmode_path"` 64698 new_path="$input_path" 64699 fi 64700 fi 64701 64702 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64703 if test "x$test_cygdrive_prefix" = x; then 64704 # As a simple fix, exclude /usr/bin since it's not a real path. 64705 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64706 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64707 # a path prefixed by /cygdrive for fixpath to work. 64708 new_path="$CYGWIN_ROOT_PATH$input_path" 64709 fi 64710 fi 64711 64712 64713 if test "x$path" != "x$new_path"; then 64714 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64715 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64716 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64717 fi 64718 64719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64720 64721 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64722 has_colon=`$ECHO $path | $GREP ^.:` 64723 new_path="$path" 64724 if test "x$has_colon" = x; then 64725 # Not in mixed or Windows style, start by that. 64726 new_path=`cmd //c echo $path` 64727 fi 64728 64729 64730 input_path="$new_path" 64731 # Check if we need to convert this using DOS-style short mode. If the path 64732 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64733 # take no chances and rewrite it. 64734 # Note: m4 eats our [], so we need to use [ and ] instead. 64735 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64736 if test "x$has_forbidden_chars" != x; then 64737 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64738 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64739 fi 64740 64741 64742 windows_path="$new_path" 64743 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64744 unix_path=`$CYGPATH -u "$windows_path"` 64745 new_path="$unix_path" 64746 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64747 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64748 new_path="$unix_path" 64749 fi 64750 64751 if test "x$path" != "x$new_path"; then 64752 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64753 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64754 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64755 fi 64756 64757 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64758 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64759 64760 else 64761 # We're on a unix platform. Hooray! :) 64762 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64763 has_space=`$ECHO "$path" | $GREP " "` 64764 if test "x$has_space" != x; then 64765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64766 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64767 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64768 fi 64769 64770 # Use eval to expand a potential ~ 64771 eval path="$path" 64772 if test ! -f "$path" && test ! -d "$path"; then 64773 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64774 fi 64775 64776 if test -d "$path"; then 64777 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64778 else 64779 dir="`$DIRNAME "$path"`" 64780 base="`$BASENAME "$path"`" 64781 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64782 fi 64783 fi 64784 fi 64785 64786 64787 # Only process if variable expands to non-empty 64788 64789 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64791 64792 # Input might be given as Windows format, start by converting to 64793 # unix format. 64794 path="$POTENTIAL_FREETYPE_LIB_PATH" 64795 new_path=`$CYGPATH -u "$path"` 64796 64797 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64798 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64799 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64800 # "foo.exe" is OK but "foo" is an error. 64801 # 64802 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64803 # It is also a way to make sure we got the proper file name for the real test later on. 64804 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64805 if test "x$test_shortpath" = x; then 64806 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64807 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64808 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64809 fi 64810 64811 # Call helper function which possibly converts this using DOS-style short mode. 64812 # If so, the updated path is stored in $new_path. 64813 64814 input_path="$new_path" 64815 # Check if we need to convert this using DOS-style short mode. If the path 64816 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64817 # take no chances and rewrite it. 64818 # Note: m4 eats our [], so we need to use [ and ] instead. 64819 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64820 if test "x$has_forbidden_chars" != x; then 64821 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64822 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64823 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64824 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64825 # Going to short mode and back again did indeed matter. Since short mode is 64826 # case insensitive, let's make it lowercase to improve readability. 64827 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64828 # Now convert it back to Unix-style (cygpath) 64829 input_path=`$CYGPATH -u "$shortmode_path"` 64830 new_path="$input_path" 64831 fi 64832 fi 64833 64834 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64835 if test "x$test_cygdrive_prefix" = x; then 64836 # As a simple fix, exclude /usr/bin since it's not a real path. 64837 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64838 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64839 # a path prefixed by /cygdrive for fixpath to work. 64840 new_path="$CYGWIN_ROOT_PATH$input_path" 64841 fi 64842 fi 64843 64844 64845 if test "x$path" != "x$new_path"; then 64846 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64847 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64848 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64849 fi 64850 64851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64852 64853 path="$POTENTIAL_FREETYPE_LIB_PATH" 64854 has_colon=`$ECHO $path | $GREP ^.:` 64855 new_path="$path" 64856 if test "x$has_colon" = x; then 64857 # Not in mixed or Windows style, start by that. 64858 new_path=`cmd //c echo $path` 64859 fi 64860 64861 64862 input_path="$new_path" 64863 # Check if we need to convert this using DOS-style short mode. If the path 64864 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64865 # take no chances and rewrite it. 64866 # Note: m4 eats our [], so we need to use [ and ] instead. 64867 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64868 if test "x$has_forbidden_chars" != x; then 64869 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64870 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64871 fi 64872 64873 64874 windows_path="$new_path" 64875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64876 unix_path=`$CYGPATH -u "$windows_path"` 64877 new_path="$unix_path" 64878 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64879 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64880 new_path="$unix_path" 64881 fi 64882 64883 if test "x$path" != "x$new_path"; then 64884 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64885 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64886 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64887 fi 64888 64889 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64890 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64891 64892 else 64893 # We're on a unix platform. Hooray! :) 64894 path="$POTENTIAL_FREETYPE_LIB_PATH" 64895 has_space=`$ECHO "$path" | $GREP " "` 64896 if test "x$has_space" != x; then 64897 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64898 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64899 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64900 fi 64901 64902 # Use eval to expand a potential ~ 64903 eval path="$path" 64904 if test ! -f "$path" && test ! -d "$path"; then 64905 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64906 fi 64907 64908 if test -d "$path"; then 64909 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64910 else 64911 dir="`$DIRNAME "$path"`" 64912 base="`$BASENAME "$path"`" 64913 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64914 fi 64915 fi 64916 fi 64917 64918 64919 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64921 $as_echo_n "checking for freetype includes... " >&6; } 64922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64923 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64924 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64926 $as_echo_n "checking for freetype libraries... " >&6; } 64927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64928 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64929 fi 64930 64931 fi 64932 fi 64933 fi 64934 fi 64935 fi # end check in well-known locations 64936 64937 if test "x$FOUND_FREETYPE" != xyes; then 64938 64939 # Print a helpful message on how to acquire the necessary build dependency. 64940 # freetype is the help tag: freetype, cups, alsa etc 64941 MISSING_DEPENDENCY=freetype 64942 64943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64944 cygwin_help $MISSING_DEPENDENCY 64945 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64946 msys_help $MISSING_DEPENDENCY 64947 else 64948 PKGHANDLER_COMMAND= 64949 64950 case $PKGHANDLER in 64951 apt-get) 64952 apt_help $MISSING_DEPENDENCY ;; 64953 yum) 64954 yum_help $MISSING_DEPENDENCY ;; 64955 brew) 64956 brew_help $MISSING_DEPENDENCY ;; 64957 port) 64958 port_help $MISSING_DEPENDENCY ;; 64959 pkgutil) 64960 pkgutil_help $MISSING_DEPENDENCY ;; 64961 pkgadd) 64962 pkgadd_help $MISSING_DEPENDENCY ;; 64963 esac 64964 64965 if test "x$PKGHANDLER_COMMAND" != x; then 64966 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64967 fi 64968 fi 64969 64970 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 64971 fi 64972 fi # end user specified settings 64973 64974 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 64975 if test "x$FREETYPE_CFLAGS" = x; then 64976 64977 # Only process if variable expands to non-empty 64978 64979 if test "x$FREETYPE_INCLUDE_PATH" != x; then 64980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64981 64982 # Input might be given as Windows format, start by converting to 64983 # unix format. 64984 path="$FREETYPE_INCLUDE_PATH" 64985 new_path=`$CYGPATH -u "$path"` 64986 64987 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64988 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64989 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64990 # "foo.exe" is OK but "foo" is an error. 64991 # 64992 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64993 # It is also a way to make sure we got the proper file name for the real test later on. 64994 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64995 if test "x$test_shortpath" = x; then 64996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64997 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64998 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 64999 fi 65000 65001 # Call helper function which possibly converts this using DOS-style short mode. 65002 # If so, the updated path is stored in $new_path. 65003 65004 input_path="$new_path" 65005 # Check if we need to convert this using DOS-style short mode. If the path 65006 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65007 # take no chances and rewrite it. 65008 # Note: m4 eats our [], so we need to use [ and ] instead. 65009 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65010 if test "x$has_forbidden_chars" != x; then 65011 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65012 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65013 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65014 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65015 # Going to short mode and back again did indeed matter. Since short mode is 65016 # case insensitive, let's make it lowercase to improve readability. 65017 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65018 # Now convert it back to Unix-style (cygpath) 65019 input_path=`$CYGPATH -u "$shortmode_path"` 65020 new_path="$input_path" 65021 fi 65022 fi 65023 65024 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65025 if test "x$test_cygdrive_prefix" = x; then 65026 # As a simple fix, exclude /usr/bin since it's not a real path. 65027 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65028 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65029 # a path prefixed by /cygdrive for fixpath to work. 65030 new_path="$CYGWIN_ROOT_PATH$input_path" 65031 fi 65032 fi 65033 65034 65035 if test "x$path" != "x$new_path"; then 65036 FREETYPE_INCLUDE_PATH="$new_path" 65037 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 65038 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 65039 fi 65040 65041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65042 65043 path="$FREETYPE_INCLUDE_PATH" 65044 has_colon=`$ECHO $path | $GREP ^.:` 65045 new_path="$path" 65046 if test "x$has_colon" = x; then 65047 # Not in mixed or Windows style, start by that. 65048 new_path=`cmd //c echo $path` 65049 fi 65050 65051 65052 input_path="$new_path" 65053 # Check if we need to convert this using DOS-style short mode. If the path 65054 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65055 # take no chances and rewrite it. 65056 # Note: m4 eats our [], so we need to use [ and ] instead. 65057 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65058 if test "x$has_forbidden_chars" != x; then 65059 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65060 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65061 fi 65062 65063 65064 windows_path="$new_path" 65065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65066 unix_path=`$CYGPATH -u "$windows_path"` 65067 new_path="$unix_path" 65068 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65069 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65070 new_path="$unix_path" 65071 fi 65072 65073 if test "x$path" != "x$new_path"; then 65074 FREETYPE_INCLUDE_PATH="$new_path" 65075 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 65076 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 65077 fi 65078 65079 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65080 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65081 65082 else 65083 # We're on a unix platform. Hooray! :) 65084 path="$FREETYPE_INCLUDE_PATH" 65085 has_space=`$ECHO "$path" | $GREP " "` 65086 if test "x$has_space" != x; then 65087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 65088 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 65089 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65090 fi 65091 65092 # Use eval to expand a potential ~ 65093 eval path="$path" 65094 if test ! -f "$path" && test ! -d "$path"; then 65095 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 65096 fi 65097 65098 if test -d "$path"; then 65099 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 65100 else 65101 dir="`$DIRNAME "$path"`" 65102 base="`$BASENAME "$path"`" 65103 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 65104 fi 65105 fi 65106 fi 65107 65108 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 65109 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 65110 else 65111 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 65112 fi 65113 fi 65114 65115 if test "x$FREETYPE_LIBS" = x; then 65116 65117 # Only process if variable expands to non-empty 65118 65119 if test "x$FREETYPE_LIB_PATH" != x; then 65120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65121 65122 # Input might be given as Windows format, start by converting to 65123 # unix format. 65124 path="$FREETYPE_LIB_PATH" 65125 new_path=`$CYGPATH -u "$path"` 65126 65127 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65128 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65129 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65130 # "foo.exe" is OK but "foo" is an error. 65131 # 65132 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65133 # It is also a way to make sure we got the proper file name for the real test later on. 65134 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65135 if test "x$test_shortpath" = x; then 65136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 65137 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 65138 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 65139 fi 65140 65141 # Call helper function which possibly converts this using DOS-style short mode. 65142 # If so, the updated path is stored in $new_path. 65143 65144 input_path="$new_path" 65145 # Check if we need to convert this using DOS-style short mode. If the path 65146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65147 # take no chances and rewrite it. 65148 # Note: m4 eats our [], so we need to use [ and ] instead. 65149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65150 if test "x$has_forbidden_chars" != x; then 65151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65152 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65153 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65154 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65155 # Going to short mode and back again did indeed matter. Since short mode is 65156 # case insensitive, let's make it lowercase to improve readability. 65157 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65158 # Now convert it back to Unix-style (cygpath) 65159 input_path=`$CYGPATH -u "$shortmode_path"` 65160 new_path="$input_path" 65161 fi 65162 fi 65163 65164 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65165 if test "x$test_cygdrive_prefix" = x; then 65166 # As a simple fix, exclude /usr/bin since it's not a real path. 65167 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65168 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65169 # a path prefixed by /cygdrive for fixpath to work. 65170 new_path="$CYGWIN_ROOT_PATH$input_path" 65171 fi 65172 fi 65173 65174 65175 if test "x$path" != "x$new_path"; then 65176 FREETYPE_LIB_PATH="$new_path" 65177 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 65178 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 65179 fi 65180 65181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65182 65183 path="$FREETYPE_LIB_PATH" 65184 has_colon=`$ECHO $path | $GREP ^.:` 65185 new_path="$path" 65186 if test "x$has_colon" = x; then 65187 # Not in mixed or Windows style, start by that. 65188 new_path=`cmd //c echo $path` 65189 fi 65190 65191 65192 input_path="$new_path" 65193 # Check if we need to convert this using DOS-style short mode. If the path 65194 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65195 # take no chances and rewrite it. 65196 # Note: m4 eats our [], so we need to use [ and ] instead. 65197 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65198 if test "x$has_forbidden_chars" != x; then 65199 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65200 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65201 fi 65202 65203 65204 windows_path="$new_path" 65205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65206 unix_path=`$CYGPATH -u "$windows_path"` 65207 new_path="$unix_path" 65208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65210 new_path="$unix_path" 65211 fi 65212 65213 if test "x$path" != "x$new_path"; then 65214 FREETYPE_LIB_PATH="$new_path" 65215 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 65216 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 65217 fi 65218 65219 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65220 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65221 65222 else 65223 # We're on a unix platform. Hooray! :) 65224 path="$FREETYPE_LIB_PATH" 65225 has_space=`$ECHO "$path" | $GREP " "` 65226 if test "x$has_space" != x; then 65227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 65228 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 65229 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65230 fi 65231 65232 # Use eval to expand a potential ~ 65233 eval path="$path" 65234 if test ! -f "$path" && test ! -d "$path"; then 65235 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 65236 fi 65237 65238 if test -d "$path"; then 65239 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 65240 else 65241 dir="`$DIRNAME "$path"`" 65242 base="`$BASENAME "$path"`" 65243 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 65244 fi 65245 fi 65246 fi 65247 65248 if test "x$OPENJDK_TARGET_OS" = xwindows; then 65249 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 65250 else 65251 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 65252 fi 65253 fi 65254 65255 # Try to compile it 65256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 65257 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 65258 ac_ext=cpp 65259 ac_cpp='$CXXCPP $CPPFLAGS' 65260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 65263 65264 PREV_CXXCFLAGS="$CXXFLAGS" 65265 PREV_LIBS="$LIBS" 65266 PREV_CXX="$CXX" 65267 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 65268 LIBS="$LIBS $FREETYPE_LIBS" 65269 CXX="$FIXPATH $CXX" 65270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65271 /* end confdefs.h. */ 65272 65273 #include<ft2build.h> 65274 #include FT_FREETYPE_H 65275 int main () { 65276 FT_Init_FreeType(NULL); 65277 return 0; 65278 } 65279 65280 _ACEOF 65281 if ac_fn_cxx_try_link "$LINENO"; then : 65282 65283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65284 $as_echo "yes" >&6; } 65285 65286 else 65287 65288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65289 $as_echo "no" >&6; } 65290 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 65291 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 65292 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 65293 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 65294 65295 65296 # Print a helpful message on how to acquire the necessary build dependency. 65297 # freetype is the help tag: freetype, cups, alsa etc 65298 MISSING_DEPENDENCY=freetype 65299 65300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65301 cygwin_help $MISSING_DEPENDENCY 65302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65303 msys_help $MISSING_DEPENDENCY 65304 else 65305 PKGHANDLER_COMMAND= 65306 65307 case $PKGHANDLER in 65308 apt-get) 65309 apt_help $MISSING_DEPENDENCY ;; 65310 yum) 65311 yum_help $MISSING_DEPENDENCY ;; 65312 brew) 65313 brew_help $MISSING_DEPENDENCY ;; 65314 port) 65315 port_help $MISSING_DEPENDENCY ;; 65316 pkgutil) 65317 pkgutil_help $MISSING_DEPENDENCY ;; 65318 pkgadd) 65319 pkgadd_help $MISSING_DEPENDENCY ;; 65320 esac 65321 65322 if test "x$PKGHANDLER_COMMAND" != x; then 65323 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65324 fi 65325 fi 65326 65327 65328 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 65329 65330 65331 fi 65332 rm -f core conftest.err conftest.$ac_objext \ 65333 conftest$ac_exeext conftest.$ac_ext 65334 CXXCFLAGS="$PREV_CXXFLAGS" 65335 LIBS="$PREV_LIBS" 65336 CXX="$PREV_CXX" 65337 ac_ext=cpp 65338 ac_cpp='$CXXCPP $CPPFLAGS' 65339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 65342 65343 65344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 65345 $as_echo_n "checking if we should bundle freetype... " >&6; } 65346 if test "x$BUNDLE_FREETYPE" = xyes; then 65347 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 65348 fi 65349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 65350 $as_echo "$BUNDLE_FREETYPE" >&6; } 65351 65352 if test "x$BUNDLE_FREETYPE" = xyes; then 65353 FREETYPE_LICENSE="" 65354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype license" >&5 65355 $as_echo_n "checking for freetype license... " >&6; } 65356 if test "x$with_freetype_license" = "xyes"; then 65357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65358 $as_echo "no" >&6; } 65359 as_fn_error $? "--with-freetype-license must have a value" "$LINENO" 5 65360 elif test "x$with_freetype_license" != "x"; then 65361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_license" >&5 65362 $as_echo "$with_freetype_license" >&6; } 65363 FREETYPE_LICENSE="$with_freetype_license" 65364 65365 # Only process if variable expands to non-empty 65366 65367 if test "x$FREETYPE_LICENSE" != x; then 65368 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65369 65370 # Input might be given as Windows format, start by converting to 65371 # unix format. 65372 path="$FREETYPE_LICENSE" 65373 new_path=`$CYGPATH -u "$path"` 65374 65375 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65376 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65377 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65378 # "foo.exe" is OK but "foo" is an error. 65379 # 65380 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65381 # It is also a way to make sure we got the proper file name for the real test later on. 65382 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65383 if test "x$test_shortpath" = x; then 65384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65385 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65386 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 65387 fi 65388 65389 # Call helper function which possibly converts this using DOS-style short mode. 65390 # If so, the updated path is stored in $new_path. 65391 65392 input_path="$new_path" 65393 # Check if we need to convert this using DOS-style short mode. If the path 65394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65395 # take no chances and rewrite it. 65396 # Note: m4 eats our [], so we need to use [ and ] instead. 65397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65398 if test "x$has_forbidden_chars" != x; then 65399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65400 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65401 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65402 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65403 # Going to short mode and back again did indeed matter. Since short mode is 65404 # case insensitive, let's make it lowercase to improve readability. 65405 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65406 # Now convert it back to Unix-style (cygpath) 65407 input_path=`$CYGPATH -u "$shortmode_path"` 65408 new_path="$input_path" 65409 fi 65410 fi 65411 65412 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65413 if test "x$test_cygdrive_prefix" = x; then 65414 # As a simple fix, exclude /usr/bin since it's not a real path. 65415 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65416 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65417 # a path prefixed by /cygdrive for fixpath to work. 65418 new_path="$CYGWIN_ROOT_PATH$input_path" 65419 fi 65420 fi 65421 65422 65423 if test "x$path" != "x$new_path"; then 65424 FREETYPE_LICENSE="$new_path" 65425 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65426 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65427 fi 65428 65429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65430 65431 path="$FREETYPE_LICENSE" 65432 has_colon=`$ECHO $path | $GREP ^.:` 65433 new_path="$path" 65434 if test "x$has_colon" = x; then 65435 # Not in mixed or Windows style, start by that. 65436 new_path=`cmd //c echo $path` 65437 fi 65438 65439 65440 input_path="$new_path" 65441 # Check if we need to convert this using DOS-style short mode. If the path 65442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65443 # take no chances and rewrite it. 65444 # Note: m4 eats our [], so we need to use [ and ] instead. 65445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65446 if test "x$has_forbidden_chars" != x; then 65447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65448 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65449 fi 65450 65451 65452 windows_path="$new_path" 65453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65454 unix_path=`$CYGPATH -u "$windows_path"` 65455 new_path="$unix_path" 65456 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65457 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65458 new_path="$unix_path" 65459 fi 65460 65461 if test "x$path" != "x$new_path"; then 65462 FREETYPE_LICENSE="$new_path" 65463 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65464 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65465 fi 65466 65467 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65468 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65469 65470 else 65471 # We're on a unix platform. Hooray! :) 65472 path="$FREETYPE_LICENSE" 65473 has_space=`$ECHO "$path" | $GREP " "` 65474 if test "x$has_space" != x; then 65475 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65476 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65477 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65478 fi 65479 65480 # Use eval to expand a potential ~ 65481 eval path="$path" 65482 if test ! -f "$path" && test ! -d "$path"; then 65483 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 65484 fi 65485 65486 if test -d "$path"; then 65487 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 65488 else 65489 dir="`$DIRNAME "$path"`" 65490 base="`$BASENAME "$path"`" 65491 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 65492 fi 65493 fi 65494 fi 65495 65496 if test ! -f "$FREETYPE_LICENSE"; then 65497 as_fn_error $? "$FREETYPE_LICENSE cannot be found" "$LINENO" 5 65498 fi 65499 else 65500 if test "x$with_freetype" != "x" && test -f $with_freetype/freetype.md; then 65501 FREETYPE_LICENSE="$with_freetype/freetype.md" 65502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LICENSE" >&5 65503 $as_echo "$FREETYPE_LICENSE" >&6; } 65504 65505 # Only process if variable expands to non-empty 65506 65507 if test "x$FREETYPE_LICENSE" != x; then 65508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65509 65510 # Input might be given as Windows format, start by converting to 65511 # unix format. 65512 path="$FREETYPE_LICENSE" 65513 new_path=`$CYGPATH -u "$path"` 65514 65515 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65516 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65517 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65518 # "foo.exe" is OK but "foo" is an error. 65519 # 65520 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65521 # It is also a way to make sure we got the proper file name for the real test later on. 65522 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65523 if test "x$test_shortpath" = x; then 65524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65525 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65526 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 65527 fi 65528 65529 # Call helper function which possibly converts this using DOS-style short mode. 65530 # If so, the updated path is stored in $new_path. 65531 65532 input_path="$new_path" 65533 # Check if we need to convert this using DOS-style short mode. If the path 65534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65535 # take no chances and rewrite it. 65536 # Note: m4 eats our [], so we need to use [ and ] instead. 65537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65538 if test "x$has_forbidden_chars" != x; then 65539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65540 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65541 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65542 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65543 # Going to short mode and back again did indeed matter. Since short mode is 65544 # case insensitive, let's make it lowercase to improve readability. 65545 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65546 # Now convert it back to Unix-style (cygpath) 65547 input_path=`$CYGPATH -u "$shortmode_path"` 65548 new_path="$input_path" 65549 fi 65550 fi 65551 65552 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65553 if test "x$test_cygdrive_prefix" = x; then 65554 # As a simple fix, exclude /usr/bin since it's not a real path. 65555 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65556 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65557 # a path prefixed by /cygdrive for fixpath to work. 65558 new_path="$CYGWIN_ROOT_PATH$input_path" 65559 fi 65560 fi 65561 65562 65563 if test "x$path" != "x$new_path"; then 65564 FREETYPE_LICENSE="$new_path" 65565 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65566 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65567 fi 65568 65569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65570 65571 path="$FREETYPE_LICENSE" 65572 has_colon=`$ECHO $path | $GREP ^.:` 65573 new_path="$path" 65574 if test "x$has_colon" = x; then 65575 # Not in mixed or Windows style, start by that. 65576 new_path=`cmd //c echo $path` 65577 fi 65578 65579 65580 input_path="$new_path" 65581 # Check if we need to convert this using DOS-style short mode. If the path 65582 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65583 # take no chances and rewrite it. 65584 # Note: m4 eats our [], so we need to use [ and ] instead. 65585 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65586 if test "x$has_forbidden_chars" != x; then 65587 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65588 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65589 fi 65590 65591 65592 windows_path="$new_path" 65593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65594 unix_path=`$CYGPATH -u "$windows_path"` 65595 new_path="$unix_path" 65596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65598 new_path="$unix_path" 65599 fi 65600 65601 if test "x$path" != "x$new_path"; then 65602 FREETYPE_LICENSE="$new_path" 65603 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65604 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65605 fi 65606 65607 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65608 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65609 65610 else 65611 # We're on a unix platform. Hooray! :) 65612 path="$FREETYPE_LICENSE" 65613 has_space=`$ECHO "$path" | $GREP " "` 65614 if test "x$has_space" != x; then 65615 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65616 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65617 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65618 fi 65619 65620 # Use eval to expand a potential ~ 65621 eval path="$path" 65622 if test ! -f "$path" && test ! -d "$path"; then 65623 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 65624 fi 65625 65626 if test -d "$path"; then 65627 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 65628 else 65629 dir="`$DIRNAME "$path"`" 65630 base="`$BASENAME "$path"`" 65631 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 65632 fi 65633 fi 65634 fi 65635 65636 else 65637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65638 $as_echo "no" >&6; } 65639 fi 65640 fi 65641 fi 65642 65643 fi # end freetype needed 65644 65645 65646 65647 65648 65649 65650 65651 65652 # Check whether --with-alsa was given. 65653 if test "${with_alsa+set}" = set; then : 65654 withval=$with_alsa; 65655 fi 65656 65657 65658 # Check whether --with-alsa-include was given. 65659 if test "${with_alsa_include+set}" = set; then : 65660 withval=$with_alsa_include; 65661 fi 65662 65663 65664 # Check whether --with-alsa-lib was given. 65665 if test "${with_alsa_lib+set}" = set; then : 65666 withval=$with_alsa_lib; 65667 fi 65668 65669 65670 if test "x$NEEDS_LIB_ALSA" = xfalse; then 65671 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 65672 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 65673 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 65674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 65675 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 65676 fi 65677 ALSA_CFLAGS= 65678 ALSA_LIBS= 65679 else 65680 ALSA_FOUND=no 65681 65682 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 65683 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 65684 fi 65685 65686 if test "x${with_alsa}" != x; then 65687 ALSA_LIBS="-L${with_alsa}/lib -lasound" 65688 ALSA_CFLAGS="-I${with_alsa}/include" 65689 ALSA_FOUND=yes 65690 fi 65691 if test "x${with_alsa_include}" != x; then 65692 ALSA_CFLAGS="-I${with_alsa_include}" 65693 ALSA_FOUND=yes 65694 fi 65695 if test "x${with_alsa_lib}" != x; then 65696 ALSA_LIBS="-L${with_alsa_lib} -lasound" 65697 ALSA_FOUND=yes 65698 fi 65699 # Do not try pkg-config if we have a sysroot set. 65700 if test "x$SYSROOT" = x; then 65701 if test "x$ALSA_FOUND" = xno; then 65702 65703 pkg_failed=no 65704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 65705 $as_echo_n "checking for ALSA... " >&6; } 65706 65707 if test -n "$ALSA_CFLAGS"; then 65708 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 65709 elif test -n "$PKG_CONFIG"; then 65710 if test -n "$PKG_CONFIG" && \ 65711 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 65712 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 65713 ac_status=$? 65714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65715 test $ac_status = 0; }; then 65716 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 65717 else 65718 pkg_failed=yes 65719 fi 65720 else 65721 pkg_failed=untried 65722 fi 65723 if test -n "$ALSA_LIBS"; then 65724 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 65725 elif test -n "$PKG_CONFIG"; then 65726 if test -n "$PKG_CONFIG" && \ 65727 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 65728 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 65729 ac_status=$? 65730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65731 test $ac_status = 0; }; then 65732 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 65733 else 65734 pkg_failed=yes 65735 fi 65736 else 65737 pkg_failed=untried 65738 fi 65739 65740 65741 65742 if test $pkg_failed = yes; then 65743 65744 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65745 _pkg_short_errors_supported=yes 65746 else 65747 _pkg_short_errors_supported=no 65748 fi 65749 if test $_pkg_short_errors_supported = yes; then 65750 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 65751 else 65752 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 65753 fi 65754 # Put the nasty error message in config.log where it belongs 65755 echo "$ALSA_PKG_ERRORS" >&5 65756 65757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65758 $as_echo "no" >&6; } 65759 ALSA_FOUND=no 65760 elif test $pkg_failed = untried; then 65761 ALSA_FOUND=no 65762 else 65763 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 65764 ALSA_LIBS=$pkg_cv_ALSA_LIBS 65765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65766 $as_echo "yes" >&6; } 65767 ALSA_FOUND=yes 65768 fi 65769 fi 65770 fi 65771 if test "x$ALSA_FOUND" = xno; then 65772 for ac_header in alsa/asoundlib.h 65773 do : 65774 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 65775 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 65776 cat >>confdefs.h <<_ACEOF 65777 #define HAVE_ALSA_ASOUNDLIB_H 1 65778 _ACEOF 65779 65780 ALSA_FOUND=yes 65781 ALSA_CFLAGS=-Iignoreme 65782 ALSA_LIBS=-lasound 65783 DEFAULT_ALSA=yes 65784 65785 else 65786 ALSA_FOUND=no 65787 65788 fi 65789 65790 done 65791 65792 fi 65793 if test "x$ALSA_FOUND" = xno; then 65794 65795 # Print a helpful message on how to acquire the necessary build dependency. 65796 # alsa is the help tag: freetype, cups, alsa etc 65797 MISSING_DEPENDENCY=alsa 65798 65799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65800 cygwin_help $MISSING_DEPENDENCY 65801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65802 msys_help $MISSING_DEPENDENCY 65803 else 65804 PKGHANDLER_COMMAND= 65805 65806 case $PKGHANDLER in 65807 apt-get) 65808 apt_help $MISSING_DEPENDENCY ;; 65809 yum) 65810 yum_help $MISSING_DEPENDENCY ;; 65811 brew) 65812 brew_help $MISSING_DEPENDENCY ;; 65813 port) 65814 port_help $MISSING_DEPENDENCY ;; 65815 pkgutil) 65816 pkgutil_help $MISSING_DEPENDENCY ;; 65817 pkgadd) 65818 pkgadd_help $MISSING_DEPENDENCY ;; 65819 esac 65820 65821 if test "x$PKGHANDLER_COMMAND" != x; then 65822 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65823 fi 65824 fi 65825 65826 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 65827 fi 65828 fi 65829 65830 65831 65832 65833 65834 65835 # Check whether --with-libffi was given. 65836 if test "${with_libffi+set}" = set; then : 65837 withval=$with_libffi; 65838 fi 65839 65840 65841 # Check whether --with-libffi-include was given. 65842 if test "${with_libffi_include+set}" = set; then : 65843 withval=$with_libffi_include; 65844 fi 65845 65846 65847 # Check whether --with-libffi-lib was given. 65848 if test "${with_libffi_lib+set}" = set; then : 65849 withval=$with_libffi_lib; 65850 fi 65851 65852 # Check whether --enable-libffi-bundling was given. 65853 if test "${enable_libffi_bundling+set}" = set; then : 65854 enableval=$enable_libffi_bundling; 65855 fi 65856 65857 65858 if test "x$NEEDS_LIB_FFI" = xfalse; then 65859 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 65860 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 65861 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 65862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 65863 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 65864 fi 65865 LIBFFI_CFLAGS= 65866 LIBFFI_LIBS= 65867 else 65868 LIBFFI_FOUND=no 65869 65870 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 65871 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 65872 fi 65873 65874 if test "x${with_libffi}" != x; then 65875 LIBFFI_LIB_PATH="${with_libffi}/lib" 65876 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 65877 LIBFFI_CFLAGS="-I${with_libffi}/include" 65878 LIBFFI_FOUND=yes 65879 fi 65880 if test "x${with_libffi_include}" != x; then 65881 LIBFFI_CFLAGS="-I${with_libffi_include}" 65882 LIBFFI_FOUND=yes 65883 fi 65884 if test "x${with_libffi_lib}" != x; then 65885 LIBFFI_LIB_PATH="${with_libffi_lib}" 65886 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 65887 LIBFFI_FOUND=yes 65888 fi 65889 # Do not try pkg-config if we have a sysroot set. 65890 if test "x$SYSROOT" = x; then 65891 if test "x$LIBFFI_FOUND" = xno; then 65892 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 65893 65894 pkg_failed=no 65895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 65896 $as_echo_n "checking for LIBFFI... " >&6; } 65897 65898 if test -n "$LIBFFI_CFLAGS"; then 65899 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 65900 elif test -n "$PKG_CONFIG"; then 65901 if test -n "$PKG_CONFIG" && \ 65902 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 65903 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 65904 ac_status=$? 65905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65906 test $ac_status = 0; }; then 65907 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 65908 else 65909 pkg_failed=yes 65910 fi 65911 else 65912 pkg_failed=untried 65913 fi 65914 if test -n "$LIBFFI_LIBS"; then 65915 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 65916 elif test -n "$PKG_CONFIG"; then 65917 if test -n "$PKG_CONFIG" && \ 65918 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 65919 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 65920 ac_status=$? 65921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65922 test $ac_status = 0; }; then 65923 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 65924 else 65925 pkg_failed=yes 65926 fi 65927 else 65928 pkg_failed=untried 65929 fi 65930 65931 65932 65933 if test $pkg_failed = yes; then 65934 65935 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65936 _pkg_short_errors_supported=yes 65937 else 65938 _pkg_short_errors_supported=no 65939 fi 65940 if test $_pkg_short_errors_supported = yes; then 65941 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 65942 else 65943 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 65944 fi 65945 # Put the nasty error message in config.log where it belongs 65946 echo "$LIBFFI_PKG_ERRORS" >&5 65947 65948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65949 $as_echo "no" >&6; } 65950 LIBFFI_FOUND=no 65951 elif test $pkg_failed = untried; then 65952 LIBFFI_FOUND=no 65953 else 65954 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 65955 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 65956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65957 $as_echo "yes" >&6; } 65958 LIBFFI_FOUND=yes 65959 fi 65960 fi 65961 fi 65962 if test "x$LIBFFI_FOUND" = xno; then 65963 for ac_header in ffi.h 65964 do : 65965 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 65966 if test "x$ac_cv_header_ffi_h" = xyes; then : 65967 cat >>confdefs.h <<_ACEOF 65968 #define HAVE_FFI_H 1 65969 _ACEOF 65970 65971 LIBFFI_FOUND=yes 65972 LIBFFI_CFLAGS= 65973 LIBFFI_LIBS=-lffi 65974 65975 else 65976 LIBFFI_FOUND=no 65977 65978 fi 65979 65980 done 65981 65982 fi 65983 if test "x$LIBFFI_FOUND" = xno; then 65984 65985 # Print a helpful message on how to acquire the necessary build dependency. 65986 # ffi is the help tag: freetype, cups, alsa etc 65987 MISSING_DEPENDENCY=ffi 65988 65989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65990 cygwin_help $MISSING_DEPENDENCY 65991 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65992 msys_help $MISSING_DEPENDENCY 65993 else 65994 PKGHANDLER_COMMAND= 65995 65996 case $PKGHANDLER in 65997 apt-get) 65998 apt_help $MISSING_DEPENDENCY ;; 65999 yum) 66000 yum_help $MISSING_DEPENDENCY ;; 66001 brew) 66002 brew_help $MISSING_DEPENDENCY ;; 66003 port) 66004 port_help $MISSING_DEPENDENCY ;; 66005 pkgutil) 66006 pkgutil_help $MISSING_DEPENDENCY ;; 66007 pkgadd) 66008 pkgadd_help $MISSING_DEPENDENCY ;; 66009 esac 66010 66011 if test "x$PKGHANDLER_COMMAND" != x; then 66012 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 66013 fi 66014 fi 66015 66016 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 66017 fi 66018 66019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 66020 $as_echo_n "checking if libffi works... " >&6; } 66021 ac_ext=c 66022 ac_cpp='$CPP $CPPFLAGS' 66023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 66024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 66025 ac_compiler_gnu=$ac_cv_c_compiler_gnu 66026 66027 OLD_CFLAGS="$CFLAGS" 66028 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 66029 OLD_LIBS="$LIBS" 66030 LIBS="$LIBS $LIBFFI_LIBS" 66031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66032 /* end confdefs.h. */ 66033 #include <ffi.h> 66034 int 66035 main () 66036 { 66037 66038 ffi_call(NULL, NULL, NULL, NULL); 66039 return 0; 66040 66041 ; 66042 return 0; 66043 } 66044 _ACEOF 66045 if ac_fn_c_try_link "$LINENO"; then : 66046 LIBFFI_WORKS=yes 66047 else 66048 LIBFFI_WORKS=no 66049 66050 fi 66051 rm -f core conftest.err conftest.$ac_objext \ 66052 conftest$ac_exeext conftest.$ac_ext 66053 CFLAGS="$OLD_CFLAGS" 66054 LIBS="$OLD_LIBS" 66055 ac_ext=cpp 66056 ac_cpp='$CXXCPP $CPPFLAGS' 66057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 66058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 66059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 66060 66061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 66062 $as_echo "$LIBFFI_WORKS" >&6; } 66063 66064 if test "x$LIBFFI_WORKS" = xno; then 66065 66066 # Print a helpful message on how to acquire the necessary build dependency. 66067 # ffi is the help tag: freetype, cups, alsa etc 66068 MISSING_DEPENDENCY=ffi 66069 66070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66071 cygwin_help $MISSING_DEPENDENCY 66072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66073 msys_help $MISSING_DEPENDENCY 66074 else 66075 PKGHANDLER_COMMAND= 66076 66077 case $PKGHANDLER in 66078 apt-get) 66079 apt_help $MISSING_DEPENDENCY ;; 66080 yum) 66081 yum_help $MISSING_DEPENDENCY ;; 66082 brew) 66083 brew_help $MISSING_DEPENDENCY ;; 66084 port) 66085 port_help $MISSING_DEPENDENCY ;; 66086 pkgutil) 66087 pkgutil_help $MISSING_DEPENDENCY ;; 66088 pkgadd) 66089 pkgadd_help $MISSING_DEPENDENCY ;; 66090 esac 66091 66092 if test "x$PKGHANDLER_COMMAND" != x; then 66093 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 66094 fi 66095 fi 66096 66097 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 66098 fi 66099 66100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 66101 $as_echo_n "checking if libffi should be bundled... " >&6; } 66102 if test "x$enable_libffi_bundling" = "x"; then 66103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66104 $as_echo "no" >&6; } 66105 ENABLE_LIBFFI_BUNDLING=false 66106 elif test "x$enable_libffi_bundling" = "xno"; then 66107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 66108 $as_echo "no, forced" >&6; } 66109 ENABLE_LIBFFI_BUNDLING=false 66110 elif test "x$enable_libffi_bundling" = "xyes"; then 66111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 66112 $as_echo "yes, forced" >&6; } 66113 ENABLE_LIBFFI_BUNDLING=true 66114 else 66115 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 66116 fi 66117 66118 # Find the libffi.so.X to bundle 66119 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 66120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 66121 $as_echo_n "checking for libffi lib file location... " >&6; } 66122 if test "x${LIBFFI_LIB_PATH}" != x; then 66123 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 66124 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 66125 else 66126 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 66127 fi 66128 else 66129 # If we don't have an explicit path, look in a few obvious places 66130 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 66131 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 66132 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 66133 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 66134 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 66135 else 66136 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66137 fi 66138 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 66139 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 66140 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 66141 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 66142 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 66143 else 66144 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66145 fi 66146 else 66147 # Fallback on the default /usr/lib dir 66148 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 66149 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 66150 else 66151 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66152 fi 66153 fi 66154 fi 66155 # Make sure the wildcard is evaluated 66156 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 66157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 66158 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 66159 fi 66160 fi 66161 66162 66163 66164 66165 66166 66167 66168 66169 # Check whether --with-libjpeg was given. 66170 if test "${with_libjpeg+set}" = set; then : 66171 withval=$with_libjpeg; 66172 fi 66173 66174 66175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 66176 $as_echo_n "checking for which libjpeg to use... " >&6; } 66177 # default is bundled 66178 DEFAULT_LIBJPEG=bundled 66179 # if user didn't specify, use DEFAULT_LIBJPEG 66180 if test "x${with_libjpeg}" = "x"; then 66181 with_libjpeg=${DEFAULT_LIBJPEG} 66182 fi 66183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 66184 $as_echo "${with_libjpeg}" >&6; } 66185 66186 if test "x${with_libjpeg}" = "xbundled"; then 66187 USE_EXTERNAL_LIBJPEG=false 66188 elif test "x${with_libjpeg}" = "xsystem"; then 66189 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 66190 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 66191 66192 else 66193 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 66194 fi 66195 66196 66197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 66198 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 66199 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 66200 $as_echo_n "(cached) " >&6 66201 else 66202 ac_check_lib_save_LIBS=$LIBS 66203 LIBS="-ljpeg $LIBS" 66204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66205 /* end confdefs.h. */ 66206 66207 /* Override any GCC internal prototype to avoid an error. 66208 Use char because int might match the return type of a GCC 66209 builtin and then its argument prototype would still apply. */ 66210 #ifdef __cplusplus 66211 extern "C" 66212 #endif 66213 char jpeg_CreateDecompress (); 66214 int 66215 main () 66216 { 66217 return jpeg_CreateDecompress (); 66218 ; 66219 return 0; 66220 } 66221 _ACEOF 66222 if ac_fn_cxx_try_link "$LINENO"; then : 66223 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 66224 else 66225 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 66226 fi 66227 rm -f core conftest.err conftest.$ac_objext \ 66228 conftest$ac_exeext conftest.$ac_ext 66229 LIBS=$ac_check_lib_save_LIBS 66230 fi 66231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 66232 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 66233 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 66234 cat >>confdefs.h <<_ACEOF 66235 #define HAVE_LIBJPEG 1 66236 _ACEOF 66237 66238 LIBS="-ljpeg $LIBS" 66239 66240 else 66241 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 66242 fi 66243 66244 66245 USE_EXTERNAL_LIBJPEG=true 66246 else 66247 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 66248 fi 66249 66250 66251 66252 66253 66254 # Check whether --with-giflib was given. 66255 if test "${with_giflib+set}" = set; then : 66256 withval=$with_giflib; 66257 fi 66258 66259 66260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 66261 $as_echo_n "checking for which giflib to use... " >&6; } 66262 # default is bundled 66263 DEFAULT_GIFLIB=bundled 66264 # if user didn't specify, use DEFAULT_GIFLIB 66265 if test "x${with_giflib}" = "x"; then 66266 with_giflib=${DEFAULT_GIFLIB} 66267 fi 66268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 66269 $as_echo "${with_giflib}" >&6; } 66270 66271 if test "x${with_giflib}" = "xbundled"; then 66272 USE_EXTERNAL_LIBGIF=false 66273 elif test "x${with_giflib}" = "xsystem"; then 66274 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 66275 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 66276 66277 else 66278 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 66279 fi 66280 66281 66282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 66283 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 66284 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 66285 $as_echo_n "(cached) " >&6 66286 else 66287 ac_check_lib_save_LIBS=$LIBS 66288 LIBS="-lgif $LIBS" 66289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66290 /* end confdefs.h. */ 66291 66292 /* Override any GCC internal prototype to avoid an error. 66293 Use char because int might match the return type of a GCC 66294 builtin and then its argument prototype would still apply. */ 66295 #ifdef __cplusplus 66296 extern "C" 66297 #endif 66298 char DGifGetCode (); 66299 int 66300 main () 66301 { 66302 return DGifGetCode (); 66303 ; 66304 return 0; 66305 } 66306 _ACEOF 66307 if ac_fn_cxx_try_link "$LINENO"; then : 66308 ac_cv_lib_gif_DGifGetCode=yes 66309 else 66310 ac_cv_lib_gif_DGifGetCode=no 66311 fi 66312 rm -f core conftest.err conftest.$ac_objext \ 66313 conftest$ac_exeext conftest.$ac_ext 66314 LIBS=$ac_check_lib_save_LIBS 66315 fi 66316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 66317 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 66318 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 66319 cat >>confdefs.h <<_ACEOF 66320 #define HAVE_LIBGIF 1 66321 _ACEOF 66322 66323 LIBS="-lgif $LIBS" 66324 66325 else 66326 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 66327 fi 66328 66329 66330 USE_EXTERNAL_LIBGIF=true 66331 else 66332 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 66333 fi 66334 66335 66336 66337 66338 66339 # Check whether --with-libpng was given. 66340 if test "${with_libpng+set}" = set; then : 66341 withval=$with_libpng; 66342 fi 66343 66344 66345 66346 pkg_failed=no 66347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 66348 $as_echo_n "checking for PNG... " >&6; } 66349 66350 if test -n "$PNG_CFLAGS"; then 66351 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 66352 elif test -n "$PKG_CONFIG"; then 66353 if test -n "$PKG_CONFIG" && \ 66354 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 66355 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 66356 ac_status=$? 66357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66358 test $ac_status = 0; }; then 66359 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 66360 else 66361 pkg_failed=yes 66362 fi 66363 else 66364 pkg_failed=untried 66365 fi 66366 if test -n "$PNG_LIBS"; then 66367 pkg_cv_PNG_LIBS="$PNG_LIBS" 66368 elif test -n "$PKG_CONFIG"; then 66369 if test -n "$PKG_CONFIG" && \ 66370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 66371 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 66372 ac_status=$? 66373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66374 test $ac_status = 0; }; then 66375 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 66376 else 66377 pkg_failed=yes 66378 fi 66379 else 66380 pkg_failed=untried 66381 fi 66382 66383 66384 66385 if test $pkg_failed = yes; then 66386 66387 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 66388 _pkg_short_errors_supported=yes 66389 else 66390 _pkg_short_errors_supported=no 66391 fi 66392 if test $_pkg_short_errors_supported = yes; then 66393 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 66394 else 66395 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 66396 fi 66397 # Put the nasty error message in config.log where it belongs 66398 echo "$PNG_PKG_ERRORS" >&5 66399 66400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66401 $as_echo "no" >&6; } 66402 LIBPNG_FOUND=no 66403 elif test $pkg_failed = untried; then 66404 LIBPNG_FOUND=no 66405 else 66406 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 66407 PNG_LIBS=$pkg_cv_PNG_LIBS 66408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66409 $as_echo "yes" >&6; } 66410 LIBPNG_FOUND=yes 66411 fi 66412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 66413 $as_echo_n "checking for which libpng to use... " >&6; } 66414 66415 # default is bundled 66416 DEFAULT_LIBPNG=bundled 66417 # if user didn't specify, use DEFAULT_LIBPNG 66418 if test "x${with_libpng}" = "x"; then 66419 with_libpng=${DEFAULT_LIBPNG} 66420 fi 66421 66422 if test "x${with_libpng}" = "xbundled"; then 66423 USE_EXTERNAL_LIBPNG=false 66424 PNG_CFLAGS="" 66425 PNG_LIBS="" 66426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66427 $as_echo "bundled" >&6; } 66428 elif test "x${with_libpng}" = "xsystem"; then 66429 if test "x${LIBPNG_FOUND}" = "xyes"; then 66430 # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS 66431 USE_EXTERNAL_LIBPNG=true 66432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66433 $as_echo "system" >&6; } 66434 else 66435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 66436 $as_echo "system not found" >&6; } 66437 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 66438 fi 66439 else 66440 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 66441 fi 66442 66443 66444 66445 66446 66447 66448 66449 # Check whether --with-zlib was given. 66450 if test "${with_zlib+set}" = set; then : 66451 withval=$with_zlib; 66452 fi 66453 66454 66455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 66456 $as_echo_n "checking for compress in -lz... " >&6; } 66457 if ${ac_cv_lib_z_compress+:} false; then : 66458 $as_echo_n "(cached) " >&6 66459 else 66460 ac_check_lib_save_LIBS=$LIBS 66461 LIBS="-lz $LIBS" 66462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66463 /* end confdefs.h. */ 66464 66465 /* Override any GCC internal prototype to avoid an error. 66466 Use char because int might match the return type of a GCC 66467 builtin and then its argument prototype would still apply. */ 66468 #ifdef __cplusplus 66469 extern "C" 66470 #endif 66471 char compress (); 66472 int 66473 main () 66474 { 66475 return compress (); 66476 ; 66477 return 0; 66478 } 66479 _ACEOF 66480 if ac_fn_cxx_try_link "$LINENO"; then : 66481 ac_cv_lib_z_compress=yes 66482 else 66483 ac_cv_lib_z_compress=no 66484 fi 66485 rm -f core conftest.err conftest.$ac_objext \ 66486 conftest$ac_exeext conftest.$ac_ext 66487 LIBS=$ac_check_lib_save_LIBS 66488 fi 66489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 66490 $as_echo "$ac_cv_lib_z_compress" >&6; } 66491 if test "x$ac_cv_lib_z_compress" = xyes; then : 66492 ZLIB_FOUND=yes 66493 else 66494 ZLIB_FOUND=no 66495 fi 66496 66497 66498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 66499 $as_echo_n "checking for which zlib to use... " >&6; } 66500 66501 DEFAULT_ZLIB=system 66502 if test "x$OPENJDK_TARGET_OS" = xwindows; then 66503 # On windows default is bundled...on others default is system 66504 DEFAULT_ZLIB=bundled 66505 fi 66506 66507 if test "x${ZLIB_FOUND}" != "xyes"; then 66508 # If we don't find any system...set default to bundled 66509 DEFAULT_ZLIB=bundled 66510 fi 66511 66512 # If user didn't specify, use DEFAULT_ZLIB 66513 if test "x${with_zlib}" = "x"; then 66514 with_zlib=${DEFAULT_ZLIB} 66515 fi 66516 66517 if test "x${with_zlib}" = "xbundled"; then 66518 USE_EXTERNAL_LIBZ=false 66519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66520 $as_echo "bundled" >&6; } 66521 elif test "x${with_zlib}" = "xsystem"; then 66522 if test "x${ZLIB_FOUND}" = "xyes"; then 66523 USE_EXTERNAL_LIBZ=true 66524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66525 $as_echo "system" >&6; } 66526 66527 if test "x$USE_EXTERNAL_LIBPNG" != "xtrue"; then 66528 # If we use bundled libpng, we must verify that we have a proper zlib. 66529 # For instance zlib-ng has had issues with inflateValidate(). 66530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib functionality" >&5 66531 $as_echo_n "checking for system zlib functionality... " >&6; } 66532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66533 /* end confdefs.h. */ 66534 #include "zlib.h" 66535 int 66536 main () 66537 { 66538 66539 #if ZLIB_VERNUM >= 0x1281 66540 inflateValidate(NULL, 0); 66541 #endif 66542 66543 ; 66544 return 0; 66545 } 66546 _ACEOF 66547 if ac_fn_cxx_try_compile "$LINENO"; then : 66548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 66549 $as_echo "ok" >&6; } 66550 else 66551 66552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not ok" >&5 66553 $as_echo "not ok" >&6; } 66554 as_fn_error $? "System zlib not working correctly" "$LINENO" 5 66555 66556 66557 fi 66558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66559 fi 66560 else 66561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 66562 $as_echo "system not found" >&6; } 66563 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 66564 fi 66565 else 66566 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 66567 fi 66568 66569 66570 66571 66572 66573 # Check whether --with-lcms was given. 66574 if test "${with_lcms+set}" = set; then : 66575 withval=$with_lcms; 66576 fi 66577 66578 66579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 66580 $as_echo_n "checking for which lcms to use... " >&6; } 66581 66582 DEFAULT_LCMS=bundled 66583 # If user didn't specify, use DEFAULT_LCMS 66584 if test "x${with_lcms}" = "x"; then 66585 with_lcms=${DEFAULT_LCMS} 66586 fi 66587 66588 if test "x${with_lcms}" = "xbundled"; then 66589 USE_EXTERNAL_LCMS=false 66590 LCMS_CFLAGS="" 66591 LCMS_LIBS="" 66592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66593 $as_echo "bundled" >&6; } 66594 elif test "x${with_lcms}" = "xsystem"; then 66595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66596 $as_echo "system" >&6; } 66597 66598 pkg_failed=no 66599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 66600 $as_echo_n "checking for LCMS... " >&6; } 66601 66602 if test -n "$LCMS_CFLAGS"; then 66603 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 66604 elif test -n "$PKG_CONFIG"; then 66605 if test -n "$PKG_CONFIG" && \ 66606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 66607 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 66608 ac_status=$? 66609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66610 test $ac_status = 0; }; then 66611 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 66612 else 66613 pkg_failed=yes 66614 fi 66615 else 66616 pkg_failed=untried 66617 fi 66618 if test -n "$LCMS_LIBS"; then 66619 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 66620 elif test -n "$PKG_CONFIG"; then 66621 if test -n "$PKG_CONFIG" && \ 66622 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 66623 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 66624 ac_status=$? 66625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66626 test $ac_status = 0; }; then 66627 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 66628 else 66629 pkg_failed=yes 66630 fi 66631 else 66632 pkg_failed=untried 66633 fi 66634 66635 66636 66637 if test $pkg_failed = yes; then 66638 66639 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 66640 _pkg_short_errors_supported=yes 66641 else 66642 _pkg_short_errors_supported=no 66643 fi 66644 if test $_pkg_short_errors_supported = yes; then 66645 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 66646 else 66647 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 66648 fi 66649 # Put the nasty error message in config.log where it belongs 66650 echo "$LCMS_PKG_ERRORS" >&5 66651 66652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66653 $as_echo "no" >&6; } 66654 LCMS_FOUND=no 66655 elif test $pkg_failed = untried; then 66656 LCMS_FOUND=no 66657 else 66658 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 66659 LCMS_LIBS=$pkg_cv_LCMS_LIBS 66660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66661 $as_echo "yes" >&6; } 66662 LCMS_FOUND=yes 66663 fi 66664 if test "x${LCMS_FOUND}" = "xyes"; then 66665 # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS 66666 USE_EXTERNAL_LCMS=true 66667 else 66668 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 66669 fi 66670 else 66671 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 66672 fi 66673 66674 66675 66676 66677 66678 66679 66680 66681 66682 66683 66684 66685 66686 # Setup libm (the maths library) 66687 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 66688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 66689 $as_echo_n "checking for cos in -lm... " >&6; } 66690 if ${ac_cv_lib_m_cos+:} false; then : 66691 $as_echo_n "(cached) " >&6 66692 else 66693 ac_check_lib_save_LIBS=$LIBS 66694 LIBS="-lm $LIBS" 66695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66696 /* end confdefs.h. */ 66697 66698 /* Override any GCC internal prototype to avoid an error. 66699 Use char because int might match the return type of a GCC 66700 builtin and then its argument prototype would still apply. */ 66701 #ifdef __cplusplus 66702 extern "C" 66703 #endif 66704 char cos (); 66705 int 66706 main () 66707 { 66708 return cos (); 66709 ; 66710 return 0; 66711 } 66712 _ACEOF 66713 if ac_fn_cxx_try_link "$LINENO"; then : 66714 ac_cv_lib_m_cos=yes 66715 else 66716 ac_cv_lib_m_cos=no 66717 fi 66718 rm -f core conftest.err conftest.$ac_objext \ 66719 conftest$ac_exeext conftest.$ac_ext 66720 LIBS=$ac_check_lib_save_LIBS 66721 fi 66722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 66723 $as_echo "$ac_cv_lib_m_cos" >&6; } 66724 if test "x$ac_cv_lib_m_cos" = xyes; then : 66725 cat >>confdefs.h <<_ACEOF 66726 #define HAVE_LIBM 1 66727 _ACEOF 66728 66729 LIBS="-lm $LIBS" 66730 66731 else 66732 66733 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 66734 $as_echo "$as_me: Maths library was not found" >&6;} 66735 66736 fi 66737 66738 LIBM="-lm" 66739 else 66740 LIBM="" 66741 fi 66742 66743 66744 # Setup libdl (for dynamic library loading) 66745 save_LIBS="$LIBS" 66746 LIBS="" 66747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 66748 $as_echo_n "checking for dlopen in -ldl... " >&6; } 66749 if ${ac_cv_lib_dl_dlopen+:} false; then : 66750 $as_echo_n "(cached) " >&6 66751 else 66752 ac_check_lib_save_LIBS=$LIBS 66753 LIBS="-ldl $LIBS" 66754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66755 /* end confdefs.h. */ 66756 66757 /* Override any GCC internal prototype to avoid an error. 66758 Use char because int might match the return type of a GCC 66759 builtin and then its argument prototype would still apply. */ 66760 #ifdef __cplusplus 66761 extern "C" 66762 #endif 66763 char dlopen (); 66764 int 66765 main () 66766 { 66767 return dlopen (); 66768 ; 66769 return 0; 66770 } 66771 _ACEOF 66772 if ac_fn_cxx_try_link "$LINENO"; then : 66773 ac_cv_lib_dl_dlopen=yes 66774 else 66775 ac_cv_lib_dl_dlopen=no 66776 fi 66777 rm -f core conftest.err conftest.$ac_objext \ 66778 conftest$ac_exeext conftest.$ac_ext 66779 LIBS=$ac_check_lib_save_LIBS 66780 fi 66781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 66782 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 66783 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 66784 cat >>confdefs.h <<_ACEOF 66785 #define HAVE_LIBDL 1 66786 _ACEOF 66787 66788 LIBS="-ldl $LIBS" 66789 66790 fi 66791 66792 LIBDL="$LIBS" 66793 66794 LIBS="$save_LIBS" 66795 66796 # Deprecated libraries, keep the flags for backwards compatibility 66797 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 66798 66799 66800 # Check whether --with-dxsdk was given. 66801 if test "${with_dxsdk+set}" = set; then : 66802 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 66803 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 66804 fi 66805 66806 66807 66808 66809 # Check whether --with-dxsdk-lib was given. 66810 if test "${with_dxsdk_lib+set}" = set; then : 66811 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 66812 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 66813 fi 66814 66815 66816 66817 66818 # Check whether --with-dxsdk-include was given. 66819 if test "${with_dxsdk_include+set}" = set; then : 66820 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 66821 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 66822 fi 66823 66824 66825 fi 66826 66827 # Control if libzip can use mmap. Available for purposes of overriding. 66828 LIBZIP_CAN_USE_MMAP=true 66829 66830 66831 66832 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 66833 # Find the root of the Solaris Studio installation from the compiler path 66834 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 66835 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 66836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 66837 $as_echo_n "checking for libstlport.so.1... " >&6; } 66838 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 66839 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 66840 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 66841 fi 66842 if test -f "$STLPORT_LIB"; then 66843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 66844 $as_echo "yes, $STLPORT_LIB" >&6; } 66845 66846 # Only process if variable expands to non-empty 66847 66848 if test "x$STLPORT_LIB" != x; then 66849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66850 66851 # Input might be given as Windows format, start by converting to 66852 # unix format. 66853 path="$STLPORT_LIB" 66854 new_path=`$CYGPATH -u "$path"` 66855 66856 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 66857 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 66858 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 66859 # "foo.exe" is OK but "foo" is an error. 66860 # 66861 # This test is therefore slightly more accurate than "test -f" to check for file precense. 66862 # It is also a way to make sure we got the proper file name for the real test later on. 66863 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 66864 if test "x$test_shortpath" = x; then 66865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 66866 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 66867 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 66868 fi 66869 66870 # Call helper function which possibly converts this using DOS-style short mode. 66871 # If so, the updated path is stored in $new_path. 66872 66873 input_path="$new_path" 66874 # Check if we need to convert this using DOS-style short mode. If the path 66875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 66876 # take no chances and rewrite it. 66877 # Note: m4 eats our [], so we need to use [ and ] instead. 66878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 66879 if test "x$has_forbidden_chars" != x; then 66880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 66881 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 66882 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 66883 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 66884 # Going to short mode and back again did indeed matter. Since short mode is 66885 # case insensitive, let's make it lowercase to improve readability. 66886 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 66887 # Now convert it back to Unix-style (cygpath) 66888 input_path=`$CYGPATH -u "$shortmode_path"` 66889 new_path="$input_path" 66890 fi 66891 fi 66892 66893 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 66894 if test "x$test_cygdrive_prefix" = x; then 66895 # As a simple fix, exclude /usr/bin since it's not a real path. 66896 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 66897 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 66898 # a path prefixed by /cygdrive for fixpath to work. 66899 new_path="$CYGWIN_ROOT_PATH$input_path" 66900 fi 66901 fi 66902 66903 66904 if test "x$path" != "x$new_path"; then 66905 STLPORT_LIB="$new_path" 66906 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 66907 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 66908 fi 66909 66910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66911 66912 path="$STLPORT_LIB" 66913 has_colon=`$ECHO $path | $GREP ^.:` 66914 new_path="$path" 66915 if test "x$has_colon" = x; then 66916 # Not in mixed or Windows style, start by that. 66917 new_path=`cmd //c echo $path` 66918 fi 66919 66920 66921 input_path="$new_path" 66922 # Check if we need to convert this using DOS-style short mode. If the path 66923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 66924 # take no chances and rewrite it. 66925 # Note: m4 eats our [], so we need to use [ and ] instead. 66926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 66927 if test "x$has_forbidden_chars" != x; then 66928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 66929 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 66930 fi 66931 66932 66933 windows_path="$new_path" 66934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66935 unix_path=`$CYGPATH -u "$windows_path"` 66936 new_path="$unix_path" 66937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 66939 new_path="$unix_path" 66940 fi 66941 66942 if test "x$path" != "x$new_path"; then 66943 STLPORT_LIB="$new_path" 66944 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 66945 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 66946 fi 66947 66948 # Save the first 10 bytes of this path to the storage, so fixpath can work. 66949 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 66950 66951 else 66952 # We're on a unix platform. Hooray! :) 66953 path="$STLPORT_LIB" 66954 has_space=`$ECHO "$path" | $GREP " "` 66955 if test "x$has_space" != x; then 66956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 66957 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 66958 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 66959 fi 66960 66961 # Use eval to expand a potential ~ 66962 eval path="$path" 66963 if test ! -f "$path" && test ! -d "$path"; then 66964 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 66965 fi 66966 66967 if test -d "$path"; then 66968 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 66969 else 66970 dir="`$DIRNAME "$path"`" 66971 base="`$BASENAME "$path"`" 66972 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 66973 fi 66974 fi 66975 fi 66976 66977 else 66978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 66979 $as_echo "no, not found at $STLPORT_LIB" >&6; } 66980 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 66981 fi 66982 66983 fi 66984 66985 66986 66987 66988 66989 66990 66991 66992 66993 66994 66995 66996 66997 66998 # Hotspot setup depends on lib checks. 66999 67000 67001 # The user can in some cases supply additional jvm features. For the custom 67002 # variant, this defines the entire variant. 67003 67004 # Check whether --with-jvm-features was given. 67005 if test "${with_jvm_features+set}" = set; then : 67006 withval=$with_jvm_features; 67007 fi 67008 67009 if test "x$with_jvm_features" != x; then 67010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 67011 $as_echo_n "checking additional JVM features... " >&6; } 67012 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 67013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 67014 $as_echo "$JVM_FEATURES" >&6; } 67015 fi 67016 67017 # Override hotspot cpu definitions for ARM platforms 67018 if test "x$OPENJDK_TARGET_CPU" = xarm; then 67019 HOTSPOT_TARGET_CPU=arm_32 67020 HOTSPOT_TARGET_CPU_DEFINE="ARM32" 67021 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 67022 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 67023 elif test "x$OPENJDK_TARGET_CPU" = xaarch64 && test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then 67024 HOTSPOT_TARGET_CPU=arm_64 67025 HOTSPOT_TARGET_CPU_ARCH=arm 67026 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 67027 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 67028 fi 67029 67030 # Verify that dependencies are met for explicitly set features. 67031 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 67032 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 67033 fi 67034 67035 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 67036 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 67037 fi 67038 67039 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 67040 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 67041 fi 67042 67043 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 67044 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 67045 fi 67046 67047 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 67048 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 67049 fi 67050 67051 # Turn on additional features based on other parts of configure 67052 if test "x$INCLUDE_DTRACE" = "xtrue"; then 67053 JVM_FEATURES="$JVM_FEATURES dtrace" 67054 else 67055 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 67056 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 67057 fi 67058 fi 67059 67060 if test "x$STATIC_BUILD" = "xtrue"; then 67061 JVM_FEATURES="$JVM_FEATURES static-build" 67062 else 67063 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 67064 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 67065 fi 67066 fi 67067 67068 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 67069 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 67070 as_fn_error $? "To enable zero, you must use --with-jvm-variants=zero" "$LINENO" 5 67071 fi 67072 fi 67073 67074 # Only enable jvmci on x86_64, sparcv9 and aarch64. 67075 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 67076 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 67077 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 67078 JVM_FEATURES_jvmci="jvmci" 67079 else 67080 JVM_FEATURES_jvmci="" 67081 fi 67082 67083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.internal.vm.compiler should be built" >&5 67084 $as_echo_n "checking if jdk.internal.vm.compiler should be built... " >&6; } 67085 if [[ " $JVM_FEATURES " =~ " graal " ]] ; then 67086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67087 $as_echo "yes, forced" >&6; } 67088 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 67089 as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5 67090 fi 67091 INCLUDE_GRAAL="true" 67092 else 67093 # By default enable graal build on linux-x64 or where AOT is available. 67094 # graal build requires jvmci. 67095 if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ 67096 (test "x$OPENJDK_TARGET_CPU" = "xx86_64" && \ 67097 test "x$OPENJDK_TARGET_OS" = "xlinux" || \ 67098 test "x$ENABLE_AOT" = "xtrue") ; then 67099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67100 $as_echo "yes" >&6; } 67101 JVM_FEATURES_graal="graal" 67102 INCLUDE_GRAAL="true" 67103 else 67104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67105 $as_echo "no" >&6; } 67106 JVM_FEATURES_graal="" 67107 INCLUDE_GRAAL="false" 67108 fi 67109 fi 67110 67111 67112 67113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 67114 $as_echo_n "checking if aot should be enabled... " >&6; } 67115 if test "x$ENABLE_AOT" = "xtrue"; then 67116 if test "x$enable_aot" = "xyes"; then 67117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67118 $as_echo "yes, forced" >&6; } 67119 else 67120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67121 $as_echo "yes" >&6; } 67122 fi 67123 JVM_FEATURES_aot="aot" 67124 else 67125 if test "x$enable_aot" = "xno"; then 67126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67127 $as_echo "no, forced" >&6; } 67128 else 67129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67130 $as_echo "no" >&6; } 67131 fi 67132 JVM_FEATURES_aot="" 67133 fi 67134 67135 if test "x$OPENJDK_TARGET_CPU" = xarm ; then 67136 # Default to use link time optimizations on minimal on arm 67137 JVM_FEATURES_link_time_opt="link-time-opt" 67138 else 67139 JVM_FEATURES_link_time_opt="" 67140 fi 67141 67142 # All variants but minimal (and custom) get these features 67143 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt" 67144 if test "x$ENABLE_CDS" = "xtrue"; then 67145 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds" 67146 fi 67147 67148 # Enable features depending on variant. 67149 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal" 67150 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 67151 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 67152 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt" 67153 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 67154 JVM_FEATURES_custom="$JVM_FEATURES" 67155 67156 67157 67158 67159 67160 67161 67162 67163 # Used for verification of Makefiles by check-jvm-feature 67164 67165 67166 # We don't support --with-jvm-interpreter anymore, use zero instead. 67167 67168 67169 # Check whether --with-jvm-interpreter was given. 67170 if test "${with_jvm_interpreter+set}" = set; then : 67171 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 67172 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 67173 fi 67174 67175 67176 67177 67178 ############################################################################### 67179 # 67180 # We need to do some final tweaking, when everything else is done. 67181 # 67182 ############################################################################### 67183 67184 67185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 67186 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 67187 67188 if test -d "${TOPDIR}/src/jdk.crypto.ec/share/native/libsunec/impl"; then 67189 ENABLE_INTREE_EC=true 67190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67191 $as_echo "yes" >&6; } 67192 else 67193 ENABLE_INTREE_EC=false 67194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67195 $as_echo "no" >&6; } 67196 fi 67197 67198 67199 67200 67201 # Check whether --enable-jtreg-failure-handler was given. 67202 if test "${enable_jtreg_failure_handler+set}" = set; then : 67203 enableval=$enable_jtreg_failure_handler; 67204 fi 67205 67206 67207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 67208 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 67209 67210 if test "x$enable_jtreg_failure_handler" = "xyes"; then 67211 if test "x$JT_HOME" = "x"; then 67212 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 67213 else 67214 BUILD_FAILURE_HANDLER=true 67215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67216 $as_echo "yes, forced" >&6; } 67217 fi 67218 elif test "x$enable_jtreg_failure_handler" = "xno"; then 67219 BUILD_FAILURE_HANDLER=false 67220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67221 $as_echo "no, forced" >&6; } 67222 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 67223 || test "x$enable_jtreg_failure_handler" = "x"; then 67224 if test "x$JT_HOME" = "x"; then 67225 BUILD_FAILURE_HANDLER=false 67226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 67227 $as_echo "no, missing jtreg" >&6; } 67228 else 67229 BUILD_FAILURE_HANDLER=true 67230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 67231 $as_echo "yes, jtreg present" >&6; } 67232 fi 67233 else 67234 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 67235 fi 67236 67237 67238 67239 67240 # Check whether --enable-generate-classlist was given. 67241 if test "${enable_generate_classlist+set}" = set; then : 67242 enableval=$enable_generate_classlist; 67243 fi 67244 67245 67246 # Check if it's likely that it's possible to generate the classlist. Depending 67247 # on exact jvm configuration it could be possible anyway. 67248 if test "x$ENABLE_CDS" = "xtrue" && ( [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ); then 67249 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 67250 else 67251 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 67252 fi 67253 67254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 67255 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 67256 if test "x$enable_generate_classlist" = "xyes"; then 67257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67258 $as_echo "yes, forced" >&6; } 67259 ENABLE_GENERATE_CLASSLIST="true" 67260 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 67261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&5 67262 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&2;} 67263 fi 67264 elif test "x$enable_generate_classlist" = "xno"; then 67265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67266 $as_echo "no, forced" >&6; } 67267 ENABLE_GENERATE_CLASSLIST="false" 67268 elif test "x$enable_generate_classlist" = "x"; then 67269 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 67270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67271 $as_echo "yes" >&6; } 67272 ENABLE_GENERATE_CLASSLIST="true" 67273 else 67274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67275 $as_echo "no" >&6; } 67276 ENABLE_GENERATE_CLASSLIST="false" 67277 fi 67278 else 67279 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 67280 fi 67281 67282 67283 67284 67285 ############################################################################### 67286 # 67287 # Configure parts of the build that only affect the build performance, 67288 # not the result. 67289 # 67290 ############################################################################### 67291 67292 67293 # How many cores do we have on this build system? 67294 67295 # Check whether --with-num-cores was given. 67296 if test "${with_num_cores+set}" = set; then : 67297 withval=$with_num_cores; 67298 fi 67299 67300 if test "x$with_num_cores" = x; then 67301 # The number of cores were not specified, try to probe them. 67302 67303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 67304 $as_echo_n "checking for number of cores... " >&6; } 67305 NUM_CORES=1 67306 FOUND_CORES=no 67307 67308 if test -f /proc/cpuinfo; then 67309 # Looks like a Linux (or cygwin) system 67310 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 67311 FOUND_CORES=yes 67312 elif test -x /usr/sbin/psrinfo; then 67313 # Looks like a Solaris system 67314 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 67315 FOUND_CORES=yes 67316 elif test -x /usr/sbin/sysctl; then 67317 # Looks like a MacOSX system 67318 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 67319 FOUND_CORES=yes 67320 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 67321 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 67322 FOUND_CORES=yes 67323 elif test -n "$NUMBER_OF_PROCESSORS"; then 67324 # On windows, look in the env 67325 NUM_CORES=$NUMBER_OF_PROCESSORS 67326 FOUND_CORES=yes 67327 fi 67328 67329 if test "x$FOUND_CORES" = xyes; then 67330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 67331 $as_echo "$NUM_CORES" >&6; } 67332 else 67333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 67334 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 67335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 67336 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 67337 fi 67338 67339 else 67340 NUM_CORES=$with_num_cores 67341 fi 67342 67343 67344 67345 # How much memory do we have on this build system? 67346 67347 # Check whether --with-memory-size was given. 67348 if test "${with_memory_size+set}" = set; then : 67349 withval=$with_memory_size; 67350 fi 67351 67352 if test "x$with_memory_size" = x; then 67353 # The memory size was not specified, try to probe it. 67354 67355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 67356 $as_echo_n "checking for memory size... " >&6; } 67357 # Default to 1024 MB 67358 MEMORY_SIZE=1024 67359 FOUND_MEM=no 67360 67361 if test -f /proc/meminfo; then 67362 # Looks like a Linux (or cygwin) system 67363 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 67364 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 67365 FOUND_MEM=yes 67366 elif test -x /usr/sbin/prtconf; then 67367 # Looks like a Solaris or AIX system 67368 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 67369 FOUND_MEM=yes 67370 elif test -x /usr/sbin/sysctl; then 67371 # Looks like a MacOSX system 67372 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 67373 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 67374 FOUND_MEM=yes 67375 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 67376 # Windows, but without cygwin 67377 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 67378 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 67379 FOUND_MEM=yes 67380 fi 67381 67382 if test "x$FOUND_MEM" = xyes; then 67383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 67384 $as_echo "$MEMORY_SIZE MB" >&6; } 67385 else 67386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 67387 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 67388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 67389 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 67390 fi 67391 67392 else 67393 MEMORY_SIZE=$with_memory_size 67394 fi 67395 67396 67397 67398 # Provide a decent default number of parallel jobs for make depending on 67399 # number of cores, amount of memory and machine architecture. 67400 67401 # Check whether --with-jobs was given. 67402 if test "${with_jobs+set}" = set; then : 67403 withval=$with_jobs; 67404 fi 67405 67406 if test "x$with_jobs" = x; then 67407 # Number of jobs was not specified, calculate. 67408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 67409 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 67410 # Approximate memory in GB. 67411 memory_gb=`expr $MEMORY_SIZE / 1024` 67412 # Pick the lowest of memory in gb and number of cores. 67413 if test "$memory_gb" -lt "$NUM_CORES"; then 67414 JOBS="$memory_gb" 67415 else 67416 JOBS="$NUM_CORES" 67417 fi 67418 if test "$JOBS" -eq "0"; then 67419 JOBS=1 67420 fi 67421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 67422 $as_echo "$JOBS" >&6; } 67423 else 67424 JOBS=$with_jobs 67425 fi 67426 67427 67428 67429 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 67430 67431 # Check whether --with-test-jobs was given. 67432 if test "${with_test_jobs+set}" = set; then : 67433 withval=$with_test_jobs; 67434 fi 67435 67436 if test "x$with_test_jobs" = x; then 67437 TEST_JOBS=0 67438 else 67439 TEST_JOBS=$with_test_jobs 67440 fi 67441 67442 67443 67444 # Setup arguments for the boot jdk (after cores and memory have been setup) 67445 67446 ############################################################################## 67447 # 67448 # Specify jvm options for anything that is run with the Boot JDK. 67449 # Not all JVM:s accept the same arguments on the command line. 67450 # 67451 67452 # Check whether --with-boot-jdk-jvmargs was given. 67453 if test "${with_boot_jdk_jvmargs+set}" = set; then : 67454 withval=$with_boot_jdk_jvmargs; 67455 fi 67456 67457 67458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 67459 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 67460 67461 # Force en-US environment 67462 67463 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 67464 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 67465 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 67466 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67467 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67468 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67469 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 67470 JVM_ARG_OK=true 67471 else 67472 $ECHO "Arg failed:" >&5 67473 $ECHO "$OUTPUT" >&5 67474 JVM_ARG_OK=false 67475 fi 67476 67477 67478 if test "x$BOOTJDK_USE_LOCAL_CDS" = xtrue; then 67479 # Use our own CDS archive 67480 67481 $ECHO "Check if jvm arg is ok: $boot_jdk_cds_args -Xshare:auto" >&5 67482 $ECHO "Command: $JAVA $boot_jdk_cds_args -Xshare:auto -version" >&5 67483 OUTPUT=`$JAVA $boot_jdk_cds_args -Xshare:auto -version 2>&1` 67484 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67485 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67486 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67487 boot_jdk_jvmargs="$boot_jdk_jvmargs $boot_jdk_cds_args -Xshare:auto" 67488 JVM_ARG_OK=true 67489 else 67490 $ECHO "Arg failed:" >&5 67491 $ECHO "$OUTPUT" >&5 67492 JVM_ARG_OK=false 67493 fi 67494 67495 else 67496 # Otherwise optimistically use the system-wide one, if one is present 67497 67498 $ECHO "Check if jvm arg is ok: -Xshare:auto" >&5 67499 $ECHO "Command: $JAVA -Xshare:auto -version" >&5 67500 OUTPUT=`$JAVA -Xshare:auto -version 2>&1` 67501 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67502 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67503 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67504 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xshare:auto" 67505 JVM_ARG_OK=true 67506 else 67507 $ECHO "Arg failed:" >&5 67508 $ECHO "$OUTPUT" >&5 67509 JVM_ARG_OK=false 67510 fi 67511 67512 fi 67513 67514 # Apply user provided options. 67515 67516 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 67517 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 67518 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 67519 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67520 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67521 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67522 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 67523 JVM_ARG_OK=true 67524 else 67525 $ECHO "Arg failed:" >&5 67526 $ECHO "$OUTPUT" >&5 67527 JVM_ARG_OK=false 67528 fi 67529 67530 67531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 67532 $as_echo "$boot_jdk_jvmargs" >&6; } 67533 67534 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 67535 JAVA_FLAGS=$boot_jdk_jvmargs 67536 67537 67538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 67539 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 67540 67541 # Starting amount of heap memory. 67542 67543 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 67544 $ECHO "Command: $JAVA -Xms64M -version" >&5 67545 OUTPUT=`$JAVA -Xms64M -version 2>&1` 67546 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67547 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67548 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67549 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 67550 JVM_ARG_OK=true 67551 else 67552 $ECHO "Arg failed:" >&5 67553 $ECHO "$OUTPUT" >&5 67554 JVM_ARG_OK=false 67555 fi 67556 67557 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 67558 67559 # Maximum amount of heap memory and stack size. 67560 JVM_HEAP_LIMIT_32="1024" 67561 # Running a 64 bit JVM allows for and requires a bigger heap 67562 JVM_HEAP_LIMIT_64="1600" 67563 STACK_SIZE_32=768 67564 STACK_SIZE_64=1536 67565 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 67566 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 67567 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 67568 fi 67569 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 67570 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 67571 fi 67572 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 67573 JVM_HEAP_LIMIT_32=512 67574 JVM_HEAP_LIMIT_64=512 67575 fi 67576 67577 if test "x$BOOT_JDK_BITS" = "x32"; then 67578 STACK_SIZE=$STACK_SIZE_32 67579 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 67580 else 67581 STACK_SIZE=$STACK_SIZE_64 67582 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 67583 fi 67584 67585 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 67586 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 67587 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 67588 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67589 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67590 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67591 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 67592 JVM_ARG_OK=true 67593 else 67594 $ECHO "Arg failed:" >&5 67595 $ECHO "$OUTPUT" >&5 67596 JVM_ARG_OK=false 67597 fi 67598 67599 67600 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 67601 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 67602 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 67603 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67604 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67605 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67606 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 67607 JVM_ARG_OK=true 67608 else 67609 $ECHO "Arg failed:" >&5 67610 $ECHO "$OUTPUT" >&5 67611 JVM_ARG_OK=false 67612 fi 67613 67614 67615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 67616 $as_echo "$boot_jdk_jvmargs_big" >&6; } 67617 67618 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 67619 67620 67621 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 67622 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 67623 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 67624 else 67625 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 67626 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 67627 fi 67628 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 67629 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 67630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 67631 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 67632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 67633 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 67634 67635 67636 # By default, the main javac compilations use big 67637 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 67638 67639 67640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 67641 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 67642 67643 # Use serial gc for small short lived tools if possible 67644 67645 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 67646 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 67647 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 67648 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67649 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67650 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67651 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 67652 JVM_ARG_OK=true 67653 else 67654 $ECHO "Arg failed:" >&5 67655 $ECHO "$OUTPUT" >&5 67656 JVM_ARG_OK=false 67657 fi 67658 67659 67660 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 67661 $ECHO "Command: $JAVA -Xms32M -version" >&5 67662 OUTPUT=`$JAVA -Xms32M -version 2>&1` 67663 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67664 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67665 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67666 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 67667 JVM_ARG_OK=true 67668 else 67669 $ECHO "Arg failed:" >&5 67670 $ECHO "$OUTPUT" >&5 67671 JVM_ARG_OK=false 67672 fi 67673 67674 67675 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 67676 $ECHO "Command: $JAVA -Xmx512M -version" >&5 67677 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 67678 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67679 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67680 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67681 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 67682 JVM_ARG_OK=true 67683 else 67684 $ECHO "Arg failed:" >&5 67685 $ECHO "$OUTPUT" >&5 67686 JVM_ARG_OK=false 67687 fi 67688 67689 67690 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 67691 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 67692 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 67693 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67694 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67695 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67696 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 67697 JVM_ARG_OK=true 67698 else 67699 $ECHO "Arg failed:" >&5 67700 $ECHO "$OUTPUT" >&5 67701 JVM_ARG_OK=false 67702 fi 67703 67704 67705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 67706 $as_echo "$boot_jdk_jvmargs_small" >&6; } 67707 67708 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 67709 67710 67711 JAVA_TOOL_FLAGS_SMALL="" 67712 for f in $JAVA_FLAGS_SMALL; do 67713 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 67714 done 67715 67716 67717 67718 # Setup smart javac (after cores and memory have been setup) 67719 67720 67721 # Check whether --with-sjavac-server-java was given. 67722 if test "${with_sjavac_server_java+set}" = set; then : 67723 withval=$with_sjavac_server_java; 67724 fi 67725 67726 67727 if test "x$with_sjavac_server_java" != x; then 67728 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 67729 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 67730 if test "x$FOUND_VERSION" = x; then 67731 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 67732 fi 67733 else 67734 SJAVAC_SERVER_JAVA="$JAVA" 67735 fi 67736 67737 67738 if test "$MEMORY_SIZE" -gt "3000"; then 67739 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 67740 JVM_64BIT=true 67741 fi 67742 fi 67743 67744 MX_VALUE=`expr $MEMORY_SIZE / 2` 67745 if test "$JVM_64BIT" = true; then 67746 # Set ms lower than mx since more than one instance of the server might 67747 # get launched at the same time before they figure out which instance won. 67748 MS_VALUE=512 67749 if test "$MX_VALUE" -gt "2048"; then 67750 MX_VALUE=2048 67751 fi 67752 else 67753 MS_VALUE=256 67754 if test "$MX_VALUE" -gt "1500"; then 67755 MX_VALUE=1500 67756 fi 67757 fi 67758 if test "$MX_VALUE" -lt "512"; then 67759 MX_VALUE=512 67760 fi 67761 67762 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 67763 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 67764 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 67765 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67766 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67767 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67768 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 67769 JVM_ARG_OK=true 67770 else 67771 $ECHO "Arg failed:" >&5 67772 $ECHO "$OUTPUT" >&5 67773 JVM_ARG_OK=false 67774 fi 67775 67776 67777 67778 # Check whether --enable-sjavac was given. 67779 if test "${enable_sjavac+set}" = set; then : 67780 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 67781 else 67782 ENABLE_SJAVAC="no" 67783 fi 67784 67785 if test "x$JVM_ARG_OK" = "xfalse"; then 67786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 67787 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 67788 ENABLE_SJAVAC="no" 67789 fi 67790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 67791 $as_echo_n "checking whether to use sjavac... " >&6; } 67792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 67793 $as_echo "$ENABLE_SJAVAC" >&6; } 67794 67795 67796 # Check whether --enable-javac-server was given. 67797 if test "${enable_javac_server+set}" = set; then : 67798 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 67799 else 67800 ENABLE_JAVAC_SERVER="yes" 67801 fi 67802 67803 if test "x$JVM_ARG_OK" = "xfalse"; then 67804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 67805 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 67806 ENABLE_JAVAC_SERVER="no" 67807 fi 67808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 67809 $as_echo_n "checking whether to use javac server... " >&6; } 67810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 67811 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 67812 67813 67814 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 67815 # When using a server javac, the small client instances do not need much 67816 # resources. 67817 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 67818 fi 67819 67820 67821 # Setup use of icecc if requested 67822 67823 # Check whether --enable-icecc was given. 67824 if test "${enable_icecc+set}" = set; then : 67825 enableval=$enable_icecc; 67826 fi 67827 67828 67829 if test "x${enable_icecc}" = "xyes"; then 67830 67831 67832 67833 # Publish this variable in the help. 67834 67835 67836 if [ -z "${ICECC_CMD+x}" ]; then 67837 # The variable is not set by user, try to locate tool using the code snippet 67838 for ac_prog in icecc 67839 do 67840 # Extract the first word of "$ac_prog", so it can be a program name with args. 67841 set dummy $ac_prog; ac_word=$2 67842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67843 $as_echo_n "checking for $ac_word... " >&6; } 67844 if ${ac_cv_path_ICECC_CMD+:} false; then : 67845 $as_echo_n "(cached) " >&6 67846 else 67847 case $ICECC_CMD in 67848 [\\/]* | ?:[\\/]*) 67849 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67850 ;; 67851 *) 67852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67853 for as_dir in $PATH 67854 do 67855 IFS=$as_save_IFS 67856 test -z "$as_dir" && as_dir=. 67857 for ac_exec_ext in '' $ac_executable_extensions; do 67858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67859 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67861 break 2 67862 fi 67863 done 67864 done 67865 IFS=$as_save_IFS 67866 67867 ;; 67868 esac 67869 fi 67870 ICECC_CMD=$ac_cv_path_ICECC_CMD 67871 if test -n "$ICECC_CMD"; then 67872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67873 $as_echo "$ICECC_CMD" >&6; } 67874 else 67875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67876 $as_echo "no" >&6; } 67877 fi 67878 67879 67880 test -n "$ICECC_CMD" && break 67881 done 67882 67883 else 67884 # The variable is set, but is it from the command line or the environment? 67885 67886 # Try to remove the string !ICECC_CMD! from our list. 67887 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 67888 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67889 # If it failed, the variable was not from the command line. Ignore it, 67890 # but warn the user (except for BASH, which is always set by the calling BASH). 67891 if test "xICECC_CMD" != xBASH; then 67892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 67893 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 67894 fi 67895 # Try to locate tool using the code snippet 67896 for ac_prog in icecc 67897 do 67898 # Extract the first word of "$ac_prog", so it can be a program name with args. 67899 set dummy $ac_prog; ac_word=$2 67900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67901 $as_echo_n "checking for $ac_word... " >&6; } 67902 if ${ac_cv_path_ICECC_CMD+:} false; then : 67903 $as_echo_n "(cached) " >&6 67904 else 67905 case $ICECC_CMD in 67906 [\\/]* | ?:[\\/]*) 67907 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67908 ;; 67909 *) 67910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67911 for as_dir in $PATH 67912 do 67913 IFS=$as_save_IFS 67914 test -z "$as_dir" && as_dir=. 67915 for ac_exec_ext in '' $ac_executable_extensions; do 67916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67917 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67919 break 2 67920 fi 67921 done 67922 done 67923 IFS=$as_save_IFS 67924 67925 ;; 67926 esac 67927 fi 67928 ICECC_CMD=$ac_cv_path_ICECC_CMD 67929 if test -n "$ICECC_CMD"; then 67930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67931 $as_echo "$ICECC_CMD" >&6; } 67932 else 67933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67934 $as_echo "no" >&6; } 67935 fi 67936 67937 67938 test -n "$ICECC_CMD" && break 67939 done 67940 67941 else 67942 # If it succeeded, then it was overridden by the user. We will use it 67943 # for the tool. 67944 67945 # First remove it from the list of overridden variables, so we can test 67946 # for unknown variables in the end. 67947 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67948 67949 # Check if we try to supply an empty value 67950 if test "x$ICECC_CMD" = x; then 67951 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 67952 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 67953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 67954 $as_echo_n "checking for ICECC_CMD... " >&6; } 67955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67956 $as_echo "disabled" >&6; } 67957 else 67958 # Check if the provided tool contains a complete path. 67959 tool_specified="$ICECC_CMD" 67960 tool_basename="${tool_specified##*/}" 67961 if test "x$tool_basename" = "x$tool_specified"; then 67962 # A command without a complete path is provided, search $PATH. 67963 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 67964 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 67965 # Extract the first word of "$tool_basename", so it can be a program name with args. 67966 set dummy $tool_basename; ac_word=$2 67967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67968 $as_echo_n "checking for $ac_word... " >&6; } 67969 if ${ac_cv_path_ICECC_CMD+:} false; then : 67970 $as_echo_n "(cached) " >&6 67971 else 67972 case $ICECC_CMD in 67973 [\\/]* | ?:[\\/]*) 67974 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67975 ;; 67976 *) 67977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67978 for as_dir in $PATH 67979 do 67980 IFS=$as_save_IFS 67981 test -z "$as_dir" && as_dir=. 67982 for ac_exec_ext in '' $ac_executable_extensions; do 67983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67984 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67986 break 2 67987 fi 67988 done 67989 done 67990 IFS=$as_save_IFS 67991 67992 ;; 67993 esac 67994 fi 67995 ICECC_CMD=$ac_cv_path_ICECC_CMD 67996 if test -n "$ICECC_CMD"; then 67997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67998 $as_echo "$ICECC_CMD" >&6; } 67999 else 68000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68001 $as_echo "no" >&6; } 68002 fi 68003 68004 68005 if test "x$ICECC_CMD" = x; then 68006 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68007 fi 68008 else 68009 # Otherwise we believe it is a complete path. Use it as it is. 68010 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 68011 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 68012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 68013 $as_echo_n "checking for ICECC_CMD... " >&6; } 68014 if test ! -x "$tool_specified"; then 68015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68016 $as_echo "not found" >&6; } 68017 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 68018 fi 68019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68020 $as_echo "$tool_specified" >&6; } 68021 fi 68022 fi 68023 fi 68024 68025 fi 68026 68027 68028 68029 if test "x$ICECC_CMD" = x; then 68030 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 68031 fi 68032 68033 68034 old_path="$PATH" 68035 68036 # Look for icecc-create-env in some known places 68037 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 68038 68039 68040 68041 # Publish this variable in the help. 68042 68043 68044 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 68045 # The variable is not set by user, try to locate tool using the code snippet 68046 for ac_prog in icecc-create-env 68047 do 68048 # Extract the first word of "$ac_prog", so it can be a program name with args. 68049 set dummy $ac_prog; ac_word=$2 68050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68051 $as_echo_n "checking for $ac_word... " >&6; } 68052 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 68053 $as_echo_n "(cached) " >&6 68054 else 68055 case $ICECC_CREATE_ENV in 68056 [\\/]* | ?:[\\/]*) 68057 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 68058 ;; 68059 *) 68060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68061 for as_dir in $PATH 68062 do 68063 IFS=$as_save_IFS 68064 test -z "$as_dir" && as_dir=. 68065 for ac_exec_ext in '' $ac_executable_extensions; do 68066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68067 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 68068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68069 break 2 68070 fi 68071 done 68072 done 68073 IFS=$as_save_IFS 68074 68075 ;; 68076 esac 68077 fi 68078 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68079 if test -n "$ICECC_CREATE_ENV"; then 68080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68081 $as_echo "$ICECC_CREATE_ENV" >&6; } 68082 else 68083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68084 $as_echo "no" >&6; } 68085 fi 68086 68087 68088 test -n "$ICECC_CREATE_ENV" && break 68089 done 68090 68091 else 68092 # The variable is set, but is it from the command line or the environment? 68093 68094 # Try to remove the string !ICECC_CREATE_ENV! from our list. 68095 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 68096 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68097 # If it failed, the variable was not from the command line. Ignore it, 68098 # but warn the user (except for BASH, which is always set by the calling BASH). 68099 if test "xICECC_CREATE_ENV" != xBASH; then 68100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 68101 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 68102 fi 68103 # Try to locate tool using the code snippet 68104 for ac_prog in icecc-create-env 68105 do 68106 # Extract the first word of "$ac_prog", so it can be a program name with args. 68107 set dummy $ac_prog; ac_word=$2 68108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68109 $as_echo_n "checking for $ac_word... " >&6; } 68110 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 68111 $as_echo_n "(cached) " >&6 68112 else 68113 case $ICECC_CREATE_ENV in 68114 [\\/]* | ?:[\\/]*) 68115 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 68116 ;; 68117 *) 68118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68119 for as_dir in $PATH 68120 do 68121 IFS=$as_save_IFS 68122 test -z "$as_dir" && as_dir=. 68123 for ac_exec_ext in '' $ac_executable_extensions; do 68124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68125 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 68126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68127 break 2 68128 fi 68129 done 68130 done 68131 IFS=$as_save_IFS 68132 68133 ;; 68134 esac 68135 fi 68136 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68137 if test -n "$ICECC_CREATE_ENV"; then 68138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68139 $as_echo "$ICECC_CREATE_ENV" >&6; } 68140 else 68141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68142 $as_echo "no" >&6; } 68143 fi 68144 68145 68146 test -n "$ICECC_CREATE_ENV" && break 68147 done 68148 68149 else 68150 # If it succeeded, then it was overridden by the user. We will use it 68151 # for the tool. 68152 68153 # First remove it from the list of overridden variables, so we can test 68154 # for unknown variables in the end. 68155 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68156 68157 # Check if we try to supply an empty value 68158 if test "x$ICECC_CREATE_ENV" = x; then 68159 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 68160 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 68161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 68162 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 68163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68164 $as_echo "disabled" >&6; } 68165 else 68166 # Check if the provided tool contains a complete path. 68167 tool_specified="$ICECC_CREATE_ENV" 68168 tool_basename="${tool_specified##*/}" 68169 if test "x$tool_basename" = "x$tool_specified"; then 68170 # A command without a complete path is provided, search $PATH. 68171 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 68172 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 68173 # Extract the first word of "$tool_basename", so it can be a program name with args. 68174 set dummy $tool_basename; ac_word=$2 68175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68176 $as_echo_n "checking for $ac_word... " >&6; } 68177 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 68178 $as_echo_n "(cached) " >&6 68179 else 68180 case $ICECC_CREATE_ENV in 68181 [\\/]* | ?:[\\/]*) 68182 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 68183 ;; 68184 *) 68185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68186 for as_dir in $PATH 68187 do 68188 IFS=$as_save_IFS 68189 test -z "$as_dir" && as_dir=. 68190 for ac_exec_ext in '' $ac_executable_extensions; do 68191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68192 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 68193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68194 break 2 68195 fi 68196 done 68197 done 68198 IFS=$as_save_IFS 68199 68200 ;; 68201 esac 68202 fi 68203 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68204 if test -n "$ICECC_CREATE_ENV"; then 68205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68206 $as_echo "$ICECC_CREATE_ENV" >&6; } 68207 else 68208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68209 $as_echo "no" >&6; } 68210 fi 68211 68212 68213 if test "x$ICECC_CREATE_ENV" = x; then 68214 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68215 fi 68216 else 68217 # Otherwise we believe it is a complete path. Use it as it is. 68218 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 68219 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 68220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 68221 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 68222 if test ! -x "$tool_specified"; then 68223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68224 $as_echo "not found" >&6; } 68225 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 68226 fi 68227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68228 $as_echo "$tool_specified" >&6; } 68229 fi 68230 fi 68231 fi 68232 68233 fi 68234 68235 68236 68237 if test "x$ICECC_CREATE_ENV" = x; then 68238 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 68239 fi 68240 68241 68242 # Use icecc-create-env to create a minimal compilation environment that can 68243 # be sent to the other hosts in the icecream cluster. 68244 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 68245 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 68246 # Older versions of icecc does not have the --gcc parameter 68247 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 68248 icecc_gcc_arg="--gcc" 68249 fi 68250 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 68251 68252 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68253 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 68254 ${icecc_create_env_log} 2>&1 ) 68255 if test "$?" != "0"; then 68256 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68257 $as_echo "$as_me: icecc-create-env output:" >&6;} 68258 cat \ 68259 ${icecc_create_env_log} 68260 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68261 fi 68262 68263 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 68264 # For clang, the icecc compilerwrapper is needed. It usually resides next 68265 # to icecc-create-env. 68266 68267 68268 68269 # Publish this variable in the help. 68270 68271 68272 if [ -z "${ICECC_WRAPPER+x}" ]; then 68273 # The variable is not set by user, try to locate tool using the code snippet 68274 for ac_prog in compilerwrapper 68275 do 68276 # Extract the first word of "$ac_prog", so it can be a program name with args. 68277 set dummy $ac_prog; ac_word=$2 68278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68279 $as_echo_n "checking for $ac_word... " >&6; } 68280 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68281 $as_echo_n "(cached) " >&6 68282 else 68283 case $ICECC_WRAPPER in 68284 [\\/]* | ?:[\\/]*) 68285 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68286 ;; 68287 *) 68288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68289 for as_dir in $PATH 68290 do 68291 IFS=$as_save_IFS 68292 test -z "$as_dir" && as_dir=. 68293 for ac_exec_ext in '' $ac_executable_extensions; do 68294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68295 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68297 break 2 68298 fi 68299 done 68300 done 68301 IFS=$as_save_IFS 68302 68303 ;; 68304 esac 68305 fi 68306 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68307 if test -n "$ICECC_WRAPPER"; then 68308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68309 $as_echo "$ICECC_WRAPPER" >&6; } 68310 else 68311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68312 $as_echo "no" >&6; } 68313 fi 68314 68315 68316 test -n "$ICECC_WRAPPER" && break 68317 done 68318 68319 else 68320 # The variable is set, but is it from the command line or the environment? 68321 68322 # Try to remove the string !ICECC_WRAPPER! from our list. 68323 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 68324 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68325 # If it failed, the variable was not from the command line. Ignore it, 68326 # but warn the user (except for BASH, which is always set by the calling BASH). 68327 if test "xICECC_WRAPPER" != xBASH; then 68328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 68329 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 68330 fi 68331 # Try to locate tool using the code snippet 68332 for ac_prog in compilerwrapper 68333 do 68334 # Extract the first word of "$ac_prog", so it can be a program name with args. 68335 set dummy $ac_prog; ac_word=$2 68336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68337 $as_echo_n "checking for $ac_word... " >&6; } 68338 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68339 $as_echo_n "(cached) " >&6 68340 else 68341 case $ICECC_WRAPPER in 68342 [\\/]* | ?:[\\/]*) 68343 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68344 ;; 68345 *) 68346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68347 for as_dir in $PATH 68348 do 68349 IFS=$as_save_IFS 68350 test -z "$as_dir" && as_dir=. 68351 for ac_exec_ext in '' $ac_executable_extensions; do 68352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68353 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68355 break 2 68356 fi 68357 done 68358 done 68359 IFS=$as_save_IFS 68360 68361 ;; 68362 esac 68363 fi 68364 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68365 if test -n "$ICECC_WRAPPER"; then 68366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68367 $as_echo "$ICECC_WRAPPER" >&6; } 68368 else 68369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68370 $as_echo "no" >&6; } 68371 fi 68372 68373 68374 test -n "$ICECC_WRAPPER" && break 68375 done 68376 68377 else 68378 # If it succeeded, then it was overridden by the user. We will use it 68379 # for the tool. 68380 68381 # First remove it from the list of overridden variables, so we can test 68382 # for unknown variables in the end. 68383 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68384 68385 # Check if we try to supply an empty value 68386 if test "x$ICECC_WRAPPER" = x; then 68387 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 68388 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 68389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 68390 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 68391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68392 $as_echo "disabled" >&6; } 68393 else 68394 # Check if the provided tool contains a complete path. 68395 tool_specified="$ICECC_WRAPPER" 68396 tool_basename="${tool_specified##*/}" 68397 if test "x$tool_basename" = "x$tool_specified"; then 68398 # A command without a complete path is provided, search $PATH. 68399 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 68400 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 68401 # Extract the first word of "$tool_basename", so it can be a program name with args. 68402 set dummy $tool_basename; ac_word=$2 68403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68404 $as_echo_n "checking for $ac_word... " >&6; } 68405 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68406 $as_echo_n "(cached) " >&6 68407 else 68408 case $ICECC_WRAPPER in 68409 [\\/]* | ?:[\\/]*) 68410 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68411 ;; 68412 *) 68413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68414 for as_dir in $PATH 68415 do 68416 IFS=$as_save_IFS 68417 test -z "$as_dir" && as_dir=. 68418 for ac_exec_ext in '' $ac_executable_extensions; do 68419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68420 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68422 break 2 68423 fi 68424 done 68425 done 68426 IFS=$as_save_IFS 68427 68428 ;; 68429 esac 68430 fi 68431 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68432 if test -n "$ICECC_WRAPPER"; then 68433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68434 $as_echo "$ICECC_WRAPPER" >&6; } 68435 else 68436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68437 $as_echo "no" >&6; } 68438 fi 68439 68440 68441 if test "x$ICECC_WRAPPER" = x; then 68442 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68443 fi 68444 else 68445 # Otherwise we believe it is a complete path. Use it as it is. 68446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 68447 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 68448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 68449 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 68450 if test ! -x "$tool_specified"; then 68451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68452 $as_echo "not found" >&6; } 68453 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 68454 fi 68455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68456 $as_echo "$tool_specified" >&6; } 68457 fi 68458 fi 68459 fi 68460 68461 fi 68462 68463 68464 68465 if test "x$ICECC_WRAPPER" = x; then 68466 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 68467 fi 68468 68469 68470 68471 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68472 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 68473 if test "$?" != "0"; then 68474 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68475 $as_echo "$as_me: icecc-create-env output:" >&6;} 68476 cat ${icecc_create_env_log} 68477 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68478 fi 68479 68480 else 68481 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 68482 fi 68483 PATH="$old_path" 68484 # The bundle with the compiler gets a name based on checksums. Parse log file 68485 # to find it. 68486 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 68487 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 68488 if test ! -f ${ICECC_ENV_BUNDLE}; then 68489 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 68490 fi 68491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 68492 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 68493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 68494 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 68495 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 68496 68497 if test "x${COMPILE_TYPE}" = "xcross"; then 68498 # If cross compiling, create a separate env package for the build compiler 68499 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 68500 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 68501 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 68502 68503 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68504 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 68505 ${icecc_create_env_log_build} 2>&1 ) 68506 if test "$?" != "0"; then 68507 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68508 $as_echo "$as_me: icecc-create-env output:" >&6;} 68509 cat \ 68510 ${icecc_create_env_log_build} 68511 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68512 fi 68513 68514 elif test "x${BUILD_CC##*/}" = "xclang"; then 68515 68516 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68517 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 68518 if test "$?" != "0"; then 68519 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68520 $as_echo "$as_me: icecc-create-env output:" >&6;} 68521 cat ${icecc_create_env_log_build} 68522 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68523 fi 68524 68525 else 68526 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 68527 fi 68528 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 68529 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 68530 if test ! -f ${ICECC_ENV_BUNDLE}; then 68531 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 68532 fi 68533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 68534 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 68535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 68536 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 68537 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 68538 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 68539 else 68540 BUILD_ICECC="${ICECC}" 68541 fi 68542 68543 68544 fi 68545 68546 68547 # Can the C/C++ compiler use precompiled headers? 68548 68549 68550 ############################################################################### 68551 # 68552 # Can the C/C++ compiler use precompiled headers? 68553 # 68554 # Check whether --enable-precompiled-headers was given. 68555 if test "${enable_precompiled_headers+set}" = set; then : 68556 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 68557 else 68558 ENABLE_PRECOMPH=yes 68559 fi 68560 68561 68562 USE_PRECOMPILED_HEADER=true 68563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 68564 $as_echo_n "checking If precompiled header is enabled... " >&6; } 68565 if test "x$ENABLE_PRECOMPH" = xno; then 68566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 68567 $as_echo "no, forced" >&6; } 68568 USE_PRECOMPILED_HEADER=false 68569 elif test "x$ICECC" != "x"; then 68570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 68571 $as_echo "no, does not work effectively with icecc" >&6; } 68572 USE_PRECOMPILED_HEADER=false 68573 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 68574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 68575 $as_echo "no, does not work with Solaris Studio" >&6; } 68576 USE_PRECOMPILED_HEADER=false 68577 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 68578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 68579 $as_echo "no, does not work with xlc" >&6; } 68580 USE_PRECOMPILED_HEADER=false 68581 else 68582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68583 $as_echo "yes" >&6; } 68584 fi 68585 68586 if test "x$ENABLE_PRECOMPH" = xyes; then 68587 # Check that the compiler actually supports precomp headers. 68588 if test "x$TOOLCHAIN_TYPE" = xgcc; then 68589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 68590 $as_echo_n "checking that precompiled headers work... " >&6; } 68591 echo "int alfa();" > conftest.h 68592 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 68593 if test ! -f conftest.hpp.gch; then 68594 USE_PRECOMPILED_HEADER=false 68595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68596 $as_echo "no" >&6; } 68597 else 68598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68599 $as_echo "yes" >&6; } 68600 fi 68601 $RM conftest.h conftest.hpp.gch 68602 fi 68603 fi 68604 68605 68606 68607 68608 # Setup use of ccache, if available 68609 68610 # Check whether --enable-ccache was given. 68611 if test "${enable_ccache+set}" = set; then : 68612 enableval=$enable_ccache; 68613 fi 68614 68615 68616 CCACHE_STATUS= 68617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 68618 $as_echo_n "checking is ccache enabled... " >&6; } 68619 if test "x$enable_ccache" = xyes; then 68620 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 68621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68622 $as_echo "yes" >&6; } 68623 OLD_PATH="$PATH" 68624 if test "x$TOOLCHAIN_PATH" != x; then 68625 PATH=$TOOLCHAIN_PATH:$PATH 68626 fi 68627 68628 68629 68630 # Publish this variable in the help. 68631 68632 68633 if [ -z "${CCACHE+x}" ]; then 68634 # The variable is not set by user, try to locate tool using the code snippet 68635 for ac_prog in ccache 68636 do 68637 # Extract the first word of "$ac_prog", so it can be a program name with args. 68638 set dummy $ac_prog; ac_word=$2 68639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68640 $as_echo_n "checking for $ac_word... " >&6; } 68641 if ${ac_cv_path_CCACHE+:} false; then : 68642 $as_echo_n "(cached) " >&6 68643 else 68644 case $CCACHE in 68645 [\\/]* | ?:[\\/]*) 68646 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68647 ;; 68648 *) 68649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68650 for as_dir in $PATH 68651 do 68652 IFS=$as_save_IFS 68653 test -z "$as_dir" && as_dir=. 68654 for ac_exec_ext in '' $ac_executable_extensions; do 68655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68656 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68658 break 2 68659 fi 68660 done 68661 done 68662 IFS=$as_save_IFS 68663 68664 ;; 68665 esac 68666 fi 68667 CCACHE=$ac_cv_path_CCACHE 68668 if test -n "$CCACHE"; then 68669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68670 $as_echo "$CCACHE" >&6; } 68671 else 68672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68673 $as_echo "no" >&6; } 68674 fi 68675 68676 68677 test -n "$CCACHE" && break 68678 done 68679 68680 else 68681 # The variable is set, but is it from the command line or the environment? 68682 68683 # Try to remove the string !CCACHE! from our list. 68684 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 68685 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68686 # If it failed, the variable was not from the command line. Ignore it, 68687 # but warn the user (except for BASH, which is always set by the calling BASH). 68688 if test "xCCACHE" != xBASH; then 68689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 68690 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 68691 fi 68692 # Try to locate tool using the code snippet 68693 for ac_prog in ccache 68694 do 68695 # Extract the first word of "$ac_prog", so it can be a program name with args. 68696 set dummy $ac_prog; ac_word=$2 68697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68698 $as_echo_n "checking for $ac_word... " >&6; } 68699 if ${ac_cv_path_CCACHE+:} false; then : 68700 $as_echo_n "(cached) " >&6 68701 else 68702 case $CCACHE in 68703 [\\/]* | ?:[\\/]*) 68704 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68705 ;; 68706 *) 68707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68708 for as_dir in $PATH 68709 do 68710 IFS=$as_save_IFS 68711 test -z "$as_dir" && as_dir=. 68712 for ac_exec_ext in '' $ac_executable_extensions; do 68713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68714 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68716 break 2 68717 fi 68718 done 68719 done 68720 IFS=$as_save_IFS 68721 68722 ;; 68723 esac 68724 fi 68725 CCACHE=$ac_cv_path_CCACHE 68726 if test -n "$CCACHE"; then 68727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68728 $as_echo "$CCACHE" >&6; } 68729 else 68730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68731 $as_echo "no" >&6; } 68732 fi 68733 68734 68735 test -n "$CCACHE" && break 68736 done 68737 68738 else 68739 # If it succeeded, then it was overridden by the user. We will use it 68740 # for the tool. 68741 68742 # First remove it from the list of overridden variables, so we can test 68743 # for unknown variables in the end. 68744 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68745 68746 # Check if we try to supply an empty value 68747 if test "x$CCACHE" = x; then 68748 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 68749 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 68750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 68751 $as_echo_n "checking for CCACHE... " >&6; } 68752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68753 $as_echo "disabled" >&6; } 68754 else 68755 # Check if the provided tool contains a complete path. 68756 tool_specified="$CCACHE" 68757 tool_basename="${tool_specified##*/}" 68758 if test "x$tool_basename" = "x$tool_specified"; then 68759 # A command without a complete path is provided, search $PATH. 68760 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 68761 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 68762 # Extract the first word of "$tool_basename", so it can be a program name with args. 68763 set dummy $tool_basename; ac_word=$2 68764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68765 $as_echo_n "checking for $ac_word... " >&6; } 68766 if ${ac_cv_path_CCACHE+:} false; then : 68767 $as_echo_n "(cached) " >&6 68768 else 68769 case $CCACHE in 68770 [\\/]* | ?:[\\/]*) 68771 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68772 ;; 68773 *) 68774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68775 for as_dir in $PATH 68776 do 68777 IFS=$as_save_IFS 68778 test -z "$as_dir" && as_dir=. 68779 for ac_exec_ext in '' $ac_executable_extensions; do 68780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68781 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68783 break 2 68784 fi 68785 done 68786 done 68787 IFS=$as_save_IFS 68788 68789 ;; 68790 esac 68791 fi 68792 CCACHE=$ac_cv_path_CCACHE 68793 if test -n "$CCACHE"; then 68794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68795 $as_echo "$CCACHE" >&6; } 68796 else 68797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68798 $as_echo "no" >&6; } 68799 fi 68800 68801 68802 if test "x$CCACHE" = x; then 68803 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68804 fi 68805 else 68806 # Otherwise we believe it is a complete path. Use it as it is. 68807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 68808 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 68809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 68810 $as_echo_n "checking for CCACHE... " >&6; } 68811 if test ! -x "$tool_specified"; then 68812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68813 $as_echo "not found" >&6; } 68814 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 68815 fi 68816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68817 $as_echo "$tool_specified" >&6; } 68818 fi 68819 fi 68820 fi 68821 68822 fi 68823 68824 68825 68826 if test "x$CCACHE" = x; then 68827 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 68828 fi 68829 68830 68831 PATH="$OLD_PATH" 68832 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 68833 CCACHE_STATUS="Active ($CCACHE_VERSION)" 68834 else 68835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68836 $as_echo "no" >&6; } 68837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 68838 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 68839 fi 68840 elif test "x$enable_ccache" = xno; then 68841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 68842 $as_echo "no, explicitly disabled" >&6; } 68843 CCACHE_STATUS="Disabled" 68844 elif test "x$enable_ccache" = x; then 68845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68846 $as_echo "no" >&6; } 68847 else 68848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 68849 $as_echo "unknown" >&6; } 68850 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 68851 fi 68852 68853 68854 68855 # Check whether --with-ccache-dir was given. 68856 if test "${with_ccache_dir+set}" = set; then : 68857 withval=$with_ccache_dir; 68858 fi 68859 68860 68861 if test "x$with_ccache_dir" != x; then 68862 # When using a non home ccache directory, assume the use is to share ccache files 68863 # with other users. Thus change the umask. 68864 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 68865 if test "x$CCACHE" = x; then 68866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 68867 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 68868 fi 68869 fi 68870 68871 if test "x$CCACHE" != x; then 68872 68873 if test "x$CCACHE" != x; then 68874 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 68875 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 68876 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 68877 if test "x$HAS_BAD_CCACHE" != "x"; then 68878 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 68879 fi 68880 fi 68881 if test "x$USE_PRECOMPILED_HEADER" = "xtrue"; then 68882 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 68883 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 68884 if test "x$HAS_BAD_CCACHE" != "x"; then 68885 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 68886 fi 68887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 68888 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 68889 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 68890 PUSHED_FLAGS="$CXXFLAGS" 68891 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 68892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68893 /* end confdefs.h. */ 68894 68895 int 68896 main () 68897 { 68898 68899 ; 68900 return 0; 68901 } 68902 _ACEOF 68903 if ac_fn_cxx_try_compile "$LINENO"; then : 68904 CC_KNOWS_CCACHE_TRICK=yes 68905 else 68906 CC_KNOWS_CCACHE_TRICK=no 68907 fi 68908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68909 CXXFLAGS="$PUSHED_FLAGS" 68910 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 68911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68912 $as_echo "yes" >&6; } 68913 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 68914 68915 CCACHE_SLOPPINESS=pch_defines,time_macros 68916 else 68917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68918 $as_echo "no" >&6; } 68919 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 68920 fi 68921 fi 68922 68923 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 68924 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 68925 68926 if test "x$SET_CCACHE_DIR" != x; then 68927 mkdir -p $CCACHE_DIR > /dev/null 2>&1 68928 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 68929 fi 68930 fi 68931 68932 fi 68933 68934 68935 ############################################################################### 68936 # 68937 # And now the finish... 68938 # 68939 ############################################################################### 68940 68941 # Check for some common pitfalls 68942 68943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 68944 file_to_test="$TOPDIR/LICENSE" 68945 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 68946 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 68947 fi 68948 fi 68949 68950 68951 # Did user specify any unknown variables? 68952 68953 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 68954 # Replace the separating ! with spaces before presenting for end user. 68955 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 68956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 68957 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 68958 fi 68959 68960 68961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 68962 $as_echo_n "checking if build directory is on local disk... " >&6; } 68963 68964 # df -l lists only local disks; if the given directory is not found then 68965 # a non-zero exit code is given 68966 if test "x$DF" = x; then 68967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 68968 # msys does not have df; use Windows "net use" instead. 68969 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 68970 if test "x$IS_NETWORK_DISK" = x; then 68971 OUTPUT_DIR_IS_LOCAL="yes" 68972 else 68973 OUTPUT_DIR_IS_LOCAL="no" 68974 fi 68975 else 68976 # No df here, say it's local 68977 OUTPUT_DIR_IS_LOCAL="yes" 68978 fi 68979 else 68980 # JDK-8189619 68981 # df on AIX does not understand -l. On modern AIXes it understands "-T local" which 68982 # is the same. On older AIXes we just continue to live with a "not local build" warning. 68983 if test "x$OPENJDK_TARGET_OS" = xaix; then 68984 DF_LOCAL_ONLY_OPTION='-T local' 68985 else 68986 DF_LOCAL_ONLY_OPTION='-l' 68987 fi 68988 if $DF $DF_LOCAL_ONLY_OPTION $OUTPUTDIR > /dev/null 2>&1; then 68989 OUTPUT_DIR_IS_LOCAL="yes" 68990 else 68991 OUTPUT_DIR_IS_LOCAL="no" 68992 fi 68993 fi 68994 68995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 68996 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 68997 68998 68999 69000 # Check if the user has any old-style ALT_ variables set. 69001 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 69002 69003 # Before generating output files, test if they exist. If they do, this is a reconfigure. 69004 # Since we can't properly handle the dependencies for this, warn the user about the situation 69005 if test -e $OUTPUTDIR/spec.gmk; then 69006 IS_RECONFIGURE=yes 69007 else 69008 IS_RECONFIGURE=no 69009 fi 69010 69011 69012 # At the end, call the custom hook. (Dummy macro if no custom sources available) 69013 69014 69015 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 69016 69017 # Keep feature lists sorted and free of duplicates 69018 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 69019 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 69020 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 69021 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 69022 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 69023 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 69024 69025 # Validate features 69026 for variant in $JVM_VARIANTS; do 69027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 69028 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 69029 features_var_name=JVM_FEATURES_$variant 69030 JVM_FEATURES_TO_TEST=${!features_var_name} 69031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 69032 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 69033 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 69034 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 69035 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 69036 if test "x$INVALID_FEATURES" != x; then 69037 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 69038 fi 69039 done 69040 69041 69042 # We're messing a bit with internal autoconf variables to put the config.status 69043 # in the output directory instead of the current directory. 69044 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 69045 69046 # Create the actual output files. Now the main work of configure is done. 69047 cat >confcache <<\_ACEOF 69048 # This file is a shell script that caches the results of configure 69049 # tests run on this system so they can be shared between configure 69050 # scripts and configure runs, see configure's option --config-cache. 69051 # It is not useful on other systems. If it contains results you don't 69052 # want to keep, you may remove or edit it. 69053 # 69054 # config.status only pays attention to the cache file if you give it 69055 # the --recheck option to rerun configure. 69056 # 69057 # `ac_cv_env_foo' variables (set or unset) will be overridden when 69058 # loading this file, other *unset* `ac_cv_foo' will be assigned the 69059 # following values. 69060 69061 _ACEOF 69062 69063 # The following way of writing the cache mishandles newlines in values, 69064 # but we know of no workaround that is simple, portable, and efficient. 69065 # So, we kill variables containing newlines. 69066 # Ultrix sh set writes to stderr and can't be redirected directly, 69067 # and sets the high bit in the cache file unless we assign to the vars. 69068 ( 69069 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 69070 eval ac_val=\$$ac_var 69071 case $ac_val in #( 69072 *${as_nl}*) 69073 case $ac_var in #( 69074 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 69075 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 69076 esac 69077 case $ac_var in #( 69078 _ | IFS | as_nl) ;; #( 69079 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 69080 *) { eval $ac_var=; unset $ac_var;} ;; 69081 esac ;; 69082 esac 69083 done 69084 69085 (set) 2>&1 | 69086 case $as_nl`(ac_space=' '; set) 2>&1` in #( 69087 *${as_nl}ac_space=\ *) 69088 # `set' does not quote correctly, so add quotes: double-quote 69089 # substitution turns \\\\ into \\, and sed turns \\ into \. 69090 sed -n \ 69091 "s/'/'\\\\''/g; 69092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 69093 ;; #( 69094 *) 69095 # `set' quotes correctly as required by POSIX, so do not add quotes. 69096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 69097 ;; 69098 esac | 69099 sort 69100 ) | 69101 sed ' 69102 /^ac_cv_env_/b end 69103 t clear 69104 :clear 69105 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 69106 t end 69107 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 69108 :end' >>confcache 69109 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 69110 if test -w "$cache_file"; then 69111 if test "x$cache_file" != "x/dev/null"; then 69112 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 69113 $as_echo "$as_me: updating cache $cache_file" >&6;} 69114 if test ! -f "$cache_file" || test -h "$cache_file"; then 69115 cat confcache >"$cache_file" 69116 else 69117 case $cache_file in #( 69118 */* | ?:*) 69119 mv -f confcache "$cache_file"$$ && 69120 mv -f "$cache_file"$$ "$cache_file" ;; #( 69121 *) 69122 mv -f confcache "$cache_file" ;; 69123 esac 69124 fi 69125 fi 69126 else 69127 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 69128 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 69129 fi 69130 fi 69131 rm -f confcache 69132 69133 test "x$prefix" = xNONE && prefix=$ac_default_prefix 69134 # Let make expand exec_prefix. 69135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 69136 69137 # Transform confdefs.h into DEFS. 69138 # Protect against shell expansion while executing Makefile rules. 69139 # Protect against Makefile macro expansion. 69140 # 69141 # If the first sed substitution is executed (which looks for macros that 69142 # take arguments), then branch to the quote section. Otherwise, 69143 # look for a macro that doesn't take arguments. 69144 ac_script=' 69145 :mline 69146 /\\$/{ 69147 N 69148 s,\\\n,, 69149 b mline 69150 } 69151 t clear 69152 :clear 69153 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 69154 t quote 69155 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 69156 t quote 69157 b any 69158 :quote 69159 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 69160 s/\[/\\&/g 69161 s/\]/\\&/g 69162 s/\$/$$/g 69163 H 69164 :any 69165 ${ 69166 g 69167 s/^\n// 69168 s/\n/ /g 69169 p 69170 } 69171 ' 69172 DEFS=`sed -n "$ac_script" confdefs.h` 69173 69174 69175 ac_libobjs= 69176 ac_ltlibobjs= 69177 U= 69178 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 69179 # 1. Remove the extension, and $U if already installed. 69180 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 69181 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 69182 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 69183 # will be set to the directory where LIBOBJS objects are built. 69184 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 69185 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 69186 done 69187 LIBOBJS=$ac_libobjs 69188 69189 LTLIBOBJS=$ac_ltlibobjs 69190 69191 69192 69193 : "${CONFIG_STATUS=./config.status}" 69194 ac_write_fail=0 69195 ac_clean_files_save=$ac_clean_files 69196 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 69197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 69198 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 69199 as_write_fail=0 69200 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 69201 #! $SHELL 69202 # Generated by $as_me. 69203 # Run this file to recreate the current configuration. 69204 # Compiler output produced by configure, useful for debugging 69205 # configure, is in config.log if it exists. 69206 69207 debug=false 69208 ac_cs_recheck=false 69209 ac_cs_silent=false 69210 69211 SHELL=\${CONFIG_SHELL-$SHELL} 69212 export SHELL 69213 _ASEOF 69214 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 69215 ## -------------------- ## 69216 ## M4sh Initialization. ## 69217 ## -------------------- ## 69218 69219 # Be more Bourne compatible 69220 DUALCASE=1; export DUALCASE # for MKS sh 69221 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 69222 emulate sh 69223 NULLCMD=: 69224 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 69225 # is contrary to our usage. Disable this feature. 69226 alias -g '${1+"$@"}'='"$@"' 69227 setopt NO_GLOB_SUBST 69228 else 69229 case `(set -o) 2>/dev/null` in #( 69230 *posix*) : 69231 set -o posix ;; #( 69232 *) : 69233 ;; 69234 esac 69235 fi 69236 69237 69238 as_nl=' 69239 ' 69240 export as_nl 69241 # Printing a long string crashes Solaris 7 /usr/bin/printf. 69242 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 69243 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 69244 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 69245 # Prefer a ksh shell builtin over an external printf program on Solaris, 69246 # but without wasting forks for bash or zsh. 69247 if test -z "$BASH_VERSION$ZSH_VERSION" \ 69248 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 69249 as_echo='print -r --' 69250 as_echo_n='print -rn --' 69251 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 69252 as_echo='printf %s\n' 69253 as_echo_n='printf %s' 69254 else 69255 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 69256 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 69257 as_echo_n='/usr/ucb/echo -n' 69258 else 69259 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 69260 as_echo_n_body='eval 69261 arg=$1; 69262 case $arg in #( 69263 *"$as_nl"*) 69264 expr "X$arg" : "X\\(.*\\)$as_nl"; 69265 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 69266 esac; 69267 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 69268 ' 69269 export as_echo_n_body 69270 as_echo_n='sh -c $as_echo_n_body as_echo' 69271 fi 69272 export as_echo_body 69273 as_echo='sh -c $as_echo_body as_echo' 69274 fi 69275 69276 # The user is always right. 69277 if test "${PATH_SEPARATOR+set}" != set; then 69278 PATH_SEPARATOR=: 69279 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 69280 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 69281 PATH_SEPARATOR=';' 69282 } 69283 fi 69284 69285 69286 # IFS 69287 # We need space, tab and new line, in precisely that order. Quoting is 69288 # there to prevent editors from complaining about space-tab. 69289 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 69290 # splitting by setting IFS to empty value.) 69291 IFS=" "" $as_nl" 69292 69293 # Find who we are. Look in the path if we contain no directory separator. 69294 as_myself= 69295 case $0 in #(( 69296 *[\\/]* ) as_myself=$0 ;; 69297 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 69298 for as_dir in $PATH 69299 do 69300 IFS=$as_save_IFS 69301 test -z "$as_dir" && as_dir=. 69302 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 69303 done 69304 IFS=$as_save_IFS 69305 69306 ;; 69307 esac 69308 # We did not find ourselves, most probably we were run as `sh COMMAND' 69309 # in which case we are not to be found in the path. 69310 if test "x$as_myself" = x; then 69311 as_myself=$0 69312 fi 69313 if test ! -f "$as_myself"; then 69314 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 69315 exit 1 69316 fi 69317 69318 # Unset variables that we do not need and which cause bugs (e.g. in 69319 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 69320 # suppresses any "Segmentation fault" message there. '((' could 69321 # trigger a bug in pdksh 5.2.14. 69322 for as_var in BASH_ENV ENV MAIL MAILPATH 69323 do eval test x\${$as_var+set} = xset \ 69324 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 69325 done 69326 PS1='$ ' 69327 PS2='> ' 69328 PS4='+ ' 69329 69330 # NLS nuisances. 69331 LC_ALL=C 69332 export LC_ALL 69333 LANGUAGE=C 69334 export LANGUAGE 69335 69336 # CDPATH. 69337 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 69338 69339 69340 # as_fn_error STATUS ERROR [LINENO LOG_FD] 69341 # ---------------------------------------- 69342 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 69343 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 69344 # script with STATUS, using 1 if that was 0. 69345 as_fn_error () 69346 { 69347 as_status=$1; test $as_status -eq 0 && as_status=1 69348 if test "$4"; then 69349 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 69350 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 69351 fi 69352 $as_echo "$as_me: error: $2" >&2 69353 as_fn_exit $as_status 69354 } # as_fn_error 69355 69356 69357 # as_fn_set_status STATUS 69358 # ----------------------- 69359 # Set $? to STATUS, without forking. 69360 as_fn_set_status () 69361 { 69362 return $1 69363 } # as_fn_set_status 69364 69365 # as_fn_exit STATUS 69366 # ----------------- 69367 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 69368 as_fn_exit () 69369 { 69370 set +e 69371 as_fn_set_status $1 69372 exit $1 69373 } # as_fn_exit 69374 69375 # as_fn_unset VAR 69376 # --------------- 69377 # Portably unset VAR. 69378 as_fn_unset () 69379 { 69380 { eval $1=; unset $1;} 69381 } 69382 as_unset=as_fn_unset 69383 # as_fn_append VAR VALUE 69384 # ---------------------- 69385 # Append the text in VALUE to the end of the definition contained in VAR. Take 69386 # advantage of any shell optimizations that allow amortized linear growth over 69387 # repeated appends, instead of the typical quadratic growth present in naive 69388 # implementations. 69389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 69390 eval 'as_fn_append () 69391 { 69392 eval $1+=\$2 69393 }' 69394 else 69395 as_fn_append () 69396 { 69397 eval $1=\$$1\$2 69398 } 69399 fi # as_fn_append 69400 69401 # as_fn_arith ARG... 69402 # ------------------ 69403 # Perform arithmetic evaluation on the ARGs, and store the result in the 69404 # global $as_val. Take advantage of shells that can avoid forks. The arguments 69405 # must be portable across $(()) and expr. 69406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 69407 eval 'as_fn_arith () 69408 { 69409 as_val=$(( $* )) 69410 }' 69411 else 69412 as_fn_arith () 69413 { 69414 as_val=`expr "$@" || test $? -eq 1` 69415 } 69416 fi # as_fn_arith 69417 69418 69419 if expr a : '\(a\)' >/dev/null 2>&1 && 69420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 69421 as_expr=expr 69422 else 69423 as_expr=false 69424 fi 69425 69426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 69427 as_basename=basename 69428 else 69429 as_basename=false 69430 fi 69431 69432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 69433 as_dirname=dirname 69434 else 69435 as_dirname=false 69436 fi 69437 69438 as_me=`$as_basename -- "$0" || 69439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69440 X"$0" : 'X\(//\)$' \| \ 69441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 69442 $as_echo X/"$0" | 69443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 69444 s//\1/ 69445 q 69446 } 69447 /^X\/\(\/\/\)$/{ 69448 s//\1/ 69449 q 69450 } 69451 /^X\/\(\/\).*/{ 69452 s//\1/ 69453 q 69454 } 69455 s/.*/./; q'` 69456 69457 # Avoid depending upon Character Ranges. 69458 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 69459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 69460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 69461 as_cr_digits='0123456789' 69462 as_cr_alnum=$as_cr_Letters$as_cr_digits 69463 69464 ECHO_C= ECHO_N= ECHO_T= 69465 case `echo -n x` in #((((( 69466 -n*) 69467 case `echo 'xy\c'` in 69468 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 69469 xy) ECHO_C='\c';; 69470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 69471 ECHO_T=' ';; 69472 esac;; 69473 *) 69474 ECHO_N='-n';; 69475 esac 69476 69477 rm -f conf$$ conf$$.exe conf$$.file 69478 if test -d conf$$.dir; then 69479 rm -f conf$$.dir/conf$$.file 69480 else 69481 rm -f conf$$.dir 69482 mkdir conf$$.dir 2>/dev/null 69483 fi 69484 if (echo >conf$$.file) 2>/dev/null; then 69485 if ln -s conf$$.file conf$$ 2>/dev/null; then 69486 as_ln_s='ln -s' 69487 # ... but there are two gotchas: 69488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 69489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 69490 # In both cases, we have to default to `cp -pR'. 69491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 69492 as_ln_s='cp -pR' 69493 elif ln conf$$.file conf$$ 2>/dev/null; then 69494 as_ln_s=ln 69495 else 69496 as_ln_s='cp -pR' 69497 fi 69498 else 69499 as_ln_s='cp -pR' 69500 fi 69501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 69502 rmdir conf$$.dir 2>/dev/null 69503 69504 69505 # as_fn_mkdir_p 69506 # ------------- 69507 # Create "$as_dir" as a directory, including parents if necessary. 69508 as_fn_mkdir_p () 69509 { 69510 69511 case $as_dir in #( 69512 -*) as_dir=./$as_dir;; 69513 esac 69514 test -d "$as_dir" || eval $as_mkdir_p || { 69515 as_dirs= 69516 while :; do 69517 case $as_dir in #( 69518 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 69519 *) as_qdir=$as_dir;; 69520 esac 69521 as_dirs="'$as_qdir' $as_dirs" 69522 as_dir=`$as_dirname -- "$as_dir" || 69523 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 69524 X"$as_dir" : 'X\(//\)[^/]' \| \ 69525 X"$as_dir" : 'X\(//\)$' \| \ 69526 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 69527 $as_echo X"$as_dir" | 69528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 69529 s//\1/ 69530 q 69531 } 69532 /^X\(\/\/\)[^/].*/{ 69533 s//\1/ 69534 q 69535 } 69536 /^X\(\/\/\)$/{ 69537 s//\1/ 69538 q 69539 } 69540 /^X\(\/\).*/{ 69541 s//\1/ 69542 q 69543 } 69544 s/.*/./; q'` 69545 test -d "$as_dir" && break 69546 done 69547 test -z "$as_dirs" || eval "mkdir $as_dirs" 69548 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 69549 69550 69551 } # as_fn_mkdir_p 69552 if mkdir -p . 2>/dev/null; then 69553 as_mkdir_p='mkdir -p "$as_dir"' 69554 else 69555 test -d ./-p && rmdir ./-p 69556 as_mkdir_p=false 69557 fi 69558 69559 69560 # as_fn_executable_p FILE 69561 # ----------------------- 69562 # Test if FILE is an executable regular file. 69563 as_fn_executable_p () 69564 { 69565 test -f "$1" && test -x "$1" 69566 } # as_fn_executable_p 69567 as_test_x='test -x' 69568 as_executable_p=as_fn_executable_p 69569 69570 # Sed expression to map a string onto a valid CPP name. 69571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 69572 69573 # Sed expression to map a string onto a valid variable name. 69574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 69575 69576 69577 exec 6>&1 69578 ## ----------------------------------- ## 69579 ## Main body of $CONFIG_STATUS script. ## 69580 ## ----------------------------------- ## 69581 _ASEOF 69582 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 69583 69584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69585 # Save the log message, to keep $0 and so on meaningful, and to 69586 # report actual input values of CONFIG_FILES etc. instead of their 69587 # values after options handling. 69588 ac_log=" 69589 This file was extended by OpenJDK $as_me jdk9, which was 69590 generated by GNU Autoconf 2.69. Invocation command line was 69591 69592 CONFIG_FILES = $CONFIG_FILES 69593 CONFIG_HEADERS = $CONFIG_HEADERS 69594 CONFIG_LINKS = $CONFIG_LINKS 69595 CONFIG_COMMANDS = $CONFIG_COMMANDS 69596 $ $0 $@ 69597 69598 on `(hostname || uname -n) 2>/dev/null | sed 1q` 69599 " 69600 69601 _ACEOF 69602 69603 case $ac_config_files in *" 69604 "*) set x $ac_config_files; shift; ac_config_files=$*;; 69605 esac 69606 69607 69608 69609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69610 # Files that config.status was made for. 69611 config_files="$ac_config_files" 69612 69613 _ACEOF 69614 69615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69616 ac_cs_usage="\ 69617 \`$as_me' instantiates files and other configuration actions 69618 from templates according to the current configuration. Unless the files 69619 and actions are specified as TAGs, all are instantiated by default. 69620 69621 Usage: $0 [OPTION]... [TAG]... 69622 69623 -h, --help print this help, then exit 69624 -V, --version print version number and configuration settings, then exit 69625 --config print configuration, then exit 69626 -q, --quiet, --silent 69627 do not print progress messages 69628 -d, --debug don't remove temporary files 69629 --recheck update $as_me by reconfiguring in the same conditions 69630 --file=FILE[:TEMPLATE] 69631 instantiate the configuration file FILE 69632 69633 Configuration files: 69634 $config_files 69635 69636 Report bugs to <build-dev@openjdk.java.net>. 69637 OpenJDK home page: <http://openjdk.java.net>." 69638 69639 _ACEOF 69640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69641 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 69642 ac_cs_version="\\ 69643 OpenJDK config.status jdk9 69644 configured by $0, generated by GNU Autoconf 2.69, 69645 with options \\"\$ac_cs_config\\" 69646 69647 Copyright (C) 2012 Free Software Foundation, Inc. 69648 This config.status script is free software; the Free Software Foundation 69649 gives unlimited permission to copy, distribute and modify it." 69650 69651 ac_pwd='$ac_pwd' 69652 srcdir='$srcdir' 69653 AWK='$AWK' 69654 test -n "\$AWK" || AWK=awk 69655 _ACEOF 69656 69657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69658 # The default lists apply if the user does not specify any file. 69659 ac_need_defaults=: 69660 while test $# != 0 69661 do 69662 case $1 in 69663 --*=?*) 69664 ac_option=`expr "X$1" : 'X\([^=]*\)='` 69665 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 69666 ac_shift=: 69667 ;; 69668 --*=) 69669 ac_option=`expr "X$1" : 'X\([^=]*\)='` 69670 ac_optarg= 69671 ac_shift=: 69672 ;; 69673 *) 69674 ac_option=$1 69675 ac_optarg=$2 69676 ac_shift=shift 69677 ;; 69678 esac 69679 69680 case $ac_option in 69681 # Handling of the options. 69682 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 69683 ac_cs_recheck=: ;; 69684 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 69685 $as_echo "$ac_cs_version"; exit ;; 69686 --config | --confi | --conf | --con | --co | --c ) 69687 $as_echo "$ac_cs_config"; exit ;; 69688 --debug | --debu | --deb | --de | --d | -d ) 69689 debug=: ;; 69690 --file | --fil | --fi | --f ) 69691 $ac_shift 69692 case $ac_optarg in 69693 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 69694 '') as_fn_error $? "missing file argument" ;; 69695 esac 69696 as_fn_append CONFIG_FILES " '$ac_optarg'" 69697 ac_need_defaults=false;; 69698 --he | --h | --help | --hel | -h ) 69699 $as_echo "$ac_cs_usage"; exit ;; 69700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 69701 | -silent | --silent | --silen | --sile | --sil | --si | --s) 69702 ac_cs_silent=: ;; 69703 69704 # This is an error. 69705 -*) as_fn_error $? "unrecognized option: \`$1' 69706 Try \`$0 --help' for more information." ;; 69707 69708 *) as_fn_append ac_config_targets " $1" 69709 ac_need_defaults=false ;; 69710 69711 esac 69712 shift 69713 done 69714 69715 ac_configure_extra_args= 69716 69717 if $ac_cs_silent; then 69718 exec 6>/dev/null 69719 ac_configure_extra_args="$ac_configure_extra_args --silent" 69720 fi 69721 69722 _ACEOF 69723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69724 if \$ac_cs_recheck; then 69725 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 69726 shift 69727 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 69728 CONFIG_SHELL='$SHELL' 69729 export CONFIG_SHELL 69730 exec "\$@" 69731 fi 69732 69733 _ACEOF 69734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69735 exec 5>>config.log 69736 { 69737 echo 69738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 69739 ## Running $as_me. ## 69740 _ASBOX 69741 $as_echo "$ac_log" 69742 } >&5 69743 69744 _ACEOF 69745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69746 _ACEOF 69747 69748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69749 69750 # Handling of arguments. 69751 for ac_config_target in $ac_config_targets 69752 do 69753 case $ac_config_target in 69754 "$OUTPUTDIR/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 69755 "$OUTPUTDIR/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 69756 "$OUTPUTDIR/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 69757 "$OUTPUTDIR/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 69758 "$OUTPUTDIR/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 69759 69760 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 69761 esac 69762 done 69763 69764 69765 # If the user did not use the arguments to specify the items to instantiate, 69766 # then the envvar interface is used. Set only those that are not. 69767 # We use the long form for the default assignment because of an extremely 69768 # bizarre bug on SunOS 4.1.3. 69769 if $ac_need_defaults; then 69770 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 69771 fi 69772 69773 # Have a temporary directory for convenience. Make it in the build tree 69774 # simply because there is no reason against having it here, and in addition, 69775 # creating and moving files from /tmp can sometimes cause problems. 69776 # Hook for its removal unless debugging. 69777 # Note that there is a small window in which the directory will not be cleaned: 69778 # after its creation but before its name has been assigned to `$tmp'. 69779 $debug || 69780 { 69781 tmp= ac_tmp= 69782 trap 'exit_status=$? 69783 : "${ac_tmp:=$tmp}" 69784 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 69785 ' 0 69786 trap 'as_fn_exit 1' 1 2 13 15 69787 } 69788 # Create a (secure) tmp directory for tmp files. 69789 69790 { 69791 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 69792 test -d "$tmp" 69793 } || 69794 { 69795 tmp=./conf$$-$RANDOM 69796 (umask 077 && mkdir "$tmp") 69797 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 69798 ac_tmp=$tmp 69799 69800 # Set up the scripts for CONFIG_FILES section. 69801 # No need to generate them if there are no CONFIG_FILES. 69802 # This happens for instance with `./config.status config.h'. 69803 if test -n "$CONFIG_FILES"; then 69804 69805 69806 ac_cr=`echo X | tr X '\015'` 69807 # On cygwin, bash can eat \r inside `` if the user requested igncr. 69808 # But we know of no other shell where ac_cr would be empty at this 69809 # point, so we can use a bashism as a fallback. 69810 if test "x$ac_cr" = x; then 69811 eval ac_cr=\$\'\\r\' 69812 fi 69813 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 69814 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 69815 ac_cs_awk_cr='\\r' 69816 else 69817 ac_cs_awk_cr=$ac_cr 69818 fi 69819 69820 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 69821 _ACEOF 69822 69823 69824 { 69825 echo "cat >conf$$subs.awk <<_ACEOF" && 69826 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 69827 echo "_ACEOF" 69828 } >conf$$subs.sh || 69829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69830 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 69831 ac_delim='%!_!# ' 69832 for ac_last_try in false false false false false :; do 69833 . ./conf$$subs.sh || 69834 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69835 69836 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 69837 if test $ac_delim_n = $ac_delim_num; then 69838 break 69839 elif $ac_last_try; then 69840 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69841 else 69842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 69843 fi 69844 done 69845 rm -f conf$$subs.sh 69846 69847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69848 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 69849 _ACEOF 69850 sed -n ' 69851 h 69852 s/^/S["/; s/!.*/"]=/ 69853 p 69854 g 69855 s/^[^!]*!// 69856 :repl 69857 t repl 69858 s/'"$ac_delim"'$// 69859 t delim 69860 :nl 69861 h 69862 s/\(.\{148\}\)..*/\1/ 69863 t more1 69864 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 69865 p 69866 n 69867 b repl 69868 :more1 69869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 69870 p 69871 g 69872 s/.\{148\}// 69873 t nl 69874 :delim 69875 h 69876 s/\(.\{148\}\)..*/\1/ 69877 t more2 69878 s/["\\]/\\&/g; s/^/"/; s/$/"/ 69879 p 69880 b 69881 :more2 69882 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 69883 p 69884 g 69885 s/.\{148\}// 69886 t delim 69887 ' <conf$$subs.awk | sed ' 69888 /^[^""]/{ 69889 N 69890 s/\n// 69891 } 69892 ' >>$CONFIG_STATUS || ac_write_fail=1 69893 rm -f conf$$subs.awk 69894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69895 _ACAWK 69896 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 69897 for (key in S) S_is_set[key] = 1 69898 FS = "" 69899 69900 } 69901 { 69902 line = $ 0 69903 nfields = split(line, field, "@") 69904 substed = 0 69905 len = length(field[1]) 69906 for (i = 2; i < nfields; i++) { 69907 key = field[i] 69908 keylen = length(key) 69909 if (S_is_set[key]) { 69910 value = S[key] 69911 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 69912 len += length(value) + length(field[++i]) 69913 substed = 1 69914 } else 69915 len += 1 + keylen 69916 } 69917 69918 print line 69919 } 69920 69921 _ACAWK 69922 _ACEOF 69923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69924 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 69925 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 69926 else 69927 cat 69928 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 69929 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 69930 _ACEOF 69931 69932 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 69933 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 69934 # trailing colons and then remove the whole line if VPATH becomes empty 69935 # (actually we leave an empty line to preserve line numbers). 69936 if test "x$srcdir" = x.; then 69937 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 69938 h 69939 s/// 69940 s/^/:/ 69941 s/[ ]*$/:/ 69942 s/:\$(srcdir):/:/g 69943 s/:\${srcdir}:/:/g 69944 s/:@srcdir@:/:/g 69945 s/^:*// 69946 s/:*$// 69947 x 69948 s/\(=[ ]*\).*/\1/ 69949 G 69950 s/\n// 69951 s/^[^=]*=[ ]*$// 69952 }' 69953 fi 69954 69955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69956 fi # test -n "$CONFIG_FILES" 69957 69958 69959 eval set X " :F $CONFIG_FILES " 69960 shift 69961 for ac_tag 69962 do 69963 case $ac_tag in 69964 :[FHLC]) ac_mode=$ac_tag; continue;; 69965 esac 69966 case $ac_mode$ac_tag in 69967 :[FHL]*:*);; 69968 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 69969 :[FH]-) ac_tag=-:-;; 69970 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 69971 esac 69972 ac_save_IFS=$IFS 69973 IFS=: 69974 set x $ac_tag 69975 IFS=$ac_save_IFS 69976 shift 69977 ac_file=$1 69978 shift 69979 69980 case $ac_mode in 69981 :L) ac_source=$1;; 69982 :[FH]) 69983 ac_file_inputs= 69984 for ac_f 69985 do 69986 case $ac_f in 69987 -) ac_f="$ac_tmp/stdin";; 69988 *) # Look for the file first in the build tree, then in the source tree 69989 # (if the path is not absolute). The absolute path cannot be DOS-style, 69990 # because $ac_f cannot contain `:'. 69991 test -f "$ac_f" || 69992 case $ac_f in 69993 [\\/$]*) false;; 69994 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 69995 esac || 69996 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 69997 esac 69998 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 69999 as_fn_append ac_file_inputs " '$ac_f'" 70000 done 70001 70002 # Let's still pretend it is `configure' which instantiates (i.e., don't 70003 # use $as_me), people would be surprised to read: 70004 # /* config.h. Generated by config.status. */ 70005 configure_input='Generated from '` 70006 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 70007 `' by configure.' 70008 if test x"$ac_file" != x-; then 70009 configure_input="$ac_file. $configure_input" 70010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 70011 $as_echo "$as_me: creating $ac_file" >&6;} 70012 fi 70013 # Neutralize special characters interpreted by sed in replacement strings. 70014 case $configure_input in #( 70015 *\&* | *\|* | *\\* ) 70016 ac_sed_conf_input=`$as_echo "$configure_input" | 70017 sed 's/[\\\\&|]/\\\\&/g'`;; #( 70018 *) ac_sed_conf_input=$configure_input;; 70019 esac 70020 70021 case $ac_tag in 70022 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 70023 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 70024 esac 70025 ;; 70026 esac 70027 70028 ac_dir=`$as_dirname -- "$ac_file" || 70029 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 70030 X"$ac_file" : 'X\(//\)[^/]' \| \ 70031 X"$ac_file" : 'X\(//\)$' \| \ 70032 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 70033 $as_echo X"$ac_file" | 70034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 70035 s//\1/ 70036 q 70037 } 70038 /^X\(\/\/\)[^/].*/{ 70039 s//\1/ 70040 q 70041 } 70042 /^X\(\/\/\)$/{ 70043 s//\1/ 70044 q 70045 } 70046 /^X\(\/\).*/{ 70047 s//\1/ 70048 q 70049 } 70050 s/.*/./; q'` 70051 as_dir="$ac_dir"; as_fn_mkdir_p 70052 ac_builddir=. 70053 70054 case "$ac_dir" in 70055 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 70056 *) 70057 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 70058 # A ".." for each directory in $ac_dir_suffix. 70059 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 70060 case $ac_top_builddir_sub in 70061 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 70062 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 70063 esac ;; 70064 esac 70065 ac_abs_top_builddir=$ac_pwd 70066 ac_abs_builddir=$ac_pwd$ac_dir_suffix 70067 # for backward compatibility: 70068 ac_top_builddir=$ac_top_build_prefix 70069 70070 case $srcdir in 70071 .) # We are building in place. 70072 ac_srcdir=. 70073 ac_top_srcdir=$ac_top_builddir_sub 70074 ac_abs_top_srcdir=$ac_pwd ;; 70075 [\\/]* | ?:[\\/]* ) # Absolute name. 70076 ac_srcdir=$srcdir$ac_dir_suffix; 70077 ac_top_srcdir=$srcdir 70078 ac_abs_top_srcdir=$srcdir ;; 70079 *) # Relative name. 70080 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 70081 ac_top_srcdir=$ac_top_build_prefix$srcdir 70082 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 70083 esac 70084 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 70085 70086 70087 case $ac_mode in 70088 :F) 70089 # 70090 # CONFIG_FILE 70091 # 70092 70093 _ACEOF 70094 70095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 70096 # If the template does not know about datarootdir, expand it. 70097 # FIXME: This hack should be removed a few years after 2.60. 70098 ac_datarootdir_hack=; ac_datarootdir_seen= 70099 ac_sed_dataroot=' 70100 /datarootdir/ { 70101 p 70102 q 70103 } 70104 /@datadir@/p 70105 /@docdir@/p 70106 /@infodir@/p 70107 /@localedir@/p 70108 /@mandir@/p' 70109 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 70110 *datarootdir*) ac_datarootdir_seen=yes;; 70111 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 70112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 70113 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 70114 _ACEOF 70115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 70116 ac_datarootdir_hack=' 70117 s&@datadir@&$datadir&g 70118 s&@docdir@&$docdir&g 70119 s&@infodir@&$infodir&g 70120 s&@localedir@&$localedir&g 70121 s&@mandir@&$mandir&g 70122 s&\\\${datarootdir}&$datarootdir&g' ;; 70123 esac 70124 _ACEOF 70125 70126 # Neutralize VPATH when `$srcdir' = `.'. 70127 # Shell code in configure.ac might set extrasub. 70128 # FIXME: do we really want to maintain this feature? 70129 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 70130 ac_sed_extra="$ac_vpsub 70131 $extrasub 70132 _ACEOF 70133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 70134 :t 70135 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 70136 s|@configure_input@|$ac_sed_conf_input|;t t 70137 s&@top_builddir@&$ac_top_builddir_sub&;t t 70138 s&@top_build_prefix@&$ac_top_build_prefix&;t t 70139 s&@srcdir@&$ac_srcdir&;t t 70140 s&@abs_srcdir@&$ac_abs_srcdir&;t t 70141 s&@top_srcdir@&$ac_top_srcdir&;t t 70142 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 70143 s&@builddir@&$ac_builddir&;t t 70144 s&@abs_builddir@&$ac_abs_builddir&;t t 70145 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 70146 $ac_datarootdir_hack 70147 " 70148 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 70149 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 70150 70151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 70152 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 70153 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 70154 "$ac_tmp/out"`; test -z "$ac_out"; } && 70155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 70156 which seems to be undefined. Please make sure it is defined" >&5 70157 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 70158 which seems to be undefined. Please make sure it is defined" >&2;} 70159 70160 rm -f "$ac_tmp/stdin" 70161 case $ac_file in 70162 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 70163 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 70164 esac \ 70165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 70166 ;; 70167 70168 70169 70170 esac 70171 70172 done # for ac_tag 70173 70174 70175 as_fn_exit 0 70176 _ACEOF 70177 ac_clean_files=$ac_clean_files_save 70178 70179 test $ac_write_fail = 0 || 70180 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 70181 70182 70183 # configure is writing to config.log, and then calls config.status. 70184 # config.status does its own redirection, appending to config.log. 70185 # Unfortunately, on DOS this fails, as config.log is still kept open 70186 # by configure, so config.status won't be able to write to it; its 70187 # output is simply discarded. So we exec the FD to /dev/null, 70188 # effectively closing config.log, so it can be properly (re)opened and 70189 # appended to by config.status. When coming back to configure, we 70190 # need to make the FD available again. 70191 if test "$no_create" != yes; then 70192 ac_cs_success=: 70193 ac_config_status_args= 70194 test "$silent" = yes && 70195 ac_config_status_args="$ac_config_status_args --quiet" 70196 exec 5>/dev/null 70197 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 70198 exec 5>>config.log 70199 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 70200 # would make configure fail if this is the last instruction. 70201 $ac_cs_success || as_fn_exit 1 70202 fi 70203 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 70204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 70205 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 70206 fi 70207 70208 70209 # After AC_OUTPUT, we need to do final work 70210 70211 70212 # Try to move config.log (generated by autoconf) to the configure-support directory. 70213 if test -e ./config.log; then 70214 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 70215 fi 70216 70217 # Rotate our log file (configure.log) 70218 if test -e "$OUTPUTDIR/configure.log.old"; then 70219 $RM -f "$OUTPUTDIR/configure.log.old" 70220 fi 70221 if test -e "$OUTPUTDIR/configure.log"; then 70222 $MV -f "$OUTPUTDIR/configure.log" "$OUTPUTDIR/configure.log.old" 2> /dev/null 70223 fi 70224 70225 # Move configure.log from current directory to the build output root 70226 if test -e ./configure.log; then 70227 $MV -f ./configure.log "$OUTPUTDIR/configure.log" 2> /dev/null 70228 fi 70229 70230 # Make the compare script executable 70231 $CHMOD +x $OUTPUTDIR/compare.sh 70232 70233 70234 # Finally output some useful information to the user 70235 70236 # Finally output some useful information to the user 70237 70238 printf "\n" 70239 printf "====================================================\n" 70240 if test "x$no_create" != "xyes"; then 70241 if test "x$IS_RECONFIGURE" != "xyes"; then 70242 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUTDIR" 70243 else 70244 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUTDIR" 70245 fi 70246 else 70247 if test "x$IS_RECONFIGURE" != "xyes"; then 70248 printf "A configuration has been successfully checked but not created\n" 70249 else 70250 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUTDIR" 70251 fi 70252 fi 70253 if test "x$CONFIGURE_COMMAND_LINE" != x; then 70254 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 70255 else 70256 printf "using default settings.\n" 70257 fi 70258 70259 printf "\n" 70260 printf "Configuration summary:\n" 70261 printf "* Debug level: $DEBUG_LEVEL\n" 70262 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 70263 printf "* JDK variant: $JDK_VARIANT\n" 70264 printf "* JVM variants: $JVM_VARIANTS\n" 70265 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 70266 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 70267 70268 printf "\n" 70269 printf "Tools summary:\n" 70270 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 70271 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 70272 fi 70273 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 70274 if test "x$TOOLCHAIN_VERSION" != "x"; then 70275 print_version=" $TOOLCHAIN_VERSION" 70276 fi 70277 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 70278 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 70279 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 70280 70281 printf "\n" 70282 printf "Build performance summary:\n" 70283 printf "* Cores to use: $JOBS\n" 70284 printf "* Memory limit: $MEMORY_SIZE MB\n" 70285 if test "x$CCACHE_STATUS" != "x"; then 70286 printf "* ccache status: $CCACHE_STATUS\n" 70287 fi 70288 printf "\n" 70289 70290 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 70291 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 70292 printf "will result in longer build times.\n" 70293 printf "\n" 70294 fi 70295 70296 if test "x$FOUND_ALT_VARIABLES" != "x"; then 70297 printf "WARNING: You have old-style ALT_ environment variables set.\n" 70298 printf "These are not respected, and will be ignored. It is recommended\n" 70299 printf "that you clean your environment. The following variables are set:\n" 70300 printf "$FOUND_ALT_VARIABLES\n" 70301 printf "\n" 70302 fi 70303 70304 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 70305 printf "WARNING: Your build output directory is not on a local disk.\n" 70306 printf "This will severely degrade build performance!\n" 70307 printf "It is recommended that you create an output directory on a local disk,\n" 70308 printf "and run the configure script again from that directory.\n" 70309 printf "\n" 70310 fi 70311 70312 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 70313 printf "WARNING: The result of this configuration has overridden an older\n" 70314 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 70315 printf "proper build. Failure to do so might result in strange build problems.\n" 70316 printf "\n" 70317 fi 70318 70319 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 70320 printf "WARNING: The result of this configuration was not saved.\n" 70321 printf "You should run without '--no-create | -n' to create the configuration.\n" 70322 printf "\n" 70323 fi 70324 70325 70326 70327 # Locate config.log. 70328 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 70329 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 70330 elif test -e "./config.log"; then 70331 CONFIG_LOG_PATH="." 70332 fi 70333 70334 if test -e "$CONFIG_LOG_PATH/config.log"; then 70335 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 70336 if test $? -eq 0; then 70337 printf "The following warnings were produced. Repeated here for convenience:\n" 70338 # We must quote sed expression (using []) to stop m4 from eating the []. 70339 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 70340 printf "\n" 70341 fi 70342 fi 70343